Overview
- Title
write a MonthCalendar macro or view for moin2
- Duration
- 180
- Difficulty
- Hard
- Type
- Code, User Interface
- Tags
- python,html,css,mercurial,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, this needs a clean rewrite that uses the new moin2 APIs and infrastructure.
Details
You need to work closely together with the moin devs, discuss about your ideas and how to best implement it.
Note: in case macros still make trouble in moin2, you can just implement MC as a flask view (see MoinMoin.apps.frontend).
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
- 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, ...)
look at moin 1.9 MonthCalendar macro - we need to be able to implement this macro, so params should be similar.
for examples see HelpOnMacros/MonthCalendar
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 clean changesets using mercurial. 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)!
http://hg.moinmo.in/moin/2.0-dev repository of moin2 (~ 250MB!)
- note: if you have a low bandwidth or high latency connection, cloning this may take quite a while
moin/2.0-dev repository clone + workdir of 2010-12-25
- note: for slow connections, this might be more suitable to start with. result will be same as clone, just a bit older.
http://hg.moinmo.in/moin/1.9 repository of moin 1.9
http://moimo.in/MoinMoinChat - please join us on IRC #moin-dev
