Re: [web2py] Re: is it possible to make social site like facebook/linkedin by web2py ?

2019-06-26 Thread imran tube
http://www.web2py.com/appliances

http://www.web2pyslices.com/home
https://www.youtube.com/watch?v=IlfHqHAKCGc&list=PLU9qfJenUikEmVUZgQZj5RMa6GAuwq9c-


old script & tutorial, unfinished   project,not add cart to shop ,have any
full functional demo shop site or
scientific app tutorial ? but i find 1 physics app but not tut...btw,
thanks for  replay.

On Thu, Jun 27, 2019 at 9:17 AM Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> web2py is better.
>
> yes you can easily make a Facebook clone. This app for example was made
> with web2py (https://scuiz-server.appspot.com/init/static/index.html) and
> although it serves a different purpose, it has data structures and look
> very similar to facebook.
>
> This is the manual:
> http://web2py.com/book
> This is the demo:
> http://www.web2py.com/demo_admin/default/site
> This is a free account to try it:
> https://www.pythonanywhere.com/try-web2py/
>
> Which site is not working?
>
>
>
>
>
>
> On Wednesday, 26 June 2019 20:08:54 UTC-7, imran tube wrote:
>>
>> which  framework best for me django or web2py?
>> web2py all demo site not work or old or unfinished...
>>
>> why you dont update or make tutorial like django?
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/2e060081-74c4-43cc-815d-e293275000a3%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAP%3DDjN%2Bg3i7ZXfwFmiqYtr5q1Zzd0Ko56AMhWS29s1%3D8bc_wNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Hiding an element or text after login

2019-06-26 Thread mostwanted
I dont know if its because i added the {{else:}} statement but its working 
now, thank you @ Константин Комков

On Wednesday, June 26, 2019 at 8:48:59 PM UTC+2, Константин Комков wrote:
>
> Check that your conditions and pass quantity coincides. Becouse your code 
> correct work in my app. Also you can do like that:
> {{if auth.user:}}
> 
> {{else:}}
> PLEASE LOG IN FIRST TO BE ABLE TO GET THE 
> MENU & BUY
> {{pass}}
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/f91eca6b-387f-4782-a46e-789ca97eac9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? how we can import it?

2019-06-26 Thread Dave S


On Wednesday, June 26, 2019 at 8:08:54 PM UTC-7, imran tube wrote:
>
> web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? 
> how we can import it? 
>


See 
http://web2py.com/books/default/chapter/29/04/the-core#Third-party-modules>

If you're not running on a source version of web2py (that is, instead of 
doing "python web2py" you do "web2py.exe" or the Mac equivalent) then  you 
may want to study Nico's comments:
https://groups.google.com/d/msg/web2py/w6RseZ3LnGk/nIXr15YUBwAJ>

/dps

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2bee74ab-9e8a-4533-82ac-aa6c0af5b5e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? how we can import it?

2019-06-26 Thread 黄祥

>
> web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? 
>
yes, can import all of python library 

how we can import it? 
>
just import it either it in models, controllers, modules or views
*e.g. *
import numpy 

best regards,
stifan

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b947266b-795f-4ecd-9c77-f7f366113aa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Surname and name begins with a lower case letter after registration

2019-06-26 Thread Massimo Di Pierro
Do not know what code caused this (maybe you are using IS_LOWER?) but you 
edit this via appadmin interface.

On Wednesday, 26 June 2019 12:00:23 UTC-7, Константин Комков wrote:
>
> When I register like new user I write *K*onstantin *K*omkov, but after 
> registration I see *k*onstantin *k*omkov. How can I change it?
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/35605315-7e83-47c5-8984-88b4113fa316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: is it possible to make social site like facebook/linkedin by web2py ?

2019-06-26 Thread Massimo Di Pierro
web2py is better. 

