|
|
Choosing A Webhost: |
Re: xml problems with enterprise projects and how they are linked to job: msg#00011cms.opengroupware.xmlrpc.devel
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> |
|---|---|---|
| Previous by Date: | Re: xml problems with enterprise projects and how they are linked to job, Helge Hess |
|---|---|
| Next by Date: | How to set categories for Enterprises via?, Roberto Bagnoli |
| Previous by Thread: | Re: xml problems with enterprise projects and how they are linked to job, Helge Hess |
| Next by Thread: | How to set categories for Enterprises via?, Roberto Bagnoli |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |