Software Freedom Law Center

Changeset 165

Show
Ignore:
Timestamp:
06/26/08 17:00:08 (3 months ago)
Author:
landon
Message:

The parser will now accept lines of the form On X: where X is either a date or a day of the week.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/antimatter/luke

    • Property svn:ignore changed from
      .hg
      .hgignore
      .hgsigs
      .hgtags
      gozerdata
      to
      .hg*
      .svnignore
      log
      README
      runbot
      setup.py
      gozer*
      logs
      man
      plugtests
      tables
      tests
      backup
      bin
      doc
      files
  • trunk/antimatter/luke/myplugs

    • Property svn:ignore changed from
      *.pyc
      to
      .svnignore
      *.pyc
  • trunk/antimatter/luke/myplugs/libtracker

    • Property svn:ignore set to
      .svnignore
      *.pyc
  • trunk/antimatter/luke/myplugs/libtracker/auth.py

    r159 r165  
    2727    if (not user == None): 
    2828        until = gmtime(config.get('max_auth') - (time() - user.lastauth)) 
    29         bot.say(ievent.nick,repr(config.get('max_auth'))) 
    3029        bot.say(ievent.nick, "You're still authenticated for " + str(until[3]) + "h:" \ 
    3130        + str(until[4]) + "m:" + str(until[5]) + "s") 
  • trunk/antimatter/luke/myplugs/libtracker/dateutil

    • Property svn:ignore set to
      .svnignore
      *.pyc
  • trunk/antimatter/luke/myplugs/libtracker/dateutil/zoneinfo

    • Property svn:ignore set to
      .svnignore
      *.pyc
  • trunk/antimatter/luke/myplugs/libtracker/timeparser.py

    r163 r165  
    3838    OUTPUT: TimeAdjustment 
    3939    """ 
    40     #First Type: 5 hours (assumed current day) 
    41     #Second Type: 1 AM to 5 PM 
    42     #Third Type: ON Sunday: 5 hours or so 
    43     #Fourth Type: ON Sunday: 1 AM to 5 PM 
    44     setdate = re.findall(r"^on (\b\w+\b).?[,:](.*)", ievent.txt, re.I) 
     40    #First part: On $date: 
     41    first = r"^(?:(?:on )?(\b\w+\b|\b\d{2,2}\b.\b\d{1,2}\b.\b\d{2,4}\b|\b\w+\b.\b\d{1,2}(?:,.\d{2,4})?).?[,:])?" 
     42 
     43    #setdate = re.findall(r"^on (\b\w+\b).?[,:](.*)", ievent.txt, re.I) 
     44    setdate = re.findall(first + r"(.*)", ievent.txt, re.I) 
    4545    if (setdate): 
    4646        setdate = setdate[0] 

SFLC Main Page

[frdm] Support SFLC