本文整理汇总了Python中FSObject.FSObject类的典型用法代码示例。如果您正苦于以下问题:Python FSObject类的具体用法?Python FSObject怎么用?Python FSObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FSObject类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: manage_doCustomize
def manage_doCustomize(self, folder_path, RESPONSE=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)
if RESPONSE is not None:
fpath = tuple(split(folder_path, '/'))
folder = self.restrictedTraverse(fpath)
RESPONSE.redirect('%s/%s/manage_propertiesForm' % (
folder.absolute_url(), self.getId()))
示例2: __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)
示例3: __init__
def __init__(self, id, filepath, fullname=None, properties=None):
FSObject.__init__(self, id, filepath, fullname, properties)
示例4: __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, {})
示例5: __init__
def __init__(self, id, package=None, entry_subpath=None, filepath=None,
fullname=None, properties=None):
id = fullname or id # Use the whole filename.
FSObject.__init__(self, id, package, entry_subpath, filepath,
fullname, properties)
示例6: __init__
def __init__(self, id, package=None, entry_subpath=None, filepath=None,
fullname=None, properties=None):
FSObject.__init__(self, id, package, entry_subpath, filepath,
fullname, properties)