Changeset 1196


Ignore:
Timestamp:
06/25/2009 13:27:22 (14 months ago)
Author:
douglas
Message:

Stupid facebook! Why must you truncate the description!?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FreeBSDAdmin/Reminder/facebook.py

    r1181 r1196  
    3434                        where = event.decoded('location') 
    3535 
     36                        eid = re.compile(r'http://www\.facebook\.com/event\.php\?eid=%s$' % re.escape(id)) 
     37 
     38                        if not eid.search(content): 
     39                                content += '\n\nhttp://www.facebook.com/event.php?eid=%s' % id 
     40 
    3641                        if not entries: 
    3742                                entry = gdata.calendar.CalendarEventEntry() 
     
    5156                                calendar.InsertEvent(entry, '/calendar/feeds/default/private/full') 
    5257                        else: 
    53                                 eid = re.compile(r'http://www\.facebook\.com/event\.php\?eid=%s$' % re.escape(id)) 
    54  
    5558                                for index, entry in enumerate(filter(lambda entry: eid.search(entry.content.text), entries)): 
    5659                                        if index == 0: 
Note: See TracChangeset for help on using the changeset viewer.