當前位置: 首頁>>代碼示例>>Python>>正文


Python FSObject.FSObject類代碼示例

本文整理匯總了Python中Products.CMFCore.FSObject.FSObject的典型用法代碼示例。如果您正苦於以下問題:Python FSObject類的具體用法?Python FSObject怎麽用?Python FSObject使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了FSObject類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: manage_doCustomize

    def manage_doCustomize(self, folder_path, RESPONSE=None, \
                           root=None, obj=None):
        """Makes a ZODB Based clone with the same data.

        Calls _createZODBClone for the actual work.
        """
        # Overridden here to provide a different redirect target.

        FSObject.manage_doCustomize(self, folder_path, RESPONSE, \
                                    root=root, obj=obj)

        if RESPONSE is not None:
            if folder_path == '.':
                fpath = ()
            else:
                fpath = tuple(folder_path.split('/'))
            folder = self.restrictedTraverse(fpath)
            RESPONSE.redirect('%s/%s/manage_propertiesForm' % (
                folder.absolute_url(), self.getId()))
開發者ID:goschtl,項目名稱:zope,代碼行數:19,代碼來源:FSPropertiesObject.py

示例2: __init__

 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
開發者ID:Provab-Solutions,項目名稱:erp5,代碼行數:2,代碼來源:FSForm.py

示例3: __init__

 def __init__(self, id, filepath, fullname=None, properties=None):
     id = fullname or id # Use the whole filename.
     FSObject.__init__(self, id, filepath, fullname, properties)
開發者ID:goschtl,項目名稱:zope,代碼行數:3,代碼來源:FSImage.py

示例4: __init__

    def __init__(self, id, filepath, fullname=None, properties=None):
        FSObject.__init__(self, id, filepath, fullname, properties)
        self.ZBindings_edit(self._default_bindings)

        # instantiate page template
        BaseTemplateFile.__init__(self, filepath)
開發者ID:jean,項目名稱:cmf.pt,代碼行數:6,代碼來源:fs.py

示例5: __init__

 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
     # Normally called via HTML.__init__ but we don't need the rest that
     # happens there.
     self.initvars(None, {})
開發者ID:goschtl,項目名稱:zope,代碼行數:5,代碼來源:FSDTMLMethod.py

示例6: __init__

 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
     self.ZBindings_edit(self._default_bindings)
開發者ID:newhollandpress,項目名稱:newspaper,代碼行數:3,代碼來源:PDTPageTemplate.py


注:本文中的Products.CMFCore.FSObject.FSObject類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。