本文整理汇总了Python中OFS.Image.File.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python File.__init__方法的具体用法?Python File.__init__怎么用?Python File.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OFS.Image.File
的用法示例。
在下文中一共展示了File.__init__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from OFS.Image import File [as 别名]
# 或者: from OFS.Image.File import __init__ [as 别名]
def __init__ (self, id, title='', pdf_file=''):
# holds all the cell informations, even those not related to this form
self.all_cells = PersistentMapping()
# holds the cells related to this pdf form
self.cells = PersistentMapping()
# File constructor will set the file content
File.__init__(self, id, title, pdf_file)
示例2: __init__
# 需要导入模块: from OFS.Image import File [as 别名]
# 或者: from OFS.Image.File import __init__ [as 别名]
def __init__(self, id):
""" Initialise a new instance of XWFFile.
"""
self.id = id
self.initProperties()
File.__init__(self, id, id, '', '', '')
self.update_data('', '', 0)
示例3: __init__
# 需要导入模块: from OFS.Image import File [as 别名]
# 或者: from OFS.Image.File import __init__ [as 别名]
def __init__( self, id, storage_plugin ):
""" Initialise a new instance of XWFPluggableFile.
"""
self.storage_plugin = storage_plugin()
# we do a quick, fake, init here, and do the actual file
# later
File.__init__( self, id, id, '' )
security = getSecurityManager()
self.manage_addProperty( 'dc_creator', security.getUser().getId(), 'ustring' )
self.manage_addProperty( 'original_filename', '', 'ustring' )
示例4: __init__
# 需要导入模块: from OFS.Image import File [as 别名]
# 或者: from OFS.Image.File import __init__ [as 别名]
def __init__(self, id, title, properties={}):
"""ZAnnotation constructor"""
# Initialize properties
if properties:
self._doUpdate(properties)
else:
self.type = None
self.annotates = None
self.context = None
self.language = None
self.creator = None
self.created = None
self.date = None
self.body = None
self.root = None
self.inreplyto = None
self.encoding = ''
return File.__init__(self, id, title,'','text/html')
示例5: __init__
# 需要导入模块: from OFS.Image import File [as 别名]
# 或者: from OFS.Image.File import __init__ [as 别名]
def __init__(self, *args, **kwargs):
self._parameters = {}
return File.__init__(self, *args, **kwargs)