Skip to content
Josh edited this page May 9, 2011 · 2 revisions

Sun 8 May 2011: Developed a component type and components module following instructions from [http://www.turbogears.org/2.1/docs/main/Extensions/Crud/index.html#tgext-crud-controller] and [http://sprox.org/tutorials/form.html]. There seemd to be a problem with the TextArea widget that prevented forms from displaying properly so I had to over-ride the widget for some of the fields. Additionally the relation between a component and a componenttype is not displaying properly when you edit/create a component. It displays the number instead of the type, just something I'll have to look in to.

I'm going to start working on the network module which should be much bigger than components.

Sun 8 May 2011: Started work on a network module. This included research in to how to best keep a history of changes to an object which lead me to stumble across the model versioning example distributed with sqlalchemy. I added 2 additional columns to the history table: timestamp and user_id. These columns are set by the create_version function by pulling the user id out of the identity information. Hasn't been tested at all yet.

Additionally found a ipaddr python lib from google that I'll use for manipulating and verifying networking stuff

Still need to write unit-tests for history stuff.

Clone this wiki locally