[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.


Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread En Ware
Is there an IRC channel for py4web yet ? or an official group ? 

On Tuesday, July 30, 2019 at 1:38:05 AM UTC-5, Massimo Di Pierro wrote:
>
> to be clear... most of the docs is backported by web2py + explanation of 
> sessions and @action decorator.
> Most of the new features are still undocumented or poorly documented 
> unfortunately. Namely pydal.restapi, auth plugins, Form,  and 
> 
> Will try my best in the next few days.
>
> On Monday, 29 July 2019 02:36:40 UTC-7, Jose C wrote:
>>
>> Darn, I hunted around but didn't see it.  Thanks for the link...
>>
>>
>>
>> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:
>>>
>>> Hi Jose,
>>>
>>> the documentation is already on GitHub 
>>> 
>>>  , 
>>> and PR are always welcome ;-)
>>>
>>> Nico
>>>
>>> Il giorno lun 29 lug 2019 alle ore 10:14 Jose C  
>>> ha scritto:
>>>
 Looks promising... some questions:

 1) Have spotted many typos in docs but can't find docs for py4web on 
 github.  If docs are on there, like web2py book, people can submit pull 
 requests and help massage the docs into shape.
 2) Should there be a new official group created for py4web (or some 
 other repo of Q knowledge, StackExchange?)   A) to minimize noise in the 
 web2py group and B) also make it easier to find py4web related stuff?  
 3) When are you aiming for the first "stable" release?  

 Rgds,


 -- 
 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/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
  
 
 .

>>>

-- 
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/b7a007b1-f12a-440a-915b-455515883a21%40googlegroups.com.


[web2py] Re: web3py -> py4web

