[web2py:14125] Re: MERRY CHRISTMAS ALL!

2008-12-25 Thread Johanm
Merry Christmas Boys and Girls! :) On Dec 25, 4:56 pm, ceej wrote: > Merry Christmas Everyone :) > > On Dec 24, 10:12 am, "Tito Garrido" wrote: > > > Merry Christmas Folks! > > > On Wed, Dec 24, 2008 at 2:26 PM, pmate wrote: > > > > Merry Christmas to all of you and to your families. > > > Let

[web2py:14124] Re: T3 IF and FOR doubt

2008-12-25 Thread mdipierro
You cannot. T3 does not support web2py templating language. On Dec 25, 6:10 pm, "Tito Garrido" wrote: > Hi Folks, > > Why when I try to use: > {{if self.is_admin:}} > Test > {{pass}} > > in a wiki page it returns: > Internal Error > [open

[web2py:14123] Re: MERRY CHRISTMAS ALL!

2008-12-25 Thread ceej
Merry Christmas Everyone :) On Dec 24, 10:12 am, "Tito Garrido" wrote: > Merry Christmas Folks! > > > > On Wed, Dec 24, 2008 at 2:26 PM, pmate wrote: > > > Merry Christmas to all of you and to your families. > > Let's hope it will bring to all a little more of peace. > > > Paolo > > > On Dec 23

[web2py:14122] T3 IF and FOR doubt

2008-12-25 Thread Tito Garrido
Hi Folks, Why when I try to use: {{if self.is_admin:}} Test {{pass}} in a wiki page it returns: Internal Error [open ] if self.is_admin: ^ SyntaxError: unexpected EOF while parsing Thanks, Tito -- Linux User #

[web2py:14121] Re: T3 Deleting by itself

2008-12-25 Thread Tito Garrido
Thank you very much Massimo! On Thu, Dec 25, 2008 at 4:29 PM, mdipierro wrote: > > I really regret not having the time to describe this better. > I thought you may like it since I think I did follow many of your > suggestions. > > Massimo > > On Dec 25, 12:42 pm, "Yarko Tymciurak" wrote: > > Ma

[web2py:14120] Re: T3 Deleting by itself

2008-12-25 Thread mdipierro
I really regret not having the time to describe this better. I thought you may like it since I think I did follow many of your suggestions. Massimo On Dec 25, 12:42 pm, "Yarko Tymciurak" wrote: > Massimo - > This is "beautiful" --- I'm starting to see this sort of idiom... > > represent = .

[web2py:14119] Re: T3 Deleting by itself

2008-12-25 Thread Yarko Tymciurak
Massimo - This is "beautiful" --- I'm starting to see this sort of idiom... represent = . A( {some visual/text repr}, _href= (some desired action,some parameters)) Really - this is starting to look easy I'm feeling the time to write! :-) Merry Christmas! Yarko On Thu, Dec 25, 2008

[web2py:14118] Re: T3 Deleting by itself

2008-12-25 Thread mdipierro
This is the problem: TD(A('delete!',_href=self.delete (db.t2_comment,query=db.t2_comment.id== row.id,next='run/pending_comments') "self.delete(...)" performs the delete. You need to: 1) create an action like @t2.requires_login() def delete_comment(): t2.delete(db.t2_comment,next='run/ pen

[web2py:14117] T3 Deleting by itself

2008-12-25 Thread Tito Garrido
Hi folks, I'm trying to create a represent function for t2_comment using the follow method: db.t2_comment.represent=lambda row: TABLE( TR(TD('Author'),TD('Body')), TR(TD(row.created_signature),TD(row.body), TD(A('approve!',_href=self.