本文整理汇总了Python中folder.Folder.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Folder.__init__方法的具体用法?Python Folder.__init__怎么用?Python Folder.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类folder.Folder
的用法示例。
在下文中一共展示了Folder.__init__方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__(self, db, entryid, name, fobj):
Folder.__init__(self, db)
self.set_entryid(entryid)
self.set_name(name)
self.set_fobj(fobj)
self.reset_items()
self.custom_eprops_xml = self._init_custom_eprops_xml()
示例2: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__ (self, db, gid, gn, gcentry):
Folder.__init__(self, db)
self.set_itemid(gid)
self.set_name(gn)
self.set_gcentry(gcentry)
self.set_type(Folder.CONTACT_t)
self.set_gdc(db.get_gdc())
self.reset_contacts()
示例3: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__ (self, db, entryid, name, fobj, msgstore):
Folder.__init__(self, db)
self.set_entryid(entryid)
self.set_name(name)
self.set_fobj(fobj)
self.set_msgstore(msgstore)
self.set_proptags(PropTags(self, self.get_config()))
self.reset_def_cols()
示例4: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__ (self, db, fn, store=None):
logging.debug('New BBContactsFolder: %s', fn)
Folder.__init__(self, db, store)
self.set_clean()
self.set_type(Folder.CONTACT_t)
self.set_itemid(fn)
self.set_name(fn)
self.contacts = {}
示例5: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__ (self, db, fid, gn, root_path):
Folder.__init__(self, db)
if fid[-1] != '/':
fid += '/'
self.set_itemid(fid)
self.set_name(gn)
self.set_root_path(root_path)
self.set_type(Folder.CONTACT_t)
self.reset_contacts()
示例6: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__(self, title='Title', children=None, spacing=3):
''' Create folder. '''
self._vbox = VBox(children=children)
Folder.__init__(self, title=title, child=self._vbox, active=True, spacing=spacing)
self.style = theme.Window
self.title.style = theme.Window.title
self.child.style = theme.Window.child
self.title.text = u'✖ '+title
self._closed_prefix = u'✖ '
self._opened_prefix = u'✖ '
示例7: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__(self, content_id, data=None):
Folder.__init__(self, content_id, data)
示例8: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__(self, content_id, data=None, **kwargs):
Folder.__init__(self, content_id, data, **kwargs)
BlockContainer.__init__(self, refs=True)
self._content = ""
示例9: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__(self, title='Title', children=None, active=True, spacing=1):
''' Create group. '''
self._vbox = VBox(children, homogeneous=False)
Folder.__init__(self, title, self._vbox, active=active, spacing=spacing)
示例10: __init__
# 需要导入模块: from folder import Folder [as 别名]
# 或者: from folder.Folder import __init__ [as 别名]
def __init__(self, request, **kwargs):
Folder.__init__(self, request, **kwargs)
self.__name__ = ''
self.__parent__ = None
self.__acl__ = permissions.root_acl