[Gnucash-changes] Document the qof_begin_edit() issue to ensure it
doesn't get dropped.
David Hampton
hampton at cvs.gnucash.org
Fri Oct 7 14:46:58 EDT 2005
Log Message:
-----------
Document the qof_begin_edit() issue to ensure it doesn't get dropped.
Tags:
----
gnucash-gnome2-dev
Modified Files:
--------------
gnucash:
GNOME2_STATUS
Revision Data
-------------
Index: GNOME2_STATUS
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/Attic/GNOME2_STATUS,v
retrieving revision 1.1.2.69
retrieving revision 1.1.2.70
diff -LGNOME2_STATUS -LGNOME2_STATUS -u -r1.1.2.69 -r1.1.2.70
--- GNOME2_STATUS
+++ GNOME2_STATUS
@@ -190,6 +190,25 @@
- Doesn't let you complete the conflict resolution process, thus you can never complete the druid.
+- Backend
+
+ - The qof_begin_edit()/qof_commit_edit() functions do not correctly
+ mimic the behavior of the macros they replaced. Specifically, a
+ return call from the macro exits the calling function. A return
+ in one of these functions only exits the function, not the caller.
+ The caller then executes code that was not executed prior to the
+ macro->function change. THIS MUST BE FIXED PRIOR TO A G2 RELEASE.
+
+ - Many places have had a qof_begin_edit()/qof_commit_edit() pair of
+ function calls wrapped around existing code. In this case the control
+ flow through the pre-exiting code is the same as before. I.E. It always
+ occurs. My concern is whether or not this is the proper control flow.
+ If qof_begin_edit() bails out because the object is already being
+ edited, should any other code be executed or should the calling function
+ exit immediately? I believe the calling function should exit
+ immediately (i.e. don't modify an object that is being modified
+ elsewhere).
+
========================================
ENHANCEMENTS
========================================
More information about the gnucash-changes
mailing list