Message161700
| Author |
Phil.Daintree |
| Recipients |
Phil.Daintree, amaury.forgeotdarc, ezio.melotti, loewis, santoso.wijaya, xrg |
| Date |
2012年05月27日.07:52:45 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338105165.7.0.645463847917.issue11804@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
or for less data...
#!/usr/bin/env python
import xmlrpclib
x_server = xmlrpclib.Server('http://www.weberp.org/weberp/api/api_xml-rpc.php',verbose=True)
#Get the stock items defined in the webERP installation
StockList = x_server.weberp.xmlrpc_SearchStockItems('units','cm','admin','weberp')
if StockList[0]==0:
for StockID in StockList[1]:
print str(StockID) |
|