[web2py] New US Govt guidelines do not like Bootstrap CSS

2015-10-06 Thread Dave S
>From IT World, this heads up about a new US standard for government website contractors: Not only does the U.S. standard choose other frameworks, it specifically *does not* recommend bootstrap for production sites. 18F specifically does not recommend using Twitter/Bootstrap for production wo

[web2py] Re: Lost Style when deploying

2015-10-06 Thread Michael M
Hehe, indeed. -- 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" gr

[web2py] Re: Lost Style when deploying

2015-10-06 Thread Dave S
On Tuesday, October 6, 2015 at 5:05:52 PM UTC-7, Michael Messmer wrote: > > [...] > I fixed it. cat killed me. > I'm glad to hear you have it properly caged now. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

Re: [web2py] Re: SQLFORM grid process not working

2015-10-06 Thread Yebach
> > Hello > > I have a new problem with my forms. > > I have validators on the fields > > But looks like they are not triggered, so for example > > When I insert a new record a first check should be done on the fields like > is_not_empty etc. > > Then if that is all ok it has to check the field s

Re: [web2py] Re: SQLFORM grid process not working

2015-10-06 Thread Yebach
Hello I have a new problem with my forms. I have validators on the fields But looks like they are not triggered, so for example When I insert a new record a first check should be done on the fields like is_not_empty etc. Then if that is all ok it has to check the field sh_code and if this cod

[web2py] Re: Oracle drivers.

2015-10-06 Thread Michael M
I was testing in non-prod (RHEL) to see if it was built in. it wasnt. on my Fedora 22 at my desk I installed cx_Oracle because it works when i am in CLI python and I can call it no errors. I have yet to dabble in virtualenv. I have systemctl restart httpd after every change. even reboots to

[web2py] Re: Lost Style when deploying

2015-10-06 Thread Michael Messmer
I'm a dork. I fixed it. cat killed me. Without the two ' around EOF is replaced "/opt/www-data/web2py/applications/$1/static/$2" with "/opt/www-data/web2py/applications//static/" because it tried and failed to replace the $ with a known thing like $(Date) so it just errored and replaced wi

[web2py] Re: Oracle drivers.

2015-10-06 Thread Leonel Câmara
Is it possible web2py is running in a virtualenv where you have not installed cx_Oracle? Also don't forget to restart Apache. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Oracle drivers.

2015-10-06 Thread Michael M
Forgot to paste the Error on my Non-Prod Virt. Versionweb2py™Version 2.12.3-stable+timestamp.2015.08.19.00.18.03Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. Traceback (most recent call last): File "/opt/www-data/web2py/gluon/restricted.py", line 227,

[web2py] A helper callback not working as expected

2015-10-06 Thread Tom Campbell
I would expect this to link to default/completed. My app is named ajaxtodo. I have controller() defined in default.py. However, the A helper below only links to http://127.0.0.1:8000/ajaxtodo/default/index#null {{=A('Completed', callback=URL(c='default', f='completed'))}} How can I get that to

[web2py] Re: Oracle drivers.

2015-10-06 Thread Michael M
yeah I tried spinning up another application in my Non-prod env. 2.12.3-stable+timestamp.2015.08.19.00.18.03 (Running on Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5, Python 2.7.5) and just changed the URI from: uri = sqlite://storage.sqlite to:

[web2py] Re: Oracle drivers.

2015-10-06 Thread Leonel Câmara
Well the dal tries to "import cx_Oracle" and it should work since it's installed - Weird. Did you already have web2py running before installing cx_Oracle and you didn't restart it (say by touching it's uwsgi config file)? -- Resources: - http://web2py.com - http://web2py.com/book (Documentat

[web2py] Re: Oracle drivers.

2015-10-06 Thread Michael M
i was just trying to find some way to expose more of what going on. When I call Oracle in my DB configs uri = oracle://... I get this 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. Traceback (most recent call last): File "/opt/www-data/web2py/gluon/restricted.p

[web2py] Re: Oracle drivers.

2015-10-06 Thread Leonel Câmara
You don't need to import it in your application the DAL does it for you. -- 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

[web2py] Oracle drivers.

2015-10-06 Thread Michael M
2.12.3-stable+timestamp.2015.08.19.00.18.03 (Running on Apache/2.4.16 (Fedora) OpenSSL/1.0.1k-fips mod_wsgi/4.4.8 Python/2.7.10, Python 2.7.10) So "import cx_Oracle" works in python console but when I tried using it in web2py it errors out. (Cannot import module 'applications.test2.modules.cx_

[web2py] Re: SQLFORM.grid and ractive

2015-10-06 Thread Niphlod
without search capabilities, grid is just a keyed edit form for each record. Is it really that hard to display a view-edit-delete link next to a table ? PS: the scaffolding app works fine with grids AND bootstrap. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] auth.requires_login redirect and session expiration

2015-10-06 Thread 'DenesL' via web2py-users
Hi an expired session becomes empty but this does not seem to always trigger auth.requires_login redirection to the login URL neither when set via auth.requires_login(loginURL), aka the otherwise parameter, nor by auth.settings.on_failed_authorization = loginURL . Actually the otherwise paramet

Re: [web2py] Re: spip web2py

2015-10-06 Thread Richard Vézina
On parle français ici si tu as de la difficulté avec l'anglais... :D Richard On Tue, Oct 6, 2015 at 10:04 AM, Richard Vézina wrote: > You also, just use SPIP since it seems what you want to do and acces the > SPIP DB from web2py for your needs instead of trying to populate form and > web2py db

Re: [web2py] Re: spip web2py

2015-10-06 Thread Richard Vézina
You also, just use SPIP since it seems what you want to do and acces the SPIP DB from web2py for your needs instead of trying to populate form and web2py db from web2py form... But I think we need further details about what you actually want to acheive. Richard On Mon, Oct 5, 2015 at 5:12 PM, p

[web2py] Re: orderby with groupby in select

2015-10-06 Thread 'DenesL' via web2py-users
m1 = db.messages m2 = db.messages.with_alias('m2') messages = db(m2.timesent==None).select(m1.ALL, left=m2.on((m1.fromid==m2. fromid)&(m1.toid==m1.toid)&(m1.timesenthttp://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Re: SQLFORM.grid and ractive

2015-10-06 Thread weheh
Yes, I will do it this week. First, I like grid. It's powerful and convenient. But, grid isn't formatted for bootstrap, which I use and the rest of web2py supports. This inconsistency causes trouble when I use the ui="web2py" argument to grid. I don't normally even load web2py.css for my app b

[web2py] Re: SQLFORM.grid and ractive

2015-10-06 Thread Leonel Câmara
Can you pack a simple example application for me to test? -- 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 subscr

[web2py] Re: WARNING:Rocket.Errors.Port8000:Listener started when not ready.

2015-10-06 Thread Leonel Câmara
No no you got it wrong my advice was to use 127.0.0.1 you were using 1.0.0.1 by mistake and that's why you were having problems. You should use 127.0.0.1 because that's a special IP that's used as the loopback address and it always points to the machine where you are. -- Resources: - http://we

[web2py] Re: SQLFORM.grid and ractive

2015-10-06 Thread weheh
The problem, reported by FireBug, is Uncaught SyntaxError: Unexpected token ILLEGAL and appears to be caused by a script being output by the SQLFORM.grid. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g