On 9/26/08, Stéphane Raimbault <[EMAIL PROTECTED]> wrote: > Hello, > > I've made my first application with TG (the URL is not public yet) and > I want to share my first application to help the newcomers. >
Since you're sharing with us this seems to imply that you liked TG somehow, that's great. We welcome people who share info like you do and we really appreciate this type of community feed-back. > SA rocks! I described my data model with plain SA (table, class You're right :) "SA roxor des ours"! > 1 - choose a coding convention for SA, eg. Table.query.all() > and not session.query(Table).all() I would recommend to never us .all on a query. What for. If you want the size use .count() on the query and you know in advance the number of elements. > > Genshi is really more powerful than Kid. You're right. That's why we're pushing tg1.1 and excpect people to use it quite soon. TG1 will come with SA and Genshi as the defaults for quickstarted projects. > > 1 - Don't use default arg to function used for error_handling, eg. > > def edit(self, id, tg_errors=None): > ... > > @error_handler(edit) > > You can see that 'id' has no default value, it's required to provide > error handling. some wiki pages would be interesting on your templating and error handling views. > > 2 - Don't use .all() in queries used by a paginator See above comment about .all() The only place I use .all() is when I have to use SA with MSSQL server 2000 which does not support offsets. > > The wiki of TurboGears needs some love (content and artwork) but my > english sucks :( I would not say your English sucks at all and I'm sure you can create new draft pages and ask for review before it becomes official... But really, your contribution in this department would be appreciated. One of the main problem we face is that we have a tendency to not be able to identify the questions a newcomer would ask because we know TG and have worked with it for too long. This means that even if you think your communication skills are not good I'd like to see you try to write one or two pages on our wiki. I'm sure this would help us a lot. Finally: Thank you so much for this constructive piece of info you provided in your email already. Florent. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

