in rss2, because it was not working (date instead of datetime in the
db), I changed the following lines (551-554) :
pubDate = self.pubDate
if isinstance(pubDate, datetime.datetime):
pubDate = DateElement('pubDate', pubDate)
_opt_element(handler, 'pubDate', pubDate)
into :
pubDate = self.pubDate
if isinstance(pubDate, datetime.date):
pubDate = datetime.datetime(pubDate.year, pubDate.month,
pubDate.day)
assert isinstance(pubDate, datetime.datetime)
if isinstance(pubDate, datetime.datetime):
pubDate = DateElement('pubDate', pubDate)
_opt_element(handler, 'pubDate', pubDate)
works now :)
Also, is there a way to force the reload of a contrib ? I searched a
bit why my change wasn't effective.
L.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---