Modify

Opened 14 years ago

Closed 14 years ago

#6247 closed defect (fixed)

Exception upon execution of macro tracflashembed

Reported by: anonymous Owned by: Alexey Kinyov
Priority: normal Component: FlashEmbedMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Using Trac 0.11.5 under Mac OS X 10.5.8, Python 2.5.1.

2009-11-23 20:08:47,643 Trac[formatter] DEBUG: Executing Wiki macro Embed by provider <tracflashembed.macros.EmbedMacro object at 0x29dacd0>
2009-11-23 20:08:47,647 Trac[formatter] ERROR: Macro Embed(swf=checkout.swf,w=500,h=400) failed: 
Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/wiki/formatter.py", line 480, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/Library/Python/2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/wiki/formatter.py", line 180, in process
    text = self.processor(text)
  File "/Library/Python/2.5/site-packages/Trac-0.11.5-py2.5.egg/trac/wiki/formatter.py", line 167, in _macro_processor
    text)
  File "build/bdist.macosx-10.5-i386/egg/tracflashembed/macros.py", line 55, in expand_macro
    return embed_swf(formatter, params)
  File "build/bdist.macosx-10.5-i386/egg/tracflashembed/macros.py", line 101, in embed_swf
    url = '/raw-' + url.attrib.get('href')[1:]
AttributeError: 'Fragment' object has no attribute 'attrib'
2009-11-23 20:08:47,658 Trac[api] DEBUG: Updating wiki page index

Attachments (0)

Change History (2)

comment:1 Changed 14 years ago by Alexey Kinyov

fixed. patch provided in #6258, applied in r7800

comment:2 Changed 14 years ago by Alexey Kinyov

Resolution: fixed
Status: newclosed

Modify Ticket

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