No - it looks like Baron is right.... On Tue, Nov 11, 2008 at 12:46 AM, mdipierro <[EMAIL PROTECTED]> wrote:
> > I thought this was fixed in the t2.pdf. Are you sure you have the > latest? > > Massimo > > On Nov 11, 12:41 am, Baron <[EMAIL PROTECTED]> wrote: > > I noticed the T2 documentation defines the 'to' and 'callback' > > parameters but in t2.py these have been changed to 'next' and > > 'onaccept'. > > > > On Nov 7, 3:46 pm, Baron <[EMAIL PROTECTED]> wrote: > > > > > oh wow, you are productive. > > > So I'll work from there then. Thanks! > > > > > On Nov 7, 10:02 am, mdipierro <[EMAIL PROTECTED]> wrote: > > > > > > Because I wrote it in response to your question. It did not exist > > > > before. > > > > > > Massimo > > > > > > On Nov 6, 4:57 pm, Baron <[EMAIL PROTECTED]> wrote: > > > > > > > hold on...what's this:http://web2py.appspot.com/forum > > > > > So there is already a web2py basedforum. How come you didn't > > > > > recommend using it? > > > > > > > On Nov 7, 9:49 am, Baron <[EMAIL PROTECTED]> wrote: > > > > > > > > thanks for getting me started Massimo. I'll give it a go over the > > > > > > weekend. > > > > > > > > > If you give it a try and write good looking views, please share > it with us. > > > > > > > > sure > > > > > > > > On Nov 6, 12:43 pm, mdipierro <[EMAIL PROTECTED]> wrote: > > > > > > > > > Correction: > > > > > > > > > # model db.py > > > > > > > > > from applications.plugin_t2.modules.t2 import T2 > > > > > > > db=SQLDB('sqlite://storage.db') > > > > > > > db.define_table('thread',SQLField('title')) > > > > > > > t2=T2(request,response,session,cache,T,db) > > > > > > > db.thread.represent=lambda thread: \ > > > > > > > A(thread.title,_href=t2.action('thread',thread.id)) > > > > > > > > > #controller default.py > > > > > > > > > def login(): return dict(form=t2.login()) > > > > > > > def register(): return dict(form=t2.register()) > > > > > > > def logout(): t2.logout(next='login') > > > > > > > def download(): return t2.download() > > > > > > > @t2.requires_login() > > > > > > > def index(): > > > > > > > return dict(form=t2.create(db.thread), > > > > > > > threads=t2.search(db.thread)) > > > > > > > @t2.requires_login() > > > > > > > def thread(): > > > > > > > return dict(thread=t2.display(db.thread), > > > > > > > comments=t2.comments(db.thread)) > > > > > > > > > If you give it a try and write good looking views, please share > it > > > > > > > with us. > > > > > > > > > Massimo > > > > > > > > > On Nov 5, 6:11 pm, mdipierro <[EMAIL PROTECTED]> wrote: > > > > > > > > > > You can create a minimalistforumwith this code: > > > > > > > > > > # model db.py > > > > > > > > > > from applications.plugin_t2.modules.t2 import T2 > > > > > > > > db=SQLDB(...) > > > > > > > > db.define_table('thread',SQLField('title')) > > > > > > > > db.thread.represent=lambda thread: > > > > > > > > A(thread.title,_href=t2.action('thread',thread.id)) > > > > > > > > t2=T2(request,response,session,cache,T,db) > > > > > > > > > > #controller default.py > > > > > > > > > > def login(): return dict(form=t2.login()) > > > > > > > > def register(): return dict(form=t2.register()) > > > > > > > > def logout(): t2.logout(next='login') > > > > > > > > def download(): return t2.download() > > > > > > > > def index(): > > > > > > > > return > > > > > > > > dict(form=t2.create(db.thread),threads=t2.search(db.thread)) > > > > > > > > > > def thread(): > > > > > > > > return > > > > > > > > > dict(thread=t2.display(db.thread),comments=t2.comments(db.thread)) > > > > > > > > > > Massimo > > > > > > > > > > On Nov 5, 5:00 pm, Baron <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > hello, > > > > > > > > > > > just very basic - users, forums, threads, posts, but nice > looking. > > > > > > > > > The chatroom app has users, threads, posts, and a good > layout, so it > > > > > > > > > seems mostly there. > > > > > > > > > > > But you suggest t2? I'll have a look into this. > > > > > > > > > > > Richard > > > > > > > > > > > On Nov 5, 6:23 pm, mdipierro <[EMAIL PROTECTED]> > wrote: > > > > > > > > > > > > could you list the features you requires? > > > > > > > > > > > > You can probably write one in t2 using {{=t2.comments()}} > > > > > > > > > > > > Massimo > > > > > > > > > > > > On Nov 4, 10:39 pm, Baron <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > hello, > > > > > > > > > > > > > I'm looking for a simpleforumapp but there aren't any > in the > > > > > > > > > > > appliances page:http://mdp.cti.depaul.edu/appliances > > > > > > > > > > > Does anyone know of an existing web2pyforumapp? > > > > > > > > > > > > > Or alternatively, would one of the existing > applications be relatively > > > > > > > > > > > easy to convert to aforum? Perhaps the chat room? > > > > > > > > > > > > > thanks, > > > > > > > > > > > Richard > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---