More Manual Issues

19 views
Skip to first unread message

REM

unread,
Jun 4, 2013, 3:28:51 PM6/4/13
to web...@googlegroups.com
Still working through the manual, however puzzling and unexplained things do still occur. For instance: why does this code (cut and pasted from P.233) - placed in a view of course - always generate a syntax error?

{{=DIV(B(I("hello ", "<world>"))), _class="myclass")}}

Well, first I thought it was because there was an unmatched right parentheses at the end but, when you remove it the syntax error remains, so, I beseech The Collective:

Is this a manual error or my own error of understanding?
Why, indeed, is there an unmatched right parentheses?

Many sincere thanks for assisting my future comprehension.......

Anthony

unread,
Jun 4, 2013, 3:42:49 PM6/4/13
to web...@googlegroups.com
This works for me:

{{=DIV(B(I("hello ", "<world>")), _class="myclass")}}

The extra ")" was after "<world>".

Anthony

Robert Moore

unread,
Jun 4, 2013, 3:45:05 PM6/4/13
to web...@googlegroups.com
Yep, that's the first thing I tried - dinna work.

Actually, I tried lots of variations before I devolved to begging for alms on the web - as one always should.

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/YEIot0j5OKw/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Anthony

unread,
Jun 4, 2013, 4:22:09 PM6/4/13
to web...@googlegroups.com
OK, not sure what to say -- it definitely works for me. Can you show the full traceback you are getting?

Anthony

REM

unread,
Jun 4, 2013, 4:36:44 PM6/4/13
to web...@googlegroups.com
Ok, I made this problem go away:

Beneath this code was some earlier stuff which had been commented out. That, as well as the extra unmatched parentheses was together apparently the source of the problem - though the trace didn't show any problems related to the commented-out stuff and said nothing about anything but the syntax error (or I would have tried deleting it earlier). Meanwhile, the original page has been trashed all to heck so I couldn't get back the original trace anyway........

So, in the future I have learned to exercise even more than normal caution.

Sincere thanks for your assistance. I do appreciate it very much!
Reply all
Reply to author
Forward
0 new messages