i made some attempts:
to avoid calling eval(dbname) and passing dbname as args[0], in
gestione/update:
def update():
        try:
                dbname='db'
                table=request.vars.tabella
       ....
       ....
and in default/provvedimenti_insert:
linkto=URL(r=request,c='gestione',f='update',args=['db'],vars=dict
(table='provvedimenti',refereer=request.env.path_info))

but it doesn't work. it seems it doesn't accept table='provvedimenti'.
I mean that in update function it raises an error (even if i set
table='provvedimenti')
Where am i wrong?

The only way i found is:
def update():
        try:
                dbname='db'
                table=request.args[1]

and in default/provvedimenti_insert:
linkto=URL(r=request,c='gestione',f='update',args=['db'])
session.refereer=request.env.path_info

again with a session but not with vars passed from the caller
function..
Why?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to