entities/__init__.py
changeset 3589 a5432f99f2d9
parent 3451 6b46d73823f5
parent 3578 7f026d15cc82
child 3720 5376aaadd16b
equal deleted inserted replaced
3536:f6c9a5df80fb 3589:a5432f99f2d9
   181 
   181 
   182     def after_deletion_path(self):
   182     def after_deletion_path(self):
   183         """return (path, parameters) which should be used as redirect
   183         """return (path, parameters) which should be used as redirect
   184         information when this entity is being deleted
   184         information when this entity is being deleted
   185         """
   185         """
       
   186         if hasattr(self, 'parent') and self.parent():
       
   187             return self.parent().rest_path(), {}
   186         return str(self.e_schema).lower(), {}
   188         return str(self.e_schema).lower(), {}
   187 
   189 
   188     def pre_web_edit(self):
   190     def pre_web_edit(self):
   189         """callback called by the web editcontroller when an entity will be
   191         """callback called by the web editcontroller when an entity will be
   190         created/modified, to let a chance to do some entity specific stuff.
   192         created/modified, to let a chance to do some entity specific stuff.