[web2py] Re: please help testing web3py

2019-07-28 Thread 'tomt' via web2py-users
I installed py4web on centos 7 in a virtual python environment and it works 
fine.

http://127.0.0.1:8000/_dashboard works as advertised, however 
http://localhost:8000/_dashboard doesn't.
When using localhost, the dashboard page comes up, but it won't display any 
of the installed applications or any tickets.

I followed the documentation to add a session counter.  The code works when 
using http://127.0.0.1/myapp but not when using http://localhost/myapp.  
(localhost is defined as 127.0.0.1 on my system) Most of my tests  work 
with http://localhost/myapp/* but some don't.  I'm not sure if this is a 
problem or not.

- Tom

On Saturday, July 6, 2019 at 9:57:26 PM UTC-6, Massimo Di Pierro wrote:
>
> Let's test the dashboard today:
>
> # download web2py from pypi
>
> python3 -m pip install web3py
>
> # start it:
>
> web3py-start myapps
>
> (pick a one time password  and answer yes when it wants to create 
> something, it will create myapps folder and a temp .web3py-service folder)
>
> # open browser
>
> http://127.0.0.1:8000/_dashboard
>
> Now create a new app by cloning scaffold
>
> Does it work?
> How does it flow?
> What explanations should be necessary?
> Can you write a brief documentation of your experience for other users?
>
>
>

-- 
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/0a90e92e-24b5-4caa-84a9-d842ff888290%40googlegroups.com.


Re: [web2py] Re: Web2py binaries

2019-07-28 Thread Nico Zanferrari
Hi,

good news: a simple workaround has been developed for the MacOs APP bundle
problem with PyInstaller (see
https://github.com/pyinstaller/pyinstaller/issues/3820 ).
I've already created the new Mac binaries in the APP form, with embedded
Python 3.7.4 and 2.7.16 - see my repository
.

Now all the known problems have been solved and we could take these
binaries to Production ;-)


Cheers,
Nico


Il giorno lun 24 giu 2019 alle ore 22:29 Dave S  ha
scritto:

>
>
> On Sunday, June 23, 2019 at 4:25:29 AM UTC-7, icodk wrote:
>>
>> The reason I ask is because I got errors running from source with ssl
>>
>
> Port 443 is special, as I indicated in the other thread.
>
> /dps
>
>
>>
>> On Sunday, June 23, 2019 at 11:32:26 AM UTC+2, Nico Zanferrari wrote:
>>>
>>> Hi all,
>>>
>>> I've just released a new set of the 2.18.5 Web2py frozen binaries, for
>>> Windows and MacOs, with Python 2.7.16 and 3.7.3; grab them from my
>>> repository  .
>>>
>>> The only update is that now the interactive shell is working fine ;-)
>>> This was obtained by hacking the fake site.py module provided by
>>> PyInstaller with the missing functions from the official cPython. The Mac
>>> APP which is still not working at all (probably for Tcl/Tk wrong inclusion,
>>> see this bug ),
>>> but the Mac CMD program is working fine.
>>>
>>> Please, help with testing and report any difference with running from
>>> sources.
>>>
>>> Cheers,
>>> Nico
>>>
>>> Il giorno gio 13 giu 2019 alle ore 19:33 Dave S  ha
>>> scritto:
>>>


 On Thursday, June 13, 2019 at 1:41:53 AM UTC-7, Dave S wrote:
>
>
>
> On Friday, April 19, 2019 at 1:16:29 AM UTC-7, Nico Zanferrari wrote:
>>
>> Thanks for testing, Dave, I'm happy to hear that it's working fine!
>>
>> I think that the Welcome app with latest web2py versions don't look
>> so fine in Windows and python 3, but I cannot see any difference from
>> running it from sources. Let me know if I'm wrong or there are anything
>> else.
>>
>> Nico
>>
>>
> Still haven't tried running it from sources, but I finally brought
> over another app (just one print to turn to print(), and it looked just
> fine with my old static directory, but I decided I needed try the new
> static, which I copied from the welcome app.  The banner again looked
> horrible, so I did an inspect and clicked here and there and after a brief
> cloud of dust  actually got the black band to show up.
>
> Looking more into the inspect window, there's a reference to
> shockwave-flash, and I think Chrome doesn't like that (deprecated flash
> years ago).  I don't think this is your problem, but I'm not sure why it's
> in there.  I'm not going to hunt anything more down tonight, either.
>
> Here's a clue:  clicking on the web2py logo, which is an anchor to the
 web2py site, takes me to ... the web2py site, with the black band on top
 (for the navbar).  When I click back, my page displays the black band on
 top.  Does this indicate a missing resource?

 /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 web...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/web2py/3ac332e6-3c4b-4ed4-83ff-196f9947894a%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/11611fc7-3ffb-4f5c-bf8b-ff5842fef1fe%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)
