Пример #1
0
    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()))
Пример #3
0
 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
Пример #4
0
 def __init__(self, id, filepath, fullname=None, properties=None):
     id = fullname or id # Use the whole filename.
     FSObject.__init__(self, id, filepath, fullname, properties)
Пример #5
0
Файл: fs.py Проект: jean/cmf.pt
    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)
Пример #6
0
 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
     self.ZBindings_edit(self._default_bindings)
Пример #7
0
 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, {})
Пример #8
0
 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
     self.ZBindings_edit(self._default_bindings)