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


Python File.__init__方法代码示例

本文整理汇总了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)
开发者ID:Provab-Solutions,项目名称:erp5,代码行数:10,代码来源:PDFForm.py

示例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)
开发者ID:groupserver,项目名称:Products.XWFFileLibrary2,代码行数:10,代码来源:XWFFile2.py

示例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' )
开发者ID:groupserver,项目名称:Products.XWFPluggableFiles,代码行数:14,代码来源:XWFPluggableFile.py

示例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')
开发者ID:Rhaptos,项目名称:Products.ZAnnot,代码行数:22,代码来源:ZAnnot.py

示例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)
开发者ID:maxfierke,项目名称:Products.CNXMLDocument,代码行数:5,代码来源:CNXMLFile.py


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