[web2py] drop down menu redirection or response menu with form?

2015-12-28 Thread aetagothno
Is it possible to implement something equivalent to a drop down menu within a form wizard? I want to display a menu which exists on each page of the form, so that the user can select which step to go to, they can select the step in the menu and it redirects them to that step. The problem is that

[web2py] Re: drop down menu redirection or response menu with form?

2015-12-28 Thread Anthony
You might consider keeping all the wizard steps in a single HTML page, and just use Javascript to show/hide the different steps. That way, data entered in one step will be retained even as you skip back and forth to other steps. Anthony On Monday, December 28, 2015 at 11:28:49 AM UTC-5, aetago

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
Looks like it was permission issues and the RPM's were installing to a directory under /usr/ Now I am getting Traceback (most recent call last): File "/opt/www-data/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/opt/www-data/web2py/applications/

[web2py] Re: drop down menu redirection or response menu with form?

2015-12-28 Thread aetagothno
I've been trying and failing with trying to get that to work with the form wizard, it works without it. The conditional fields just don't work at all, the form proceeds as normal showing every field in every step. I don't know if I am just placing things in the wrong place or what. step = int(

[web2py] Re: drop down menu redirection or response menu with form?

2015-12-28 Thread Anthony
Based on your code, it looks like you are making separate submissions to web2py for each step (encoding the step in the first URL arg) -- in other words, you are loading/submitting a separate page for each step. I was suggesting you handle the entire form via Javascript on a single page, with n

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
So I have run the following to try and purge my current account: #sign in: import cx_Oracle db = cx_Oracle.connect('WEB2PY', 'pw', 'server:1521/sid') cursor = db.cursor() #List all tables: cursor.execute('SELECT table_name FROM all_tables') for row in cursor: print row #delete Table: cur

[web2py] Re: Cross domain auth

2015-12-28 Thread Anthony
On Monday, December 28, 2015 at 12:51:22 AM UTC-5, LightOfMooN wrote: > > But is there a way to push session cookie for multiple domains at once? > Something like: > > for domain in ['mydomain.com', 'mydomain.de', 'mydomain.ru', 'mydomain.fr']: > > session_id = generate_session_id(domain) > >

[web2py] Re: drop down menu redirection or response menu with form?

2015-12-28 Thread aetagothno
Doesn't that defeat the purpose of using a form wizard, since I can use jquery effectively without it all on the same page? Or do you mean that the form wizard helps with shortening code with this because instead of hiding/showing fields one-by-one, it can somehow allow me to do this using the

[web2py] Re: Oracle drivers.

2015-12-28 Thread Dan Feeney
You can view tables owned by the current user with: SELECT TABLE_NAME FROM USER_TABLES ORDER BY TABLE_NAME; You can view all objects owned by the current user with: SELECT OBJECT_NAME, OBJECT_TYPE FROM USER_OBJECTS ORDER BY 2, 1; HTH, -Dan -- Resources: - http://web2py.com - http://web2py

[web2py] Re: drop down menu redirection or response menu with form?

2015-12-28 Thread Anthony
On Monday, December 28, 2015 at 12:56:04 PM UTC-5, aetagot...@gmail.com wrote: > > Doesn't that defeat the purpose of using a form wizard, since I can use > jquery effectively without it all on the same page? > I suppose it depends on why you are using a form wizard. Is the purpose of the wizar

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
Ahh, I am ULTRA-Newb to db's: here is what it returned: >>> for row in cursor: ... print row ... ('SYS_C0012098', 'INDEX') ('SYS_LOB092306C3$$', 'LOB') ('AUTH_CAS_SEQUENCE', 'SEQUENCE') ('AUTH_EVENT_SEQUENCE', 'SEQUENCE') ('AUTH_GROUP_SEQUENCE', 'SEQUENCE') ('AUTH_MEMBERSHIP_SEQUENC

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
Alright it worked for blah: cursor.execute("DROP SEQUENCE BLAH_SEQUENCE") Going for the rest now. On Monday, December 28, 2015 at 10:09:31 AM UTC-8, Michael Messmer wrote: > > Ahh, I am ULTRA-Newb to db's: > > here is what it returned: > > >>> for row in cursor: > ... print row > ... > ('S

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
MAGIC: cursor.execute("DROP SEQUENCE AUTH_USER_SEQUENCE") cursor.execute("DROP SEQUENCE AUTH_GROUP_SEQUENCE") cursor.execute("DROP SEQUENCE AUTH_MEMBERSHIP_SEQUENCE") cursor.execute("DROP SEQUENCE AUTH_PERMISSION_SEQUENCE") cursor.execute("DROP SEQUENCE AUTH_EVENT_SEQUENCE") cursor.execute("DROP S

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
ok, so. I tried adding a user record and now im getting this: Traceback (most recent call last): File "/opt/www-data/web2py/gluon/restricted.py", line 227, in restricted exec ccode in environment File "/opt/www-data/web2py/applications/test/controllers/appadmin.py"

[web2py] Re: drop down menu redirection or response menu with form?

2015-12-28 Thread aetagothno
I want to break up the form into large chunks to make it easier for the user, yes. I have 5 steps defined containing the fields, and then changed the code to the following so that the entire form is displayed on the page with the following: STEPS = {0: ('fields1', 'fields2', 'fields3'),

Re: [web2py] Re: web2py 2.13.3 is OUT

2015-12-28 Thread António Ramos
can i do @auth.requires_jwt() I would like to use web2py just as a rest api , auth included... 2015-12-27 7:09 GMT+00:00 Massimo Di Pierro : > good catch! we will have to refactor that to support earlier versions of > python. > > > On Sunday, 27 December 2015 01:02:09 UTC-6, Lou C wrote: >>

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
I looked at the other Adapter Modules for that "Reference()" "web2py/gluon/packages/dal/pydal/adapters/mongo.py" had it and it also had: from "..helpers.classes import SQLCustomType, SQLALL, Reference" So I added this to the following to "web2py/gluon/packages/dal/pydal/adapters/oracle.py" ".

Re: [web2py] Re: web2py 2.13.3 is OUT

2015-12-28 Thread Dave S
On Monday, December 28, 2015 at 11:05:04 AM UTC-8, Ramos wrote: > > can i do > >@auth.requires_jwt() > > I would like to use web2py just as a rest api , auth included... > What's your environment? /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Re: Oracle drivers.

2015-12-28 Thread Michael Messmer
@Niphlod @Massimo Is what i did a correct fix and is this something that needs to be corrected here https://github.com/web2py/pydal/blob/master/pydal/adapters/oracle.py ? On Monday, December 28, 2015 at 12:38:13 PM UTC-8, Michael Messmer wrote: > > I looked at the other Adapter Modules for that

[web2py] Re: Cross domain auth

2015-12-28 Thread LightOfMooN
It's awesome! Thank you, Anthony. You made my day. It works fine. Here is the resulting code: in db.py: def share_login(form): session.share_login = True auth.settings.login_onaccept = share_login in gluon/tools after if self.settings.renew_session_onlogout: current.session.renew

Re: [web2py] Re: Payment gateway

2015-12-28 Thread Ron Chatterjee
Appliance came to rescue. Works like a champ! https://github.com/mdipierro/web2py-appliances/tree/master/PosOnlineStore On Monday, December 21, 2015 at 2:12:33 PM UTC-5, Ron Chatterjee wrote: > > Was looking for something similar to this as an example (model, view, > controller) > > http://www

Re: [web2py] web2py 2.13.3 is OUT

2015-12-28 Thread António Ramos
Vuejs/web components http://vuejs.org/guide/application.html +semantic ui +some build tools like browserify to build just a single Js file out of many. However I need a persistence/auth api. No dia segunda-feira, 28 de dezembro de 2015, Dave S escreveu: > On Monday, December 28, 2015 at 11:05:

[web2py] IP tables commands in setup-web2py-nginx-uwsgi-centos64.sh

2015-12-28 Thread Chris Guest
I've been looking at the script, setup-web2py-nginx-uwsgi-centos64.sh . Towards the end of it, are these two commands: /etc/init.d/iptables stop chkconfig --del iptables Why is it necessary to stop iptables and then remove all run level symlinks under /etc/rc[0-6].d ? -- Resources: -

[web2py] HTML5 Local storage and web2py

2015-12-28 Thread luis . valladares
Hello! I want to use the HTML5 Local Storage (http://diveintohtml5.info/storage.html) to store session and other persisent data of my web2py application. There is any way to do this inside web2py or i must do this only with javascript? Maybe it could be an interesting feature to add if it does

Re: [web2py] web2py 2.13.3 is OUT

2015-12-28 Thread Dave S
On Monday, December 28, 2015 at 3:45:23 PM UTC-8, Ramos wrote: > > Vuejs/web components > http://vuejs.org/guide/application.html > +semantic ui +some build tools like browserify to build just a single > Js file out of many. > However I need a persistence/auth api. > > Are you running on GAE,