[web2py:12469] Re: Using database and session in a user-defined class

2008-11-25 Thread José Deodoro de Oliveira Filho
Hi, You see, session, request and response are not globals "per se", they depend on the session you're responding to. From what I can tell the controller functions are "wrapped" inside an environment just before they're called and that's why you have those variables around. So, the way it's built,

[web2py:11000] SQLFORM

2008-11-03 Thread José Deodoro de Oliveira Filho
Hi, I wrote some code that wraps up a SQLFORM into a DIV such as: def layout_form(item): f = SQLFORM(db.whatever, item) return DIV(f, _class='form_div') And I just noticed that DIV.accepts doesn't call SQLFORM.accepts (it calls rec_accepts for the child elements). Shouldn't SQLFORM.acc

[web2py:10987] Re: target="_blank"

2008-11-03 Thread José Deodoro de Oliveira Filho
Hi, Should be A(..., *_*target = "_blank") (you're missing an underscore in _target) Deodoro Filho On Mon, Nov 3, 2008 at 10:28 AM, annet <[EMAIL PROTECTED]> wrote: > > In one of my views I have got a table in which one of the > element reads like: > > {{=A(club.bedrijf.bedrijfsnaam,_href=URL(

[web2py:10232] Views and modules

2008-10-14 Thread José Deodoro de Oliveira Filho
Hi, I want to call helper functions from the views, I want to keep it organized and put them in the modules dir, which is fine and works etc. But once I make a modification to the helpers I have to kill web2py and restart it because it seems it doesn't refresh the sources in there. What's the cor

[web2py:10048] Re: Customizing forms

2008-10-10 Thread José Deodoro de Oliveira Filho
Just out of curiosity: I've gone that way and what I noticed is that I loose the error divs, then I went back to using {{=form}}. Is that correct ? Deodoro Filho On Fri, Oct 10, 2008 at 11:28 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > OK just replace > > recipe=recipes[0] > > with > > recipe=r

[web2py:10052] Re: Customizing forms

2008-10-10 Thread José Deodoro de Oliveira Filho
L PROTECTED]> wrote: > > I do not understand what you mean. could you provide an examle? > > On Oct 10, 9:35 am, "José Deodoro de Oliveira Filho" > <[EMAIL PROTECTED]> wrote: >> Just out of curiosity: I've gone that way and what I noticed is that I

[web2py:10019] Re: Customizing forms

2008-10-09 Thread José Deodoro de Oliveira Filho
On Thu, Oct 9, 2008 at 12:36 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > If I understand your question, your form.load(record) would be > form.vars.update(record) > Hi again, Sorry for the long email, it's kind of a big doubt for me. I'm pretty sure I'm doing it wrong on behalf of inexperience