[web2py] Re: bug2py

2010-05-22 Thread Abhishek Mishra
Just figured out the bug, javascript in href of link tags worked fine on chrome, but failed on firefox, I've changed any such links from wrote: > Great, now I am learning web2py I have a few of them noted at my Mac > desktop. > > There is a little bug athttp://bugs.madetokill.com > Register button

[web2py] Re: bug2py

2010-05-21 Thread Abhishek Mishra
Hi Massimo, I was thinking of porting BugBase (a base bug tracker written in php as a college project) to web2py to learn and speed up with it. The original PHP code is here - http://github.com/ideamonk/bugbase with demo available at http://bugs.madetokill.com Its a bit buggy and insecure (assume

[web2py] Preferred way to update values?

2010-03-24 Thread Abhishek Mishra
I found this to be a little out of conventional way... Initially my app - http://hello-poll.appspot.com used to update tables in this way - method #1 db(db.choice.id==request.vars.cid).update(votes = db.choice.votes + 1) ^ This worked well on local web2py and appengine instance. However on deplo

[web2py] Re: A doubt with SQLFORM

2010-03-24 Thread Abhishek Mishra
Alright I'll try looking for it, Thanks On Mar 24, 9:21 pm, mdipierro wrote: > I wote a plugin for this last month and I posted on this list but I > lost it. If somebody can find it please re-post it. > > Massimo > > -- You received this message because you are subscribed to the Google Groups

[web2py] Re: A doubt with SQLFORM

2010-03-24 Thread Abhishek Mishra
b.table.field.writable=True or False > > form.labels is not defined because according to current design labels > are a property of the individual fields and not of the form object. > > On Mar 24, 10:26 am, mdipierro wrote: > > > > > You do not specify the field

[web2py] Re: A doubt with SQLFORM

2010-03-24 Thread Abhishek Mishra
; WRONG > > You specify them at the level of the fields > > db.table.field.label='...' > form=SQLFORM(db.table) > > Massimo > > On Mar 24, 9:28 am, Abhishek Mishra wrote: > > > > > Hi guys, > > > I am trying to learn/try out web2py fr

[web2py] A doubt with SQLFORM

2010-03-24 Thread Abhishek Mishra
Hi guys, I am trying to learn/try out web2py from scratch. I'm making a simple poll application right now. So, to add a poll, I'm trying to use automatically generated SQLFORMs as in - pollform=SQLFORM(db.poll, fields=['question'], labels={'question':'Poll Question'}) I was looking for a way to

[web2py] Re: Custom 404 pages

2010-03-10 Thread Abhishek Mishra
n' , etc helps out for app specific error pages. Yup using the decorators would invite me to the less maintainable task of adding it above all the controllers defs. Thanks! On Mar 6, 7:58 pm, mdipierro wrote: > On Mar 5, 9:48 pm, Abhishek Mishra wrote: > > > Hi

[web2py] Custom 404 pages

2010-03-06 Thread Abhishek Mishra
Hi I'm trying to implement a decorator for custom error pages in web2py into sahanapy. Ref - http://web2py.com/AlterEgo/default/show/75 I'm trying to keep it as a module in /modules directory so that I can import it into the controllers and place the decorator appropriately. I have kept error han