Modify

Opened 18 years ago

Closed 18 years ago

#656 closed defect (fixed)

Broken, wont work in Trac 0.9.6, 'page.time' attribute unknown

Reported by: stava@… Owned by: John Hampton
Priority: normal Component: TracBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description (last modified by Alec Thomas)

Trac[formatter] ERROR: Macro BlogShow(blog,news,hidecal=true,num_posts=3) failed
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 370, in _macro_formatter     return macro.process(self.req, args, 1)
   File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 109, in process     text = self.processor(req, text)
   File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 99, in _macro_processor     return macro_provider.render_macro(req, self.name, text)
   File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 178, in render_macro   File "build/bdist.linux-i686/egg/tBlog/web_ui.py", line 315, in _generate_blog AttributeError: 'WikiPage' object has no attribute 'time'

web_ui.py line 315:

'date' : http_date(page.time),

replaced with:

'date' : ,

seemd to get things working, not sure what's going on here though (newbie:).

Attachments (0)

Change History (2)

comment:1 Changed 18 years ago by Alec Thomas

Description: modified (diff)

comment:2 Changed 18 years ago by John Hampton

Resolution: fixed
Status: newclosed

(In [1190]) Closes #656

  • Use post_time instead of page.time. The only issue with this that I can see is that changes to blog posts won't show up in the RSS feed. To me that seems reasonable, hoever, may need to cahnge this if it's and undesired side effect.
  • Tested on 0.9.x, didn't break it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.