yes you can easily make a Facebook clone. This app for example was made 
with web2py (https://scuiz-server.appspot.com/init/static/index.html) and 
although it serves a different purpose, it has data structures and look 
very similar to facebook.

This is the manual:
http://web2py.com/book
This is the demo:
http://www.web2py.com/demo_admin/default/site
This is a free account to try it:
https://www.pythonanywhere.com/try-web2py/

Which site is not working?






On Wednesday, 26 June 2019 20:08:54 UTC-7, imran tube wrote:
>
> which  framework best for me django or web2py?
> web2py all demo site not work or old or unfinished...
>
> why you dont update or make tutorial like django?
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2e060081-74c4-43cc-815d-e293275000a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? how we can import it?

2019-06-26 Thread imran tube
web2py can import mathplotlib,bekeh ,sympy,numpy or any python library? how 
we can import it? 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8921ddf5-7f47-4a9e-ba62-9cc8d0525fc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Write Inline query

2019-06-26 Thread Ruslan Gareev
Hi. This should be in documentation. I have spent 20 minuts to find this :)

среда, 3 декабря 2014 г., 17:06:05 UTC+5 пользователь Niphlod написал:
>
> not_in = db(db.table2.id>0)._select(db.table2.column2)
>
>
> query = db(~db.table1.column1.belongs(not_in)).select()
>
>
>
> On Tuesday, December 2, 2014 12:06:42 PM UTC+1, vijay@agnicient.com 
> wrote:
>>
>>
>> Hi All,
>>
>> I really need help with a query?
>>
>> this is my query:
>>
>>
>> Select * from Table1 where Column1 not in (Select Column2 from Table2);
>>
>> How to write Query in Web2py DAL Sql From Grid
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7ed3ccef-dcb1-4c74-9f95-ce82c73d90ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] How to display images on a blog app index view

2019-06-26 Thread Ikem Frank Uzoma
Good day guys,
I just started using web2py and it is awesome. Thank you for this frame work.

I am building a blog app, how do I display images on the view displaying all my 
blog content.

Every tutorial have seen is displaying images on the detail view but I want to 
display both on my list view and detail view.

Ps:Images have been uploaded and is in my upload folder

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3018fc08-665d-4695-b089-1092e87a9046%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] is it possible to make social site like facebook/linkedin by web2py ?

2019-06-26 Thread imran tube
which  framework best for me django or web2py?
web2py all demo site not work or old or unfinished...

why you dont update or make tutorial like django?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/703e2b8a-71be-4e49-8c40-863f2d7601c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Errors using web2py 2.18.5 , python3 and ssl

2019-06-26 Thread Dave S


On Wednesday, June 26, 2019 at 2:37:47 PM UTC-7, icodk wrote:
>
> The whole point for me  is to prepare my app to python3 that seems to be 
> the default on newer virtual machines on AWS and others.
> I am sure it can run with 2.18.5.
> If anybody on this forum managed to run web2py 2.18.5, python3 and Rocket 
> without errors, please let me know.
>
>
>

