Ive been struggling getting ZopeXMLMethods to work correctly in a zope
python script.
It's the issue of trying to ZopeXMLMethods work with a xml string
object and not a 'real' zope object like DTML method.
I'm basically hooking plone to a database. Im sending an soap xml query
to a database and turning the xml result into xhtml.
=20
Im my script I have=20
result=3Dcontext.doQuery2('gem',context.waterquery3.document_src())
which returns the result xml
How then do I pass this to my xsltMethod (called templatetestxform)?
Wouldn't it nice to be able to call:
xhtml=3Dcontext.templatetestxform.transform(result)=20
=20
but no dice.
Ive tried to first make the result string into a DTMLmethod, but could
only get=20
context.manage_addDTMLMethod('aSource', '', result)
=20
which work once then complains that the object already exists. This is
also a problem because multi users will be making searches.
=20
=20
Could anyone help me out?
Thanks-
Ryan
=20
=20
|