equal
deleted
inserted
replaced
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 self.parent(): |
186 if hasattr(self, 'parent') and self.parent(): |
187 return self.parent().rest_path(), {} |
187 return self.parent().rest_path(), {} |
188 return str(self.e_schema).lower(), {} |
188 return str(self.e_schema).lower(), {} |
189 |
189 |
190 def pre_web_edit(self): |
190 def pre_web_edit(self): |
191 """callback called by the web editcontroller when an entity will be |
191 """callback called by the web editcontroller when an entity will be |