server/session.py
branchstable
changeset 4842 3653e09024a1
parent 4759 af2e6c377c71
child 4845 dc351b96f596
child 4867 b67838d18a4f
--- a/server/session.py	Tue Mar 09 10:59:44 2010 +0100
+++ b/server/session.py	Tue Mar 09 10:59:50 2010 +0100
@@ -233,9 +233,15 @@
         self.set_language(value)
 
     def deleted_in_transaction(self, eid):
+        """return True if the entity of the given eid is being deleted in the
+        current transaction
+        """
         return eid in self.transaction_data.get('pendingeids', ())
 
     def added_in_transaction(self, eid):
+        """return True if the entity of the given eid is being created in the
+        current transaction
+        """
         return eid in self.transaction_data.get('neweids', ())
 
     def schema_rproperty(self, rtype, eidfrom, eidto, rprop):