[web2py] standard html button within a web2py view

2021-04-27 Thread james c.
Is it possible to use standard html elements, for example a button, in a web2py view. I've tried both within the default controller and a separate controller named a_net.py and in both cases the function and views are named payment. In both cases, a link: {{ =this_link }} is populated with

[web2py] Re: web2py app on startup trying to create a duplicate table auth_user

2021-04-17 Thread james c.
And the solution is to add fake_migrate=True into the DAL statement and the auth.define_tables statement. On Saturday, April 17, 2021 at 6:35:05 PM UTC-7 james c. wrote: > db = DAL(myconf.get('db.uri'), > auto_import = True, > ignore_field_case = True, > entity_quoting = False,

[web2py] web2py app on startup trying to create a duplicate table auth_user

2021-04-17 Thread james c.
db = DAL(myconf.get('db.uri'), auto_import = True, ignore_field_case = True, entity_quoting = False, pool_size = 10 migrate = True, migrate_enabled = True, check_reserved = ['common'], lazy_tables = False) . . . auth = Auth(db, host_names=myconf.get('host.names'))

[web2py] trying to load .w2p appliance from local directory

2021-04-16 Thread james c.
This was an app being developed on windows and was saved as an appliance file.w2p. I have it in a local directory. As admin, I've tried to load the file.w2p as an appliance. I select the file and web2py displays the name in the field after I've selected the file in the folder. But it won't load

[web2py] just python (no web2py) existing tables drop after define_table

2021-04-05 Thread james c.
I am trying to access persistent data saved in an sqlite.db file without wiping it out. I start an interactive session with just python and no web2py and enter the following: >>> from pydal import DAL, Field >>> db = DAL('sqlite://storage.sqlite', folder='home/cryptoj/venv', auto_import=True)

[web2py] Experience With TKL Web2Py? - Changing Web2Py defaults to TKL Web2Py defaults.

2013-10-16 Thread james c.
The development defaults for a Web2Py App are Rocket Server and SQL Light. I've deployed my application through the TKL hub and have kept the Web2Py default configuration. My app runs fast on the local development system and very slow on a small instance EC2 deployed through the TKL hub. I

[web2py] Re: Web2Py + TurnkeyLinux and Apache

2013-07-30 Thread james c.
PM UTC-7, james c. wrote: I easily deployed my Web2Py app with just a few clicks through the TurnKeyLinux Hub onto Amazon EC2. The Web2Py Admin console shows that the app is running with Apache. However, it seems to still be running on Rocket from an error message related to SSL. Any SSL

[web2py] Re: Web2Py + TurnkeyLinux and Apache

2013-07-25 Thread james c.
use a developer-signed certificate? Is this true? thanks, James On Thursday, July 25, 2013 6:10:48 AM UTC-7, Massimo Di Pierro wrote: I do not know what the appliance does. Can you show us the code? On Wednesday, 24 July 2013 15:03:27 UTC-5, james c. wrote: I easily deployed my Web2Py

[web2py] Web2Py + TurnkeyLinux and Apache

2013-07-24 Thread james c.
I easily deployed my Web2Py app with just a few clicks through the TurnKeyLinux Hub onto Amazon EC2. The Web2Py Admin console shows that the app is running with Apache. However, it seems to still be running on Rocket from an error message related to SSL. Any SSL connection attempt is ignored.

[web2py] web2py + TurnKeyLinux + AWS + PyPy

2013-03-29 Thread james c.
? thanks in advance, James C. -- --- 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

[web2py] Re: web2py + TurnKeyLinux + AWS + PyPy

2013-03-29 Thread james c.
It looks like the answer is that you can create an install patch for the base Linux of TKL, Debian Squeeze, to install pypy. regards, James On Friday, March 29, 2013 4:07:23 PM UTC-7, james c. wrote: PyPy is a just in time compiled Python and from my little testing is a lot faster than

[web2py] Re: Stripe javascript and form

2012-05-26 Thread james c.
in gluon/contrib/stripe.py are designed to be called from the controller, not from the javascript. On Friday, 25 May 2012 18:07:33 UTC-5, james c. wrote: Thanks for including Stripe APIs in Web2Py. Stripe provides from its' Web site a form and javascript template that collects, clients

[web2py] Stripe javascript and form

2012-05-25 Thread james c.
Thanks for including Stripe APIs in Web2Py. Stripe provides from its' Web site a form and javascript template that collects, clients browser, the credit card information, ships it off to stripe for validation, and then returns the validated credit card information as a token via a post to the

[web2py] Using Spawn in Web2Py with Web2Py Python Implementation

2012-03-05 Thread james c.
At irregular intervals I need to cleanup files written by my application for users. In the documentation it was suggested that one of the possibilities is to launch a script to do this. I'm doing the following from my controller and it works fine: os.spawnl(os.P_NOWAIT, r'C:\Python25\python.exe',

[web2py] cache to disk zipped files

2012-02-21 Thread james c.
My application/controller is creating a zipped folder of files specific to each use and then the user downloads the folder. I'm able to create the zipped folders OK and set up the disk caching without apparently any errors, and I see that the system is updating the files in the applications cache

[web2py] Re: persistence of inherited tables in the same function.

2011-05-21 Thread james c.
[ About me:http://zerp.ly/rochacbruno] On Fri, May 20, 2011 at 2:01 AM, james c. james.cryp...@gmail.com wrote: thanks Anthony for the quick reply. regards, james c. On May 19, 9:26 pm, Anthony abasta...@gmail.com wrote: You can read more about all this here: http://web2py.com/book

[web2py] persistence of inherited tables in the same function.

2011-05-19 Thread james c.
tables, so I must be able to create and drop tables on demand. - I don't see how I can do this in db.py. Any advice would be appreciated on using the tables in the function or doing it all in db.py. thanks in advance, james c. # this is in db.py

[web2py] Re: persistence of inherited tables in the same function.

2011-05-19 Thread james c.
thanks Anthony for the quick reply. regards, james c. On May 19, 9:26 pm, Anthony abasta...@gmail.com wrote: You can read more about all this here:http://web2py.com/book/default/chapter/06#Migrations On Friday, May 20, 2011 12:25:03 AM UTC-4, Anthony wrote: On Thursday, May 19, 2011

[web2py] Re: Key error in controller db select

2011-05-12 Thread james c.
Thanks Anthony. This works and the creation, read/write must be from within the same function (as you said). thanks again for your help. James On May 10, 7:37 pm, Anthony abasta...@gmail.com wrote: On Tuesday, May 10, 2011 10:32:34 PM UTC-4, Anthony wrote: To keep things DRY, you can define a

[web2py] Key error in controller db select

2011-05-10 Thread james c.
in as user_id = 8. Again, any advice or points to docs would be appreciated. Thanks, James C.

[web2py] Re: Key error in controller db select

2011-05-10 Thread james c.
to the ...accounts_8.table is not available through the admin interface. any other thoughts? James C. On May 10, 2:23 pm, Anthony abasta...@gmail.com wrote: On Tuesday, May 10, 2011 4:01:34 PM UTC-4, james c. wrote: I am having trouble with a key exception error.  The problem is occuring when the controller

[web2py] the same table for many customer-companies

2011-05-09 Thread james c.
My web app will be used by different companies. Defining roles and permissions for the application works well for one company. With more companies there are problems. Defining application table in db.py seems to make the table available to all the companies. This demands permissions defined at

[web2py] Forms with clienttools? or Forms in jquiDialog

2011-04-28 Thread james c.
(db.groups.ALL)) return jq(#clckAddGroups).append(DIV(_id=dialog))() + \ jq(#dialog).html(form)() + \ jq(#dialog).dialog(dict(title=Name of Group, modal=True, height=400, width=900))() Thanks in advance, for any tips or advice. James C.

[web2py] Is there a way to set jqui dialog options using clienttools?

2011-04-27 Thread james c.
Is there a way to set Jqueryui Dialog options using web2py clienttools? thanks in advance, James C.

[web2py] Re: eliminate 'column-header' titles from query response?

2011-04-04 Thread james c.
and dictionaries in a from the results I was seeing in web2py. The example app is done. If you would still like me to send it, let me know where to post it or email thanks again, James C. On Apr 4, 8:08 am, Anthony abasta...@gmail.com wrote: Hi James, Yes, why don't you send a simple app

[web2py] eliminate 'column-header' titles from query response?

2011-04-01 Thread james c.
work for me): NAME -- The Big Company I would appreciate any advice or pointers on where to look further. thanks in advance. James C.

[web2py] Re: eliminate 'column-header' titles from query response?

2011-04-01 Thread james c.
), there was a red 5 in the requirements Python 2.5x. It appears that many folks are now using 2.6x. I am going to upgrade and hope that addresses my issues. If anyone sees anything here or has more ideas I would appreciate the help or pointers to documentation. Thanks, James C. This is a very simple little

[web2py] Re: specifying controller

2011-03-29 Thread James C .
the page using the URL() function (http://web2py.com/book/default/chapter/04#URL).   Hope that helps.   Anthony   On Saturday, March 26, 2011 12:15:24 AM UTC-4, james c. wrote: Hi I'm new to web2py. I've made great progress in a few days with my project. SUMMARY: for every view I call, I

[web2py] specifying controller

2011-03-26 Thread james c.
Hi I'm new to web2py. I've made great progress in a few days with my project. SUMMARY: for every view I call, I get default.py as the controller. Even if I specify app/view/view or app/namediffernt/view I still get default.py as the controller. I appreciate any ideas or pointers on what to try.