- 

[web2py] Re: how to embed a d3.js script in a view correctly?

2019-07-28 Thread pollwerk
Hello, I am new here and tried to get something working. It took some time 
until i realitzed its working but only in default/index.html (not in 
default/visualisations.html). Most realistic within the next days I will 
learn why. No need to reply. But I wanted to return the full code where I 
was successful the 1st time with D3. Now I can go ahead in an iterative 
way.  Regards, Klaus  
---

{{response.files.append(URL(r=request,c='static',f='/js/d3.js'))}}

{{extend 'layout.html'}}

 


d3.select('#mychart').append('svg').append('circle').style("stroke", 
"gray").style("fill", "red").attr("r", 40).attr("cx", 50).attr("cy", 50);


-

Am Samstag, 5. April 2014 21:11:01 UTC+2 schrieb Martina Gruber:
>
> Hi Sihui,
>
> Just add a div with an id after extend layout and then select this id from 
> d3.
> If you select "body" and append a circle it will go at the bottom of the 
> page.
>
> {{response.files.append(URL(r=request,c='static',f='/js/d3.js'))}}
>> {{extend 'layout.html'}}
>>  
>>  
>>
>> 
>> d3.select('#mychart').append('svg').append('circle').style("stroke", 
>> "gray").style("fill", "red").attr("r", 40).attr("cx", 50).attr("cy", 50);
>> 
>>
>>

-- 
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/3047cbc9-2acc-486b-b71a-8893a1e5ee33%40googlegroups.com.


Re: [web2py] Re: web2py 2.18.5 is OUT

2019-07-28 Thread Angelo Compagnucci
HI Massimo,

Can you tag R-2.18.5?

Thanks!

Il giorno ven 5 lug 2019 alle ore 07:18 黄祥
 ha scritto:
>
> already tried define the length on field constructor and change web server 
> because error above refer to rocket.py
> ref:
> https://groups.google.com/d/msg/web2py/2B9B9o151II/UyfREFmlBgAJ
>
> modules/table_test.py
> test = db.define_table('test',
> Field('test', length = 255),
> on_define = on_define_test)
>
> $ python ~/learn/python/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000
> starting gevent on 0.0.0.0:8000...
> Traceback (most recent call last):
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py",
>  line 976, in handle_one_response
> self.run_application()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py",
>  line 924, in run_application
> self.process_result()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py",
>  line 910, in process_result
> self.write(data)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py",
>  line 757, in write
> self._write_with_headers(data)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py",
>  line 778, in _write_with_headers
> self._write(data)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/pywsgi.py",
>  line 733, in _write
> header_str = b'%x\r\n' % len(data)
> TypeError: object of type 'Field' has no len()
> 2019-07-03T10:07:08Z {'REMOTE_ADDR': '127.0.0.1', 'REMOTE_PORT': '63729', 
> 'HTTP_HOST': 'localhost:8000', (hidden keys: 28)} failed with TypeError
>
> btw, anyserver.py cant run gunicorn in 2.18.5, no error occured on terminal, 
> but cant be access on browser
>
> $ python ~/learn/python/web2py/anyserver.py -s gunicorn -i 0.0.0.0 -p 8000
> starting gunicorn on 0.0.0.0:8000...
> [2019-07-03 17:01:19 +0700] [71683] [INFO] Starting gunicorn 19.9.0
> [2019-07-03 17:01:19 +0700] [71683] [INFO] Listening at: http://0.0.0.0:8000 
> (71683)
> [2019-07-03 17:01:19 +0700] [71683] [INFO] Using worker: sync
> [2019-07-03 17:01:19 +0700] [71687] [INFO] Booting worker with pid: 71687
>
> any way out ?
>
> thx n 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/40c55b2d-0a29-420d-9453-bcf701dbb009%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Profile: http://it.linkedin.com/in/compagnucciangelo

-- 
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/CA%2BTH9V%3D7mNO112PLsCeyQc_VtJfRVRnej1gWK_FwcLPpmRTbGQ%40mail.gmail.com.


[web2py] Keywords in welcome app can't be available

2019-07-28 Thread Константин Комков
Hello!
Keywords in welcome app can't be available.
HTML


**




-- 
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/a7bb81fd-22ad-4dc1-91dc-ee47c9c78974%40googlegroups.com.