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()))
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()))
def __init__(self, id, filepath, fullname=None, properties=None): FSObject.__init__(self, id, filepath, fullname, properties)
def __init__(self, id, filepath, fullname=None, properties=None): id = fullname or id # Use the whole filename. FSObject.__init__(self, id, filepath, fullname, properties)
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)
def __init__(self, id, filepath, fullname=None, properties=None): FSObject.__init__(self, id, filepath, fullname, properties) self.ZBindings_edit(self._default_bindings)
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, {})