Problems with project.insert...

Marius Heidenstecker <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Organization i-t-service Wolfgang Heidenstecker
Message-ID <[email protected]>
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
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.