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: project.fetchJobs alternative?: msg#00003

cms.opengroupware.xmlrpc.devel

Subject: Re: project.fetchJobs alternative?

> > What is the
> > best way if i want to have all jobs assigned to a project?
> > I have no idea to get the relationship between a job and a project.

#!/usr/bin/env python
import xmlrpclib,pprint
server = xmlrpclib.Server('http://adam:*******@gourd-amber/RPC2')
person = server.person.getById(10100)
fetchSpec = {}
fetchSpec['qualifier'] = "projectId = 115100"
result = server.person.fetchJobs(10100, fetchSpec)
#Tried this too
#result = server.person.fetchJobs(person, fetchSpec)
pprint.pprint(result)

This returns nothing. I suspect this is because it is going through the
SkyPersonJobDataSource from the Document API; which is not an terribly
smart chunk of code.

I think the only fetch specs supported through the jobs related
functions of the XML-RPC API are:

fetchSpec['qualifier'] = "type = 'toDoJob'"
fetchSpec['qualifier'] = "type = 'controlJob'"
fetchSpec['qualifier'] = "type = 'delegatedJob'"
fetchSpec['qualifier'] = "type = 'archivedJob'"
fetchSpec['qualifier'] = "type = 'palmJob'"

There is a SkyProjectJobDataSource object, but it doesn't seem to get
used anywhere in the XML-RPC API.

Using ZOGI (http://code.google.com/p/zogi/) your should be able to:
#!/usr/bin/env python
import xmlrpclib,pprint
server =
xmlrpclib.Server('http://awilliam:*****@gourd-amber/zidestore/so/awilliam/')
pprint.pprint(server.zogi.getObjectById(115100, 4096))

And get all the tasks for project 115100, in the _TASKS key.

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

<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