web/views/editcontroller.py
changeset 5569 cb14af012a96
parent 5557 1a534c596bff
child 5575 8a531340c3ef
equal deleted inserted replaced
5568:83acff1b50cc 5569:cb14af012a96
    40     @implements_adapter_compat('IEditControl')
    40     @implements_adapter_compat('IEditControl')
    41     def after_deletion_path(self):
    41     def after_deletion_path(self):
    42         """return (path, parameters) which should be used as redirect
    42         """return (path, parameters) which should be used as redirect
    43         information when this entity is being deleted
    43         information when this entity is being deleted
    44         """
    44         """
    45         parent = self.cw_adapt_to('IBreadCrumbs').parent_entity()
    45         parent = self.entity.cw_adapt_to('IBreadCrumbs').parent_entity()
    46         if parent is not None:
    46         if parent is not None:
    47             return parent.rest_path(), {}
    47             return parent.rest_path(), {}
    48         return str(self.e_schema).lower(), {}
    48         return str(self.entity.e_schema).lower(), {}
    49 
    49 
    50     @implements_adapter_compat('IEditControl')
    50     @implements_adapter_compat('IEditControl')
    51     def pre_web_edit(self):
    51     def pre_web_edit(self):
    52         """callback called by the web editcontroller when an entity will be
    52         """callback called by the web editcontroller when an entity will be
    53         created/modified, to let a chance to do some entity specific stuff.
    53         created/modified, to let a chance to do some entity specific stuff.