Ejemplo n.º 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()))
Ejemplo n.º 2
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()))
Ejemplo n.º 3
0
Archivo: FSForm.py Proyecto: poses/erp5
 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
Ejemplo n.º 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)
Ejemplo n.º 5
0
Archivo: fs.py Proyecto: 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)
Ejemplo n.º 6
0
 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
     self.ZBindings_edit(self._default_bindings)
Ejemplo n.º 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, {})
Ejemplo n.º 8
0
 def __init__(self, id, filepath, fullname=None, properties=None):
     FSObject.__init__(self, id, filepath, fullname, properties)
     self.ZBindings_edit(self._default_bindings)