Ejemplo n.º 1
0
 def __init__(self):
     gladeXml.__init__(self)
     logs.__init__(self)
     self.table = cyr_table()
     self.xmlTableDef = 1
     self.sNameOfTable = "EMPTY"
     self.openDB()
     self.td = self.loadObject('td')
     self.oUser = self.loadObject('User')
     self.closeDB()
     #print '##############################################################'
     #print `self.oUser.getSqlDicUser()`
     #print '**************************************************************'
     self.rpc = cuon.XMLRPC.xmlrpc.myXmlRpc()
     self.listHeader = {}
     self.dicEntries =  cuon.Windows.setOfEntries.setOfEntries()
     self.ID = 0
     self.sWhere = ''
     self.liFields = []
     self.sSort = ''
     self.store = None
     self.connectTreeId = 0
     self.sCoding = 'utf-8'
     self.sDateFormat = "%d.%m.%Y"
     self.dicUser = self.oUser.getDicUser()
     self.sqlDicUser = self.oUser.getSqlDicUser()
     
     self.path = None
     self.statusfields = []
     self.sStatus = ''
     self.firstRecord = None
     self.p1 = re.compile('\(select .*\) as')
Ejemplo n.º 2
0
    def __init__(self):
        gladeXml.__init__(self)
        logs.__init__(self)
        self.table = cyr_table()
        self.xmlTableDef = 1
        self.sNameOfTable = "EMPTY"
        self.withoutColumns = None
        
        
        self.oUser = self.loadObject('User')

        if not self.oUser:
            self.oUser = cuon.User.user.User()
        
        #print '##############################################################'
        #print `self.oUser.getSqlDicUser()`
        #print '**************************************************************'
        self.rpc = cuon.XMLRPC.xmlrpc.myXmlRpc()
        self.listHeader = {}
        self.dicEntries =  cuon.Windows.setOfEntries.setOfEntries()
        self.ID = 0
        self.sWhere = ''
        self.liFields = []
        self.sSort = ''
        self.store = None
        self.connectTreeId = 0
        self.sCoding = 'utf-8'
        self.sDateFormat = "%d.%m.%Y"
        #self.oUser.client = 1

        
        self.dicUser = self.oUser.getDicUser()
        self.sqlDicUser = self.oUser.getSqlDicUser()
        self.dicInternetUser = self.oUser.getInternetUser()
        self.path = None
        self.statusfields = []
        self.sStatus = ''
        self.firstRecord = None
        self.p1 = re.compile('\(select .*\) as')
        self.iter = None
        self.liItems = None
        self.bDistinct = False
        self.xml = None
        self.win1 = None
        self.TreePos = 0
        self.TREEFIRST=-100
        self.TREELAST = -1000
        self.loading = False