Re: [web2py] Can't load form using {{=form}} only by {{=LOAD('default','def')}} or submit the form.

2017-08-05 Thread Jim S
Then I think I completely misunderstood your problem and what your goal is. What is it you're trying to do? Where is your present template? If you mean that you want the template file named index.html, then you can simply rename my order.html file and change the name in the controller code.

Re: [web2py] Can't load form using {{=form}} only by {{=LOAD('default','def')}} or submit the form.

2017-08-05 Thread Samuel Gosling
Yes that works , but it only focuses on my form not my template. How can i contain it as a form on my present template as I am doing with the LOAD function. On Friday, August 4, 2017 at 5:15:17 PM UTC+1, Jim S wrote: > > Your db.py is fine. > > default.py should contain: > def order(): >

Re: [web2py] Datatables Query String Parsing

2017-08-05 Thread villas
Thanks Massimo and I will be very interested to try a Vue.js example. In the meantime, I have experimented with Datatables some more. I wrote my own sql and used executesql and then fed the entire resultset all at once into Datatables. My rows are in the hundreds rather than thousands, but

[web2py] Re: change represent of referenced filed in SQLFORM update

2017-08-05 Thread Vic Ding
Thanks for the help, it works. However, this alters the table definition. 1) Is there a way that the value is only set temporarily ? 2) When the address field is empty, can I use other fields , like city, country and etc? On Saturday, August 5, 2017 at 9:10:25 PM UTC+2, Anthony wrote: > > The

[web2py] Re: change represent of referenced filed in SQLFORM update

2017-08-05 Thread Anthony
The "represent" attribute controls the display of read-only data in grids and read-only forms (or read-only fields). The values shown in the select element in a form are controlled by the validator, which defaults to IS_IN_DB for a reference field. The values shown in the select element

[web2py] change represent of referenced filed in SQLFORM update

2017-08-05 Thread Vic Ding
Hi all, I have been hitting the wall for probably a simple problem. I have 2 tables sales order and customer, db.sales_order.customer reference customer table. db.define_table('customer', auth.signature, Field('name', 'string', requires=IS_NOT_EMPTY(),

[web2py] admin password in web2py docker not correct

2017-08-05 Thread JaapP
Hi, Hope to save someone with the same problem some time: i encountered a problem running web2py in a docker; the admin password as set from the start command was not recognised when trying to log into the admin interface. Wrong dockerfile snippet: EXPOSE 8000 CMD ["/usr/bin/python",

[web2py] Re: Unable to start web2py 2.15.2 with ssl

2017-08-05 Thread José Leite
If I import ssl directly in the main.py module I get the following error: Traceback (most recent call last): File "C:\web2py\web2py.py", line 21, in import gluon.widget File "C:\web2py\gluon\widget.py", line 26, in from gluon import main, newcron File "C:\web2py\gluon\main.py",

[web2py] Re: Unable to start web2py 2.15.2 with ssl

2017-08-05 Thread José Leite
Actual Rocket code: # Import System Modules import sys import time import socket try: import ssl has_ssl = True except ImportError: has_ssl = False # Import Package Modules # package imports removed in monolithic build #

[web2py] Re: Unable to start web2py 2.15.2 with ssl

2017-08-05 Thread José Leite
I did as you asked and in a shell did import ssl ssl.RAND_status() is 1L sábado, 5 de Agosto de 2017 às 01:15:21 UTC+1, Dave S escreveu: > > > > On Friday, August 4, 2017 at 3:57:29 PM UTC-7, José Leite wrote: >> >> Admin console information: >> >> 2.15.2-stable+timestamp.2017.07.19.12.18.41 >>