Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6177 closed defect (fixed)

IterableCursor object has no attribute log

Reported by: anonymous Owned by: Martin Scharrer
Priority: normal Component: ListOfWikiPagesMacro
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

I installed the plugin, and trying to list all the pages in a wikipage results in:

2009-11-08 15:50:58,344 Trac[formatter] ERROR: Macro ListOfWikiPages(exclude=Trac*) failed: 
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 480, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 180, in process
    text = self.processor(text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 167, in _macro_processor
    text)
  File "/usr/local/lib/python2.5/site-packages/TracListOfWikiPagesMacro-0.3.-py2.5.egg/traclistofwikipages/macro.py", line 143, in expand_macro
    return self.ListOfWikiPages(formatter, content)
  File "/usr/local/lib/python2.5/site-packages/TracListOfWikiPagesMacro-0.3.-py2.5.egg/traclistofwikipages/macro.py", line 242, in ListOfWikiPages
    cursor.log = self.env.log
AttributeError: 'IterableCursor' object has no attribute 'log'

Attachments (0)

Change History (5)

comment:1 Changed 14 years ago by Martin Scharrer

Resolution: fixed
Status: newclosed

(In [7109]) traclistofwikipages/macro.py:: Removed cursor logging to fix #6177.

comment:2 Changed 14 years ago by Martin Scharrer

Should be fixed in the current version. Please also tell me what DB backend you are using.

comment:3 Changed 14 years ago by Martin Scharrer

And the version number of your Trac and DB tool would be good to know as well.

I just tested the old version with sqlite, postgress and mysql backends and it worked fine for me.

comment:4 Changed 14 years ago by anonymous

Trac 0.11.4 sqlite

comment:5 Changed 14 years ago by anonymous

Thank you, now it works.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Martin Scharrer.
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.