web/views/autoform.py
changeset 5223 6abd6e3599f4
parent 5174 78438ad513ca
child 5385 b6e250dd7a7d
--- a/web/views/autoform.py	Mon Apr 12 14:41:01 2010 +0200
+++ b/web/views/autoform.py	Tue Apr 13 12:19:24 2010 +0200
@@ -256,7 +256,7 @@
     This is where are stored relations being added while editing
     an entity. This used to be stored in a temporary cookie.
     """
-    pending = req.get_session_data('pending_insert') or ()
+    pending = req.session.data.get('pending_insert', ())
     return ['%s:%s:%s' % (subj, rel, obj) for subj, rel, obj in pending
             if eid is None or eid in (subj, obj)]
 
@@ -266,7 +266,7 @@
     This is where are stored relations being removed while editing
     an entity. This used to be stored in a temporary cookie.
     """
-    pending = req.get_session_data('pending_delete') or ()
+    pending = req.session.data.get('pending_delete', ())
     return ['%s:%s:%s' % (subj, rel, obj) for subj, rel, obj in pending
             if eid is None or eid in (subj, obj)]