[OGo-XML-RPC] xml problems with enterprise projects and how they are linked to job

Arto Mustikkamaa xmlrpc@opengroupware.org
Thu, 16 Mar 2006 06:42:44 -0000


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