2019-07-30 Thread En Ware
in the documentation for 
http://py4web.com/_documentation/static/index.html#chapter-02. 
datetime.datime.now() (should that be datetime.datetime.now() ? 

On Tuesday, July 30, 2019 at 12:59:36 PM UTC-5, En Ware wrote:
>
> when using py4web source , py4web-start is missing. from pip py4web-start 
> exists. 
>
>
> On Wednesday, July 24, 2019 at 12:40:27 AM UTC-5, Massimo Di Pierro wrote:
>>
>> OK. I know. I am not good with names. 
>> But there are lots of requirements to be fulfilled.
>> py4web.com was available and the pypi package was available.
>> Here is running on google cloud:
>> http://py4web.com/
>>
>> Ducking...
>>
>>

-- 
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/0a5d4744-d922-4629-a479-234a31b5700d%40googlegroups.com.


[web2py] Re: web3py -> py4web

2019-07-30 Thread En Ware
when using py4web source , py4web-start is missing. from pip py4web-start 
exists. 


On Wednesday, July 24, 2019 at 12:40:27 AM UTC-5, Massimo Di Pierro wrote:
>
> OK. I know. I am not good with names. 
> But there are lots of requirements to be fulfilled.
> py4web.com was available and the pypi package was available.
> Here is running on google cloud:
> http://py4web.com/
>
> Ducking...
>
>

-- 
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/c7543229-fd9d-4afb-a4cd-a82a104eefc2%40googlegroups.com.


[web2py] Re: Web3py

2019-05-21 Thread En Ware
That was it thanks. 

On Tuesday, May 21, 2019 at 10:05:56 AM UTC-5, Massimo Di Pierro wrote:
>
> There should be web3py folder in /tmp delete it and restart

-- 
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/9d0d7233-8c2b-4d87-888b-63e61dc417c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-21 Thread En Ware
./web3py-start apps/

 ___      __  __
|  / / / / __ |/___ \/ __ \ \/ /
| | / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / / / /
| |/ |/ / /___/ /_/ /___/ / / / /
|___/|_/_/_/_/_/ /_/
It is still experimental...

Dashboard is at: http://127.0.0.1:8000/_dashboard
[OK] loaded _dashboard 
[OK] loaded myapp 
[OK] loaded todo 
[OK] loaded superheroes 
[OK] loaded examples 
[OK] loaded _scaffold 
Bottle v0.12.16 server starting up (using TornadoServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.

WARNING:tornado.access:404 GET / (127.0.0.1) 1.66ms
WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 1.11ms
ERROR:root:Traceback (most recent call last):
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py", 
line 384, in wrapper
ret = func(*func_args, **func_kwargs)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/apps/_dashboard/__init__.py",
 
line 116, in tickets
tickets = error_storage.get()
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py", 
line 535, in get
list_rows = db(query).select(*fields, orderby=orderby, 
groupby=groupby).as_list()
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/objects.py",
 
line 2395, in select
return adapter.select(self.query, fields, attributes)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/sqlite.py",
 
line 82, in select
return super(SQLite, self).select(query, fields, attributes)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 763, in select
return self._select_aux(sql, fields, attributes, colnames)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 719, in _select_aux
rows = self._select_aux_execute(sql)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 713, in _select_aux_execute
self.execute(sql)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/__init__.py",
 
line 67, in wrap
return f(*args, **kwargs)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 413, in execute
rv = self.cursor.execute(command, *args[1:], **kwargs)
sqlite3.OperationalError: no such table: web3py_error

WARNING:tornado.access:404 GET /todo/static/favicon.ico (127.0.0.1) 1.46ms
WARNING:tornado.access:404 GET /myapp/static/favicon.ico (127.0.0.1) 1.27ms
WARNING:tornado.access:404 GET /_scaffold/static/favicon.ico (127.0.0.1) 
1.48ms
WARNING:tornado.access:404 GET /superheroes/static/favicon.ico (127.0.0.1) 
1.24ms
WARNING:tornado.access:404 GET /examples/static/favicon.ico (127.0.0.1) 
1.43ms

On Tuesday, May 21, 2019 at 9:33:27 AM UTC-5, En Ware wrote:
>
> The only thing I did was:
>
> 1. git pull 
> 2. ./web3py-start apps/
>
> Thats all I did. 
>
> On Monday, May 20, 2019 at 3:08:26 PM UTC-5, 黄祥 wrote:
>>
>> Getting error missing table , sqlite3.OperationalError: no such table: 
>>> web3py_error
>>>
>>> _dashboard won't load at all. 
>>>
>>
>> could you please tell us steps to reproduce that error or show some code ?
>>
>> 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/024fb3b5-683d-4d3e-aa02-393a6fc60f35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-21 Thread En Ware
The only thing I did was:

1. git pull 
2. ./web3py-start apps/

Thats all I did. 

On Monday, May 20, 2019 at 3:08:26 PM UTC-5, 黄祥 wrote:
>
> Getting error missing table , sqlite3.OperationalError: no such table: 
>> web3py_error
>>
>> _dashboard won't load at all. 
>>
>
> could you please tell us steps to reproduce that error or show some code ?
>
> 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/c95bb540-d81a-484e-ac10-6bb9f60bfae8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-20 Thread En Ware
Getting error missing table , sqlite3.OperationalError: no such table: 
web3py_error

_dashboard won't load at all. 

On Wednesday, May 15, 2019 at 9:51:40 AM UTC-5, En Ware wrote:
>
> Thank you very much for the explanation , it really helps. 
>
> On Wednesday, May 15, 2019 at 12:23:47 AM UTC-5, Massimo Di Pierro wrote:
>>
>> web2py uses:
>>
>> (all defined in web3py/core.py)
>> [100% done] pydal for DB
>> [100%] pluralize for T
>> [100%] yatl for template and helpers
>> [100%] tornado as default web server (when no --number_workers)
>> [100%] gevent + gunicorn when --number_workers is specified
>> [100%] bottle for routing, request, response, abort, and redirect (but 
>> has its own decorator instead the bottle one)
>> [100%] has its own new session object (support cookies, db, memcache, 
>> redis, and user defined)
>> [100%] has its own O(1) least recently used cache/memoize function (used 
>> for example to cache templates in ram)
>> [100%] web3py/form.py replaces SQLFORM
>>
>> [75%]  "_dashboard" instead of "admin" (same purpose)
>> [75%] "_dashboard dbadmin" instad of appadmin (same purpose)
>> [75%] "_scaffold" instead of welcome (same purpose)
>> [75%] applications/_dashboard/components/mtable.* replaces 
>> SQLFORM.smartgrid 
>> [50%] applications/_scaffold/components/auth.*  + web3py/utils/auth.py 
>> replace Auth + user.html
>>
>> It uses the concept of "Fixtures" which are like bottle plugins but can 
>> have dependencies. DAL, Session, T, templates are fixtures. 
>>
>> For every action they must be declared as in:
>>
>> @action('index', method=['GET','POST'])
>> @action.uses('my-template.html', mysession, T , mydb)
>> def index():
>>   return dict()
>>
>> It is important to declare them to avoid a shortcoming of web2py and 
>> other frameworks, to avoid doing work when it is not necessary. So if an 
>> action does not need session, there is no need to even try parse cookies, 
>> hence you do not declare the fixture. 
>>
>> You can define aliases:
>>
>> myaction = action.uses('my-template.html', mysession, T , mydb)
>>
>> and then do
>>
>> @action('index', method=['GET','POST'])
>> @myaction
>> def index():
>>   return dict()
>>
>> Unlike web2py the models.py, controllers.py and all the other files are 
>> just regular files. You can call them what you like, and they are imported, 
>> not executed. This means web3py is much faster and also you can use pylint 
>> and code completion without tweaks. No custom_importer that can cause weird 
>> behavior. This also means there will be some nu-expected behavior for 
>> web2py users and needs to be documented. Every module in the applications 
>> folder is an app. Apps does not need to expose any action, they can just be 
>> a collection of modules, or static files, or templates. 
>>
>> _dashboard and _scaffold use vue.js and the grid (mtable) and auth are 
>> vue component but you can use them even if the rest of your app does not 
>> use vue. Components have their own html templates in vue and they can 
>> easily be customized for different CSS. This requires a much longer 
>> explanation and I will write it when it is finalized.
>>
>> We ditched the web2py Storage object. People like it but the profiler 
>> showed Storage.__getitem__ is the single most called function in web2py and 
>> causes loss in performance. In web3py we stick to regular python dict 
>> objects.
>>
>> This is work in progress so things will change.
>>
>> Massimo
>>
>>
>>
>>
>> On Tuesday, 14 May 2019 08:42:16 UTC-7, En Ware wrote:
>>>
>>> So I'm trying to figure out web3py libs and how everything works 
>>> together. Web3py uses bottle for request, routes, and response. Web3py uses 
>>> DAL or PyDAL for database abstraction. 
>>>
>>> Is this still valid for Storage class ? 
>>> https://web2py.readthedocs.io/en/latest/_modules/gluon/storage.html , I 
>>> was looking up information on how "dict" was formed.
>>>
>>> On Tuesday, May 14, 2019 at 9:20:00 AM UTC-5, En Ware wrote:
>>>>
>>>> The editing is very fast and reloads on the fly. This is pretty 
>>>> impressive. 
>>>>
>>>> On Tuesday, May 14, 2019 at 9:05:58 AM UTC-5, En Ware wrote:
>>>>>
>>>>> Ok very good, I created the directories and launched again and i can 
>>>>> get to the _dashb

[web2py] Re: Web3py

2019-05-15 Thread En Ware
Thank you very much for the explanation , it really helps. 

On Wednesday, May 15, 2019 at 12:23:47 AM UTC-5, Massimo Di Pierro wrote:
>
> web2py uses:
>
> (all defined in web3py/core.py)
> [100% done] pydal for DB
> [100%] pluralize for T
> [100%] yatl for template and helpers
> [100%] tornado as default web server (when no --number_workers)
> [100%] gevent + gunicorn when --number_workers is specified
> [100%] bottle for routing, request, response, abort, and redirect (but has 
> its own decorator instead the bottle one)
> [100%] has its own new session object (support cookies, db, memcache, 
> redis, and user defined)
> [100%] has its own O(1) least recently used cache/memoize function (used 
> for example to cache templates in ram)
> [100%] web3py/form.py replaces SQLFORM
>
> [75%]  "_dashboard" instead of "admin" (same purpose)
> [75%] "_dashboard dbadmin" instad of appadmin (same purpose)
> [75%] "_scaffold" instead of welcome (same purpose)
> [75%] applications/_dashboard/components/mtable.* replaces 
> SQLFORM.smartgrid 
> [50%] applications/_scaffold/components/auth.*  + web3py/utils/auth.py 
> replace Auth + user.html
>
> It uses the concept of "Fixtures" which are like bottle plugins but can 
> have dependencies. DAL, Session, T, templates are fixtures. 
>
> For every action they must be declared as in:
>
> @action('index', method=['GET','POST'])
> @action.uses('my-template.html', mysession, T , mydb)
> def index():
>   return dict()
>
> It is important to declare them to avoid a shortcoming of web2py and other 
> frameworks, to avoid doing work when it is not necessary. So if an action 
> does not need session, there is no need to even try parse cookies, hence 
> you do not declare the fixture. 
>
> You can define aliases:
>
> myaction = action.uses('my-template.html', mysession, T , mydb)
>
> and then do
>
> @action('index', method=['GET','POST'])
> @myaction
> def index():
>   return dict()
>
> Unlike web2py the models.py, controllers.py and all the other files are 
> just regular files. You can call them what you like, and they are imported, 
> not executed. This means web3py is much faster and also you can use pylint 
> and code completion without tweaks. No custom_importer that can cause weird 
> behavior. This also means there will be some nu-expected behavior for 
> web2py users and needs to be documented. Every module in the applications 
> folder is an app. Apps does not need to expose any action, they can just be 
> a collection of modules, or static files, or templates. 
>
> _dashboard and _scaffold use vue.js and the grid (mtable) and auth are vue 
> component but you can use them even if the rest of your app does not use 
> vue. Components have their own html templates in vue and they can easily be 
> customized for different CSS. This requires a much longer explanation and I 
> will write it when it is finalized.
>
> We ditched the web2py Storage object. People like it but the profiler 
> showed Storage.__getitem__ is the single most called function in web2py and 
> causes loss in performance. In web3py we stick to regular python dict 
> objects.
>
> This is work in progress so things will change.
>
> Massimo
>
>
>
>
> On Tuesday, 14 May 2019 08:42:16 UTC-7, En Ware wrote:
>>
>> So I'm trying to figure out web3py libs and how everything works 
>> together. Web3py uses bottle for request, routes, and response. Web3py uses 
>> DAL or PyDAL for database abstraction. 
>>
>> Is this still valid for Storage class ? 
>> https://web2py.readthedocs.io/en/latest/_modules/gluon/storage.html , I 
>> was looking up information on how "dict" was formed.
>>
>> On Tuesday, May 14, 2019 at 9:20:00 AM UTC-5, En Ware wrote:
>>>
>>> The editing is very fast and reloads on the fly. This is pretty 
>>> impressive. 
>>>
>>> On Tuesday, May 14, 2019 at 9:05:58 AM UTC-5, En Ware wrote:
>>>>
>>>> Ok very good, I created the directories and launched again and i can 
>>>> get to the _dashboard instance, thanks
>>>>
>>>> On Tuesday, May 14, 2019 at 8:58:44 AM UTC-5, 黄祥 wrote:
>>>>>
>>>>> pls try:
>>>>> *need an extra steps to make web3py start in latest commit (101)*
>>>>> git clone https://github.com/web2py/web3py
>>>>> cd web3py
>>>>> pip3 install -r requirements.txt
>>>>> mkdir applications/_dashboard/translations
>>>>> mkdir applications/_scaffold/databases
>>>>> mkdir applications/toys/databases
>>>&

[web2py] Re: Web3py

2019-05-14 Thread En Ware
So I'm trying to figure out web3py libs and how everything works together. 
Web3py uses bottle for request, routes, and response. Web3py uses DAL or 
PyDAL for database abstraction. 

Is this still valid for Storage class 
? https://web2py.readthedocs.io/en/latest/_modules/gluon/storage.html , I 
was looking up information on how "dict" was formed.

On Tuesday, May 14, 2019 at 9:20:00 AM UTC-5, En Ware wrote:
>
> The editing is very fast and reloads on the fly. This is pretty 
> impressive. 
>
> On Tuesday, May 14, 2019 at 9:05:58 AM UTC-5, En Ware wrote:
>>
>> Ok very good, I created the directories and launched again and i can get 
>> to the _dashboard instance, thanks
>>
>> On Tuesday, May 14, 2019 at 8:58:44 AM UTC-5, 黄祥 wrote:
>>>
>>> pls try:
>>> *need an extra steps to make web3py start in latest commit (101)*
>>> git clone https://github.com/web2py/web3py
>>> cd web3py
>>> pip3 install -r requirements.txt
>>> mkdir applications/_dashboard/translations
>>> mkdir applications/_scaffold/databases
>>> mkdir applications/toys/databases
>>> ./web3py-start applications/
>>>
>>> directory creation to eliminate the error produced on console when 
>>> execute web3py-start
>>>
>>> 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/58d252f2-cd1c-446e-846b-8f34cb3d8110%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-14 Thread En Ware
The editing is very fast and reloads on the fly. This is pretty impressive. 

On Tuesday, May 14, 2019 at 9:05:58 AM UTC-5, En Ware wrote:
>
> Ok very good, I created the directories and launched again and i can get 
> to the _dashboard instance, thanks
>
> On Tuesday, May 14, 2019 at 8:58:44 AM UTC-5, 黄祥 wrote:
>>
>> pls try:
>> *need an extra steps to make web3py start in latest commit (101)*
>> git clone https://github.com/web2py/web3py
>> cd web3py
>> pip3 install -r requirements.txt
>> mkdir applications/_dashboard/translations
>> mkdir applications/_scaffold/databases
>> mkdir applications/toys/databases
>> ./web3py-start applications/
>>
>> directory creation to eliminate the error produced on console when 
>> execute web3py-start
>>
>> 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/9b321797-0c18-4883-883a-374cdff3dfeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-14 Thread En Ware
Ok very good, I created the directories and launched again and i can get to 
the _dashboard instance, thanks

On Tuesday, May 14, 2019 at 8:58:44 AM UTC-5, 黄祥 wrote:
>
> pls try:
> *need an extra steps to make web3py start in latest commit (101)*
> git clone https://github.com/web2py/web3py
> cd web3py
> pip3 install -r requirements.txt
> mkdir applications/_dashboard/translations
> mkdir applications/_scaffold/databases
> mkdir applications/toys/databases
> ./web3py-start applications/
>
> directory creation to eliminate the error produced on console when execute 
> web3py-start
>
> 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/b6adba88-9793-4f63-9766-8bc8aa112fd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-14 Thread En Ware
still getting same errors 

 pip3 install -r requirements.txt 
Requirement already satisfied: pydal>=19.5.9 in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 1)) (19.5.9)
Requirement already satisfied: pyjwt in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 2)) (1.7.1)
Requirement already satisfied: yatl in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 3)) (1.0.3)
Requirement already satisfied: pluralize in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 4)) (0.1.3)
Requirement already satisfied: bottle in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 5)) (0.12.16)
Requirement already satisfied: tornado in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 6)) (6.0.2)
Requirement already satisfied: gunicorn in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 7)) (19.9.0)
Requirement already satisfied: gevent in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 8)) (1.4.0)
Requirement already satisfied: reloader in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 9)) (0.6)
Requirement already satisfied: python-memcached in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from -r requirements.txt (line 10)) (1.59)
Requirement already satisfied: greenlet>=0.4.14; 
platform_python_implementation == "CPython" in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from gevent->-r requirements.txt (line 8)) (0.4.15)
Requirement already satisfied: six>=1.4.0 in 
/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages 
(from python-memcached->-r requirements.txt (line 10)) (1.12.0)
08:35:49 [aaronm@usmsp-mb03866corpirdetocom web3py]$ ./web3py-start 
applications/

 ___      __  __
