Overview
- Title
Support MonthCalendar macro development for moin2
- Duration
- 180
- Difficulty
- Hard
- Type
- Code, User Interface
- Tags
- python,html,css,jinja2
- Mentors
- thomaswaldmann,rb_proj,ronny_pfannschmidt,xoraxax,diofeher
- Count
- -1
Description
Abstract
In moin 1.x we have a MonthCalendar (MC) macro (which is quite big and complicated and a bit of a mess). For moin2, there is a rewrite that uses the new moin2 APIs and infrastructure. Some functions are missing.
Details
You need to work closely together with the moin devs, discuss about your ideas and how to best implement it.
The basic functionality of MC is rather easy and required:
linking to existing day items (access moin2 storage api)
different style for days with existing day items
style weekday / weekend differently
params have been changed to named params. The syntax will be ported in the migration process from moin-1.9 to moin2.
for examples of moin-1.9 macro see HelpOnMacros/MonthCalendar
- navigation prev/next month/year
- implement it in a way so that the first weekday (Mo or Sun) is determined by a constant (0 = Sunday, 1 = Monday, ...)
- tooltip shows the headlines of calendar pages on mouse over
Optional (if you have time left):
- use locale data to determine first weekday
Deliverables: changesets
There might be a followup task with more MC stuff.
Benefits
MonthCalendar is used by quite many wiki sites.
Skill Requirements
See tags. Mostly this is python coding, but you'll need to make some jinja2 template and/or macro. Colours should be done by css. We expect you work by creating pull requests in github. You should either be already familiar with moin2 api or willing to become.
Links
Note: unless otherwise noted, tasks usually refer to moin2 (http://moinmo.in/MoinMoin2.0)!
https://moin-20.readthedocs.io/en/latest/user/moinwiki.html#macros
http://moimo.in/MoinMoinChat - please join us on IRC #moin-dev