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.

-Jim

On Saturday, August 5, 2017 at 10:54:02 PM UTC-5, Samuel Gosling wrote:
>
> Yes that works! Thank you! 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, because I want this form to show up in index.html that's 
> where it won't load. 
>
> 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():
>> response.view = 'default/order.html'
>> order = SQLFORM(db.order,
>>submit_button='Buy!',
>>buttons=['submit'],
>> formstyle='table3cols')
>> if order.process(keepvalues=True).accepted:
>> session.flash = 'Order submitted.'
>> redirect(URL('payment'))
>> elif order.errors:
>> session.flash = 'Error.'
>> else:
>> session.flash = 'Please enter a wallet address.'
>> return dict(order=order)
>>
>>
>> order.html should be:
>>
>> {{extend 'layout.html'}}
>> {{=order}}
>>
>>
>> Tested on my system and works as expected.
>>
>> -Jim
>>
>>
>> On Friday, August 4, 2017 at 10:51:30 AM UTC-5, Samuel Gosling wrote:
>>>
>>> I declared that that didn't work unfortunately,  if you read my text 
>>> properly. Appreciate the suggestions nonetheless! 
>>>
>>> On Friday, August 4, 2017 at 3:52:56 PM UTC+1, Áureo Dias Neto wrote:

 Your 'form' is in the variable order, here:  order = 
 SQLFORM(db.order,...

 use {{=order}} in the view

>>>

-- 
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" 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://groups.google.com/d/optout.


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():
> response.view = 'default/order.html'
> order = SQLFORM(db.order,
>submit_button='Buy!',
>buttons=['submit'],
> formstyle='table3cols')
> if order.process(keepvalues=True).accepted:
> session.flash = 'Order submitted.'
> redirect(URL('payment'))
> elif order.errors:
> session.flash = 'Error.'
> else:
> session.flash = 'Please enter a wallet address.'
> return dict(order=order)
>
>
> order.html should be:
>
> {{extend 'layout.html'}}
> {{=order}}
>
>
> Tested on my system and works as expected.
>
> -Jim
>
>
> On Friday, August 4, 2017 at 10:51:30 AM UTC-5, Samuel Gosling wrote:
>>
>> I declared that that didn't work unfortunately,  if you read my text 
>> properly. Appreciate the suggestions nonetheless! 
>>
>> On Friday, August 4, 2017 at 3:52:56 PM UTC+1, Áureo Dias Neto wrote:
>>>
>>> Your 'form' is in the variable order, here:  order = 
>>> SQLFORM(db.order,...
>>>
>>> use {{=order}} in the view
>>>
>>

-- 
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" 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://groups.google.com/d/optout.


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 the usability of the app was totally transformed.  Once loaded,  which 
is also very fast,  the table responds instantly and searches and sorting 
are brilliant.  I just use a SQLFORM to add/edit records.  My staff almost 
cheered when they saw the new version,  and that underlines how frustrated 
they must have been with the old one. 

I know this may sound too critical of the grid,  as some obviously think it 
only exists for prototyping.  However,  we also need this kind of thing to 
work properly in production too.  IMO if a good usable method isn't 
available in web2py,  we should at least have an 'official' recipe using 
another recommended component. 

Best regards.

-- 
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" 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://groups.google.com/d/optout.


[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 "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 
> (generated by the validator) as well as the "represent" attribute are 
> controlled by the "format" argument in the definition of the referenced 
> table, so the simplest approach is to change that:
>
> db.define_table('customer',
> ...,
> format='%(name)s, %(address)s, %(city)s')
>
> Alternatively, you can explicitly set your own validator for the reference 
> field:
>
> Field('customer', 'reference customer',
>   requires=IS_IN_DB(db, 'customer.id', '%(name)s, %(address)s, 
> %(city)s'))
>
> Anthony
>
> On Saturday, August 5, 2017 at 2:45:49 PM UTC-4, Vic Ding wrote:
>>
>> 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(), 
>> label=T("Company name")),
>> Field('address1', 'string', requires=IS_NOT_EMPTY()),
>> Field('city', 'string'),
>> Field('post_code', 'string', label=T("Post code")),
>> Field('country_id', 'reference country_list', 
>> requires=IS_EMPTY_OR(IS_IN_DB(db, 'country_list.id', '%(name)s %(code)s')), 
>> label=T("Country")),
>>
>>
>> db.define_table('sales_order',
>> auth.signature,
>> Field('ordernumber', 'string', label=T('Your order #'),
>>   unique=True, length=250),
>> Field('customer', 'reference customer', label=T('Customer')),
>>
>>
>> format='%(ordernumber)s'
>> )
>>
>>
>> On the SQLFORM editing the sales order, I would like to show more info, 
>> like customer name + address1 + city, rather than just the name. I tried 
>> This is the SQLFORM
>>
>> db.sales_order.customer.represent = 'change representation'
>>
>> form = SQLFORM(db.sales_order, so_id, _name='form1')
>>
>>
>> As you can see, I changed the represent of customer filed to a static 
>> string. But even this won't work. the editing form is still show the name 
>> of the customer. Can someone hint me where I did it wrongly?
>> Thanks!
>> Cheers,
>> Vic
>>
>

-- 
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" 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://groups.google.com/d/optout.


[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 
(generated by the validator) as well as the "represent" attribute are 
controlled by the "format" argument in the definition of the referenced 
table, so the simplest approach is to change that:

db.define_table('customer',
...,
format='%(name)s, %(address)s, %(city)s')

Alternatively, you can explicitly set your own validator for the reference 
field:

Field('customer', 'reference customer',
  requires=IS_IN_DB(db, 'customer.id', '%(name)s, %(address)s, 
%(city)s'))

Anthony

On Saturday, August 5, 2017 at 2:45:49 PM UTC-4, Vic Ding wrote:
>
> 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(), 
> label=T("Company name")),
> Field('address1', 'string', requires=IS_NOT_EMPTY()),
> Field('city', 'string'),
> Field('post_code', 'string', label=T("Post code")),
> Field('country_id', 'reference country_list', 
> requires=IS_EMPTY_OR(IS_IN_DB(db, 'country_list.id', '%(name)s %(code)s')), 
> label=T("Country")),
>
>
> db.define_table('sales_order',
> auth.signature,
> Field('ordernumber', 'string', label=T('Your order #'),
>   unique=True, length=250),
> Field('customer', 'reference customer', label=T('Customer')),
>
>
> format='%(ordernumber)s'
> )
>
>
> On the SQLFORM editing the sales order, I would like to show more info, 
> like customer name + address1 + city, rather than just the name. I tried 
> This is the SQLFORM
>
> db.sales_order.customer.represent = 'change representation'
>
> form = SQLFORM(db.sales_order, so_id, _name='form1')
>
>
> As you can see, I changed the represent of customer filed to a static 
> string. But even this won't work. the editing form is still show the name 
> of the customer. Can someone hint me where I did it wrongly?
> Thanks!
> Cheers,
> Vic
>

-- 
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" 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://groups.google.com/d/optout.


[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(), 
label=T("Company name")),
Field('address1', 'string', requires=IS_NOT_EMPTY()),
Field('city', 'string'),
Field('post_code', 'string', label=T("Post code")),
Field('country_id', 'reference country_list', 
requires=IS_EMPTY_OR(IS_IN_DB(db, 'country_list.id', '%(name)s %(code)s')), 
label=T("Country")),


db.define_table('sales_order',
auth.signature,
Field('ordernumber', 'string', label=T('Your order #'),
  unique=True, length=250),
Field('customer', 'reference customer', label=T('Customer')),


format='%(ordernumber)s'
)


On the SQLFORM editing the sales order, I would like to show more info, 
like customer name + address1 + city, rather than just the name. I tried 
This is the SQLFORM

db.sales_order.customer.represent = 'change representation'

form = SQLFORM(db.sales_order, so_id, _name='form1')


As you can see, I changed the represent of customer filed to a static 
string. But even this won't work. the editing form is still show the name 
of the customer. Can someone hint me where I did it wrongly?
Thanks!
Cheers,
Vic

-- 
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" 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://groups.google.com/d/optout.


[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", "/home/web2py/web2py.py", "-i 0.0.0.0", "-p 8000", "-a 
admin"]


web2py thinks (sees) the admin password being ' admin' (space in front of 
the password).

What *does* work: 

EXPOSE 8000
CMD ["/usr/bin/python", "/home/web2py/web2py.py", "-i 0.0.0.0", "-p 8000", 
"-a","admin"]



If acceptable, this problem could also be solved by changing save_password 
in gluon/main.py:

else:
# use provided password
cpassword = CRYPT()(password.strip(' '))[0]



Best regards,

Jaap

-- 
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" 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://groups.google.com/d/optout.


[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", line 28, in 
import ssl
  File "C:\Python27\lib\ssl.py", line 126, in 
from _ssl import HAS_SNI, HAS_ECDH, HAS_NPN, HAS_ALPN
ImportError: cannot import name HAS_ALPN


sábado, 5 de Agosto de 2017 às 13:07:23 UTC+1, José Leite escreveu:
>
> 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
> # TODO - This part is still very experimental.
> # from .filelike import FileLikeSocket
>
> sábado, 5 de Agosto de 2017 às 13:06:07 UTC+1, José Leite escreveu:
>>
>> 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
 (A correr em Rocket 1.2.6, Python 2.7.13)

>>>
>>> Just to be way too into verification, can you open a regular python 
>>> shell, and do "import ssl" and "ssl.RAND_status()" ?
>>>
>>> In the meantime, someone who actually knows something may be along
>>>
>>> /dps
>>>
>>>

 sexta-feira, 4 de Agosto de 2017 às 23:35:11 UTC+1, José Leite escreveu:
>
> Python 2.7.11 worked fine before the web2py upgrade. But I even tried 
> to update the version to the new 2.7.13 (all 32bit - the machine is 64).
>
> sexta-feira, 4 de Agosto de 2017 às 23:27:03 UTC+1, José Leite 
> escreveu:
>>
>> It doesn't print that information but the admin console says its 
>> Python 2.7.11 and after my upgrade 2.7.13
>>
>> sexta-feira, 4 de Agosto de 2017 às 22:57:53 UTC+1, Dave S escreveu:
>>>
>>>
>>>
>>> On Friday, August 4, 2017 at 2:48:19 PM UTC-7, José Leite wrote:

 Sorry I meant from source not .exe


>>> When you start web2py, it will print not only its own version but 
>>> the version of python it is using.  Can you confirm that information 
>>> here?
>>>
>>> /dps
>>>
>>>
 sexta-feira, 4 de Agosto de 2017 às 22:47:07 UTC+1, José Leite 
 escreveu:
>
> Yes I am running on a windows machine and run web2py from the .exe 
> file not from source.
>
> The command line is:
>
> C:\web2py\web2py.py -a admin -i 192.168.8.100 -p 443 -c server.crt 
> -k server.key -Y
>
> but it doesn't start the https version of the site and all 
> https://* calls to externeal services are not working either.
>
> No SSL from the moment I upgraded to web2py 2.15.2.
>
> sexta-feira, 4 de Agosto de 2017 às 22:20:24 UTC+1, Dave S 
> escreveu:
>>
>>
>>
>> On Friday, August 4, 2017 at 8:54:52 AM UTC-7, José Leite wrote:
>>>
>>> Well Leonel,
>>>
>>> before I upgraded to web2py 2.15.2 Python was working fine with 
>>> ssl even locally.
>>> I have python 2.7.11 exactly because I needed the newest ssl 
>>> protocols to work with PayPal.
>>> Strange...!?!?!?!!?
>>>
>>
>> If there was any version information shown with that , you didn't 
>> paste it here.  My weak translation of the error message suggests 
>> you're 
>> running on a Windows machine; are you running the exe file or from 
>> source?  
>> (The exe uses it's own Python.  I would have expected it to have SSL 
>> support, but I don't test that currently, so can't vouch for it  
>> Windows is 
>> my home web2py development environment.)
>>
>> /dps
>>
>>
>>
>>> sexta-feira, 4 de Agosto de 2017 às 16:44:20 UTC+1, Leonel 
>>> Câmara escreveu:

 You are running a python version that was not compiled with ssl 
 support. Since this is a development environment you could simply 
 not 
 demand https if the request is_local.  

>>>

-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 

[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
# TODO - This part is still very experimental.
# from .filelike import FileLikeSocket

sábado, 5 de Agosto de 2017 às 13:06:07 UTC+1, José Leite escreveu:
>
> 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
>>> (A correr em Rocket 1.2.6, Python 2.7.13)
>>>
>>
>> Just to be way too into verification, can you open a regular python 
>> shell, and do "import ssl" and "ssl.RAND_status()" ?
>>
>> In the meantime, someone who actually knows something may be along
>>
>> /dps
>>
>>
>>>
>>> sexta-feira, 4 de Agosto de 2017 às 23:35:11 UTC+1, José Leite escreveu:

 Python 2.7.11 worked fine before the web2py upgrade. But I even tried 
 to update the version to the new 2.7.13 (all 32bit - the machine is 64).

 sexta-feira, 4 de Agosto de 2017 às 23:27:03 UTC+1, José Leite escreveu:
>
> It doesn't print that information but the admin console says its 
> Python 2.7.11 and after my upgrade 2.7.13
>
> sexta-feira, 4 de Agosto de 2017 às 22:57:53 UTC+1, Dave S escreveu:
>>
>>
>>
>> On Friday, August 4, 2017 at 2:48:19 PM UTC-7, José Leite wrote:
>>>
>>> Sorry I meant from source not .exe
>>>
>>>
>> When you start web2py, it will print not only its own version but the 
>> version of python it is using.  Can you confirm that information here?
>>
>> /dps
>>
>>
>>> sexta-feira, 4 de Agosto de 2017 às 22:47:07 UTC+1, José Leite 
>>> escreveu:

 Yes I am running on a windows machine and run web2py from the .exe 
 file not from source.

 The command line is:

 C:\web2py\web2py.py -a admin -i 192.168.8.100 -p 443 -c server.crt 
 -k server.key -Y

 but it doesn't start the https version of the site and all 
 https://* calls to externeal services are not working either.

 No SSL from the moment I upgraded to web2py 2.15.2.

 sexta-feira, 4 de Agosto de 2017 às 22:20:24 UTC+1, Dave S escreveu:
>
>
>
> On Friday, August 4, 2017 at 8:54:52 AM UTC-7, José Leite wrote:
>>
>> Well Leonel,
>>
>> before I upgraded to web2py 2.15.2 Python was working fine with 
>> ssl even locally.
>> I have python 2.7.11 exactly because I needed the newest ssl 
>> protocols to work with PayPal.
>> Strange...!?!?!?!!?
>>
>
> If there was any version information shown with that , you didn't 
> paste it here.  My weak translation of the error message suggests 
> you're 
> running on a Windows machine; are you running the exe file or from 
> source?  
> (The exe uses it's own Python.  I would have expected it to have SSL 
> support, but I don't test that currently, so can't vouch for it  
> Windows is 
> my home web2py development environment.)
>
> /dps
>
>
>
>> sexta-feira, 4 de Agosto de 2017 às 16:44:20 UTC+1, Leonel Câmara 
>> escreveu:
>>>
>>> You are running a python version that was not compiled with ssl 
>>> support. Since this is a development environment you could simply 
>>> not 
>>> demand https if the request is_local.  
>>>
>>

-- 
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" 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://groups.google.com/d/optout.


[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
>> (A correr em Rocket 1.2.6, Python 2.7.13)
>>
>
> Just to be way too into verification, can you open a regular python shell, 
> and do "import ssl" and "ssl.RAND_status()" ?
>
> In the meantime, someone who actually knows something may be along
>
> /dps
>
>
>>
>> sexta-feira, 4 de Agosto de 2017 às 23:35:11 UTC+1, José Leite escreveu:
>>>
>>> Python 2.7.11 worked fine before the web2py upgrade. But I even tried to 
>>> update the version to the new 2.7.13 (all 32bit - the machine is 64).
>>>
>>> sexta-feira, 4 de Agosto de 2017 às 23:27:03 UTC+1, José Leite escreveu:

 It doesn't print that information but the admin console says its Python 
 2.7.11 and after my upgrade 2.7.13

 sexta-feira, 4 de Agosto de 2017 às 22:57:53 UTC+1, Dave S escreveu:
>
>
>
> On Friday, August 4, 2017 at 2:48:19 PM UTC-7, José Leite wrote:
>>
>> Sorry I meant from source not .exe
>>
>>
> When you start web2py, it will print not only its own version but the 
> version of python it is using.  Can you confirm that information here?
>
> /dps
>
>
>> sexta-feira, 4 de Agosto de 2017 às 22:47:07 UTC+1, José Leite 
>> escreveu:
>>>
>>> Yes I am running on a windows machine and run web2py from the .exe 
>>> file not from source.
>>>
>>> The command line is:
>>>
>>> C:\web2py\web2py.py -a admin -i 192.168.8.100 -p 443 -c server.crt 
>>> -k server.key -Y
>>>
>>> but it doesn't start the https version of the site and all https://* 
>>> calls to externeal services are not working either.
>>>
>>> No SSL from the moment I upgraded to web2py 2.15.2.
>>>
>>> sexta-feira, 4 de Agosto de 2017 às 22:20:24 UTC+1, Dave S escreveu:



 On Friday, August 4, 2017 at 8:54:52 AM UTC-7, José Leite wrote:
>
> Well Leonel,
>
> before I upgraded to web2py 2.15.2 Python was working fine with 
> ssl even locally.
> I have python 2.7.11 exactly because I needed the newest ssl 
> protocols to work with PayPal.
> Strange...!?!?!?!!?
>

 If there was any version information shown with that , you didn't 
 paste it here.  My weak translation of the error message suggests 
 you're 
 running on a Windows machine; are you running the exe file or from 
 source?  
 (The exe uses it's own Python.  I would have expected it to have SSL 
 support, but I don't test that currently, so can't vouch for it  
 Windows is 
 my home web2py development environment.)

 /dps



> sexta-feira, 4 de Agosto de 2017 às 16:44:20 UTC+1, Leonel Câmara 
> escreveu:
>>
>> You are running a python version that was not compiled with ssl 
>> support. Since this is a development environment you could simply 
>> not 
>> demand https if the request is_local.  
>>
>

-- 
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" 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://groups.google.com/d/optout.