logo       

Re: xml problems with enterprise projects and how they are linked to job: msg#00010

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



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

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | 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