Re: xml problems with enterprise projects and how they are linked to job
"Arto Mustikkamaa" <[email protected]> Tue, 21 Mar 2006 08:47:39 -0000
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] 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 > > [email protected] > > http://mail.opengroupware.org/mailman/listinfo/xmlrpc > > -- > http://docs.opengroupware.org/Members/helge/ > OpenGroupware.org > > -- > OpenGroupware.org XML-RPC > [email protected] > http://mail.opengroupware.org/mailman/listinfo/xmlrpc > -- OpenGroupware.org XML-RPC [email protected] http://mail.opengroupware.org/mailman/listinfo/xmlrpc