On Saturday, April 7, 2018 at 4:13:16 AM UTC-4, Stephan wrote:
>
> Anthony, 1kTHX, it works now.
> The error was, that I set *migrate=True* in the DAL connector, i.e. *db
> = DAL('credentials.ee@mysql', migrate=True)* but not in the table that
> was altered.
> So this works for me:
> - I run th
>
> {{for q in question:}}
> {{q=XML(q.quest.replace('\n','').replace('(','{').replace(')','}'),
> sanitize=True)}}
> {{pass}}
> ...
> $(function () {
>...
>
sendMessage('{{=q}}');
>
When "question" is empty (i.e., there are no answers from the current
user), th
Also, there is not point to either of the for loops at the top of the view
-- each loop is simply assigning a new value to the same variable, so the
final value of the variable is just that of the final element in the
iteration. You might as well just make that final assignment without
botherin
Thanks for the information. Let me work on it.
On Sat, 7 Apr 2018, 17:36 Anthony wrote:
> Also, there is not point to either of the for loops at the top of the view
> -- each loop is simply assigning a new value to the same variable, so the
> final value of the variable is just that of the final
I just installed the latest web2py.
Version 2.16.1-stable+timestamp.2018.03.08.10.23.01
Previously, in my view I could test whether or not a form field had a value
by:
{{if form.custom.dspval[fieldname]:}}
{{=form.custom.dspval[fieldname]
{{else:}}
click here to enter field value
{{pass
You don't need to show the "correct" number of s. No one else does so
there will not be any confusion.
--
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)
---
6 matches
Mail list logo