|  / / / / __ |/___ \/ __ \ \/ /
| | / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / / / /
| |/ |/ / /___/ /_/ /___/ / / / /
|___/|_/_/_/_/_/ /_/
It is still experimental...

Dashboard is at: http://127.0.0.1:8000/_dashboard
Traceback (most recent call last):
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py", 
line 570, in import_apps
module = importlib.machinery.SourceFileLoader(app_name, 
init).load_module()
  File "", line 399, in 
_check_name_wrapper
  File "", line 823, in load_module
  File "", line 682, in load_module
  File "", line 265, in _load_module_shim
  File "", line 684, in _load
  File "", line 665, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 219, in 
_call_with_frames_removed
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/toys/__init__.py",
 
line 5, in 
db = DAL('sqlite://storage.db', 
folder=os.path.join(os.path.dirname(__file__), 'databases'))
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/base.py",
 
line 171, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/base.py",
 
line 477, in __init__
"Failure to connect, tried %d times:\n%s" % (attempts, tb)
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/base.py",
 
line 457, in __init__
self._adapter = adapter(**kwargs)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/__init__.py",
 
line 39, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 369, in __init__
super(SQLAdapter, self).__init__(*args, **kwargs)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 53, in __init__
self.reconnect()
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/connection.py",
 
line 154, in reconnect
self.connection = self.connector()
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/adapters/sqlite.py",
 
