[web2py] Re: web3py -> py4web

2019-09-03 Thread mostwanted
Beautiful, can't wait for a complete project Mostwanted On Wednesday, July 24, 2019 at 7:40:27 AM UTC+2, 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

[web2py] Re: web3py -> py4web

2019-09-02 Thread Klaus Zinser
For both PCs (OSX) I tried to tidy up. With AppCleaner in programs all Python (except 3.7) was removed. Whats initially coming with Apple OSX will stay and being updated. (Currently: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 15:28:37) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

[web2py] Re: web3py -> py4web

2019-09-01 Thread Massimo Di Pierro
I think this error AttributeError: type object 'DAL' has no attribute 'Field' means you have some very very old version of pydal. Is that possible? On Sunday, 1 September 2019 02:14:38 UTC-7, Klaus Zinser wrote: > > Thats was working on the Desktop: > > workflow 4) from source and install > >

[web2py] Re: web3py -> py4web

2019-09-01 Thread Klaus Zinser
Thats was working on the Desktop: workflow 4) from source and install git clone https://github.com/web2py/py4web.git cd py4web make install cd .. mkdir work cd work py4web-start apps For me thats fine and I don't want the risk to destroy. I need to make sure to keep the code actual. Nothing

[web2py] Re: web3py -> py4web

2019-08-31 Thread Massimo Di Pierro
This is my bad. We just renamed ./py4web-start to ./py4web-start app.py the reason is that windows did not understand the former. Does this solver the problems? On Saturday, 31 August 2019 14:45:14 UTC-7, Klaus Zinser wrote: > > Thanks Val, thanks Massimo, > as there was the chance to tidy up

[web2py] Re: web3py -> py4web

2019-08-31 Thread Klaus Zinser
Thanks Val, thanks Massimo, as there was the chance to tidy up I took the approach from Massimo. First I tried py4web-start apps -> working ./py4web-start apps -> not working Then I tried to tidy up. Most realistic I #1 deleted the venv (virtual environment), #2 removed the folder #3

[web2py] Re: web3py -> py4web

2019-08-31 Thread Massimo Di Pierro
I believe you have two (or three) versions installed. One installed from pip and one local (downloaded from github). when you start it with py4web-start apps (without the ./ you are using the pip installed one) when you start it with ./py4web-start apps you are using the git one. If

[web2py] Re: web3py -> py4web

2019-08-31 Thread Val K
Yeah, I had the same issue, because there is no apps/__init__.py in the repo - just create 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

[web2py] Re: web3py -> py4web

2019-08-31 Thread pollwerk
Using: python3 -m pip install py4web --upgrade worked. But i was unsucessful with these two commands: source bin/activate ./py4web-start apps / Then I used: git clone https://github.com/web2py/py4web.git cd py4web python3 -m pip install -r requirements.txt python3 setup.py

