Closed GoogleCodeExporter closed 9 years ago
after reviewing some of the test cases shown here:
http://elixir.ematia.de/trac/browser/elixir/trunk/tests/test_options.py
I think FINally might be misusing the session object, or using it in an overly
simplified way. Review these scripts and experiment with other more direct
implementations of the session object. Note that in several cases Elixir allows
direct or nearly direct SQLAlchemy calls.
Original comment by Daniel.S...@gmail.com
on 13 Aug 2010 at 2:14
ok, the solution to this problem ended up being that I need to use new Elixir
objects User, Expensetype, and Expense) for each new expense I create. Re-using
objects will result in edits, not new database entries. This can be observed by
looking at the 'id' column of the SQL commands Elixir generates.
The fix for this was basically to avoid using a global set of User,
ExpenseType, and Expense objects for data entry. Create a new object for each
entry requested.
Original comment by Daniel.S...@gmail.com
on 14 Aug 2010 at 12:40
Original comment by Daniel.S...@gmail.com
on 14 Aug 2010 at 12:40
Original issue reported on code.google.com by
Daniel.S...@gmail.com
on 12 Aug 2010 at 1:29Attachments: