[web2py] Re: web2py with python 2.7 and web2py running on python 3

2020-04-25 Thread Massimo Di Pierro
Can you please try these:

https://web2py.com/examples/static/nightly/web2py_win_py27.zip
https://web2py.com/examples/static/nightly/web2py_win_py37.zip
https://web2py.com/examples/static/nightly/web2py_osx_py27.zip
https://web2py.com/examples/static/nightly/web2py_osx_py37.zip

On Sunday, 29 March 2020 23:33:40 UTC-7, Jobin Antony wrote:
>
> c:\web2py>c:\python27\python.exe web2py.exe
>   File "web2py.exe", line 1
> SyntaxError: Non-ASCII character '\x90' in file web2py.exe on line 1, but 
> no encoding declared; see http://www.python.org/peps/pep-0263.html for 
> details
>
> c:\web2py>
>
> On Thursday, March 26, 2020 at 10:18:51 AM UTC+5:30, Dave S wrote:
>>
>>
>>
>> On Saturday, March 21, 2020 at 1:59:59 PM UTC-7, Andrea Fae' wrote:
>>>
>>> I have a windows 10 PC.
>>> I installed c:\python27 and c:\python3 and they are working. I can 
>>> choose.
>>>
>>> But if I try to start web2py it happens this error:
>>>
>>> c:\Python3>python.exe c:\web2py\web2py.py
>>> Traceback (most recent call last):
>>>   File "c:\web2py\web2py.py", line 21, in 
>>> import gluon.widget
>>>   File "c:\web2py\gluon\__init__.py", line 37, in 
>>> from .globals import current
>>>   File "c:\web2py\gluon\globals.py", line 24, in 
>>> from gluon.serializers import json, custom_json
>>>   File "c:\web2py\gluon\serializers.py", line 10, in 
>>> from gluon.languages import lazyT
>>>   File "c:\web2py\gluon\languages.py", line 19, in 
>>> from cgi import escape
>>> ImportError: cannot import name 'escape' from 'cgi' 
>>> (c:\Python3\lib\cgi.py)
>>>
>>> I found that changing "from cgi import escape" to "from html import 
>>> escape" it start but I don't knoy why.
>>>
>>> Nevertheless If I try to start an app built from Python27 I have this 
>>> error:
>>>
>>>  Failure to connect, tried 5 times: 
>>> Traceback (most recent call last): File 
>>> "C:\web2py\gluon\packages\dal\pydal\base.py", line 454, in __init__ 
>>> self._adapter = adapter(**kwargs) File 
>>> "C:\web2py\gluon\packages\dal\pydal\adapters\__init__.py", line 40, in 
>>> __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File 
>>> "C:\web2py\gluon\packages\dal\pydal\adapters\base.py", line 368, in 
>>> __init__ super(SQLAdapter, self).__init__(*args, **kwargs) File 
>>> "C:\web2py\gluon\packages\dal\pydal\adapters\base.py", line 52, in __init__ 
>>> self.reconnect() File "C:\web2py\gluon\packages\dal\pydal\connection.py", 
>>> line 172, in reconnect self.connection = self.connector() File 
>>> "C:\web2py\gluon\packages\dal\pydal\adapters\mysql.py", line 52, in 
>>> connector return self.driver.connect(**self.driver_args) File 
>>> "C:\web2py\gluon\contrib\pymysql\__init__.py", line 90, in Connect return 
>>> Connection(*args, **kwargs) File 
>>> "C:\web2py\gluon\contrib\pymysql\connections.py", line 688, in __init__ 
>>> self.connect() File "C:\web2py\gluon\contrib\pymysql\connections.py", line 
>>> 905, in connect self._get_server_information() File 
>>> "C:\web2py\gluon\contrib\pymysql\connections.py", line 1231, in 
>>> _get_server_information self.server_charset = charset_by_id(lang).name File 
>>> "C:\web2py\gluon\contrib\pymysql\charset.py", line 38, in by_id return 
>>> self._by_id[id] KeyError: 255
>>>
>>> If I start the same app with web2py on python 2.7 changing back to "from 
>>> cgi import escape" and it's working.
>>> Maybe this is a problem regarding foreign-keys, I had one time in the 
>>> past but really... I don't remember how to fix.
>>>
>>> Thank you
>>>
>>>
>> Make sure you have separate directories for running under python 2.7 and  
>> python 3.x.
>> Files get compiled, and the .pyc is not portable between the two versions.
>>
>> /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/0df3101b-44e3-4752-b2f2-5659095ac701%40googlegroups.com.


