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: xml problems with enterprise projects and how they are linked to job: msg#00011

cms.opengroupware.xmlrpc.devel

Subject: Re: xml problems with enterprise projects and how they are linked to job

we are using older ogo version how do I still get samekind of allproject method
I have tried to understand how new methods is registered and done but most of
examples I get is only Pow function examples :), not how to get something from
database less get out something out of ogo. Other thing I am now trying to is
using XMLRPC over SSL. Maybe I need some information of it too

xmlrpc@xxxxxxxxxxxxxxxxx wrote:
> Hi,
>
> first there was a bug with retrieving enterprises inside xmlrpcd, it
> always seemed to use the 'number' of the enterprise. Eg this works
> for me:
> ---snip---
> >>> print s.enterprise.getProjects('OGo26280')
> [{'status': '05_processing', 'startDate': <DateTime
> u'20041130T23:00:00' at 4034626c>, 'endDate': <DateTime
> u'20281230T23:00:00' at 4034662c>, 'name': 'allgemein', 'url':
> 'skyrix://move/', 'projectId': 29470, 'number': 'P29470', 'isFake':
> 0, 'dbStatus': 'inserted', 'ownerId': 10280}]
> ---snap--
>
> However, enterprise.getProjects doesn't return the so called 'fake'
> projects (is_fake flag set in the database). Those are the projects
> created together with the enterprise record.
> I've added a new method enterprise.getAllProjects which also returns
> fake projects (OGo 1.1 r1568).
>
> Greets,
> Helge
>
> On 16. Mrz 2006, at 07:42 Uhr, Arto Mustikkamaa wrote:
>
> > help get project and
> > I have done python program that prints jobs with certain gategory
> > and starDate
> > and endDate is between given dates now I want to search jobs for
> > sertain
> > enterpise
> >
> > in test database I have enterprise named Iiris I see projects with
> > project code
> > P12420 under this project I see my jobs
> > I get enterprices with this methods in my enterprise class
> >
> > def get_enterprise
> > (self,field='name',condition='like',field_value='*'):
> > apu="%s %s '%s'" %(field,condition,field_value)
> > result=self.server.enterprise.fetch(apu)
> > return result
> >
> > then I send result list to other method
> >
> > def get_projects(self,elist):
> > # elist list of enterprises comes all right
> > for e1 in range(len(elist)):
> > # entnumber=string.split(elist[e1] ['id'],'/')
> > # one_eterprise=string.atoi(entnumber[len(entnumber)-1])
> > # I tried also with number
> > one_eterprise= elist[e1] ['id']
> > print one_eterprise
> > result=self.server.enterprise.getProjects(one_eterprise)
> > print elist[e1]
> > print "____projects___"
> > print result
> >
> > enterprise.getProjects give me nothing
> > there is no errors in errorlog
> >
> > how can I get jobs sertain enterprise
> >
> >
> > --
> > OpenGroupware.org XML-RPC
> > xmlrpc@xxxxxxxxxxxxxxxxx
> > http://mail.opengroupware.org/mailman/listinfo/xmlrpc
>
> --
> http://docs.opengroupware.org/Members/helge/
> OpenGroupware.org
>
> --
> OpenGroupware.org XML-RPC
> xmlrpc@xxxxxxxxxxxxxxxxx
> http://mail.opengroupware.org/mailman/listinfo/xmlrpc
>

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