I solved this so:
def crear():
response.subtitle ='Prueba'
form=crud.create(db.sipfriends)
if form.accepts(request.vars, session):
session.name = form.vars.name
session.calllimit = form.vars.calllimit
redirect(URL('complemento'))
return dict(form=form)
def complemento():
a = "UPDATE `sipfriends` SET `call-limit` = " +
session.calllimit + " WHERE `name` = " + session.name + ";"
db.executesql(a)
redirect(URL('index'))
return dict()
On 11 mar, 19:45, cabildocl <[email protected]> wrote:
> Is this to be? "web2py or python?
>
> On 9 mar, 19:31, Massimo Di Pierro <[email protected]> wrote:
>
>
>
>
>
>
>
> > you cannot. You can have a field.label with the id but not in the
> > field name.
>
> > On Mar 9, 6:51 am,cabildocl<[email protected]> wrote:
>
> > > I need create a field in DAL, what include a character special "-".
> > > How i can do this?
>
> > > Greetings