当前位置: 首页>>代码示例>>Python>>正文


Python SingleData.SingleData类代码示例

本文整理汇总了Python中cuon.Databases.SingleData.SingleData的典型用法代码示例。如果您正苦于以下问题:Python SingleData类的具体用法?Python SingleData怎么用?Python SingleData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了SingleData类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "dms"
        self.xmlTableDef = 0
        self.loadTable(allTables)
        # self.saveTable()
        self.size_x = 0
        self.size_y = 0
        self.imageData = 'No Image'
        self.ModulNumber = 0
        
        
        #self.athread = threading.Thread(target = self.loadTable())
        #self.athread.start()
        
        self.listHeader['names'] = ['name',  'ID']
        self.listHeader['size'] = [25,10,25,25,10]
        self.out( "number of Columns ")
        self.out( len(self.table.Columns))
        #
        self.statusfields = ['title']
        self.imageWidget = None
        self.fileFormat = None
        self.fileSuffix = None
        
        self.tmpfile = None
        self.ModulNumber = 0
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:29,代码来源:SingleDMS.py

示例2: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        self.sqlDicUser['noWhereClient'] = 'YES'
        self.dicUser['noWhereClient'] = 'YES'
   
        # tables.dbd and address
        self.sNameOfTable =  "clients"
        self.xmlTableDef = 0
        self.loadTable(allTables)
        # self.saveTable()

        #self.athread = threading.Thread(target = self.loadTable())
        #self.athread.start()
        
        self.listHeader['names'] = ['name', 'zip', 'city', 'Street', 'ID']
        self.listHeader['size'] = [25,10,25,25,10]
        self.out( "number of Columns ")
        self.out( len(self.table.Columns))
        #
        #self.statusfields = ['lastname', 'city']
        dicClients = self.rpc.callRP('User.getClientInfo', self.sqlDicUser )
        self.out(dicClients)
        
        liClientIds = dicClients['clientsID']
        s = ''
        for iZ in range(len(liClientIds)-1):
            s += `iZ` 
            s += ' or id = '
        s += `liClientIds[len(liClientIds)-1]`
        
        self.sWhere = 'where id = ' + s
        self.out('sWhere by clients: ' + `self.sWhere`)
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:33,代码来源:SingleClient.py

示例3: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable = "hibernation"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()
        self.loadTable(allTables)
        self.setStore(
            gtk.ListStore(
                gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT
            )
        )
        self.listHeader["size"] = [25, 10, 25, 25, 10]
        #
        self.setTreeFields(
            [
                "sequence_of_stock",
                "hibernation_number",
                "address.lastname as lastname",
                "address.firstname as firstname",
            ]
        )
        self.setTreeOrder("sequence_of_stock, hibernation_number")
        self.setListHeader([_("Stocknr"), _("Number"), _("Lastname"), _("Firstname")])
开发者ID:BackupTheBerlios,项目名称:cuon-svn,代码行数:26,代码来源:SingleHibernation.py

示例4: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable = "country"
        self.xmlTableDef = 0
        print "allTables = ", ` allTables `
        self.loadTable(allTables)

        self.listHeader["names"] = ["name", "zip", "city", "Street", "ID"]
        self.listHeader["size"] = [25, 10, 25, 25, 10]
开发者ID:BackupTheBerlios,项目名称:cuon-svn,代码行数:11,代码来源:SingleCountry.py

示例5: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "zipcode"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()

        self.loadTable(allTables)
        self.listHeader['names'] = ['name', 'zip', 'city', 'Street', 'ID']
        self.listHeader['size'] = [25,10,25,25,10]
        print "number of Columns "
        print len(self.table.Columns)
        self.Zips = {}
开发者ID:BackupTheBerlios,项目名称:cuon-svn,代码行数:15,代码来源:SingleImportZip.py

示例6: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "hibernation"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()
        self.loadTable(allTables)
        self.setStore( gtk.ListStore( gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING,  gobject.TYPE_STRING, gobject.TYPE_UINT) )
        self.listHeader['size'] = [25,10,25,25,10]
        #
        self.setTreeFields( ['sequence_of_stock', 'hibernation_number', 'address.lastname as lastname', 'address.firstname as firstname',"id"] )
        self.setTreeOrder('sequence_of_stock, hibernation_number')
        self.setListHeader([_('Stocknr'), _('Number'),_('Lastname'), _('Firstname'),_("ID")])
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:15,代码来源:SingleHibernation.py

