Changes between Version 22 and Version 23 of WikiTicketCalendarMacro
- Timestamp:
- Feb 8, 2010, 6:00:18 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiTicketCalendarMacro
v22 v23 1 1 = Calendar view of Milestones and Tickets = 2 [[PageOutline(2-5,Contents,pullout)]] 2 3 {{{ 4 #!html 5 <div class="system-message"> 6 0.11 version of this macro will be available soon - 2010-02-07 7 </div> 8 }}} 3 9 4 10 == Description == 5 11 6 Macro for the Trac Wiki Ticketing system to display Milestones and Tickets in a calendar view. 12 Macro for the Trac Wiki Ticketing system to display Milestones and Tickets in a calendar view. The original version of the macro was hosted [http://macgeek.dyndns.org/software/Trac_WikiTicketCalendar here]. 7 13 8 This Macro is hosted [http://macgeek.dyndns.org/software/Trac_WikiTicketCalendar here] 9 10 [[Image(Picture2.jpg)]] 11 12 20091029 google calendar style update 13 14 [[Image(WikiTicketCalendarMacro.20091029.2.png)]][[Image(WikiTicketCalendarMacro.20091029.png)]] 15 16 == Bugs/Feature Requests == 14 == Bugs/Feature Requests == 17 15 18 16 Existing bugs and feature requests for WikiTicketCalendarMacro are … … 22 20 [/newticket?component=WikiTicketCalendarMacro&owner=rjollos new ticket]. 23 21 24 == Installation == 25 Can someone please add some installation instructions that work with 11.5? What is the location where the macro must be copied to could be a good start. I copied it to plugin directories. No indication anywhere where the wiki-macros location is in 11.5. 22 == Download == 26 23 27 See '''For Trac 0.11''' section in the Installation section bellow -- jay.w.xie at gmail.com 24 Download the zipped source from [download:wikiticketcalendarmacro here]. 28 25 29 == Port to Trac 0.11.1 == 30 Hi there, 31 I ported this macro to work with version 0.11.1 along the lines of WikiCalendarMacro. 32 Unfortunately I'm familiar with java, php or c but didn't do any python coding yet. 33 It's up and running on my production system for about a week and I didn't experience any problems yet ... but that doesn't count much. 34 If anyone could do a little quality assurance, I would be very thankful. 26 == Source == 35 27 36 Thanks in advance.28 You can check out WikiTicketCalendarMacro from [http://trac-hacks.org/svn/wikiticketcalendarmacro here] using Subversion, or [source:wikiticketcalendarmacro browse the source] with Trac. 37 29 38 Greets, 39 Alex (alex [at] goldstift [dot] de) 30 == Example == 40 31 41 === Installation ===42 '''For Trac 0.10 and before'''43 44 Simply download the attached WikiTicketCalendarMacro.py at the end of this page to your projects "wiki-macros"-folder and reload your webserver.45 46 '''For Trac 0.11'''47 48 This macro should also be copied into the "plugins" folder, so download the attached WikiTicketCalendarMacro.py at the end of this page there. Then enable it in trac.ini or the "Manage Plugins" page under the "Admin" tab.49 50 Afterwards you should be able to use the macro in your wiki51 52 === Usage ===53 32 Excerpt of the source documentation: 54 33 {{{ … … 82 61 }}} 83 62 84 == Bugfix ==85 86 To fix encoding problems for e.g. german users add the following code to the script:87 88 {{{89 import locale90 91 def expand_macro(self, formatter, name, arguments):92 93 loc = locale.setlocale(locale.LC_ALL)94 locale.setlocale(locale.LC_TIME, 'english')95 .96 .97 .98 locale.setlocale(locale.LC_ALL, loc)99 return Markup(table)100 }}}101 102 If you want to use one of the latest patches be sure to fix the daylight saving problem and change:103 {{{104 duedatestamp = time.mktime((year, month, day, 0, 0, 0, 0, 0, -1))105 duedatestamp_eod = time.mktime((year, month, day, 23, 59, 0, 0, 0, -1))106 107 to108 109 duedatestamp = time.mktime((year, month, day, 0, 0, 0, 0, 0, 0))110 duedatestamp_eod = time.mktime((year, month, day, 23, 59, 0, 0, 0, 0))111 }}}112 113 I can not offer any patch here because the maximum count of external links is reached for this ticket.114 115 63 == Recent Changes == 116 64 117 65 [[ChangeLog(wikiticketcalendarmacro, 3)]] 118 119 [attachment:WikiTicketCalendarMacro.20091029.py.gz] by xeroo on 10/29/09120 - Update to Google Calendar style css. (采用谷歌日历风格样式)121 - Wiki brief is shown in calendar if exsits. (每日对应wiki如果存在则在此日显示wiki摘要)122 - Open tickets is shown under milestone, see line 305. (milestone中未关闭的tickets会显示在milestone下面,见305行)123 - Ticket action history is shown instead of tickets created and closed. Only close history is shown by default, this can be modified at line 330. (显示ticket变更历史,而不是只显示创建和关闭,此代码中目前仅显示关闭动作,可以在330行修改选择显示的动作列表)124 - Screenshot: [attachment:WikiTicketCalendarMacro.20091029.png]125 66 126 67 == Author/Contributors ==