|
|
Choosing A Webhost: |
Problems with project.insert...: msg#00007cms.opengroupware.xmlrpc.devel
Hello, I'm trying to fill opengroupware with data from cvs-files. I have managed to import persons and enterprises via the xmlrpc-interface. That works well. I'm now trying to import project via the same interface. But running the script fails. Even the small test-prog won't work. python-script: --------------------- #!/usr/bin/env python import xmlrpclib server = xmlrpclib.Server( 'http://localhost/xmlrpcd' , login= 'xxx' , password= 'xxx' ) import xmlrpclib, time startDate = xmlrpclib.DateTime(time.mktime(time.strptime( '2002-01-02' , '%Y-%m-%d' ))) endDate = xmlrpclib.DateTime(time.mktime(time.strptime( '2002-01-02' , '%Y-%m-%d' ))) dict = {} dict[ 'name' ] = "Project" dict[ 'startDate' ] = startDate dict[ 'endDate' ] = endDate result = server.project.insert(dict) --------------------- The following output returns: --------------------- # ./test2.py /usr/lib/python2.3/xmllib.py:10: DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead. DeprecationWarning) Traceback (most recent call last): File "./test2.py", line 11, in ? result = server.project.insert(dict) File "/usr/lib/python2.3/xmlrpclib.py", line 829, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.3/xmlrpclib.py", line 995, in __request verbose=self.__verbose File "/usr/lib/python2.3/xmlrpclib.py", line 866, in request return self.parse_response(h.getfile()) File "/usr/lib/python2.3/xmlrpclib.py", line 915, in parse_response return u.close() File "/usr/lib/python2.3/xmlrpclib.py", line 579, in close raise apply(Fault, (), self._stack[0]) xmlrpclib.Fault: <Fault 0: 'ObjcRuntimeException: NSConcreteDate (instance) does not recognize length'> --------------------- What could that be? I have googled a lot but did not find any hint. I'm using a SuSE 9.0 Pro box with SuSE's apache2 (2.0.48) and opengroupware 4.2, python 2.3 and the xmlrpclib.py from the skyrix website. Thanks in advice. Kind Regards Marius Heidenstecker -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Attributes of Person missing, Adam Williams |
|---|---|
| Next by Date: | Re: Attributes of Person missing, Thomas Kriener |
| Previous by Thread: | Attributes of Person missing, Thomas Kriener |
| Next by Thread: | Re: Problems with project.insert..., Helge Hess |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |