本文整理匯總了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)