web/views/editforms.py
branchtls-sprint
changeset 1320 c85f4d8eff8b
parent 1318 50e1a778c5ee
child 1322 92a2375b1de6
--- a/web/views/editforms.py	Thu Apr 09 14:31:48 2009 +0200
+++ b/web/views/editforms.py	Thu Apr 09 14:32:18 2009 +0200
@@ -40,8 +40,10 @@
     """return javascript snippet to delete/undelete a relation between two
     entities
     """
-    js = u"javascript: togglePendingDelete('%s', %s);" % (nodeid, html_escape(dumps(eid)))
-    return u'[<a class="handle" href="%s" id="handle%s">%s</a>]' % (js, nodeid, label)
+    js = u"javascript: togglePendingDelete('%s', %s);" % (
+        nodeid, html_escape(dumps(eid)))
+    return u'[<a class="handle" href="%s" id="handle%s">%s</a>]' % (
+        js, nodeid, label)
 
 
 class DeleteConfForm(FormViewMixIn, EntityView):
@@ -359,7 +361,7 @@
           - oneline view of related entity
         """
         entity = self.edited_entity
-        pending_deletes = self.req.get_pending_deletes(entity.eid)
+        pending_deletes = self.req.get_pending_deletes(entity.eid)        
         for label, rschema, role in self.srelations_by_category('generic', 'add'):
             relatedrset = entity.related(rschema, role, limit=self.related_limit)
             if rschema.has_perm(self.req, 'delete'):