當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。