# HG changeset patch # User Sylvain Thénault # Date 1254841988 -7200 # Node ID 521337e71fbb2f96bf162dbafa6014f839acf4e9 # Parent 4db55832e8a9dd654d0dcdad7405d41963e75381 [entities] default implementation for after_deletion_path goes back to the parent if any diff -r 4db55832e8a9 -r 521337e71fbb entities/__init__.py --- a/entities/__init__.py Tue Oct 06 17:12:26 2009 +0200 +++ b/entities/__init__.py Tue Oct 06 17:13:08 2009 +0200 @@ -183,6 +183,8 @@ """return (path, parameters) which should be used as redirect information when this entity is being deleted """ + if self.parent(): + return self.parent().rest_path(), {} return str(self.e_schema).lower(), {} def pre_web_edit(self):