Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 441 Bytes
from magento import Customer
from magento.api import API
from lxml import etree
from lxml.builder import E
from Config import *
with API(url, apiuser,apipass) as api:
orders ='sales_order.list',[])
xml = E.orders(
*[E.order(*[getattr(E,name)(value) for name,value in order.items() if value]) for order in orders]
file('out.xml','w').write(etree.tostring(xml, encoding='iso-8859-1', pretty_print=True))
Jump to Line
Something went wrong with that request. Please try again.