You can just do

def index():
    var = ...
    return locals()

It will return all local variables with their own names.

We cannot change the syntax of dict, because it is a Python object,
not a web2py object. Sorry.

Massimo

On Dec 17, 9:28 am, JorgeRpo <[email protected]> wrote:
> Hello
>
> Is it possible to use
>
> return dict(var)
>
> instead of
>
> return dict(var=var)
>
> Because, the default syntax makes you to repeat a word.
>
> What about to use
>
> return dict(form=loginform)
>
> In other words, specify only when you are going yo change the name of
> the var??
> --
> sig text

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
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