Changes between Version 22 and Version 23 of WikiTicketCalendarMacro


Ignore:
Timestamp:
Feb 8, 2010 7:00:18 AM (5 years ago)
Author:
rjollos
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiTicketCalendarMacro

    v22 v23  
    11= Calendar view of Milestones and Tickets = 
    2 [[PageOutline(2-5,Contents,pullout)]] 
     2 
     3{{{ 
     4#!html 
     5<div class="system-message"> 
     60.11 version of this macro will be available soon - 2010-02-07 
     7</div> 
     8}}} 
    39 
    410== Description == 
    511 
    6 Macro for the Trac Wiki Ticketing system to display Milestones and Tickets in a calendar view. 
     12Macro 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]. 
    713 
    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 == 
    1715 
    1816Existing bugs and feature requests for WikiTicketCalendarMacro are  
     
    2220[/newticket?component=WikiTicketCalendarMacro&owner=rjollos new ticket]. 
    2321 
    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 == 
    2623 
    27   See '''For Trac 0.11''' section in the Installation section bellow -- jay.w.xie at gmail.com 
     24Download the zipped source from [download:wikiticketcalendarmacro here]. 
    2825 
    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 == 
    3527 
    36 Thanks in advance. 
     28You can check out WikiTicketCalendarMacro from [http://trac-hacks.org/svn/wikiticketcalendarmacro here] using Subversion, or [source:wikiticketcalendarmacro browse the source] with Trac. 
    3729 
    38 Greets,  
    39 Alex (alex [at] goldstift [dot] de) 
     30== Example == 
    4031 
    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 wiki 
    51  
    52 === Usage === 
    5332Excerpt of the source documentation: 
    5433{{{ 
     
    8261}}} 
    8362 
    84 == Bugfix == 
    85  
    86 To fix encoding problems for e.g. german users add the following code to the script: 
    87  
    88 {{{ 
    89 import locale 
    90  
    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   to 
    108  
    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  
    11563== Recent Changes == 
    11664 
    11765[[ChangeLog(wikiticketcalendarmacro, 3)]] 
    118  
    119 [attachment:WikiTicketCalendarMacro.20091029.py.gz] by xeroo on 10/29/09 
    120  - 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] 
    12566 
    12667== Author/Contributors ==