本文整理汇总了Python中cuon.Databases.SingleData.SingleData.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python SingleData.__init__方法的具体用法?Python SingleData.__init__怎么用?Python SingleData.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cuon.Databases.SingleData.SingleData
的用法示例。
在下文中一共展示了SingleData.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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`)
示例3: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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")])
示例4: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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]
示例5: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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 = {}
示例6: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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")])
示例7: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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')])
示例8: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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))
示例9: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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)
示例10: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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))
示例11: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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
示例12: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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')])
示例13: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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))
示例14: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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"
示例15: __init__
# 需要导入模块: from cuon.Databases.SingleData import SingleData [as 别名]
# 或者: from cuon.Databases.SingleData.SingleData import __init__ [as 别名]
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