[web2py] Update on web2py binaries

2020-04-25 Thread Massimo Di Pierro
First of all thanks to Nico Zanferrari for all his work on creating new 
binaries. It took me a while but I have now incorporated them into my 
deployment process. You can find them here:

https://web2py.com/examples/static/nightly/web2py_win_py27.zip
https://web2py.com/examples/static/nightly/web2py_win_py37.zip
https://web2py.com/examples/static/nightly/web2py_osx_py27.zip
https://web2py.com/examples/static/nightly/web2py_osx_py37.zip

There are still not linked but please check them out. If they work for you, 
I will link them as official binaries.
For more info on the build process

https://github.com/nicozanf/web2py-pyinstaller

I then have have a process on my VM that unpacks and repackages them when a 
new web2py version is released. That is why I need help in testing them. 
Making sure the re-packaging did not break anything.

Thanks.

Massimo


-- 
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/70fc311f-6324-47ad-84b1-cbc3d025092f%40googlegroups.com.


[web2py] Re: Prevent submit of empty value

2020-04-25 Thread Maurice Waka
I opted to use this option/iteration instead

{{=BEAUTIFY(request.vars.message if request.vars.message else 'loggin 
in...')}}

Kind of works for me

On Saturday, April 25, 2020 at 8:14:05 AM UTC+3, Maurice Waka wrote:
>
> Hello.
> I have this in one of my pages
>
> {{=BEAUTIFY(request.vars)}}
>
> Every time there is a reload esp. using LOAD () Helper I get a blank or 
> none submit value on the page.
> How can I prevent this on the html side?
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8b6bda9d-277b-465c-8fa2-57e0db493658%40googlegroups.com.


[web2py] Mobile menu for login not active

2020-04-25 Thread Maurice Waka
Hello 
I know guys have busy schedules but please help here

On my mobile app, I have trouble logging out when using the menu option 
since the logout, profile, password options are inactive.
How can I activate them or the sub-menus? Only the highlighted menu is 
active
See attached.
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/fd4a4078-8d1a-4052-bb74-972f0af2e290%40googlegroups.com.


[web2py] Re: many users logged in, at the same time.

2020-04-25 Thread Dave S


On Thursday, April 9, 2020 at 2:43:56 PM UTC-7, Dave S wrote:
>
>
>
> On Thursday, April 9, 2020 at 4:10:21 AM UTC-7, Wep2buy wrote:
>>
>> Hi every body:
>>
>> how can i test an app (like chat) from my desktop
>>
>> many users logged in, at the same time.
>>
>> I mean that i don't want to login and the logout , for each user.
>>
>> Any help is highly appreciated.
>>
>
> There are websites for that sort of testing ... they have a farm of 
> clients that you script.  Some have been mentioned here in the past, and I 
> probably still have a book mark for one done by the blogger who uses "cat" 
> in his blog name (big help, I know).
>
>
Found it.  The client farm is "browserling".com;the blog is at catonmat.net.
 

> You could also maybe do something with curl in a script.
>
> I see windows now includes curl (the command line version) as a system 
tool.

/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/d5632c49-2c87-476d-9bb5-d5b8aa82a16e%40googlegroups.com.


[web2py] web2py website development contractor wanted

2020-04-25 Thread Richard Gordon
Hello web2py users:

Is anyone out there ready, willing and able to contract-program for me to 
put up a new web2py-based shopping site for my product? Something simple 
and clean with product photos, shopping cart, basic inventory control, 
links to Paypal or other payment site, and some static pages like an FAQ 
page, About page, and links to forum and blog pages. Social network tie-ins 
to Twitter and Facebook.

If you are interested, reach out to me here or pm me.

Thanks.

-- 
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/4bf15631-4396-4b1e-9ae5-407d9ff6a7e7%40googlegroups.com.