Opened 9 years ago

Last modified 7 years ago

#2240 new defect

0.11 Support ?

Reported by: anonymous Owned by: merlimat
Priority: normal Component: EclipseTracPlugin
Severity: normal Keywords: ATTACHMENT_VIEW
Cc: mkovacik@…, FilipeCorreia Trac Release: 0.11


I don't get the plugin to work on 0.11. Any plans ?

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by merlimat

I'm using the plugin with Trac 0.11 and is working fine.

As it relies on XmlRpcPlugin, be sure to get this working first. You can check it, by visiting the page: http://yourhost/trac/xmlrpc

comment:2 Changed 9 years ago by mkovacik@…

  • Cc mkovacik@… added; anonymous removed

I got this working with Trac 0.11b on my site. But I have problem with Image macros.

Following stacktrace was taken from logfile

Trac[__init__] ERROR: Macro Image(mylyn4.png) failed
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/wiki/", line 465, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/wiki/", line 179, in process
    text = self.processor(text)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/wiki/", line 166, in _macro_processor
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/wiki/", line 412, in expand_macro
    if attachment and 'ATTACHMENT_VIEW' in formatter.perm(attachment):
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/", line 519, in has_permission
    return self._has_permission(action, resource)
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/", line 530, in _has_permission
    decision = PermissionSystem(self.env). \
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/", line 431, in check_permission
    self.log.debug("No policy allowed %s performing %s on %r" %
  File "/usr/lib/python2.4/site-packages/Trac-0.11b1-py2.4.egg/trac/", line 109, in __repr__
    return '<Resource %r>' % (', '.join(reversed(path)))
TypeError: sequence item 0: expected string, NoneType found

comment:3 Changed 8 years ago by FilipeCorreia

  • Cc FilipeCorreia added
  • Keywords ATTACHMENT_VIEW added

The image macro issue seems to be similar to ticket #3335 on the PageToPdfPlugin.

comment:4 Changed 7 years ago by letezo

See #5856 for a somewhat cumbersome workaround.

Add Comment

Modify Ticket

as new The owner will remain merlimat.

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

Note: See TracTickets for help on using tickets.