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...

Re: Pyhton 2.4: msg#00013

cms.opengroupware.xmlrpc.devel

Subject: Re: Pyhton 2.4

> > > server = xmlrpclib.Server(sys.argv[1],sys.argv[2],sys.argv[3])
> > > - then it fails with -
> > > AttributeError: 'str' object has no attribute 'request'
> > I think this is because either the second or the third arguments
> > should not be strings.
> > If I understand it right it should be just:
> > s = xmlrpclib.Server("http://user:passwd@localhost/RPC2";)
> > This works for me (Debian Python 2.3).
> Yep, this works -
> #!/usr/bin/env python
> import xmlrpclib
> server =
> xmlrpclib.Server('http://{username}:{password}@{hostname}/RPC2')
> person = server.person.getById("10100");
> print(person["url"])
> person["url"] = ""
> person = server.person.update(person)
> print(person["url"]

I've made some notes about this in the docs plone.

On the page -
http://www.opengroupware.org/en/devs/resources/xmlrpc/index.html - is
the text:
"To call OGo XML-RPC functions you need a XML-RPC client which is able
to perform HTTP basic-authentication. The xmlrpc module included with
Python does not include this facility (the error printed with the
"wrong" library looks like: TypeError: __init__() got an unexpected
keyword argument 'login').
We provide a patched module that can handle HTTP basic-authentication.
Get the module here."

It would be good I think to replace this with a note about how to use
the current Python XML-RPC stuff. The patched module doesn't really
work anymore either.

Also, could the "C# / Mono" section be changed to point to
http://docs.opengroupware.org/Members/whitemice/OGoMojo/ ?

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
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