[web2py] Re: SQLFORM.grid field.represent not working with joined tables

2017-02-15 Thread Paul Ellis
Here is the traceback: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. Traceback (most recent call last): File "E:\web2py\gluon\restricted.py",

[web2py] Re: compile error : Exception: name 'session' is not defined in views

2017-02-15 Thread Anthony
On Wednesday, February 15, 2017 at 3:35:30 AM UTC-5, Annet wrote: > > Hi Anthony, > > I just read: > > Any Python code in the template directives (i.e., "include", "exclude", >> "block") is evaluated at compile time, as the directives are needed to >> create the compiled views. However, in this c

Re: [web2py] Web2py conditional models

2017-02-15 Thread Bentorey Hernández Cruz
Muchas gracias, Tengo algo parecido referenciando a las funciones correspondientes antes de definir las tablas dentro del módulo si hay claves ajenas. Un saludo, (Thank you I have something similar with references to the functions before defining tables in the module if there are foreign k

[web2py] Re: Web2py conditional models

2017-02-15 Thread Bentorey Hernández Cruz
Thank you Anthony, it seems that there was at some point a problem with the app_settings. On Sunday, 29 January 2017 03:35:49 UTC, Anthony wrote: > > Are migrations turned on, and if so, is there a *.table file for this > table in the app's /databases folder? That could mean the table was > prev

[web2py] How to write pseudocode in markmin?

2017-02-15 Thread Martin Weissenboeck
What I what to get is something like *if* *condition* *then* *statement-1* *statement-2* *end* It is a text with monospace type, bold and italic letters and indentation. I have tried: **if** ''condition'' **then**[[NEWLINE}} ''staement-1'' ''staement-1'' **end** ​and the resu

Re: [web2py] Re: Small Monitoring App causes Python to struggle (100% CPU Load on Raspberry Pi 3)

2017-02-15 Thread 'Andy Key' via web2py-users
The installation of nginx + uwsgi went suprisingly smooth, web2py is running with my app now. But unfortunately the issue persists... in this setup a single client occupies 50% CPU (~5 times more than lighttpd + fastcgi, but better than apache 2 with wsgi). Closing the client-side browsers resu

[web2py] How do I make a Web2py threadsafe for GAE?

2017-02-15 Thread Carl Hunter Roach
In my app.yaml file I have: api_version: 1 runtime: python27 threadsafe: true handlers: - url: /_ah/warmup script: applications/myapp/mycontroller/warmup in mycontroller: def warmup(): ''' called by GAE to ready a Jupiter instance '''

[web2py] Re: compile error : Exception: name 'session' is not defined in views

2017-02-15 Thread 'Annet' via web2py-users
Hi Anthony, I just read: Any Python code in the template directives (i.e., "include", "exclude", > "block") is evaluated at compile time, as the directives are needed to > create the compiled views. However, in this case you include an object that > is only available at run time ("session"), w