Thursday, May 15, 2008

TurboGears 1.0.4.4

The rapid web development megaframework you've been looking for.

These notes refer to TurboGears 1.0.4.4

2008-04-16:
* storm as orm

2008-04-10:
* easy_install tgcrud == for basic crud forms
* tgcrud steps:
* Use the tg-admin crud command to generate the crud package.
* Customize the form field in /controllers folder.
* Import the package to your controllers.py
* Add a sub-controller to your Root controller class.

2008-04-09:
* if you create initial data when declaring your SQLObject classes, at the bottom of your model.py, create a temporary SQLObject class and issue dropTable() and createTable() to unlock the database
* to create unicode strings (for internationalization) prepend the string with the letter u (ie u'Name')
* use datetime.date(yyyy, mm, dd) to encode date values in SQLObject DateCol
* use lower case for all SQLObject class properties
* use underscore not uppercase for all SQLObject class properties
* use single noun when naming your SQLObject classes
* [tg-admin toolbox] automatically creates the database based on your model.py

Problems I have encountered so far:

2008-05-15:
* always changing modules, TG1 uses SQLObject while the not-yet-released TG2 now uses SQLAlchemy
* crud forms without coding, authentication without coding

2008-04-14:
* creating master-detail forms

2008-04-10:
* creating master templates

2008-04-09:
* create database schema from classes
* modify existing database with new classes

Useful Widgets:

2008-04-15:
* http://pythonisito.blogspot.com/2006/02/django-like-automated-admin-interface.html - todo

2008-04-14:
* FancyFlash - todo
* TGFastData == iconized crud forms
* DataGrid

2008-04-10:
* tgcrud == for basic crud forms

Overall, TurboGears is a very promising web development framework using Python.

Labels: , ,

0 Comments:

Post a Comment

<< Home