line 42, in connector
return self.driver.Connection(self.dbpath, **self.driver_args)
sqlite3.OperationalError: unable to open database file


Traceback (most recent call last):
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py", 
line 570, in import_apps
module = importlib.machinery.SourceFileLoader(app_name, 
init).load_module()
 

[web2py] Re: Web3py

2019-05-13 Thread En Ware
python3.6/site-packages/reloader.py",
 
line 158, in _import
base = _baseimport(name, globals, locals, fromlist, level)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/_scaffold/controllers.py",
 
line 2, in 
from .common import db, session, T, cache, auth
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/reloader.py",
 
line 158, in _import
base = _baseimport(name, globals, locals, fromlist, level)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/_scaffold/common.py",
 
line 8, in 
from .models import db
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/reloader.py",
 
line 158, in _import
base = _baseimport(name, globals, locals, fromlist, level)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/_scaffold/models.py",
 
line 5, in 
db = DAL(settings.DB_URI, folder=settings.DB_FOLDER, 
pool_size=settings.DB_POOL_SIZE)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/base.py",
 
line 171, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/base.py",
 
line 477, in __init__
"Failure to connect, tried %d times:\n%s" % (attempts, tb)
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/base.py",
 
line 457, in __init__
self._adapter = adapter(**kwargs)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/adapters/__init__.py",
 
line 39, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 369, in __init__
super(SQLAdapter, self).__init__(*args, **kwargs)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/adapters/base.py",
 
line 53, in __init__
self.reconnect()
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/connection.py",
 
line 154, in reconnect
self.connection = self.connector()
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages/pydal/adapters/sqlite.py",
 
line 42, in connector
return self.driver.Connection(self.dbpath, **self.driver_args)
sqlite3.OperationalError: unable to open database file


Bottle v0.12.16 server starting up (using TornadoServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.



On Monday, May 13, 2019 at 12:58:42 PM UTC-5, En Ware wrote:
>
> It did until I install tornado , but still can't access the dashboard or 
> any of the apps. 
>
>  I am going to do a new git clone and try again. 
>
> On Monday, May 13, 2019 at 12:29:29 PM UTC-5, Massimo Di Pierro wrote:
>>
>> That error in the console is intentional. It is an example of what 
>> happens when there is a bug in app code. It should not prevent web3py from 
>> running. Or does 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/c486cf4d-5f5c-4e87-82ac-b4fd46fbfef8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-13 Thread En Ware
It did until I install tornado , but still can't access the dashboard or 
any of the apps. 

 I am going to do a new git clone and try again. 

On Monday, May 13, 2019 at 12:29:29 PM UTC-5, Massimo Di Pierro wrote:
>
> That error in the console is intentional. It is an example of what happens 
> when there is a bug in app code. It should not prevent web3py from running. 
> Or does 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/cd37c2bf-920f-4803-95bc-b037dc106a9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-05-13 Thread En Ware
I also have the same errors , I installed tornado also 

On Monday, May 13, 2019 at 3:05:05 AM UTC-5, 黄祥 wrote:
>
> forgot to include the logs after get the web3py started (taken from 
> terminal)
> WARNING:tornado.access:404 GET /dashboard (127.0.0.1) 6.48ms
> WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 2.52ms
> WARNING:tornado.access:404 GET /_scaffold/static/favicon.ico (127.0.0.1) 
> 2.60ms
> WARNING:tornado.access:404 GET /examples/static/favicon.ico (127.0.0.1) 
> 16.25ms
> WARNING:tornado.access:404 GET /myapp/static/favicon.ico (127.0.0.1) 
> 1.85ms
> WARNING:tornado.access:404 GET /todo/static/favicon.ico (127.0.0.1) 2.41ms
> WARNING:tornado.access:404 GET /toys/static/favicon.ico (127.0.0.1) 2.31ms
> ERROR:root:Traceback (most recent call last):
>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 383, in 
> wrapper
> ret = func(*func_args, **func_kwargs)
>   File 
> "/Users/sugizo/learn/python/web3py/applications/examples/__init__.py", 
> line 15, in oops
> 1/0
> ZeroDivisionError: division by zero
>
> id= 1
> WARNING:tornado.access:404 GET /_scaffold/static/js/auth_test.js (127.0.
> 0.1) 3.63ms
>
> best regards,
> stifan
>
> On Monday, May 13, 2019 at 2:53:35 PM UTC+7, 黄祥 wrote:
>>
>> *last commit need extra step on terminal*
>> echo tornado >> requirements.txt
>> mkdir applications/_dashboard/translations
>> mkdir applications/_scaffold/databases
>> mkdir applications/toys/databases
>>
>> *error traceback*
>> $ ./web3py-start applications/
>> Traceback (most recent call last):
>>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 570, in 
>> import_apps
>> module = importlib.machinery.SourceFileLoader(app_name, init).
>> load_module()
>>   File "", line 407, in 
>> _check_name_wrapper
>>   File "", line 907, in load_module
>>   File "", line 732, in load_module
>>   File "", line 265, in _load_module_shim
>>   File "", line 696, in _load
>>   File "", line 677, in _load_unlocked
>>   File "", line 728, in exec_module
>>   File "", line 219, in 
>> _call_with_frames_removed
>>   File 
>> "/Users/sugizo/learn/python/web3py/applications/_dashboard/__init__.py", 
>> line 12, in 
>> T = Translator(T_FOLDER)
>>   File 
>> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pluralize/__init__.py"
>> , line 60, in __init__
>> self.load(folder)
>>   File 
>> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pluralize/__init__.py"
>> , line 65, in load
>> for filename in os.listdir(folder):
>> FileNotFoundError: [Errno 2] No such file or directory: 
>> '/Users/sugizo/learn/python/web3py/applications/_dashboard/translations'
>>
>> Traceback (most recent call last):
>>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 570, in 
>> import_apps
>> module = importlib.machinery.SourceFileLoader(app_name, init).
>> load_module()
>>   File "", line 407, in 
>> _check_name_wrapper
>>   File "", line 907, in load_module
>>   File "", line 732, in load_module
>>   File "", line 265, in _load_module_shim
>>   File "", line 696, in _load
>>   File "", line 677, in _load_unlocked
>>   File "", line 728, in exec_module
>>   File "", line 219, in 
>> _call_with_frames_removed
>>   File 
>> "/Users/sugizo/learn/python/web3py/applications/_scaffold/__init__.py", 
>> line 1, in 
>> from . import controllers
>>   File 
>> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py"
>> , line 158, in _import
>> base = _baseimport(name, globals, locals, fromlist, level)
>>   File 
>> "/Users/sugizo/learn/python/web3py/applications/_scaffold/controllers.py"
>> , line 2, in 
>> from .common import db, session, T, cache, auth
>>   File 
>> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py"
>> , line 158, in _import
>> base = _baseimport(name, globals, locals, fromlist, level)
>>   File 
>> "/Users/sugizo/learn/python/web3py/applications/_scaffold/common.py", 
>> line 8, in 
>> from .models import db
>>   File 
>> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py"
>> , line 158, in _import
>> base = _baseimport(name, globals, locals, fromlist, level)
>>   File 
>> "/Users/sugizo/learn/python/web3py/applications/_scaffold/models.py", 
>> line 5, in 
>> db = DAL(settings.DB_URI, folder=settings.DB_FOLDER, pool_size=
>> settings.DB_POOL_SIZE)
>>   File 
>> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
>> , line 171, in __call__
>> obj = super(MetaDAL, cls).__call__(*args, **kwargs)
>>   File 
>> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
>> , line 477, in __init__
>> "Failure to connect, tried %d times:\n%s" % (attempts, tb)
>> RuntimeError: Failure to connect, tried 5 times:
>> Traceback (most recent call last):
>>   File 
>> 

[web2py] Re: Web3py

2019-04-16 Thread En Ware
Thank you , that did it.

On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote:
>
> You have an old pydal. Do
>
> pip3 install --upgrade pydal
>
> Also do
>
> python3 web3py.py applications
>
> Not
>
> python3 web3py.py applications/todo/
>
>

-- 
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] Re: Web3py

2019-04-16 Thread En Ware
Is web3py running ? Do you see this in your terminal ? 

Bottle v0.12.16 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.

Have you git pulled the latest changes ? 

How did you start web3py server ? 

On Tuesday, April 16, 2019 at 10:02:46 AM UTC-5, Ramos wrote:
>
> Not working...
>
> [image: image.png]
>
> Em ter, 16 de abr de 2019 às 14:41, En Ware  > escreveu:
>
>> Getting error 
>>
>> |  / / / / __ |/___ \/ __ \ \/ /
>> | | / / /_  / /_/ /___/ / /_/ /\  /
>> | | /| / / __/ / __  //__  / / / /
>> | |/ |/ / /___/ /_/ /___/ / / / /
>> |___/|_/_/_/_/_/ /_/
>> It is still experimental...
>>
>> Traceback (most recent call last):
>>   File 
>> "/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py", 
>> line 438, in import_apps
>> module = importlib.import_module(app_name)
>>   File 
>> "/Users/aaronm/.pyenv/versions/3.6.4/lib/python3.6/importlib/__init__.py", 
>> line 126, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 994, in _gcd_import
>>   File "", line 971, in _find_and_load
>>   File "", line 955, in 
>> _find_and_load_unlocked
>>   File "", line 665, in _load_unlocked
>>   File "", line 678, in exec_module
>>   File "", line 219, in 
>> _call_with_frames_removed
>>   File 
>> "/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/examples/__init__.py",
>>  
>> line 4, in 
>> from pydal.validators import IS_NOT_EMPTY, IS_INT_IN_RANGE
>>   File 
>> "/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/reloader.py",
>>  
>> line 158, in _import
>> base = _baseimport(name, globals, locals, fromlist, level)
>>   File 
>> "/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/validators.py",
>>  
>> line 31, in 
>> from pydal._compat import StringIO, integer_types, basestring, 
>> unicodeT, urllib_unquote, \
>> ImportError: cannot import name 'unicodeT'
>>
>>
>>
>>
>>
>> On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote:
>>>
>>> I git installed web3py and quite enjoy it. I see its updated regular 
>>> too. 
>>>
>>> For those who don't know and maybe this is common sense , not sure. 
>>>
>>> once you *git clone https://github.com/web2py/web3py.git 
>>> <https://github.com/web2py/web3py.git>  *do a *git pull*
>>>
>>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>>>  - Changes:  module "reloader" was added 
>>>
>>> 3. Launch web3py (should work just fine now) 
>>>
>>> * python3 web3py.py applications/todo/*
>>>
>>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
>>> <http://127.0.0.1:8000>/todo/index*
>>>
>>> -- 
>> 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 .
>> 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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web3py

2019-04-16 Thread En Ware
Getting error 

|  / / / / __ |/___ \/ __ \ \/ /
| | / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / / / /
| |/ |/ / /___/ /_/ /___/ / / / /
|___/|_/_/_/_/_/ /_/
It is still experimental...

Traceback (most recent call last):
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py", 
line 438, in import_apps
module = importlib.import_module(app_name)
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/lib/python3.6/importlib/__init__.py", 
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 994, in _gcd_import
  File "", line 971, in _find_and_load
  File "", line 955, in _find_and_load_unlocked
  File "", line 665, in _load_unlocked
  File "", line 678, in exec_module
  File "", line 219, in 
_call_with_frames_removed
  File 
"/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/examples/__init__.py",
 
line 4, in 
from pydal.validators import IS_NOT_EMPTY, IS_INT_IN_RANGE
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/reloader.py", 
line 158, in _import
base = _baseimport(name, globals, locals, fromlist, level)
  File 
"/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/validators.py",
 
line 31, in 
from pydal._compat import StringIO, integer_types, basestring, 
unicodeT, urllib_unquote, \
ImportError: cannot import name 'unicodeT'





On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote:
>
> I git installed web3py and quite enjoy it. I see its updated regular too. 
>
> For those who don't know and maybe this is common sense , not sure. 
>
> once you *git clone https://github.com/web2py/web3py.git 
> <https://github.com/web2py/web3py.git>  *do a *git pull*
>
> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>  - Changes:  module "reloader" was added 
>
> 3. Launch web3py (should work just fine now) 
>
> * python3 web3py.py applications/todo/*
>
> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
> <http://127.0.0.1:8000>/todo/index*
>
>

-- 
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: Web3py

2019-04-15 Thread En Ware
Is this the newest version for pydal3 ? 

pydal3 (19.4)  - a pure Python Database Abstraction Layer (for python 
version 2.7 and 3.x)
  INSTALLED: 19.4 (latest) , Not seeing a change log in the repo. 


On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote:
>
> I git installed web3py and quite enjoy it. I see its updated regular too. 
>
> For those who don't know and maybe this is common sense , not sure. 
>
> once you *git clone https://github.com/web2py/web3py.git 
> <https://github.com/web2py/web3py.git>  *do a *git pull*
>
> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>  - Changes:  module "reloader" was added 
>
> 3. Launch web3py (should work just fine now) 
>
> * python3 web3py.py applications/todo/*
>
> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
> <http://127.0.0.1:8000>/todo/index*
>
>

-- 
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: Web3py

2019-04-15 Thread En Ware
from pydal._compat import StringIO, integer_types, basestring, unicodeT, 
urllib_unquote, \
ImportError: cannot import name 'unicodeT'

I looked at pydal __compat and unicodeT is there 

On Monday, April 15, 2019 at 9:58:49 AM UTC-5, En Ware wrote:
>
> It's looking very good. 
>
> I like the new start-web3py script and updated pydal versions
>
> [image: Screen Shot 2019-04-15 at 9.49.10 AM.png]
>
>
>
>
> On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote:
>>
>> I git installed web3py and quite enjoy it. I see its updated regular too. 
>>
>> For those who don't know and maybe this is common sense , not sure. 
>>
>> once you *git clone https://github.com/web2py/web3py.git 
>> <https://github.com/web2py/web3py.git>  *do a *git pull*
>>
>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>>  - Changes:  module "reloader" was added 
>>
>> 3. Launch web3py (should work just fine now) 
>>
>> * python3 web3py.py applications/todo/*
>>
>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
>> <http://127.0.0.1:8000>/todo/index*
>>
>>

-- 
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: Web3py

2019-04-12 Thread En Ware
Not getting examples to work is /examples/form or examples ? 

On Friday, April 12, 2019 at 10:29:21 AM UTC-5, Massimo Di Pierro wrote:
>
> In web3py an application is a folder, for example "myapp". It must have:
>
> applications/
>   myapp/
> __init__.py
> templates/
> static/
> databases/
>
> otherwise the structure is free. You are free to create models/ and 
> controllers/ and organize code like in the old web2py but the entry point 
> is __init__.py. Web3py will see functions defined in __init_ or imported by 
> init. In my examples I defined all actions in __init__. For example
>
> In __init__.py =
> from . import models
> from . import controllers
>
> In model.py =
> from web3py import DAL, Field
> db = DAL('sqlite://test')
> db.define_table('thing', Field('name'))
>
> In controllers.py =
> from web3py import action, request, redirect, abort
> from . models import db
> @action('helloworld') # exposes http://127.0.0.1:8000/myapp/helloworld
> @action.uses(db, 'helloworld.html')
> def helloworld(): return dict(name=request.forms.get('name', 'visitor'))
>
> In templates/helloworld.html =
> [[extend 'layout.html']]
> Hello Dear [[=name]]
>
> In templates/layout.html =
> [[include]]
>
>
> request, redirect, abort are Bottely objects
> DAL, Field are web2py's
> the template is the same as web2py but defaults to [[ ]] delimiters to 
> avoid conflicts with vue.js and other js
> the @action decorator accepts the same parameters as bottle.route but does 
> a little more.
> There is also a form.py that implements Form() a drop in replacement (to 
> be tested) for SQLFORM.
>
> Notice we do all of this in 300 lines of python code and 10x faster than 
> web2py in my tests.
>
> Working on admin and appadmin. May be done in one week.
>
> Massimo
>
>
>
>
>
> On Friday, 12 April 2019 06:53:57 UTC-7, En Ware wrote:
>>
>> I'm trying to wrap my ahead around how web3py works by looking at the 
>> source 
>>
>> I see __init__.py is the main code for the actually todo app. 
>>
>> Is this going to be the case for all applications ? or is this just for a 
>> sample ? 
>>
>>
>> On Thursday, April 11, 2019 at 11:03:29 PM UTC-5, Massimo Di Pierro wrote:
>>>
>>> There is a lot to do but at this point it is moving fast and a one way 
>>> street.
>>>
>>> On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote:
>>>>
>>>> I git installed web3py and quite enjoy it. I see its updated regular 
>>>> too. 
>>>>
>>>> For those who don't know and maybe this is common sense , not sure. 
>>>>
>>>> once you *git clone https://github.com/web2py/web3py.git 
>>>> <https://github.com/web2py/web3py.git>  *do a *git pull*
>>>>
>>>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>>>>  - Changes:  module "reloader" was added 
>>>>
>>>> 3. Launch web3py (should work just fine now) 
>>>>
>>>> * python3 web3py.py applications/todo/*
>>>>
>>>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
>>>> <http://127.0.0.1:8000>/todo/index*
>>>>
>>>>

-- 
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: Web3py

2019-04-12 Thread En Ware
I'm trying to wrap my ahead around how web3py works by looking at the 
source 

I see __init__.py is the main code for the actually todo app. 

Is this going to be the case for all applications ? or is this just for a 
sample ? 


On Thursday, April 11, 2019 at 11:03:29 PM UTC-5, Massimo Di Pierro wrote:
>
> There is a lot to do but at this point it is moving fast and a one way 
> street.
>
> On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote:
>>
>> I git installed web3py and quite enjoy it. I see its updated regular too. 
>>
>> For those who don't know and maybe this is common sense , not sure. 
>>
>> once you *git clone https://github.com/web2py/web3py.git 
>> <https://github.com/web2py/web3py.git>  *do a *git pull*
>>
>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>>  - Changes:  module "reloader" was added 
>>
>> 3. Launch web3py (should work just fine now) 
>>
>> * python3 web3py.py applications/todo/*
>>
>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
>> <http://127.0.0.1:8000>/todo/index*
>>
>>

-- 
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] Web3py

2019-04-11 Thread En Ware
I git installed web3py and quite enjoy it. I see its updated regular too. 

For those who don't know and maybe this is common sense , not sure. 

once you *git clone https://github.com/web2py/web3py.git  *do a *git pull*

2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
 - Changes:  module "reloader" was added 

3. Launch web3py (should work just fine now) 

* python3 web3py.py applications/todo/*

4. open browser and type: * localhost:8000 or 127.0.0.1:8000*

-- 
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: Multiple dicts for querying multiple tables

2018-03-20 Thread En Ware
Anthony, 
   
   I'm probably doing something wrong with the view then, 

I get an error if I try to call the dict in a view. 

{{extend 'layout.html'}}

Watch and Defend 



 Links:
http://localhost:8081/Hunter/default/foxtel_search;>Show 
Foxtel Records  {{=get_foxtel_count}}


http://localhost:8081/Hunter/default/lgi_search;>Show LGI 
Records{{=get_lgi_count}}

http://localhost:8081/Hunter/default/adobe_search;>Show 
Adobe Records{{=get_adobe_count}}



1.
2.
3.
4.
5.
6.

Traceback (most recent call last):
  File "/Users/aaronm/.env/python/web2py/web2py/gluon/restricted.py", line 219, 
in restricted
exec(ccode, environment)
  File 
"/Users/aaronm/.env/python/web2py/web2py/applications/Hunter/views/default/index.html",
 line 116, in 
NameError: name 'get_lgi_count' is not defined





On Tuesday, March 20, 2018 at 9:19:08 AM UTC-5, Anthony wrote:
>
> A dict can have multiple keys, so feel free to return a dict that includes 
> all three results. Of course, you can also put all three values into a 
> single object (e.g., a dict, list, or tuple), and then just return that 
> single object to the view.
>
> Anthony
>
> On Tuesday, March 20, 2018 at 9:59:21 AM UTC-4, En Ware wrote:
>>
>> Hello, 
>>
>> Trying to get the full count on three different tables. Below is a 
>> sample code. I am only able to call one count at a time. Is it possible to 
>> query all three of these and show them in a view?  
>>
>> def index():
>> get_foxtel_count=db(db.foxtel_hunter.id > 0).count()
>> get_lgi_count=db(db.lgi_hunter.id > 0).count()
>> get_adobe_count=db(db.adobe_hunter.id > 0).count()
>> #return dict(get_foxtel_count=get_foxtel_count)
>> #return dict(get_lgi_count=get_lgi_count)
>> #return dict(get_adobe_count=get_adobe_count)
>>
>> return dict()
>>
>>
>>

-- 
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] Multiple dicts for querying multiple tables

2018-03-20 Thread En Ware
Hello, 

Trying to get the full count on three different tables. Below is a 
sample code. I am only able to call one count at a time. Is it possible to 
query all three of these and show them in a view?  

def index():
get_foxtel_count=db(db.foxtel_hunter.id > 0).count()
get_lgi_count=db(db.lgi_hunter.id > 0).count()
get_adobe_count=db(db.adobe_hunter.id > 0).count()
#return dict(get_foxtel_count=get_foxtel_count)
#return dict(get_lgi_count=get_lgi_count)
#return dict(get_adobe_count=get_adobe_count)

return dict()


-- 
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] multiple functions in one view

2014-01-21 Thread En Ware


Hello, 

  I am trying to figure out how to call more then function per view.
I would like to be to have users fill out a form and and then as soon as they 
submit 
show the results sort of like SQLFORM. I also want to make the grid editable 
so
that users can hide rows and columns. 

Thanks in Advance.



#controller default.py

def index():
return dict()


def tracker_form():
record = db.content(request.args(0))
show_record = request.args(0)
form = SQLFORM(db.content, record, show_record)
if form.process().accepted:
response.flash = 'Submitted Successfully!'
#response.view = 'http://127.0.0.1:8000/WnD/default/show_form'
#return dict(show_record=show_record)
elif form.errors: 
response.flash = 'Form is not correct; please correct and submit again'
else:
response.flash = 'Please fill out the damn form'
return dict(form=form)
 


def show_form():
#rows = db().select(db.content.ALL)
return dict(grid=SQLFORM.grid(db.content))





#views 

#tracker_form.html

{{extend 'layout.html'}}
h4centerTracking/center/h4
{{=form}}
{{=BEAUTIFY(request.vars)}}


#show_form.html

{{extend 'layout.html'}}
h4centerRecords processed/center/h4

{{=grid}}

a href=http://127.0.0.1:8000/WnD/default/tracker_form;Back/a


#index.html

{{extend 'layout.html'}}
titleWatch and Defend/title
h4
Current customers:
/h4
H4
   

a href=http://127.0.0.1:8000/WnD/default/tracker_formcenterTracker 
Monitoring click on the link/a/center

/H4



-- 
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/groups/opt_out.


[web2py] Re: multiple functions in one view

2014-01-21 Thread En Ware
Thank you so much; this awesome I appreciate your time.

On Tuesday, January 21, 2014 9:37:04 AM UTC-6, En Ware wrote:

 Hello, 

   I am trying to figure out how to call more then function per view.
 I would like to be to have users fill out a form and and then as soon as they 
 submit 
 show the results sort of like SQLFORM. I also want to make the grid 
 editable so
 that users can hide rows and columns. 

 Thanks in Advance.



 #controller default.py

 def index():
 return dict()


 def tracker_form():
 record = db.content(request.args(0))
 show_record = request.args(0)
 form = SQLFORM(db.content, record, show_record)
 if form.process().accepted:
 response.flash = 'Submitted Successfully!'
 #response.view = 'http://127.0.0.1:8000/WnD/default/show_form'
 #return dict(show_record=show_record)
 elif form.errors: 
 response.flash = 'Form is not correct; please correct and submit 
 again'
 else:
 response.flash = 'Please fill out the damn form'
 return dict(form=form)
  


 def show_form():
 #rows = db().select(db.content.ALL)
 return dict(grid=SQLFORM.grid(db.content))





 #views 

 #tracker_form.html

 {{extend 'layout.html'}}
 h4centerTracking/center/h4
 {{=form}}
 {{=BEAUTIFY(request.vars)}}


 #show_form.html

 {{extend 'layout.html'}}
 h4centerRecords processed/center/h4

 {{=grid}}

 a href=http://127.0.0.1:8000/WnD/default/tracker_form;Back/a


 #index.html

 {{extend 'layout.html'}}
 titleWatch and Defend/title
 h4
 Current customers:
 /h4
 H4


 a href=http://127.0.0.1:8000/WnD/default/tracker_formcenterTracker 
 Monitoring click on the link/a/center
 
 /H4





-- 
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/groups/opt_out.


[web2py] call a function inside the same view

2014-01-17 Thread En Ware
Hello, 

  New to this so please bare with me.

I am trying to call show_form() inside my tracker_form view below is my 
functions inside default.py.
how do I call show_form() with my sql inside tracker_form view so I can see 
my results as soon as I submit the form?


The view is:

tracker_form  

1
2
3
4
5
6
7
8
9
10

 {{extend 'layout.html'}}
h4centerTracking/center/h4
{{=form}}
{{=BEAUTIFY(request.vars)}}
h4a href = http://127.0.0.1:8000/WnD/default/show_form;Show 
Records/a -- this is a link to show_form()
 /h4





def index():
return dict()


def tracker_form():
record = db.content(request.args(0))
show_record = request.args(0)
form = SQLFORM(db.content, record)
if form.process().accepted:
response.flash = 'Submitted Successfully!'
response.view = 'http://127.0.0.1:8000/WnD/default/show_form'
#show_form function here!

elif form.errors:
response.flash = 'Form is not correct'

else:
response.flash = 'Please fill out the damn form'
return dict(form=form)


def show_form(results):
#rows = db().select(db.content.ALL)
return dict(grid=SQLFORM.grid(db.content))


-- 
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/groups/opt_out.