Actually, I think I have, using one of Nico's packages (not the latest, a 
couple months ago).  I didn't do any heavy testing, but requests seemed to 
work, it was the py3-n-my-code that was the biggest issue (especially print 
statements, which have to be commented, turned to print() calls, or tuned 
to logger() calls.

I've tried 2 different simple-minded apps, and only ran http:, not ess.

/dps


 

> On Wednesday, June 26, 2019 at 11:14:32 AM UTC+2, Dave S wrote:
>>
>>
>>
>> On Tuesday, June 25, 2019 at 2:35:12 PM UTC-7, icodk wrote:
>>>
>>> Appreciate your effort to help me, tahnks. I  use  Rocket as development 
>>> server, and it served me well with python2 and web2py up to 2.17.1.
>>> Production runs with nginx with ssl on aws. I thought  I will try to 
>>> upgrade my app to python3 and 2.18.5 and the easyest would be Rocket. I 
>>> will try it with http but it is not optimal for me because I have some IoT 
>>> devices that
>>> use https.
>>> Wished somebody could help because it is part of the core functionality 
>>> of web2py development (IMHO) and one of the things that make web2py 
>>> development so easy to get up and running. 
>>>
>>>
>> Perhaps you should test 2.18.5 with Python2.  It might be the Python3 
>> libraries that are the stumbling block. 
>>
>> /dps
>>
>>
>>  
>>
>>> On Tuesday, June 25, 2019 at 9:52:33 PM UTC+2, Dave S wrote:



 On Tuesday, June 25, 2019 at 10:04:39 AM UTC-7, icodk wrote:
>
> Now I tried both another Windows 10 machine and ubuntu with similar 
> errors
> As you can see bellow I used port 8000 on liniux because using port 
> 443 gave the following error:
>
> ERROR:Rocket.Errors.Port443:Socket 0.0.0.0:443 in use by other 
> process and it won't share.
> WARNING:Rocket.Errors.Port443:Listener started when not ready.
>
> However, netstat didn't revile any process using 443 and nc could 
> listen on this port 
> $ sudo nc -l  -p 443
>
>
> and receive connections from another machine (telnet 192.168.1.223 443)
>
>
>
 Well, I've used all my rounds.  I have run Rocket on port 443, but that 
 was with a 2.15.4 version on AWS Linux.   And when I renewed the 
 certificates, I got something messed up, couldn't figure it out, and so I 
 finished the move to Nginx.  I don't think Rocket has had many changes, 
 although the Python3 effort may have had to touch it some.

 I have not tried 443 on Windows (just 8000, 8080, 8800, ...), and I 
 have not tried the Nginx Windows port (I believe it is still marked 
 "experimental").

 As a relatively easy choice of alternate technology, you can do a real 
 simple Node.js server that echos your request.  Mercurial includes a 
 webserver (might not be stand-alone on Windows) and I believe it's in the 
 standard release package, just waiting to be turned on.

 Good luck!

 /dps


> The error from the server on linux
> $ python3 web2py.py -c cert/ca.crt -k cert/ca.key -a "password" -i 
> 192.168.1.223 -p 8000
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2019
> Version 2.18.5-stable+timestamp.2019.04.07.21.13.59
> Database drivers available: sqlite3, imaplib, pymysql
>
> please visit:
> https://192.168.1.223:8000/
> use "kill -SIGTERM 7818" to shutdown the web2py server
>
>
> Exception in thread Thread-2:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
> self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-3:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
> self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
> self.socket.settimeout(SOCKET_TIMEOUT)
> OSError: [Errno 9] Bad file descriptor
>
> Exception in thread Thread-4:
> Traceback (most recent call last):
>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
> self.run()
>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
> conn = Connection(*conn)
>   

[web2py] Re: Errors using web2py 2.18.5 , python3 and ssl

2019-06-26 Thread icodk
The whole point for me  is to prepare my app to python3 that seems to be 
the default on newer virtual machines on AWS and others.
I am sure it can run with 2.18.5.
If anybody on this forum managed to run web2py 2.18.5, python3 and Rocket 
without errors, please let me know.


On Wednesday, June 26, 2019 at 11:14:32 AM UTC+2, Dave S wrote:
>
>
>
> On Tuesday, June 25, 2019 at 2:35:12 PM UTC-7, icodk wrote:
>>
>> Appreciate your effort to help me, tahnks. I  use  Rocket as development 
>> server, and it served me well with python2 and web2py up to 2.17.1.
>> Production runs with nginx with ssl on aws. I thought  I will try to 
>> upgrade my app to python3 and 2.18.5 and the easyest would be Rocket. I 
>> will try it with http but it is not optimal for me because I have some IoT 
>> devices that
>> use https.
>> Wished somebody could help because it is part of the core functionality 
>> of web2py development (IMHO) and one of the things that make web2py 
>> development so easy to get up and running. 
>>
>>
> Perhaps you should test 2.18.5 with Python2.  It might be the Python3 
> libraries that are the stumbling block. 
>
> /dps
>
>
>  
>
>> On Tuesday, June 25, 2019 at 9:52:33 PM UTC+2, Dave S wrote:
>>>
>>>
>>>
>>> On Tuesday, June 25, 2019 at 10:04:39 AM UTC-7, icodk wrote:

 Now I tried both another Windows 10 machine and ubuntu with similar 
 errors
 As you can see bellow I used port 8000 on liniux because using port 443 
 gave the following error:

 ERROR:Rocket.Errors.Port443:Socket 0.0.0.0:443 in use by other process 
 and it won't share.
 WARNING:Rocket.Errors.Port443:Listener started when not ready.

 However, netstat didn't revile any process using 443 and nc could 
 listen on this port 
 $ sudo nc -l  -p 443


 and receive connections from another machine (telnet 192.168.1.223 443)



>>> Well, I've used all my rounds.  I have run Rocket on port 443, but that 
>>> was with a 2.15.4 version on AWS Linux.   And when I renewed the 
>>> certificates, I got something messed up, couldn't figure it out, and so I 
>>> finished the move to Nginx.  I don't think Rocket has had many changes, 
>>> although the Python3 effort may have had to touch it some.
>>>
>>> I have not tried 443 on Windows (just 8000, 8080, 8800, ...), and I have 
>>> not tried the Nginx Windows port (I believe it is still marked 
>>> "experimental").
>>>
>>> As a relatively easy choice of alternate technology, you can do a real 
>>> simple Node.js server that echos your request.  Mercurial includes a 
>>> webserver (might not be stand-alone on Windows) and I believe it's in the 
>>> standard release package, just waiting to be turned on.
>>>
>>> Good luck!
>>>
>>> /dps
>>>
>>>
 The error from the server on linux
 $ python3 web2py.py -c cert/ca.crt -k cert/ca.key -a "password" -i 
 192.168.1.223 -p 8000
 web2py Web Framework
 Created by Massimo Di Pierro, Copyright 2007-2019
 Version 2.18.5-stable+timestamp.2019.04.07.21.13.59
 Database drivers available: sqlite3, imaplib, pymysql

 please visit:
 https://192.168.1.223:8000/
 use "kill -SIGTERM 7818" to shutdown the web2py server


 Exception in thread Thread-2:
 Traceback (most recent call last):
   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
 self.run()
   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor

 Exception in thread Thread-3:
 Traceback (most recent call last):
   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
 self.run()
   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor

 Exception in thread Thread-4:
 Traceback (most recent call last):
   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
 self.run()
   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor

 Exception in thread Thread-5:
 Traceback (most recent call last):
   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
 self.run()
   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
 conn = Connection(*conn)
   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
 self.socket.settimeout(SOCKET_TIMEOUT)
 OSError: [Errno 9] Bad file descriptor

[web2py] Surname and name begins with a lower case letter after registration

2019-06-26 Thread Константин Комков
When I register like new user I write *K*onstantin *K*omkov, but after 
registration I see *k*onstantin *k*omkov. How can I change it?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/349179fa-a124-4a71-b53e-01626f295427%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Hiding an element or text after login

2019-06-26 Thread Константин Комков
Check that your conditions and pass quantity coincides. Becouse your code 
correct work in my app.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2b866459-d38d-4143-b957-af7fc83f597f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Hiding an element or text after login

2019-06-26 Thread mostwanted
I want to hide a span containing text after logging in, i tried this below 
but it aint working:
*CODE:*
{{if auth.user:}}

$(document).ready(function(){
$('.textContainer').hide();
});

{{pass}}

PLEASE LOG IN FIRST TO BE ABLE TO GET THE MENU 
& BUY

 What can i do to achieve my task?

Regards;

Mostwanted

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8c2d059c-a160-4208-a75a-515f5eca5633%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Errors using web2py 2.18.5 , python3 and ssl

2019-06-26 Thread Dave S


On Tuesday, June 25, 2019 at 2:35:12 PM UTC-7, icodk wrote:
>
> Appreciate your effort to help me, tahnks. I  use  Rocket as development 
> server, and it served me well with python2 and web2py up to 2.17.1.
> Production runs with nginx with ssl on aws. I thought  I will try to 
> upgrade my app to python3 and 2.18.5 and the easyest would be Rocket. I 
> will try it with http but it is not optimal for me because I have some IoT 
> devices that
> use https.
> Wished somebody could help because it is part of the core functionality of 
> web2py development (IMHO) and one of the things that make web2py 
> development so easy to get up and running. 
>
>
Perhaps you should test 2.18.5 with Python2.  It might be the Python3 
libraries that are the stumbling block. 

/dps


 

> On Tuesday, June 25, 2019 at 9:52:33 PM UTC+2, Dave S wrote:
>>
>>
>>
>> On Tuesday, June 25, 2019 at 10:04:39 AM UTC-7, icodk wrote:
>>>
>>> Now I tried both another Windows 10 machine and ubuntu with similar 
>>> errors
>>> As you can see bellow I used port 8000 on liniux because using port 443 
>>> gave the following error:
>>>
>>> ERROR:Rocket.Errors.Port443:Socket 0.0.0.0:443 in use by other process 
>>> and it won't share.
>>> WARNING:Rocket.Errors.Port443:Listener started when not ready.
>>>
>>> However, netstat didn't revile any process using 443 and nc could listen 
>>> on this port 
>>> $ sudo nc -l  -p 443
>>>
>>>
>>> and receive connections from another machine (telnet 192.168.1.223 443)
>>>
>>>
>>>
>> Well, I've used all my rounds.  I have run Rocket on port 443, but that 
>> was with a 2.15.4 version on AWS Linux.   And when I renewed the 
>> certificates, I got something messed up, couldn't figure it out, and so I 
>> finished the move to Nginx.  I don't think Rocket has had many changes, 
>> although the Python3 effort may have had to touch it some.
>>
>> I have not tried 443 on Windows (just 8000, 8080, 8800, ...), and I have 
>> not tried the Nginx Windows port (I believe it is still marked 
>> "experimental").
>>
>> As a relatively easy choice of alternate technology, you can do a real 
>> simple Node.js server that echos your request.  Mercurial includes a 
>> webserver (might not be stand-alone on Windows) and I believe it's in the 
>> standard release package, just waiting to be turned on.
>>
>> Good luck!
>>
>> /dps
>>
>>
>>> The error from the server on linux
>>> $ python3 web2py.py -c cert/ca.crt -k cert/ca.key -a "password" -i 
>>> 192.168.1.223 -p 8000
>>> web2py Web Framework
>>> Created by Massimo Di Pierro, Copyright 2007-2019
>>> Version 2.18.5-stable+timestamp.2019.04.07.21.13.59
>>> Database drivers available: sqlite3, imaplib, pymysql
>>>
>>> please visit:
>>> https://192.168.1.223:8000/
>>> use "kill -SIGTERM 7818" to shutdown the web2py server
>>>
>>>
>>> Exception in thread Thread-2:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>>> self.run()
>>>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>> Exception in thread Thread-3:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>>> self.run()
>>>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>> Exception in thread Thread-4:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>>> self.run()
>>>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>> Exception in thread Thread-5:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>>> self.run()
>>>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>> Exception in thread Thread-6:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
>>> self.run()
>>>   File "/home/ico/web2py/gluon/rocket.py", line 1268, in run
>>> conn = Connection(*conn)
>>>   File "/home/ico/web2py/gluon/rocket.py", line 105, in __init__
>>> self.socket.settimeout(SOCKET_TIMEOUT)
>>> OSError: [Errno 9] Bad file descriptor
>>>
>>> Exception in thread Thread-7:
>>> Tr