[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 / ██╗ ██╗ ██╗██╗ ██╗██╗██╗███╗██╗ ██╔══██╗╚██╗ ██╔╝██║ ██║██║██║██╔╝██╔══██╗ ██╔╝ ╚╔╝ ███║██║ █╗ ██║█╗ ██╔╝ ██╔═══╝

[web2py] Re: web3py -> py4web

2019-08-21 Thread 'Annet' via web2py-users
> 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

[web2py] Re: web3py -> py4web

2019-08-15 Thread VP
py4web is a great name. Just on the first page of documentation, but I like what I am reading a lot. 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

Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread Massimo Di Pierro
Not yet. Will create one eventually but want to finish a couple of features with support with this community On Monday, 12 August 2019 07:38:46 UTC-7, En Ware wrote: > > 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

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

[web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
you have to run python3 setup.py install On Tuesday, 30 July 2019 10:59:36 UTC-7, 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

[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

[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

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread villas
On Tuesday, 30 July 2019 07:35:08 UTC+1, Massimo Di Pierro wrote: > > I did not know about this. It has a cost. I'd rather not pay for it. > 1. Just so you know, from GitBook Pricing page: > GitBook is free for open-source & non-profit teams > 2. Markdown

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
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

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
*from pydal.restapi import RestAPI, Policy* On Monday, 29 July 2019 14:13:50 UTC-7, Tito Garrido wrote: > > I am trying to reproduce the RestAPI example: > > > > *>>> print (pydal.__version__)19.05.11>>> from pydal.dbapi import RestAPI, > Policy* > Traceback (most recent call last): > File "",

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
I did not know about this. It has a cost. I'd rather not pay for it. But I am thinking that perhaps we should move away from markmin and use markdown. Markmin is better but if we follow a more established standard we can use more tools. Also the book chapters can be used as README.md for the

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Tito Garrido
I am trying to reproduce the RestAPI example: *>>> print (pydal.__version__)19.05.11>>> from pydal.dbapi import RestAPI, Policy* Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'pydal.dbapi' What am I missing? On Mon, Jul 29, 2019 at 10:43 AM

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread António Ramos
Why not using gitbook to create the documentation ??? repos already using gitbook... https://guide.elm-lang.org/ https://docs.feathersjs.com/# etc Em seg, 29 de jul de 2019 às 10:36, Jose C escreveu: > Darn, I hunted around but didn't see it. Thanks for the link... > > > > On Monday, 29 July

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Jose C
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

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Nico Zanferrari
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

[web2py] Re: web3py -> py4web

2019-07-29 Thread Jose C
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

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
http://py4web.com/_documentation/static/index.html#chapter-06 Em qua, 24 de jul de 2019 às 12:28, Kevin Keller escreveu: > Which file Antonio? > > I found what seems an Oauth2 server py and pyjwt in core. > > So I suppose OAuth2 + OpenID Restful API can be done with web4py already.. > just need

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Kevin Keller
Which file Antonio? I found what seems an Oauth2 server py and pyjwt in core. So I suppose OAuth2 + OpenID Restful API can be done with web4py already.. just need to find in the docs.. By the way.. happy to contribute to the docs. On Wed, Jul 24, 2019 at 1:21 PM António Ramos wrote: > >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
Found a typo RestPI instead of RestAPI Regardsdef api(): return RestPI(db, policy)(request.method, request.args(0), request.args(1), request.get_vars, request.post_vars) Em qua, 24 de jul de 2019 às 12:17, António Ramos escreveu: > - Great documentation layout

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
- Great documentation layout - A litle bette name (Py4Web) - But the dashboard and the running circle and colours chosen are completely out of order in my opinion if it matters. Where is the logo ? will it have a logo ? what colour scheme will it use ? Regards Em qua, 24 de jul de 2019 às 09:44,

[web2py] Re: web3py -> py4web

2019-07-24 Thread Kevin Keller
Would live to try it today. Is there documentation how I can enable to require auth and use JWT for the PyDal REST API? On Wednesday, 24 July 2019 07:40:27 UTC+2, Massimo Di Pierro wrote: > > OK. I know. I am not good with names. > But there are lots of requirements to be fulfilled. >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Nico Zanferrari
Pretty awesome ;-) By the way, the box where you write the password should be enlarged a little on the right... [image: image.png] Il giorno mer 24 lug 2019 alle ore 10:09 Massimo Di Pierro < massimo.dipie...@gmail.com> ha scritto: > Dashboard now partially works on GAE in demo mode. >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Massimo Di Pierro
Dashboard now partially works on GAE in demo mode. http://py4web.com/_dashboard -- 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

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Nico Zanferrari
Excellent! Il giorno mer 24 lug 2019 alle ore 08:17 Massimo Di Pierro < massimo.dipie...@gmail.com> ha scritto: > > Notice the time to serve this page ( > https://github.com/web2py/py4web/blob/master/apps/_default/templates/index.html) > which is a template, is ~7ms. In web2py it was 100-200ms.

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Massimo Di Pierro
Notice the time to serve this page (https://github.com/web2py/py4web/blob/master/apps/_default/templates/index.html) which is a template, is ~7ms. In web2py it was 100-200ms. On Tuesday, 23 July 2019 23:03:08 UTC-7, sandeep patel wrote: > > Absolutely Great!! > > But >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Massimo Di Pierro
The dashboard does not work on GAE http://py4web.com/_documentation/static/ is not a valid URL http://py4web.com/_documention is On Tuesday, 23 July 2019 23:03:08 UTC-7, sandeep patel wrote: > > Absolutely Great!! > > But >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread sandeep patel
Absolutely Great!! But http://py4web.com/_documentation/static/ though 404 On Wed, Jul 24, 2019 at 11:28 AM Dave S wrote: > > > On Tuesday, July 23, 2019 at 10:40:27 PM UTC-7, Massimo Di Pierro wrote: >> >> OK. I know. I am not good with names. >> But there are lots of requirements to be

[web2py] Re: web3py -> py4web

2019-07-23 Thread Dave S
On Tuesday, July 23, 2019 at 10:40:27 PM UTC-7, 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/ > >

[web2py] Re: Web3py

2019-06-22 Thread 黄祥
tested on ubuntu docker for pip3 install web3py with simple app (worked) *steps* apt install -y git python3-pip cython3 cd git clone https://github.com/web2py/web3py cd web3py python3 setup.py install pip3 install web3py cd mkdir -p ~/apps/test/databases cat << EOF > ~/apps/test/__init__.py

[web2py] Re: Web3py

2019-06-22 Thread 黄祥
> > Ideas about how to ship apps when pip installing web3py? pardon, for current stage, can not, because you must: - clone web3py repo - run python3 setup.py install - then successfull install pip3 install web3py which imo inefficient detail tested on previous messages *ref (tests 5 works):*

[web2py] Re: Web3py

2019-06-22 Thread Massimo Di Pierro
Ideas about how to ship apps when pip installing web3py? -- 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

[web2py] Re: Web3py

2019-06-21 Thread 黄祥
compared the lightweight between alpine, ubuntu n debian, results are : *alpine (around 300mb) < ubuntu** (around 700mb)** < debian** (around 700mb)* $ docker history alpine/web3py IMAGE CREATED CREATED BY SIZE COMMENT

[web2py] Re: Web3py

2019-06-21 Thread 黄祥
tested work Dockerfile alpine base image while execute 'make test', never thought the service started itself after installed, checked using service command in package openrc cat << EOF > Dockerfile FROM alpine:latest RUN apk add --no-cache git py3-pip gcc python3-dev musl-dev memcached openrc

[web2py] Re: Web3py

2019-06-21 Thread 黄祥
tested work Dockerfile with alpine base image cat << EOF > Dockerfile FROM alpine:latest RUN apk add --no-cache git py3-pip gcc python3-dev musl-dev && \ addgroup -S web3py && \ adduser -D -G web3py web3py USER web3py RUN rm -rf /home/web3py/web3py && \ cd /home/web3py && \ export

[web2py] Re: Web3py

2019-06-20 Thread 黄祥
as question on github, here another alternative works without using ubuntu or debian image base file (which posted on prev msg) docker pull alpine docker run -it --privileged alpine /bin/sh apk add --no-cache git py3-pip memcached gcc python3-dev musl-dev make /usr/bin/memcached -u memcached &

[web2py] Re: Web3py

2019-06-19 Thread Massimo Di Pierro
I believe I have a solution in the last commit: 44904e47f5b5eec89b06ec332bd3094ec76ec3dd If should allow to do db.mytable.myfield.readable = True @action('index') @action.uses(db) def index(): db.mytable.myfield.readable = False and makes db.mytable.myfield.readable thread safe while,

[web2py] Re: Web3py

2019-06-19 Thread Marcelo Huerta
El viernes, 14 de junio de 2019, 11:32:58 (UTC-3), Massimo Di Pierro escribió: > > Be careful that you can no longer change attributes everywhere you like as > in: > > db.tablename.fieldname.readable = False > > In web2py this is ok. In web3py this is not safe. Attributes must be > global. The

Re: [web2py] Re: Web3py

2019-06-16 Thread Massimo DiPierro
Not with the usual syntax. Looking for a way to allow this in the new form api On Sun, Jun 16, 2019, 09:51 Fekete Zoltán wrote: > Hi Massimo, > > In web2py I highly rely on dynamically modifiable forms. Based on > calculations some fields are required or even hidden, others not. > > Will be

[web2py] Re: Web3py

2019-06-15 Thread 黄祥
still have an error, a bit different told about __iter__ and __len__ $ pip3 install -U -r requirements.txt Successfully built yatl Installing collected packages: yatl Found existing installation: yatl 1.0.6 Uninstalling yatl-1.0.6: Successfully uninstalled yatl-1.0.6 Successfully

[web2py] Re: Web3py

2019-06-15 Thread Massimo Di Pierro
was a yatl bug in len(XML('')) now fixed in yatl On Saturday, 15 June 2019 00:56:45 UTC-7, 黄祥 wrote: > > *work in web2py* > def json_row_as_list(): > if not request.env.request_method == 'GET': raise HTTP(403) > import json > table_name = request.args(0) > id = request.args(1) >

[web2py] Re: Web3py

2019-06-15 Thread 黄祥
*work in web2py* def json_row_as_list(): if not request.env.request_method == 'GET': raise HTTP(403) import json table_name = request.args(0) id = request.args(1) if id.isdigit() and int(id) > 0: query = (db[table_name]['id'] == id) else: query =

[web2py] Re: Web3py

2019-06-15 Thread Massimo Di Pierro
db.tablename.fieldname.readable = False # SAFE def test(): db.tablename.fieldname.readable = False # NOT SAFE *models.py* def on_define_tablename(table): table.fieldname.readable = False # SAFE db.define_table('tablename', Field('fieldname'), on_define = on_define_tablename)

[web2py] Re: Web3py

2019-06-15 Thread Massimo Di Pierro
Does not exist because it is always lazy by default. On Friday, 14 June 2019 21:53:54 UTC-7, 黄祥 wrote: > > *url* = >> http://localhost:8000/_dashboard/dbadmin?app=test=db=address >> *result* = { "__class__": "lazyT", "kwargs": {}, "text": "Field 0", >> "translator": { "__class__": "method" } }

[web2py] Re: Web3py

2019-06-14 Thread 黄祥
> > Be careful that you can no longer change attributes everywhere you like as > in: > > db.tablename.fieldname.readable = False > > In web2py this is ok. In web3py this is not safe. Attributes must be > global. The state of fixtures must not be modified inside actions. > is it mean in

[web2py] Re: Web3py

2019-06-14 Thread 黄祥
> > *url* = > http://localhost:8000/_dashboard/dbadmin?app=test=db=address > *result* = { "__class__": "lazyT", "kwargs": {}, "text": "Field 0", > "translator": { "__class__": "method" } } > *expected result *= Field 0 > no error occured but the result is not expected > there's told about

Re: [web2py] Re: Web3py FORM referenced fields

2019-06-14 Thread Massimo Di Pierro
*From:* web2py@googlegroups.com [mailto:web2py@googlegroups.com] *On > Behalf Of *Massimo Di Pierro > *Sent:* 13 June 2019 05:09 > *To:* web2py-users > *Subject:* [web2py] Re: Web3py FORM referenced fields > > > > I added an example that works for me. > > Maybe can h

[web2py] Re: Web3py

2019-06-14 Thread Massimo Di Pierro
Try replace cache with cache2 = lambda key, f, expiration: cache.get(key,f, expiration) cache_db = (cache2, cache_time_expire) On Friday, 14 June 2019 03:32:53 UTC-7, 黄祥 wrote: > > cache on select not work, modify apps/todo/api, cacheable=True is work > without defining cache >

[web2py] Re: Web3py

2019-06-14 Thread Massimo Di Pierro
Be careful that you can no longer change attributes everywhere you like as in: db.tablename.fieldname.readable = False In web2py this is ok. In web3py this is not safe. Attributes must be global. The state of fixtures must not be modified inside actions. On Thursday, 13 June 2019 17:57:49

[web2py] Re: Web3py

2019-06-14 Thread 黄祥
cache on select not work, modify apps/todo/api, cacheable=True is work without defining cache *apps/todo/__init__.py* @action('api') # a GET API function @action.uses(db)# all before starting a db connection def todo(): cache_time_expire = 10

[web2py] Re: Web3py

2019-06-13 Thread 黄祥
represent doesn't show the content of the table field properly in _dashboard (database) - type of field is reference (show but the content just Ref.[id], e.g. Ref.[4] - type of field is list:string (doesn't show at all), yet the field is filled, checked in database attached : screen_shot.png

[web2py] Re: Web3py

2019-06-13 Thread 黄祥
tryin to move define_tables from web2py to web3py, run well just a few note about field constuctor, (related with ui, FORM and T) : - comment : run well, but if you not use bootstrap, then it's should be modified (e.g. _class or function modal in boostrap) - represent : run well, but if you

[web2py] Re: Web3py

2019-06-13 Thread 黄祥
*models/db_schema_1_address.py* from web3py import Field from .db import * def on_define_address(table): table.field0.label = T('Field 0') db.define_table('address', Field('field0'), on_define = on_define_address, migrate = 'address.table') *test 1* *url* =

RE: [web2py] Re: Web3py FORM referenced fields

2019-06-13 Thread John Bannister
with db values. BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 13 June 2019 05:09 To: web2py-users Subject: [web2py] Re: Web3py FORM referenced fields I added an example that works for me. Maybe can help you debug

[web2py] Re: Web3py FORM referenced fields

2019-06-12 Thread Massimo Di Pierro
I added an example that works for me. Maybe can help you debug the problem: http://127.0.0.1:8000/examples/dbform2 On Wednesday, 12 June 2019 04:02:18 UTC-7, John Bannister wrote: > > Hi All, > > Does anyone have a working example of web3py Form using referenced fields? > > I have created the

[web2py] Re: Web3py FORM referenced fields

2019-06-12 Thread Massimo Di Pierro
thanks for reporting this. please open a web3py ticket and will look into this shortly. On Wednesday, 12 June 2019 04:02:18 UTC-7, John Bannister wrote: > > Hi All, > > Does anyone have a working example of web3py Form using referenced fields? > > I have created the standard person / pets tables

[web2py] Re: Web3py

2019-06-11 Thread 黄祥
since cython3 is needed to successful run 'python3 setup.py install' (detail in prev messages in this thread), just test it to run with cython3 in ubuntu docker, pls ignore, if not plan to support cython3 in the future *steps* apt install -y git python3-pip cython3 cd git clone

Re: [web2py] Re: Web3py

2019-06-09 Thread Massimo Di Pierro
ble which is defined in the auth > module. > > > > *From:* web2py@googlegroups.com [mailto:web2py@googlegroups.com] *On > Behalf Of *Massimo Di Pierro > *Sent:* 08 June 2019 07:19 > *To:* web2py-users > *Subject:* [web2py] Re: Web3py > > > > try a db.commi

[web2py] Re: Web3py

2019-06-09 Thread 黄祥
*http://localhost:8000/examples/dbform* *error on browser* 500 INTERNAL SERVER ERROR *error on terminal* ERROR:root:Traceback (most recent call last): File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 413, in wrapper ret = func(*func_args, **func_kwargs) File

RE: [web2py] Re: Web3py

2019-06-09 Thread John Bannister
Subject: [web2py] Re: Web3py try a db.commit() after your define_table(s). On Monday, 3 June 2019 08:16:27 UTC-7, John Bannister wrote: Hi All, Finally gotten round to playing again on the latest Web3py. On _scaffold app .. if I add new tables to model file and then reload from

[web2py] Re: Web3py

2019-06-08 Thread 黄祥
test pip3 install web3py on ubuntu docker container, known work must install cython3 to ensure gevent source can be build by gcc, and the procedure must clone repo first then run python3 setup.py install, then you can successful pip3 install web3py (inefficient i think), detail steps on test 5

[web2py] Re: Web3py

2019-06-08 Thread 黄祥
tested latest commit 151 on docker ubuntu *problem* dont have web3py/apps/__init__.py *solution* touch web3py/apps/__init__.py *steps* apt install -y git python3-pip pip3 install git+https://github.com/web2py/web3py --upgrade git clone https://github.com/web2py/web3py python3 -c "from

[web2py] Re: Web3py

2019-06-08 Thread 黄祥
> > try a db.commit() after your define_table(s). > already tried, same result (tested on different os), reported on previous message in this thread best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: Web3py

2019-06-08 Thread Massimo Di Pierro
thanks for this test. very useful. fixed. On Saturday, 8 June 2019 01:06:07 UTC-7, 黄祥 wrote: > > *steps* >> apt install -y git python3-pip >> pip3 install git+https://github.com/web2py/web3py --upgrade >> git clone https://github.com/web2py/web3py >> python3 -c "from pydal.validators import

[web2py] Re: Web3py

2019-06-08 Thread 黄祥
> > *steps* > apt install -y git python3-pip > pip3 install git+https://github.com/web2py/web3py --upgrade > git clone https://github.com/web2py/web3py > python3 -c "from pydal.validators import CRYPT; > open('password.txt','w').write(str(CRYPT()('a' )[0] ) )" > web3py-start -p ./password.txt -a

[web2py] Re: Web3py

2019-06-07 Thread Massimo Di Pierro
try a db.commit() after your define_table(s). On Monday, 3 June 2019 08:16:27 UTC-7, John Bannister wrote: > > Hi All, > > Finally gotten round to playing again on the latest Web3py. > > On _scaffold app .. if I add new tables to model file and then reload from > the dashboard .. I get errors as

[web2py] Re: Web3py

2019-06-07 Thread 黄祥
found https://pypi.org/project/web3py/ n test it on docker ubuntu return an error *steps* apt install -y python3-pip pip3 install web3py *result* Collecting web3py Downloading https:

[web2py] Re: Web3py

2019-06-07 Thread 黄祥
retest (commits 147) pip install from git repo on docker ubuntu, but got different error traceback *steps* apt install -y git python3-pip pip3 install git+https://github.com/web2py/web3py --upgrade git clone https://github.com/web2py/web3py python3 -c "from pydal.validators import CRYPT;

[web2py] Re: Web3py

2019-06-06 Thread Massimo Di Pierro
Thanks. Will fix them both tonight -- 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

[web2py] Re: Web3py

2019-06-05 Thread 黄祥
test latest commits (146) *$ make test* tests/test_auth.py::TestAuth::test_register FAILED tests/test_auth.py::TestAuth::test_register_invalid FAILED tests/test_cache.py::CacheTest::test_change_detection PASSED tests/test_cache.py::CacheTest::test_different_keys PASSED

[web2py] Re: Web3py

2019-06-05 Thread 黄祥
test another way around to installed web3py, seems can't work smoothly using this way pip3 install directly from git repo (which installed web3py-start on /usr/local/bin/), another problem is requirements.txt package not same like on setup.py install_requires=[...] *steps* docker pull ubuntu

[web2py] Re: Web3py

2019-06-03 Thread 黄祥
face same error too on mac python3.7 *steps* ./web3py-start -p password.txt -a 0.0.0.0:8000 apps cat << EOF >> apps/_scaffold/models.py db.define_table('thing', Field('name') ) db.commit() db.define_table('think', Field('name') ) db.commit() EOF open http://localhost:8000/_dashboard error

[web2py] Re: Web3py

2019-06-03 Thread John Bannister
Hi All, Finally gotten round to playing again on the latest Web3py. On _scaffold app .. if I add new tables to model file and then reload from the dashboard .. I get errors as follows:- File "C:\Users\johhb\py3\lib\site-packages\pydal\base.py", line 581, in define_table raise

[web2py] Re: Web3py

2019-06-02 Thread Massimo Di Pierro
On Saturday, 1 June 2019 20:03:24 UTC-7, 黄祥 wrote: > > agree, flexible is no policy, long story short what i mean is, can user > define templates on it's own path in the app ? > *e.g. * > *apps/_scaffold/settings.py* > TMPLTS_FOLDER = os.path.join(APP_FOLDER, 'views') > > Instead of

[web2py] Re: Web3py

2019-06-01 Thread 黄祥
agree, flexible is no policy, long story short what i mean is, can user define templates on it's own path in the app ? *e.g. * *apps/_scaffold/settings.py* TMPLTS_FOLDER = os.path.join(APP_FOLDER, 'views') btw, no worries, it's fine test latest commit (142), error traceback about database

[web2py] Re: Web3py

2019-06-01 Thread Massimo Di Pierro
You can already has subfolders in the templates folder. When you specify a template file, you would specify the path relative to the templates folder. You could also make a decorator at the app level that automatically finds the appropriate template based on the filename and the function name.

[web2py] Re: Web3py

2019-06-01 Thread 黄祥
is it possible to have flexible folders pattern for templates and translations folders ? *e.g.* mkdir apps/_scaffold/controllers mkdir apps/_scaffold/models mv apps/_scaffold/controllers.py apps/_scaffold/controllers/default.py mv apps/_scaffold/models.py apps/_scaffold/models/db.py then adjust

[web2py] Re: Web3py

2019-05-30 Thread 黄祥
just clarficiation, is it correct or it should be python3 setup.py sdist *web3py/Makefile* deploy: test python setup.py sdist *web3py/setup.py* install_requires=[ ... ], is not same like *web3py/requirements.txt* perhaps can create a reference that install_requires in web3py/setup.py is

[web2py] Re: Web3py

2019-05-30 Thread 黄祥
*Dockerfile* # please change : # password.txt with your desire filename # password_admin with your desire password admin # 8000 with your available port FROM ubuntu:latest RUN apt update && \ apt install -y git python3-pip python-pip memcached && \ service memcached restart RUN groupadd -r

[web2py] Re: Web3py

2019-05-30 Thread 黄祥
*suggestion for apps/_scaffold:* *- form validation not work during login and register* ** during register : * form field password and password (again) allow mismatched input (this case happen just in web form field, not in database table, when insert mismatch database table remain empty) **

[web2py] Re: Web3py

2019-05-30 Thread Massimo Di Pierro
Feel free to submit a PR for docker. Yes Auth is still in progress but if you have advice, known problems, please let us know, Your tests help a lot. Massimo On Wednesday, 29 May 2019 18:16:48 UTC-7, 黄祥 wrote: > > test so far so good in latest commits (138) using docker (ubuntu n > debian), a

[web2py] Re: Web3py

2019-05-29 Thread 黄祥
test so far so good in latest commits (138) using docker (ubuntu n debian), a few error during test auth which i know is still work in progress or prefer to report the error traceback too ? *steps* docker pull ubuntu docker run -it --privileged ubuntu /bin/bash apt update apt install -y git

[web2py] Re: Web3py

2019-05-29 Thread Massimo Di Pierro
fixed. see the readme file On Tuesday, 28 May 2019 00:41:51 UTC-7, 黄祥 wrote: > > *problem* > can't run it on background because of password required > *e.g. * > ./web3py-start apps -a 0.0.0.0: & > > perhaps can add parameter for password like web2py during start web3py > *e.g.* > python

[web2py] Re: Web3py

2019-05-28 Thread 黄祥
*problem* can't run it on background because of password required *e.g. * ./web3py-start apps -a 0.0.0.0: & perhaps can add parameter for password like web2py during start web3py *e.g.* python web2py/web2py.py --nogui --no-banner -a a -i 0.0.0.0 -p 8000 test latest commit 128: can register

[web2py] Re: Web3py

2019-05-22 Thread 黄祥
tested commit (123), need to create folder databases on examples webapp (mkdir apps/examples/databases) *phase 1 ([FAILED] loading examples)* rm -rf /tmp/* rm -rf web3py git clone https://github.com/web2py/web3py cd web3py pip3 install -U -r requirements.txt $ ./web3py-start apps ___

[web2py] Re: Web3py

2019-05-21 Thread Massimo Di Pierro
delete everything in /tmp/web3py and restart it. This folder should really be created in the cwd not in /tmp/ I will change it. On Monday, 20 May 2019 07:17:14 UTC-7, En Ware wrote: > > Getting error missing table , sqlite3.OperationalError: no such table: > web3py_error > > _dashboard won't

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

[web2py] Re: Web3py

2019-05-21 Thread Massimo Di Pierro
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

[web2py] Re: Web3py

2019-05-21 Thread En Ware
./web3py-start apps/ ___ __ __ | / / / / __ |/___ \/ __ \ \/ / | | / / /_ / /_/ /___/ / /_/ /\ / | | /| / / __/ / __ //__ / / / / | |/ |/ / /___/ /_/ /___/ / / / / |___/|_/_/_/_/_/ /_/ It is still experimental... Dashboard

[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

[web2py] Re: Web3py Auth

2019-05-21 Thread villas
Many2many: I think a generic tagging api is a great idea in general for web3py. If we can leverage that for auth groups too, then why not. Clearly a link table adds complexity to all the queries, but if this is properly serviced by the api, then no prob. Hierachical tagging, nested sets

  1   2   3   4   >