TheGU / fin-ally

Automatically exported from code.google.com/p/fin-ally
GNU General Public License v3.0
0 stars 0 forks source link

Update "Create" portion of CRUD app with Elixir #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A method for creating new database entries exists in database.py, including an 
example in the sample "main()" section of database.py. This method requires as 
an input a set of Elixir class instances representing each pertinent table. 

The entry functionality will eventually be integrated into a wxPython dialogue 
that will be accessible from the Graphics page. An even simpler form of this 
will be to integrate some text/number entry fields into the "button panel" at 
the bottom of the Graphics page. This will allow us to test out how the data 
transfer works from some form (dialogue or fields) to the database.

the steps in this issue are:

(1) create a set of Elixir classes as members of the Graphics page object. 
These classes will be populated when a user enters data into the dialogue or 
text forms and will eventually be pushed into the database layer.
(2) create the set of text/number entry controls. The entry controls should be: 
user (pull down), type (pull down), amount (numerical), date(date), and 
description(text field). Initially, user and type should be pull-down menus 
with pre-existing values. Down the road, we will expand this to allow the 
creation of new users/types.
(3) bind the classes and the text fields together 
(4) create a "done" button, which pushes data from the local classes into the 
database
(5) create a database method to accept a complete set of Elixir class 
instances. Initially this method will need to accept a reference to a User and 
Type object (since we will not be creating new objects yet) and a completed 
Expense object. It will compile them together and use the appropriate 
Elixir/SQLAlchemy calls to get them into the database. 

Original issue reported on code.google.com by Daniel.S...@gmail.com on 9 Aug 2010 at 6:34

GoogleCodeExporter commented 9 years ago
(1) Done. The Grid class shared one expense, one user, and one type object, 
each of which get populated when the operator enters data. 
(2) Done. Controls created and placed in a panel at the bottom of the grid page
(3) Partial. All controls except the "Date" control are live and stitched into 
the appropriate objects
(4) Done. button created and stitched into a database push
(5) Done. database.py now support CreateExpense method. 

Original comment by Daniel.S...@gmail.com on 10 Aug 2010 at 1:15

GoogleCodeExporter commented 9 years ago

Original comment by Daniel.S...@gmail.com on 10 Aug 2010 at 4:22

GoogleCodeExporter commented 9 years ago

Original comment by Daniel.S...@gmail.com on 14 Aug 2010 at 12:46

GoogleCodeExporter commented 9 years ago

Original comment by Daniel.S...@gmail.com on 18 Aug 2010 at 11:42