Hi all,
I'm using getpaid.io to export all orders information in XML , I've
added an action in a overrided admin-order.py,
code is:
@form.action(_(u"Export All XML"))
def export_all( self, action, data ):
manager = zapi.getUtility(IOrderManager)
serialized = ''
for o in manager.storage.values():
# first serialize the order
stream = StringIO.StringIO()
writer = IObjectExportWriter( o )
writer.exportToStream( stream )
serialized += stream.getvalue()
self._parent._download_content = ('text/xml', serialized,
'OrderXMLExport')
but I'm getting error :
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module getpaid.edicionsupcwizard.browser.admin_order, line 359, in
__call__
Module getpaid.edicionsupcwizard.browser.admin_order, line 340, in
update
Module ore.viewlet.core, line 21, in update
Module Products.PloneGetPaid._patch, line 44, in update
Module zope.formlib.form, line 750, in update
Module zope.formlib.form, line 594, in success
Module getpaid.edicionsupcwizard.browser.admin_order, line 178, in
export_all
Module getpaid.io.writer, line 61, in exportToStream
Module ore.xd._xd, line 251, in dumpDictionary
Module xml.sax.saxutils, line 141, in startElementNS
KeyError
Any idea ? I saw in an old post, that this error was produced also
when runing product tests, but i'm getting it when trying to use
getpaid.io. Is something wrong ?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"getpaid-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---