#2704 closed defect (fixed)
Macro No longer works with Trac 0.11
Reported by: | Benjamin Lau | Owned by: | roadrunner |
---|---|---|---|
Priority: | normal | Component: | XsltMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I was trying to use this macro with Trac 0.11 trunk and it doesn't function. I was getting the following error:
'NoneType' object has no attribute 'getObj'
I was in kind of a bind to get this working... and couldn't figure out exactly what was going wrong so I went ahead and ported the macro to Trac 0.11 using genshi. I'm not sure I did it exactly right, but the attached version of the plugin does run again Trac 0.11dev-r6669.
Attachments (1)
Change History (6)
Changed 17 years ago by
Attachment: | xslt-for-0.11trunk.tar.gz added |
---|
comment:1 Changed 16 years ago by
It doesn't appear to work any longer. When I use it in a wiki page, it just sits there, browser spinning. I'm using Trac 0.11
I'm using it like this:
[[Xslt(htdocs:format.xsl, htdocs:info.xml)]]
Those two files are in the htdocs folder.
comment:2 Changed 15 years ago by
It works just fine for me with 0.11.1
.
However, I did have trouble with linkage for the python bindings to libxslt. My libxsltmod.so
should have been linked against -lxml2mod
, but was not, giving:
ImportError: /usr/pkg/lib/python2.4/site-packages/libxsltmod.so: Undefined PLT symbol "libxml_xmlXPathParserContextPtrWrap" (symnum = 47)
This is not this macro's fault. Somebody else seems to have the same situation, see: http://mail.gnome.org/archives/xslt/2002-March/msg00056.html. This is easily resolved by having libxsltmod.so
additionally link against -lxml2mod
, as described there.
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 15 years ago by
Replying to netjunki:
I was in kind of a bind to get this working... and couldn't figure out exactly what was going wrong so I went ahead and ported the macro to Trac 0.11 using genshi. I'm not sure I did it exactly right, but the attached version of the plugin does run again Trac 0.11dev-r6669.
Thanks for the patch. Unfortunately it removed some of the original functionality (iframe/object), had some dead code, and didn't make use of some of the 0.11 features, so I ended up redoing the port; but I used your patch as a guide and that helped a lot.
comment:5 Changed 15 years ago by
Excellent! I'm glad my patch helped... it has served me well the past 2 years. :-) I'm not sure when I'll have the opportunity to install the new version on my Trac instance sadly since I am no longer the maintainer of that at the company where I work (we had 10 employees back then... and I was the sysadmin and a programmer back then).
Port of xsltmacro to trac 0.11