I am planning on doing a lot of coding over Christmas.  A mail list
system, Flickr based photo album, etc.  If I could write them in a way
that it would be easy for other people to integrate, I would be happy
to donate.


My understanding - please correct

Naming Convention/Coding style
http://www.python.org/peps/pep-0008.html

Widgets
http://www.turbogears.org/docs/devcasts.html
they go in Turbogears.widgets


Toolbox
turbogears.toolbox.tools
Things that I think would be interesting and I will get around to.
Batch manager - nightly,weekly cleanup jobs
email manager - process incoming email.
Security manager - I want to make a new identity system with database
configuration
Paypal manager or accounting manager.


Modules
By this, I mean chunks of code with templates, javascript, images, etc.
 A photoalbum,  a bulletin board, a shopping cart, etc.
Suppose, I wrote my module
- code was in
turbogears/addins/ModuleName
- template directory would be below it.
- model.py would be in the ModuleName directory.  That way, a procedure
could vacuum up all the model.py's and add them automatically.
- database tablenames would start with ModuleName_blah

- static files are in
turbogears/static/addins/ModuleName

I am planning on using apache to serve the static stuff.

Theoretically, you could add
Root.bbs = BulletinBoard()
and be done.

I am not yet sure what to do with batch jobs and email processors but
they should be easy to find too.


Packaging
- use easyinstall
No idea how I would do this yet but I will figure it out when the time
comes.


Sorry if this is beyond what TG should be.  I am just really
enthusiastic about it.  I recently threw away about 10K lines of buggy
PHP code that I wrote.  It only did about half of what TG does.  Of
course, there are a few things that TG does not do and I want to add
them in quickly.

Thanks
Alvin

Reply via email to