Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Problems with project.insert...: msg#00007

cms.opengroupware.xmlrpc.devel

Subject: Problems with project.insert...

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>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation