[web2py] Re: py4web: what is it?

2019-08-26 Thread Dave S


On Monday, August 26, 2019 at 3:11:23 AM UTC-7, Wolf-Dieter Klotz wrote:
>
> I am am a web-developer using web2py. I was not active since about 2 
> years. Is web2py still alive? what is py4web? How can I log into py4web 
> without password?
>

Web2py is still pretty active, and it can now be used with Python3.  
Running existing applications on Python3 might require some changes, 
especially where 'print' is used, but staying with Python2 should just 
work.  What version were you last using?

Py4web is a new framework for Python3 based on the lessons of web2py, with 
a change in how you install, how you develop views, and with a more 
streamlined approach to forms.  The way models are loaded has been changed, 
and that's part of big speed-up.  It is probably easier to develop new apps 
for it than to port web2py apps, but I haven't been out on the bleeding 
edge yet, so my ability to guide others is limited.  There are several 
pioneers, though, so if you're interested keep reading the list.

/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/2e759e89-b1c9-4079-95a8-f73528c68393%40googlegroups.com.


[web2py] Re: web3py -> py4web

2019-08-26 Thread En Ware
hmm , I just tried from pip and works find 

python3 -m pip install py4web --upgrade 

source bin/activate 

./py4web-start apps / 


██╗ ██╗   ██╗██╗  ██╗██╗██╗███╗██╗ 
██╔══██╗╚██╗ ██╔╝██║  ██║██║██║██╔╝██╔══██╗
██╔╝ ╚╔╝ ███║██║ █╗ ██║█╗  ██╔╝
██╔═══╝   ╚██╔╝  ╚██║██║███╗██║██╔══╝  ██╔══██╗
██║██║██║╚███╔███╔╝███╗██╔╝
╚═╝╚═╝╚═╝ ╚══╝╚══╝ ╚══╝╚═╝ 
It is still experimental...

assets-folder: 
/Users/.env/python/py4web/lib/python3.6/site-packages/py4web/assets
Choose a one-time dashboad password: 
Dashboard is at: http://127.0.0.1:8000/_dashboard
[X] loaded _dashboard 
[X] loaded myapp 
[X] loaded _default 
[X] loaded _scaffold 
Bottle v0.12.17 server starting up (using TornadoServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.



On Wednesday, August 21, 2019 at 10:51:31 AM UTC-5, Annet wrote:
>
>
> python3 setup.py install
>>
>
> I installed py4web from source:
>
> git clone https://github.com/web2py/py4web.gitcd py4web
> python3 -m pip install -r requirements.txt
> python3 setup.py install
>
>
> Running the last statement gives the following errors:
>
> byte-compiling 
> build/bdist.macosx-10.9-x86_64/egg/py4web/utils/auth_plugins/saml2_plugin.py 
> to saml2_plugin.cpython-37.pyc
>   File 
> "build/bdist.macosx-10.9-x86_64/egg/py4web/utils/auth_plugins/saml2_plugin.py",
>  
> line 105
> session.saml_outstanding_queries = {req_id: request.url}
>^
> SyntaxError: invalid syntax
>
> and
>
> Extracting py4web-0.1.20190818.2-py3.7.egg to 
> /usr/local/lib/python3.7/site-packages
>   File 
> "/usr/local/lib/python3.7/site-packages/py4web-0.1.20190818.2-py3.7.egg/py4web/utils/auth_plugins/saml2_plugin.py",
>  
> line 105
> session.saml_outstanding_queries = {req_id: request.url}
>^
> SyntaxError: invalid syntax
>
>
>
> I starting py4web 
>
> py4web-start apps
>
>
> fails with the following error:
>
> FileNotFoundError: [Errno 2] No such file or directory: 
> '/Users/me/py4web/apps/__init__.py'
>
>
> How do I resolve these issues?
>
>
> Kind regards,
>
> Annet
>

-- 
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/91e5cf0f-77f6-4ff7-bef7-c9c510609997%40googlegroups.com.


[web2py] Re: Query a join tables SQLFORM.smartgrid

2019-08-26 Thread Gilad Hoshmand
smart_grid = SQLFORM.smartgrid(db.child,
   left = 
(db.parent.on(db.child.parent_id* & (db.parent.field_bla == some_value)*),
   ...other settings...)


On Sunday, August 25, 2019 at 3:44:47 PM UTC+3, Gilad Hoshmand wrote:
>
> I'm trying to make a smartgrid from 2 tables and apply a query to it.
> I've tried all the following:
>
> smart_grid = SQLFORM.smartgrid(db.child,
>left = (db.parent.on(db.child.
> parent_id),
># keywords = (db.parent.field_bla 
> == some_value),
># constraints = {'parent': 
> (db.parent.field_bla == some_value)},
>...other settings...)
>
> I've tried joining the other way around, using 'constraints' in many ways, 
> keywords, query instead of table. None of these worked.
>
>

-- 
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/bd3ee1f6-7310-40ba-9bbd-3b510c3e18e3%40googlegroups.com.


[web2py] py4web: what is it?

2019-08-26 Thread Wolf-Dieter Klotz
I am am a web-developer using web2py. I was not active since about 2 years. 
Is web2py still alive? what is py4web? How can I log into py4web without 
password?

-- 
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/e1ffed7b-819a-4090-97a4-dc8e65eb696d%40googlegroups.com.


[web2py] how to import modules on pythonanywhere

2019-08-26 Thread Maurice Waka
I recently deployed an app to pythonanywhere. The app works well on 
localhost but now I can't import the same modules as in the local computer.

For example, I keep getting the error: 
No module named applications.myapp.modules.pattern

The module pattern and others are installed with myvirtualenv.

How can i solve this.

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/eb4bf7f3-8940-4a2d-843a-610fb32806ec%40googlegroups.com.