Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6177 closed defect (fixed)

IterableCursor object has no attribute log

Reported by: anonymous Owned by: martin_s
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 5 years ago by martin_s

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 5 years ago by martin_s

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

comment:3 Changed 5 years ago by martin_s

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 5 years ago by anonymous

Trac 0.11.4 sqlite

comment:5 Changed 5 years ago by anonymous

Thank you, now it works.

Add Comment

Modify Ticket

Action
as closed The owner will remain martin_s.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.