web/views/editcontroller.py
changeset 5569 cb14af012a96
parent 5557 1a534c596bff
child 5575 8a531340c3ef
--- a/web/views/editcontroller.py	Fri May 21 15:02:56 2010 +0200
+++ b/web/views/editcontroller.py	Fri May 21 15:04:29 2010 +0200
@@ -42,10 +42,10 @@
         """return (path, parameters) which should be used as redirect
         information when this entity is being deleted
         """
-        parent = self.cw_adapt_to('IBreadCrumbs').parent_entity()
+        parent = self.entity.cw_adapt_to('IBreadCrumbs').parent_entity()
         if parent is not None:
             return parent.rest_path(), {}
-        return str(self.e_schema).lower(), {}
+        return str(self.entity.e_schema).lower(), {}
 
     @implements_adapter_compat('IEditControl')
     def pre_web_edit(self):