# HG changeset patch # User Sylvain Thénault # Date 1249077350 -7200 # Node ID a0f6fa90cc32ae3cd829678eb8910bf68680f40b # Parent 21856eda34f6ee42fd241f8999535ca4d841ae61 [F workflow repo] don't try to get previous state of newly created entities diff -r 21856eda34f6 -r a0f6fa90cc32 server/hookhelper.py --- a/server/hookhelper.py Fri Jul 31 23:54:20 2009 +0200 +++ b/server/hookhelper.py Fri Jul 31 23:55:50 2009 +0200 @@ -76,6 +76,8 @@ relation hooks, the relation may has been deleted at this point, so we have handle that """ + if eid in session.transaction_data.get('neweids', ()): + return pending = session.transaction_data.get('pendingrelations', ()) for eidfrom, rtype, eidto in reversed(pending): if rtype == 'in_state' and eidfrom == eid: