It is the default welcome model. even : db = DAL('sqlite://storage.sqlite',pool_size=1) #,check_reserved=['all'])
with the check_reserved parameter commented, give the same error On Wednesday, October 29, 2014 9:32:03 PM UTC+1, Richard wrote: > > Web2py complains about reserved word that you may use in your model... > > Could you show your model? > > Richarc > > On Wed, Oct 29, 2014 at 4:20 PM, Richard D <richard....@planet.nl > <javascript:>> wrote: > >> With and without these plugins the error occurs. I downloaded them >> seperately, after the error to solve nice errors are given that first >> reactive must be loaded before these plugins are loaded, nice coded! >> >> btw I just started with the welcome app, no other specific code could >> cause the error. >> >> On Wednesday, October 29, 2014 9:06:46 PM UTC+1, Richard wrote: >>> >>> Richard, >>> >>> The import of Leonel seems not to work out of the box... These file are >>> not part of Ractive.js.zip : >>> >>> ractive-events-tap.js >>> ractive-transitions-fade.js >>> >>> >>> response.files.append(URL('static','js/ractive-events-tap.js')) >>> response.files.append(URL('static','js/ractive-transitions-fade.js')) >>> >>> >>> Try comment the line above >>> >>> Does it remove the error you have? >>> >>> Richard >>> >>> On Wed, Oct 29, 2014 at 4:03 PM, Richard D <richard....@planet.nl> >>> wrote: >>> >>>> Richard D again ;) >>>> >>>> pass missing was my error cleaning up index.html only half. >>>> >>>> Having added the 3 js file to application I get the error in the js >>>> console when reactive.js is run: >>>> >>>> Uncaught SyntaxError: Unexpected reserved word >>>> >>>> More specific: on the first line when importing defaults....: >>>> >>>> import defaults from 'config/defaults/options'; >>>> import easing from 'config/defaults/easing'; >>>> import interpolators from 'config/defaults/interpolators'; >>>> >>>> >>>> index.html is now: >>>> >>>> {{ractive_enabled=True}} >>>> {{extend 'layout.html'}} >>>> >>>> <div id='main'></div> >>>> >>>> <script id='main-template' type='text/ractive'> >>>> <p>Hello, [[name]]!</p> >>>> </script> >>>> >>>> <script> >>>> var ractive = new Ractive({ >>>> el: '#main', >>>> template: '#main-template', >>>> delimiters: [ '[[', ']]' ], >>>> tripleDelimiters: [ '[[[', ']]]' ] , >>>> }); >>>> </script> >>>> >>>> >>>> Thank for your patience >>>> Richard D >>>> >>>> On Wednesday, October 29, 2014 8:37:01 PM UTC+1, Leonel Câmara wrote: >>>>> >>>>> Well globals in Python are really only global to their own module, >>>>> web2py templates and controllers are not exactly python modules anyway, >>>>> so, >>>>> it's complicated; just do it in the view and let the template system take >>>>> care of it. >>>>> >>>> -- >>>> 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) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+un...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> 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) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.