[TurboGears] Re: PATCH - Add Authorization and fix for Opera JSON

2005-10-05 Thread Krys Wilken
For my project I just created a couple tables, Users and Roles and built a very simple authentication system consisting of 2 decorators, require_login and require_role. This meets my needs right now, as I prefer form-based logins over http password pop-ups (basic and digest). However it would

[TurboGears] Re: Invoice header invoice items pattern

2005-10-05 Thread Yesh
Thanks for the reply. I did read the SQLObject docs and the Kid template. I was using Cheetah before. What I would like to know is how to name the form variables for the invoice items so that I can commit it automatically. The typical forms in our app is header+items if different relations

[TurboGears] Re: Invoice header invoice items pattern

2005-10-05 Thread [EMAIL PROTECTED]
you cannot. HTML doesn't support array/dict style thing, only flat names. That is, you need to name them when generating the HTML with something like a_1,a_2 then do the reverse thing when received the form data. I think JSON is a better solution for this. Just have js that loop through the