summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
Commit message (Collapse)AuthorAgeFilesLines
* lps_gen: Rename '-s' switch to '-sc'rsiddharth2019-07-201-1/+1
| | | | | | * docs/install/index.rst: Update output of `lps_gen --help` * docs/schedule/index.rst: Update `lps_gen` command. * lps_gen.py (main): Rename '-s' switch to '-sc'.
* lps_gen.py: Update main.rsiddharth2019-07-131-1/+1
| | | | * lps_gen.py (main): Barf informational message on exit 1.
* lps_gen: Remove `lp_t` command line argument.rsiddharth2019-07-131-16/+13
| | | | | | | | | | | | | | * docs/install/index.rst: Update usage command output. * docs/schedule/index.rst: Update lps_gen command example. * docs/speakers/index.rst: Update lps_gen command example. * lps_gen.py (RenderHTML): Change argument template -> template_name. Read template from package. (main): Remove `lp_t` command line argument. * tests/test_lps_gen.py (TestLPS.test_RenderHTML) (TestLPS.test_RenderHTML_sessions_only) (TestLPS.test_RenderHTML_nonexistent_template) (TestLPSTBA.setup, TestLPSpeakers.test_RenderHTML): Update RenderHTML call; pass template name instead of template path.
* lps_gen.py: Update template_read.rsiddharth2019-07-131-1/+1
| | | | | | * lps_gen.py (template_read): Add template file extension. * tests/test_lps_gen.py (TestTemplates.test_read): Don't specify template file extension.
* lps_gen.py: Update template_read.rsiddharth2019-07-131-1/+7
| | | | | | | * lps_gen.py (template_read): Add exception handling for non-existent templates. * tests/test_lps_gen.py (TestTemplates.test_read): Add non-existent template test.
* lps_gen.py: Add template_read.rsiddharth2019-07-131-0/+10
| | | | | * lps_gen.py (template_read): New function. * tests/test_lps_gen.py (TestTemplates): New test class.
* lps_gen.py: Update main.rsiddharth2019-05-261-2/+2
| | | | * lps_gen.py (main): Use format for formatted string.
* Update LPSRenderer.link.rsiddharth2019-05-261-1/+1
| | | | * lps_gen.py (LPSRenderer.link): Use format for formatted string.
* Update LPiCal.to_ical.rsiddharth2019-05-261-1/+1
| | | | | * lps_gen.py (LPiCal.to_ical): Use format for formatted string. * tests/test_lps_gen.py (TestLPiCal.test_to_ical): Update test.
* Update LPiCal.mk_datetime.rsiddharth2019-05-261-4/+5
| | | | * lps_gen.py (LPiCal.mk_datetime): Use format for formatted string.
* lps_gen.py: Update LPiCal.gen_uid.rsiddharth2019-05-261-2/+2
| | | | * lps_gen.py (LPiCal.gen_uid): Use format for formatted string.
* lps_gen.py: Update LPiCal.rsiddharth2019-05-261-1/+1
| | | | | | * lps_gen.py (LPiCal.__init__): Use format function for formatted string. * tests/test_lps_gen.py (TestLPiCal.test_init): New test.
* * lps_gen.py: Update read_file.rsiddharth2018-09-091-1/+1
| | | | * lps_gen.py (read_file): Change file mode to just 'r'.
* lps_gen.py: Update write_file.rsiddharth2018-09-091-1/+1
| | | | * lps_gen.py (write_file): Change file mode to just 'w'.
* lps_gen.py: Update LPiCal.gen_ical.rsiddharth2018-09-091-1/+1
| | | | * lps_gen.py (LPiCal.gen_ical): Wrap returned string around str().
* lps_gen.py: Remove unicode mumbo jumbo.rsiddharth2018-09-091-5/+0
|
* lps_gen.py: Change string handling.rsiddharth2018-09-091-2/+2
| | | | | | | unicode(STRING) -> str(STRING) * lps_gen.py (LPSRenderer.get_uid) (LPSpeakersRenderer.mk_uid): Update methods.
* Dedicate to Public Domain.rsiddharth2018-09-091-3/+2
| | | | | | | | | | | | * Makefile: Put under CC0-1.0. * docs/conf.py: Put under CC0-1.0. * libreplanet-templates/2016/lp-schedule.jinja2: Put under CC0-1.0. * libreplanet-templates/2016/lp-speakers.jinja2: Put under CC0-1.0. * libreplanet-templates/2017/lp-schedule.jinja2: Put under CC0-1.0. * libreplanet-templates/2018/lp-schedule.jinja2: Put under CC0-1.0. * lps_gen.py: Put under CC0-1.0. * lpschedule_generator/_version.py: Put under CC0-1.0. * setup.py: Put under CC0-1.0.
* lps_gen.py: Use SPDX license identifier.rsiddharth2018-08-191-13/+2
|
* lps_gen.py: Update LPiCal timeslot regex slurping.rsiddharth2018-03-221-5/+4
| | | | | | | | | | | | | | | | | | Now matches time slots of the form: 09:45 - 10:30: Lorem ipsum dolor sit. or 09:45 - 10:30 - Lorem ipsum dolor sit. or 09:45 - 10:30 * lps_gen.py (LPiCal.timeslot_r): Update variable. (LPiCal.get_timeslot): Update method. * tests/test_lps_gen.py (TestLPiCal.test_get_timeslot): Update test.
* lps_gen.py: Update the timeslot regex to make the name optionalFrançois Revol2018-03-221-2/+2
| | | | Fixes ical generation.
* lps_gen.py: Update LPSRenderer.rsiddharth2017-10-251-0/+4
| | | | | | | | * lps_gen.py (LPSRenderer.paragraph): Update method. * tests/files/lp-sch-sessions-only.md: Update file. * tests/files/lp-sch-tba.md: Update file. * tests/files/lp-sch.md: Update file. * tests/files/lp-sessions-autolink.md: Update file.
* lps_gen.py: LPSRenderer: Add _process_video.rsiddharth2017-10-251-0/+18
| | | | * lps_gen.py (LPSRenderer._process_video): New method.
* lps_gen: Use items() instead iteritems() on dicts.rsiddharth2017-10-221-3/+3
| | | | * lps_gen.py (LPiCal.gen_ical): Update method.
* lps_gen.py: Update print statements.rsiddharth2017-10-221-5/+5
| | | | | | | Use `print` as a function. * lps_gen.py (read_file, write_file, RenderHTML, main): Update functions. * lpschedule_generator/_version.py (__version__): Update variable.
* Add the X-WR-CALNAME property to the ICSFrançois Revol2017-09-251-0/+1
| | | | Giggity doesn't like when it's missing.
* lps_gen.py: Update copyright year.rsiddharth2017-07-061-1/+1
|
* lps_gen.py: Fix whitspace issue.rsiddharth2017-06-011-1/+2
|
* lps_gen.py: Update docstrings.rsiddharth2017-06-011-10/+9
|
* lps_gen.py: Fix whitspace issues.rsiddharth2017-06-011-16/+27
|
* lps_gen.py: Update LPiCal.rsiddharth2017-05-291-3/+8
| | | | | | * lps_gen.py (LPiCal.add_event): Update method. New argument `t_name`. (gen_ical): Update method. * tests/test_lps_gen.py (TestLPiCal.test_add_event): Update method.
* lps_gen: Add LPSRenderer._check_session_title_exists.rsiddharth2017-05-291-0/+33
| | | | | * lps_gen.py (LPSRenderer._check_session_title_exists): New method. (LPSRenderer.header, LPSRenderer.paragraph): Update methods.
* update copyright.rsiddharth2016-05-111-1/+1
|
* Update LPiCal class.rsiddharth2016-03-191-0/+14
| | | | | | | - Detects when timeslot is not given and ignores that timeslot. - Detects when month, day not given and ignores that day. Addresses issue #8.
* Add --ical switchrsiddharth2016-03-181-0/+6
| | | | | | | - With --ical ON and when LP schedule is given, `lps_gen` writes an LP schedule iCal to disk. Addresses issue #8.
* Update LPiCal.__init__ method.rsiddharth2016-03-181-1/+1
| | | | | | - Arg lp_year is stringified before getting copied to self.lp_year. Addresses issue #8.
* Initial version of LPiCal class done.rsiddharth2016-03-181-5/+134
| | | | Addresses issue #8.
* Add LPiCal classrsiddharth2016-03-151-0/+39
| | | | | | | | | Contains two methods at the moment: - get_timeslot - get_month_day Addresses issue #8.
* Moved _version elsewhere.rsiddharth2016-03-051-1/+1
| | | | It is now at lpschedule_generator/_version.py
* changed RenderHTML.rsiddharth2016-03-051-1/+1
| | | | | | | It does not "prettify" the HTML output using BeautifulSoup, instead it just strips extraneous spaces and returns the HTML. Addresses issue #3.
* fixed setup.pyrsiddharth2016-03-051-1/+2
| | | | | | | - version info is loaded from _version.py - to read the README.rst (for long_description), we now use a function defined in setup.py instead of using `lps_gen.read_file` function.
* bumped to version 0.3.1v0.3.1rsiddharth2016-02-191-1/+1
|
* bumped to version 0.3.0v0.3.0rsiddharth2016-02-131-1/+1
|
* setup.py: updated `data_files`.rsiddharth2016-02-131-1/+1
|
* README.rst: Added "Auto-linking speakers names"rsiddharth2016-02-131-1/+1
| | | | | | sub-section under "LP schedule" section. Addresses issue #7.
* lps_gen.py: removed extraneous blank line.rsiddharth2016-02-131-1/+0
|
* Readability change to LPSpeakersRenderer.mk_uidrsiddharth2016-02-131-2/+2
| | | | Arg `text` -> `speaker_block`.
* Edited comment in LPSpeakersMarkdown.rsiddharth2016-02-131-1/+1
|
* Autolinking of speakers in sessions page ready.rsiddharth2016-02-131-3/+54
| | | | | | | | | | | | | | | | If "John Hacker" is the speaker that has to be autolinked in the sessions MD file; the markup to autolink is [John Hacker](). [John Hacker]() -> <a href="speakers.html#hacker">John Hacker</a>, if id for "John Hacker" is available in the `speaker.ids` file[1]. [1]: The `speakers.ids` file is automatically written to the disk (in the current working directory) when the speakers' bio page is generated. List of speakers that are autolinked but don't have an id, are written to the `speakers.noid` file when the sessions page is generated. Addresses issue #7.
* Fixed comment in LPSpeakersRendererrsiddharth2016-02-131-1/+1
|