no Dave, I didn't try the '+' sign; was just to describe intent
thanks Dave and Niphlod for the lesson
code works great!
Alex
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/lis
On Wednesday, May 27, 2015 at 3:39:33 PM UTC-7, Alex Glaros wrote:
>
> correct data now appears for first var, but what is syntax for two vars in
> dictionary?
>
> E.g., varsdict[cancel_1a]=cancel_1b* + varsdict[cancel_2a]=cancel_2b*
>
> I've tried looking it up and every possible combination
>
correct data now appears for first var, but what is syntax for two vars in
dictionary?
E.g., varsdict[cancel_1a]=cancel_1b* + varsdict[cancel_2a]=cancel_2b*
I've tried looking it up and every possible combination
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- htt
varsdict = dict()
varsdict[cancel_1a]=cancel_1b
vars=varsdict
something like that.
On Wednesday, May 27, 2015 at 1:15:56 PM UTC-7, Alex Glaros wrote:
>
> you're right Derek
>
> so how would have the end result be
>
> vars(dict(specificMeetingGroupID=10))
>
> thanks,
>
> Alex
>
--
Resources:
you're right Derek
so how would have the end result be
vars(dict(specificMeetingGroupID=10))
thanks,
Alex
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
-
a simple example can be better than a thousand words
>>> a = 'hello'
>>> b = 'world'
>>> example = dict(a=a, b=b)
>>> print example
{'a': 'hello', 'b': 'world'}
>>> example2 = {a : a, b : b}
>>> print example2
{'world': 'world', 'hello': 'hello'}
>>>
--
Resources:
- http://web2py.com
- http:
cancel_1A=cancel_1B, cancel_2A=cancel_2B))})
uh, you aren't setting 'specificMeetingGroup.id' equal to 10 by doing that,
you know... you're setting cancel_1A and your FORM is called without
anything assigned to cancel_1B or cancel_2B.
On Wednesday, May 27, 2015 at 12:46:58 PM UTC-7, Alex Glaros
I'm trying to pass controller name and var name to vars
you can follow one of the vars in yellow highlight
cancel_1A = request.get_vars.NAME_of_var_1_to_return_if_CANCEL
cancel_1B = request.get_vars.var_1_to_return_if_cancel
form = FORM.confirm('Are you sure?',{'Cancel and go
back':
Please show some code.
On Wednesday, May 27, 2015 at 3:07:50 PM UTC-4, Alex Glaros wrote:
>
> is there a trick to putting a controller name in a var so that it can be
> executed?
>
> let's say "list_people_and_thier_dogs" is a controller name
>
> I put the the string "list_people_and_thier_dogs"
9 matches
Mail list logo