You can do what you ask but please wait one week when web2py 1.56 comes out. It will include new modules Auth and Crud. Once documented they do what you want and much better than T2.
Massimo On Jan 27, 3:01 pm, hcvst <hcv...@googlemail.com> wrote: > Hi, > > first of all, thank you for web2py. It allowed me to build a simple, > clean webapp without having to read tons of documentation or to think > too much about design/code organization very quickly. I love the > straight-forward, browser-based dev approach, although the admin UI > would probably benefit from some ajax to make it more IDE-like in > order reduce the number of tabs/windows one has to work with. In > particular, I like the packaging-and-deploy support. > > Now, however, I would like to build a slightly more complicated app, > one that resembles a typical portal app, i.e. one where various page- > sections contain one or more widgets, such as a logon/logoff widget or > a gallery. > > Only today I learned of T2, and while its support for common patterns > looks promising I don't know to what extend these patterns can take > the form of widgets. For example, given a simple two column layout > (left, width 80%, main content - right, 20% width, secondary content), > how would I place a logon/logoff widget into the right column, and the > picture of a puppy into the left column, followed by paginated > comments and a comment-submit form iff the user is logged-in? > > Is that possible? Also, w.r.t. the automagic t2 form creation, can one > suppress/default some fields? Glancing at the method signature and > __doc__ for "create" for example I did not see any built-in support > for this. > > Thanks again and best regards, > HC --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---