示例7: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "hibernation"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()
        self.loadTable(allTables)
        self.setStore( gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING,  gobject.TYPE_UINT) )
        self.listHeader['size'] = [25,10,25,25,10]
        #
        self.setTreeFields( ['hibernation_number', '(select firstname || \' \' || lastname  from address where id = addressnumber) as address_name'] )
        self.setTreeOrder('hibernation_number')
        self.setListHeader([_('name'),_('customer')])
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:15,代码来源:SingleHibernation.py

示例8: __init__

    def __init__(self, allTables = None):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "countries"
        self.xmlTableDef = 0
        self.loadTable(allTables)

        #self.athread = threading.Thread(target = self.loadTable())
        #self.athread.start()
        
        self.listHeader['name'] = []
        self.listHeader['iso_code_2'] = []
        self.out( "number of Columns ")
        self.out( len(self.table.Columns))
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:15,代码来源:SingleCountry.py

示例9: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "account_plan"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()

        self.loadTable(allTables)
        self.setStore( gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING,  gobject.TYPE_UINT) )
        self.listHeader['names'] = ['name', 'designation', 'ID']
        self.listHeader['size'] = [25,10,25,25,10]
        print "number of Columns "
        print len(self.table.Columns)
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:15,代码来源:SingleAccountPlan.py

示例10: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "webshop"
        self.xmlTableDef = 0
        self.loadTable(allTables)
        # self.saveTable()

        #self.athread = threading.Thread(target = self.loadTable())
        #self.athread.start()
        
        self.listHeader['names'] = ['table', 'myName','ID']
        self.listHeader['size'] = [25,25,10]
        self.out( "number of Columns ")
        self.out( len(self.table.Columns))
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:16,代码来源:SingleWebshop.py

示例11: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "hibernation_plant"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()

        self.loadTable(allTables)
        self.setStore( gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_FLOAT,  gobject.TYPE_UINT) )
        self.listHeader['size'] = [25,10,25,25,10]
        self.setTreeFields(  ['plant_number','botany.botany_name as botany_name','diameter' ])
        self.setTreeOrder('plant_number')
        self.setListHeader([_('number'),_('plant'), _('diameter')])
        self.hibernationID = 0
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:16,代码来源:SingleHibernationPlant.py

示例12: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "botany_divisio"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()

        self.loadTable(allTables)
        self.setStore( gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING,  gobject.TYPE_UINT) )
        self.listHeader['size'] = [25,10,25,25,10]
        #
        self.setTreeFields( ['name', 'description'] )
        self.setTreeOrder('name')
        self.setListHeader([_('name'),_('description')])
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:16,代码来源:SingleBotanyDivisio.py

示例13: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable =  "account_sentence"
        self.xmlTableDef = 0
        self.loadTable(allTables)
        # self.saveTable()

        #self.athread = threading.Thread(target = self.loadTable())
        #self.athread.start()
        
        self.listHeader['names'] = ['name', 'zip', 'city', 'Street', 'ID']
        self.listHeader['size'] = [25,10,25,25,10]
        self.out( "number of Columns ")
        self.out( len(self.table.Columns))
开发者ID:BackupTheBerlios,项目名称:cuon-svn,代码行数:16,代码来源:SingleAccountSentence.py

示例14: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable = "thinking"
        self.xmlTableDef = 0
        # self.loadTable()
        # self.saveTable()

        self.loadTable(allTables)
        self.setStore(gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT))
        self.listHeader["names"] = ["title", "designation", "ID"]
        self.listHeader["size"] = [25, 10, 25, 25, 10]
        print "number of Columns "
        print len(self.table.Columns)
        #
        self.cType = "html"
开发者ID:CuonDeveloper,项目名称:cuon,代码行数:17,代码来源:SingleThink.py

示例15: __init__

    def __init__(self, allTables):

        SingleData.__init__(self)
        # tables.dbd and address
        self.sNameOfTable = "material_group_accounts"
        self.xmlTableDef = 0
        self.loadTable(allTables)

        # self.athread = threading.Thread(target = self.loadTable())
        # self.athread.start()

        self.listHeader["names"] = []
        self.listHeader["size"] = []
        self.out("number of Columns ")
        self.out(len(self.table.Columns))
        #
        self.addressId = 0
开发者ID:BackupTheBerlios,项目名称:cuon-svn,代码行数:17,代码来源:SingleMaterialgroupsAccount.py


注:本文中的cuon.Databases.SingleData.SingleData类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。