Changes between Version 6 and Version 7 of MotdPlugin


Ignore:
Timestamp:
Mar 16, 2011 8:51:08 PM (4 years ago)
Author:
ChristianM
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MotdPlugin

    v6 v7  
    2828message_file = /data/messag_of_the_day.ini 
    2929message_dir = /data/motd.d 
    30 date_format = <reserved for future use> 
     30date_format = <planned> 
     31frame_width = <motd-frame width in pixel> 
     32frame_height = <motd-frame height in pixel> 
    3133}}} 
    3234 
     
    3739 * default: /data/motd.d 
    3840 * directory containing HTML-files with messages to display 
    39 date_format 
     41date_format (planned) 
    4042 * default: %Y-%m-%d %H:%M 
    4143 * allows configuration of the date-format for parameter ''valid_until''. format is given in python 'datetime' format. 
     44frame_width 
     45 * default: 400px 
     46 * sets the width of the MOTD-frame in pixel (range: 400-900) 
     47frame_height 
     48 * default: 300px 
     49 * sets the height of the MOTD-frame in pixel (range: 300-800) 
    4250 
    4351=== motd.ini file === 
     
    5058priority = <message priority, for future use> 
    5159valid_until = <expiration date for message> 
    52 repeat = <for future use> 
     60repeat = n-i 
    5361}}} 
    5462 
    5563The section name (!MsgName) has to be unique within the message file. 
    5664Format of the expiration date is (currently) "yyyy-mm-dd HH:MM", next version will have a configurable format. 
     65 
     66''repeat'' specifies how often (n) and in which interval (i) the message should be displayed. ''n'' must be a positive integer and ''i'' 
     67must be in the range of: ''m'' for minutely, ''h'' for hourly, ''d'' for daily and ''w'' for weekly. 
    5768 
    5869 
     
    6879title = New version of xxx has been installed 
    6980valid_until = 2011-03-03 23:59 
     81repeat = 3-d 
    7082}}} 
    7183 
    72 The first example should be selfexplaining. In the second example there is the ''message'' parameter missing! In that case MotdPlugin searches for a file named ''Message2.html'' in the directory specified by ''message_dir'' in trac.ini and displays the complete content of this file. 
     84The first example should be selfexplaining. In the second example there is the ''message'' parameter missing! In that case MotdPlugin searches for a file named ''Message2.html'' in the directory specified by ''message_dir'' in trac.ini and displays the complete content of this file. This message will be shown 3 times, interval is daily. If the expiration date is before the repeat period finishes, the message is no longer shown. 
    7385 
    7486