Re: [web2py] Re: web2py/py4web HTML helpers as an independent module

2020-02-16 Thread Massimo Di Pierro
Mind these helpers are a re-implementation of the web2py ones. They are very similar but not identical. They are used in py4web. On Saturday, 15 February 2020 10:05:33 UTC-8, Ramos wrote: > > Nice to know!! > > Massimo Di Pierro escreveu em sáb, > 15/02/2020 às 11:29 : > &

[web2py] Re: MySQL server has gone away - py4web

2020-02-16 Thread Massimo Di Pierro
turday, February 15, 2020 at 8:30:58 AM UTC-3, Massimo Di Pierro > wrote: >> >> My guess is that there is some timeout in the mysql config example. >> Can you repro with latest py4web? >> >> On Friday, 14 February 2020 14:31:58 UTC-8, Marcello wrote: >>

[web2py] Re: 'Unread result found' error with pyDAL and MySQL

2020-02-16 Thread Massimo Di Pierro
I pushed a revision that should allow you todo: DAL(..., driver_args={'cursor_buffered': True})" (UNTESTED!) On Saturday, 15 February 2020 03:32:05 UTC-8, Giovanni B. wrote: > > Hello! > > I'm currently using pyDAL in a stand-alone application and I'm suffering a > problem while trying to

[web2py] Re: MySQL server has gone away - py4web

2020-02-15 Thread Massimo Di Pierro
My guess is that there is some timeout in the mysql config example. Can you repro with latest py4web? On Friday, 14 February 2020 14:31:58 UTC-8, Marcello wrote: > > Hi, > > Any informatiion about this ? > Nobody using py4web with mysql ?? > > > > On Tuesday, February 11, 2020 at 6:58:11 PM

[web2py] Re: web2py/py4web HTML helpers as an independent module

2020-02-15 Thread Massimo Di Pierro
pip install yatl python >>> from yatl.helpers import A, BUTTON, DIV enjoy. This has been possible for some time. On Friday, 14 February 2020 04:35:41 UTC-8, Ramos wrote: > > Hello, like pydal that is now an independent module , would also be > interesting to have web2py HTML helpers imported as

[web2py] Re: Error in factories.py in py4web?

2020-02-15 Thread Massimo Di Pierro
A mistake. Thanks for fixing it. :-) On Thursday, 13 February 2020 15:09:03 UTC-8, Luca wrote: > > In the class ActionFactory, there's the code below. Is that an error? I > don't think requires_login is in the proper place? Maybe I don't > understand. > > def put(self, path=None,

[web2py] Re: py4wb simplification

2020-02-15 Thread Massimo Di Pierro
t; Luca > > > > Luca > > On Friday, January 31, 2020 at 8:55:11 PM UTC-8, Massimo Di Pierro wrote: >> >> I committed some new code to py4web >> >> Now you can do: >> >> from . common import authenticated, unauthenticated # from latest >&

[web2py] Re: web2py 2.18.5: LOAD bugs?

2020-02-15 Thread Massimo Di Pierro
works for me. can you try print vars and URL(vars=vars)? On Monday, 10 February 2020 18:41:54 UTC-8, Toan Le wrote: > > Controller: > def test(): > return H3("Hello") > > def grid(): > tablename = request.args(0) or "auth_user" > if not tablename in db.tables: raise HTTP(403) >

[web2py] Re: Kaspersky Internet Security says http://www.web2pyslices.com/home?content<...> is a phishing site.

2020-02-10 Thread Massimo Di Pierro
Honestly I dropped the ball on that. I do not own it. On Thursday, 6 February 2020 16:11:24 UTC-8, Dave S wrote: > > > > On Wednesday, February 5, 2020 at 3:33:15 AM UTC-8, Marcelo Huerta wrote: >> >> >> El martes, 4 de febrero de 2020, 17:28:12 (UTC-3), jim kaubisch escribió: >>> >>> I'm

[web2py] Re: IS_IN_SET Conditional produces no Dropdown

2020-02-10 Thread Massimo Di Pierro
You need to 1) extend Validator and 2) provide an options method. This should do: from pydal.validators import Validator class IS_IN_SET_CONDITIONAL(Validator): def __init__(self, liste, expression, error_message="Value not allowed" ): self.expression = expression

[web2py] Re: How to start to create an Intranet site using Web2Py and PyCharm?

2020-02-10 Thread Massimo Di Pierro
If this is a new project. Try py4web instead. We help you with the project, you help us with documentation and finding bugs. ;-) On Sunday, 9 February 2020 21:58:25 UTC-8, Nimesh Silva wrote: > > Hi all, > > My team in my capstone course is to create an intranet site (website) for > a local

Re: [web2py] Re: Looking for web2py developer for Italian small company

2020-02-10 Thread Massimo Di Pierro
4web? > > Thanks in advance, I do appreciate your work. > Víctor. > > El jueves, 30 de enero de 2020, 7:10:45 (UTC+1), Massimo Di Pierro > escribió: >> >> Yes. for me it is the future. It is usable. I recently tried to port some >> of my apps from web2py to p

[web2py] Re: py4web nw version and new example

2020-02-10 Thread Massimo Di Pierro
Posted 0.1.20200210.2 with this and other small fixes. Thanks for all your help! On Monday, 10 February 2020 07:46:23 UTC-8, Massimo Di Pierro wrote: > > darn. fixed. > > On Monday, 10 February 2020 03:38:06 UTC-8, Alex Beskopilny wrote: >> >> >> [X] loaded _dashbo

[web2py] Re: py4web nw version and new example

2020-02-10 Thread Massimo Di Pierro
t; mkdir apps/myfeed/databases > > and restart > > понедельник, 10 февраля 2020 г., 9:13:46 UTC+3 пользователь Massimo Di > Pierro написал: >> >> A new py4web version is out 0.1.20200209.2: >> >> - better reload mechanism should avoid come pitfalls and inconsis

[web2py] py4web nw version and new example

2020-02-09 Thread Massimo Di Pierro
A new py4web version is out 0.1.20200209.2: - better reload mechanism should avoid come pitfalls and inconsistent state - includes a new example app, a minimalist facebook clone called myfeed (feel free to suggest improvements) - includes a new page "/_dashboard/gitlog/{app_name}" which, for

[web2py] Re: py4web - delete an app?

2020-02-09 Thread Massimo Di Pierro
No there is not. We should add one. Please open a ticket. On Monday, 3 February 2020 07:49:09 UTC-8, mweissen wrote: > > Ok, I have learned how to create an app. > But I did not find any button to remove an app. > I can delete the directory of the app, but should not be there a button on > the

Re: [web2py] py4web in Google App Engine route app

2020-02-09 Thread Massimo Di Pierro
Your .gitcloudignore appears to be ignoring all of the apps: apps/filemanager apps/filemanager/* apps/todo apps/todo/* apps/examples apps/examples/* apps/_dashboard apps/_dashboard/* apps/_scaffold apps/_scaffold/* apps/_minimal apps/_minimal/* apps/_default apps/_default/* apps/_documentation/*

[web2py] Re: Python3 and Soap

2020-02-09 Thread Massimo Di Pierro
soap/tree/master/pysimplesoap > > with the same error. > > Regards > On Saturday, July 27, 2019 at 9:29:36 PM UTC+3, Massimo Di Pierro wrote: >> >> web2py ships with old version of pysimplesoap in >> web2py/gluon/contrib/pysimplesoap >> >> try replace it wi

[web2py] Re: web2py / py4web in pypi.org

2020-02-09 Thread Massimo Di Pierro
py4web yes. I just deployed a new version. web2py was never really distributed using pypi. On Tuesday, 4 February 2020 07:14:49 UTC-8, Marcelo Huerta wrote: > > > Are there plans to include the latest versions of the frameworks in > pypi.org? I see that pypi.org has a web2py 2.1.1. > --

[web2py] Re: scheme of url when using py4web with https proxy

2020-02-09 Thread Massimo Di Pierro
Please open a py4web ticket about this. Will address asap. On Tuesday, 4 February 2020 06:30:05 UTC-8, Eric wrote: > > > On Tuesday, February 4, 2020 at 8:16:52 AM UTC-6, Eric wrote: >> >> How can I configure py4web to return the proper scheme? >> >> > I should add that main problem this is

[web2py] Re: web2py 2.18.5: LOAD bugs?

2020-02-09 Thread Massimo Di Pierro
Would you mind opening a web2py ticket about this? On Tuesday, 4 February 2020 05:07:22 UTC-8, Toan Le wrote: > > Hi all, > > I found this bugs at def LOAD(), gluon/compileapp.py, line 213: > > other_request.env.query_string = \ > vars and URL(vars=vars).split('?')[1] or '' > It has

Re: [web2py] py4wb simplification

2020-02-09 Thread Massimo Di Pierro
Please do On Sunday, 2 February 2020 23:32:55 UTC-8, Kevin Keller wrote: > > Happy to support with the oidc/oauth2. > > Will share some code suggestions if that's ok with you > > On Mon, 3 Feb 2020, 05:56 Massimo Di Pierro, > wrote: > >> mtable is in scope and usab

Re: [web2py] py4wb simplification

2020-02-02 Thread Massimo Di Pierro
ope going forward? > > Thanks! > > > > On Sat, Feb 1, 2020 at 5:55 AM Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> I committed some new code to py4web >> >> Now you can do: >> >> from . common import authent

Re: [web2py] Digest for web2py@googlegroups.com - 1 update in 1 topic

2020-02-01 Thread Massimo Di Pierro
APnHjLBEHhqNN9Cc58_pQoTuLP0hfdhtww=xgK7ttfFSdRAo=g@mail.gmail.com_m_2908440178038656909_group_thread_0> >> >> - 1 Update >> >> py4wb simplification >> <http://groups.google.com/group/web2py/t/29bb590b8cd3577c?utm_source=digest_medium=email> >> >> Massim

[web2py] py4wb simplification

2020-01-31 Thread Massimo Di Pierro
I committed some new code to py4web Now you can do: from . common import authenticated, unauthenticated # from latest _scaffold # exposes index as /{app_name}/index and uses index.html or generic.html template, auth.user, db, T, session @authenticated() def index(): return dict() # GET

[web2py] Re: web2py Rocket support for python 3.6+

2020-01-31 Thread Massimo Di Pierro
Please submit a bug report with more details. We will look into it. If you can help fix this it would be great as looks like you have some resources to dedicated to improve rocket. There is no way to limit the TLS support but, again, open a github ticket. Massimo On Thursday, 30 January 2020

[web2py] Re: web2py Rocket support for python 3.6+

2020-01-29 Thread Massimo Di Pierro
Rocket has a history. It was a rewrite on an early web server that I wrote, borring some ideas from cherrypi. It became its own project. When the maintainers lost interests I forked and the version that ships with web2py is not the one in github/lunchpad. I will continue to maintain it as long

[web2py] Re: How to run a specific application instead of welcome in Pycharm Pro

2020-01-29 Thread Massimo Di Pierro
I normally just do: cd web2py/applications ln -s XYZ init On Wednesday, 22 January 2020 23:11:07 UTC-8, Davidiam wrote: > > I am using Pycharm Professional for web2py development. When I create a > project with an application "XYZ" and I click run, web2py is started and > goes directly to

Re: [web2py] Re: Looking for web2py developer for Italian small company

2020-01-29 Thread Massimo Di Pierro
. On Wednesday, 22 January 2020 08:12:04 UTC-8, Hugo Alberto Rivera Diaz wrote: > > Massimo,an honor to salute you! One question so you would recommend the > use of py4web over web2py? Is py4web te next step for web2py developers? > > El mié., 22 ene. 2020 a las 0:23, Ma

[web2py] Re: Question about FORM

2020-01-29 Thread Massimo Di Pierro
You should have request.vars.test but not form.vars.test. The parsing of the latter is done by the INPUT() object. Since you use XML('') you do not have an INPUT object. On Wednesday, 22 January 2020 03:17:55 UTC-8, Константин Комков wrote: > > Hello! Can somebody answer why If I use FORM() and

[web2py] Re: Py4web: ¿Practical example step by step?

2020-01-21 Thread Massimo Di Pierro
I am preparing one. It will be done in 2 weeks. Promise. On Tuesday, 21 January 2020 01:15:27 UTC-8, Dave S wrote: > > > > On Monday, January 20, 2020 at 4:55:33 AM UTC-8, Yuver Parra wrote: >> >> >> Good morning and thanks in advance for sharing your knowledge in this >> group. >> Do any of you

Re: [web2py] py4web questions

2020-01-21 Thread Massimo Di Pierro
d again or try to edit it says no image selected. Guess there >> is the equivalent of download missing somewhere. Any help appreciated. >> >> John >> -Original Message- >> From: web...@googlegroups.com [mailto:web...@googlegroups.com] On Behalf >> Of M

[web2py] Re: Looking for web2py developer for Italian small company

2020-01-21 Thread Massimo Di Pierro
I strongly recommend py4web + vue.js :-) On Tuesday, 21 January 2020 07:40:18 UTC-8, Ivan Gazzola wrote: > We are a small company in Italy, we need a new developer for our project ( > xortho.it) > > The web app is developed with jquery mobile and web2py, we are planning to > move to angular and

[web2py] Re: py4web - form field default - appears to not be working for me

2020-01-21 Thread Massimo Di Pierro
can you try this? form = Form() if not form.submitted: form.vars.update({field.name:field.default for field in form.table if field.default}) Maybe I can make this default behavior? On Tuesday, 21 January 2020 18:27:02 UTC-8, Jim S wrote: > > Sorry for all the py4web noob questions > > I

Re: [web2py] py4web - using session object in a template

2020-01-21 Thread Massimo Di Pierro
cally available. > > -Jim > > On Tue, Jan 21, 2020 at 1:00 AM Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> I would recommend you do something like this >> >> @action('index') >> @action.uses('index.html', session) >> def index(): >

Re: [web2py] py4web - using session object in a template

2020-01-21 Thread Massimo Di Pierro
very time. I'm lazy, right? I'm assuming that this is the same if I > used response instead of session. In web2py you didn't have to pass > response to the view, it was automatically available. > > -Jim > > On Tue, Jan 21, 2020 at 1:00 AM Massimo Di Pierro < > massimo.dipie.

[web2py] Re: py4web - javascript references in html files

2020-01-20 Thread Massimo Di Pierro
Good question. Not sure there is a way that is best. You are free to use URL everywhere but often it is not-necessary, specifically because all static files have the same prefix. It is therefore faster and more concise to use the above syntax. On Sunday, 19 January 2020 09:35:27 UTC-8, Jim S

Re: [web2py] py4web - using session object in a template

2020-01-20 Thread Massimo Di Pierro
I would recommend you do something like this @action('index') @action.uses('index.html', session) def index(): ... return dict(session=dict(session)) This will pass a shallow copy of the session to the view. You will be free to read from the session in index.html but you should not

[web2py] Re: Web2py or py4web for a brand new project

2020-01-20 Thread Massimo Di Pierro
You should use the py4web documentation. Also please report any error you find. On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote: > > Hi > > Is the documentation for web2py still mostly relevant for py4web? > > Thanks > Andrew > > On Thursday, 12 December 2019 20:47:05 UTC+6:30,

[web2py] Re: Using distinct with null

2020-01-14 Thread Massimo Di Pierro
you can mix and match DAL with SQL so just replace (a_wlp2.SUBSPC tt_main.SUBSPC) with "a_wlp2.SUBSPC *IS NOT DISTINCT FROM* tt_main.SUBSPC" should work. On Tuesday, 14 January 2020 04:39:38 UTC-8, Константин Комков wrote: > > Hello! > I have that query: > Firebird SQL > SELECT >

[web2py] Re: Cookie policy plugin

2020-01-14 Thread Massimo Di Pierro
I like this one: window.addEventListener("load", function(){window.cookieconsent.initialise({"palette": {"popup": {"background": "#000"},"button": {"background": "#f1d600"}}})}); On Sunday, 12 January 2020 02:54:21 UTC-8, Jonsubs wrote: > > Hi everyone, > Is there some easy way or specific

[web2py] Re: Why not updating this list? web2py-appliances

2020-01-14 Thread Massimo Di Pierro
true. those are apps are very old. not sure they should still be linked. On Wednesday, 8 January 2020 21:53:20 UTC-8, Dave S wrote: > > > > On Wednesday, January 8, 2020 at 5:07:26 AM UTC-8, Ari Lion BR Sp wrote: >> >> Hi There, >> >> In order to get more publicity, Why not updating this list

[web2py] Re: web2py broken with Python 3.8

2020-01-14 Thread Massimo Di Pierro
Works for me right now. On Monday, 6 January 2020 14:41:42 UTC-8, Woody wrote: > > Any update on when web2py will be compatible with Python 3.8? > > On Sunday, December 8, 2019 at 2:59:49 AM UTC-5, Massimo Di Pierro wrote: >> >> Both web2py and py4web are currently inco

Re: [web2py] web2py and py4web - single signon between the two

2020-01-14 Thread Massimo Di Pierro
yes. that is a priority. On Sunday, 5 January 2020 13:28:10 UTC-8, Carlos Cesar Caballero wrote: > > Maybe implementing a CAS server for py4web... But I am not sure right now > what will be the recommended way for implementing > modules/components/plugins in py4web... > > El vie., 3 de enero

[web2py] Re: pysimplesoap & py4web

2020-01-14 Thread Massimo Di Pierro
yes. I think it would be a very good exercise to port the @service.soap decorator defined in web2py/gluon/tools.py to py4web On Saturday, 4 January 2020 14:38:02 UTC-8, LUC wrote: > > Dear team, does anyone know if the py4web will support pysimplesoap? > -- Resources: - http://web2py.com -

Re: [web2py] warning: new pydal

2020-01-04 Thread Massimo Di Pierro
I am curious about the mongo issue. I have seen it before and I thought I had fixed 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

Re: [web2py] warning: new pydal

2020-01-03 Thread Massimo Di Pierro
line 383, in __select\nif self.server_version_major < > 2.6:\nAttributeError: \'Mongo\' object has no attribute > \'server_version_major\'\n' > > > any help would be greatly appreciated. > > > Thanks > > On Fri, Dec 27, 2019 at 12:40 PM Massimo Di Pierro &l

[web2py] Re: py4web sample errors

2020-01-01 Thread Massimo Di Pierro
About the class style, you should specify it: >>> from py4web.utils.form import Form >>> from pydal import Field DEFAULT STYLE >>> f = Form([Field('a','text'), Field('b','string')]) >>> print(f.xml()) AB BULMA STYLE >>> from py4web.utils.form import FormStyleBulma >>> f =

[web2py] Re: Take me advice, please

2019-12-30 Thread Massimo Di Pierro
Transfer from where to where? things like objects may have a complex state and cannot be reliably serialized. They can be rebuilt. What is your use case? Massimo On Sunday, 29 December 2019 20:34:49 UTC+1, Константин Комков wrote: > > Hello! > > How can I transfer my variable type of list,

[web2py] Re: py4web sample errors

2019-12-28 Thread Massimo Di Pierro
was able to reproduce the date format issue. Not a bug, it simply is not currently handled. Let me think about it some more. On Saturday, 28 December 2019 16:18:05 UTC+1, Massimo Di Pierro wrote: > > Thanks for reporting this: > > Fixed these: > * _dashboard, when reloading Apps,

[web2py] Re: py4web sample errors

2019-12-28 Thread Massimo Di Pierro
: Boolean widget does not show selected state. > > * Local access 127.0.0.1:8000/whateverapp from 2 diferent browsers hungs > > > El miércoles, 25 de diciembre de 2019, 19:49:22 (UTC+1), Massimo Di Pierro > escribió: >> >> Can you please check the latest version? T

[web2py] Re: 'Mongo' object has no attribute 'server_version_major

2019-12-28 Thread Massimo Di Pierro
Can you provide an example to reproduce? It seems to run the mongo tests fine on travis: https://travis-ci.org/web2py/pydal/jobs/629956078 On Saturday, 28 December 2019 09:53:36 UTC+1, YLa wrote: > > Hi Massimo, > > I am seeing: 'Mongo' object has no attribute 'server_version_major'" > >

[web2py] Re: warning: new pydal

2019-12-27 Thread Massimo Di Pierro
sers\salva\AppData\Roaming\Python\Python37\site-packages\pydal\contrib\portalocker.py" > , line 171, in open_file > f = open(filename, mode) > FileNotFoundError: [Errno 2] No such file or directory: > 'apps\\.service\\sql.log' > > > [ ] loading _default ... > > [A[

[web2py] Re: Py4web Auth Equivalent

2019-12-27 Thread Massimo Di Pierro
Did you look at this? http://py4web.com/_documentation/static/index.html#chapter-11 If you tell me what specifically to expland I will do so. On Friday, 27 December 2019 14:06:52 UTC+1, John Bannister wrote: > > Hi All, > I have played with py4web for a while now and one thing I cannot get my >

[web2py] warning: new pydal

2019-12-27 Thread Massimo Di Pierro
I made some major changes to pydal: - internal refactoring in the db connection logic - dropped pg8000 support (never worked well) - reformatting The refactoring is a simplification of some pre-existing convoluted logic but it also makes it easy to use pydal with multi-threaded (non web2py)

[web2py] Re: py4web and celery

2019-12-27 Thread Massimo Di Pierro
I changed to default to USE_CELERY=False I do not want to make it dependent on celery. On Thursday, 26 December 2019 19:56:54 UTC+1, JSalvat wrote: > > May need to add *celery *to requirements ? > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: py4web and celery

2019-12-26 Thread Massimo Di Pierro
le "c:\wwwroot\py4web\py4web\core.py", line 1008, in initialize > apps = os.listdir(assets_dir) > FileNotFoundError: [WinError 3] El sistema no puede encontrar la ruta > especificada: 'c:\\wwwroot\\py4web\\py4web\\assets' > > c:\wwwroot\py4web> > > Yesterday's re

[web2py] py4web and celery

2019-12-26 Thread Massimo Di Pierro
I posted an example of possible use of celery with py4web (in _scaffold) but I am not too happy about it. db._adapter.reconnect() should be automatic and 'apps._scaffold.tasks' feels clunky. Anyway, the example shows how you can define tasks and they can import anything they need from the

[web2py] Re: Error 400 for Not authorized? Shouldn't we use 401?

2019-12-26 Thread Massimo Di Pierro
yes we should. fixed. On Thursday, 19 December 2019 20:18:50 UTC+1, Tito Garrido wrote: > > Hi Guys, > > I am using AuthJWT from > https://github.com/web2py/web2py/blob/master/gluon/tools.py > I could see that an expired token or not authorized token is > returning error 400. Shouldn't we use

[web2py] Re: py4web - cannot get logged in

2019-12-26 Thread Massimo Di Pierro
to the same as my password (mine is only 2 characters, is that a > problem?), I have the same results as in the original message. > > I get the same behavior on my work computer and my home computer. Both > running Ubuntu 19.10 > > -Jim > > On Wednesday, December 25, 2019 a

[web2py] Re: problems running PY4WEB

2019-12-25 Thread Massimo Di Pierro
not sure why this is pinned and how to unpin. :-( On Wednesday, 18 December 2019 07:34:23 UTC+1, Dave S wrote: > > > > On Thursday, October 10, 2019 at 10:38:53 PM UTC-7, Kevin Fonseca wrote: > > > oops, another pinned post! Please save pinning for messages that need > long-term visibility. >

[web2py] Re: py4web won't create apps

2019-12-25 Thread Massimo Di Pierro
This is a bug. It was just fixed. On Wednesday, 25 December 2019 13:26:59 UTC+1, Scott Hunter wrote: > > I installed py4web via pip on a MacBook Pro running Catalina; it runs > fine, and I can create new apps (by "hand"), but the dashboard & default > apps don't get created, even if I run it

[web2py] Re: py4web sample errors

2019-12-25 Thread Massimo Di Pierro
Can you please check the latest version? This should be fixed. translations in forms are not yet supported in an automatic manner. working on it. On Tuesday, 24 December 2019 14:21:28 UTC+1, JSalvat wrote: > > Very simple Form and Grid sample to show some errors: > > In Grid: decimal field

[web2py] Re: Merry py4web

2019-12-25 Thread Massimo Di Pierro
:-) Merry Christmas everybody. On Tuesday, 24 December 2019 06:35:10 UTC+1, JSalvat wrote: > > Wish Merry Christmas and great New Year to Massimo and the rest of the > contributors that deploy py4web! > > Looks like py4web is close to be a stable framework on which many of us > will count for

[web2py] Re: What’s the timelines for py4web?

2019-12-25 Thread Massimo Di Pierro
Good Point. I will update the py4web documentation with some celery examples. On Monday, 23 December 2019 18:33:35 UTC+1, Marcelo Huerta wrote: > > > > El domingo, 15 de diciembre de 2019, 18:17:11 (UTC-3), Massimo Di Pierro > escribió: >> >> My plan is to spend th

[web2py] Re: py4web - cannot get logged in

2019-12-25 Thread Massimo Di Pierro
I posted a new version. Should solve this problem. Please let me know. On Thursday, 19 December 2019 17:14:20 UTC+1, Jim S wrote: > > python3 -m pip install --upgrade py4web > py4web-start apps > > Entered my password > > Went to http://127.0.0.1:8000/_dashboard > > I am asked for a password - no

[web2py] Re: Is there any documentation about DBAPI and JWT?

2019-12-25 Thread Massimo Di Pierro
When you ask about DBAPI, Do you mean the pydal RESTAPI? I assume so. http://py4web.com/_documentation/static/index.html#chapter-06 Can you provide an use case of use of RESTAPI with JWT? Do you need JWT just to authenticate the user or what kind of pemission info do you want to delegate to the

[web2py] Re: Took Py4Web on a spin.. few errors

2019-12-25 Thread Massimo Di Pierro
Thanks for your comments. The "TypeError: sequence item 0: expected str instance, int found" was a yatl bug. It is fixed. The latest py4web requires yatl 20191224 which includes the fix. On Tuesday, 17 December 2019 21:09:16 UTC+1, Kevin Keller wrote: > > Hey, > > I tried py4web from github

[web2py] Re: Reset to virgin state

2019-12-15 Thread Massimo Di Pierro
Easiest way is to remov the folder and git clone again or unzip again On Sunday, 15 December 2019 12:44:46 UTC-8, clifford emeric wrote: > > I am a beginner with all this, and have been playing with it for a few > days, and with what I now know I would like to start over again from a > virgin

[web2py] Re: Web2py y py4Web

2019-12-15 Thread Massimo Di Pierro
I do not speak spanish. I should learn. But I can kind of read it. ;-) If stockpost10 is your app it must be under the apps folder and you should start it with > py4web-start apps You start all your apps under the apps folder. You cannot just start one app. - En la ventana de comandos

[web2py] Re: Congratulations on PY4WEB

2019-12-15 Thread Massimo Di Pierro
Yes. py4web is a wsgi. Any system that has instructions for bottle or flask, can run py4web with pretty much the same instructions. On Sunday, 15 December 2019 09:54:34 UTC-8, JoeCodeswell wrote: > > Dear Massimo and Team, > > Congratulations on PY4WEB. > > I am particularly excited about the

[web2py] Re: What’s the timelines for py4web?

2019-12-15 Thread Massimo Di Pierro
My plan is to spend the Christmas vacation making sure it works with Python 3.8, adding an internationalization UI, and fixing a few bugs with error reporting. So by Dec 31. Complete the core documentation by Jan 4 and maybe post some sample projects. I cannot test all the Auth scenarios. I

[web2py] Re: py4web and webkit

2019-12-15 Thread Massimo Di Pierro
Maybe download it again. Cannot reproduce the problem. On Saturday, 14 December 2019 23:30:40 UTC-8, leone wrote: > > > Unable to use _dashboard using webkit by python gi.repository. > > ** Message: 08:21:43.542: console message: > http://localhost:8000/_dashboard/static/js/index.js @5:

[web2py] Re: Web2py or py4web for a brand new project

2019-12-15 Thread Massimo Di Pierro
Good question. web2py and py4web share a lot of libraries and their syntax is very similar. Both will be maintained. web2py was born in 2007 and it is mostly for Python 2 although it now works well with python 3. As a rule of thumb, if you are porting a Python 2 project to Python 3, use

[web2py] Re: Database reference issue

2019-12-15 Thread Massimo Di Pierro
there are two issues: 1) this db(db.devtasklist.projectid == db.Project.id).select(db.Project.ProjectName) does not do anything as it. 2) this row.devtasklist.projectid is an Project object but you do not access its attributes. SOLUTION II (one extra query per record) *In views:*

[web2py] Re: web2py broken with Python 3.8

2019-12-08 Thread Massimo Di Pierro
Both web2py and py4web are currently incompatible with python 3.8 because the latter break backward compatibility again. One of the issue is that stream-like objects are now required to support more methods than they used to. Another issue I am trying to get to the bottom of has to do with

[web2py] Re: Illegal instruction 4

2019-12-07 Thread Massimo Di Pierro
t week I upgraded my development environment from Mac OS X Mavericks - > Python 2.7 - Web2py 2.14.5 to > Mac OS X Catalina - Python 2.7 - Web2py 2.14.5, since then I have the > following issue: > > Created by Massimo Di Pierro, Copyright 2007-2019 > Version 2.14.5-stable+times

[web2py] Re: Redis session error - latest web2py master

2019-12-07 Thread Massimo Di Pierro
You are right. I misunderstood the issue. I read the thread again I thought this was a py3 only issue. Will look into this shortly. On Tuesday, 3 December 2019 08:26:15 UTC-8, Leonel Câmara wrote: > > py4web does sessions in redis by default (if you have redis). Just saying. >> > > Massimo, this

[web2py] Re: Getting error with login_bare

2019-12-07 Thread Massimo Di Pierro
You may have an incompatible version of pydal (newer pydal, older web2py). If you are using source, make sure you update both. On Tuesday, 3 December 2019 03:39:45 UTC-8, Morganti wrote: > > Hello friends, > > I am trying to user JWT but I am having a problem with login_bare. After > some

[web2py] Re: Redis session error - latest web2py master

2019-11-28 Thread Massimo Di Pierro
py4web does sessions in redis by default (if you have redis). Just saying. On Thursday, 28 November 2019 14:56:37 UTC-8, Jose C wrote: > > >> Any feel for how many people are using redis for sessions? >> >> +1 on on redis for sessions. Use it for multiple apps although they're > all older

[web2py] Re: How to access db in a new thread ?

2019-11-28 Thread Massimo Di Pierro
No you cannot and you should not. In web2py you have one thread per http request. You should not spawn other threads because you either slow down responses or you may leak memory. This is not web2py specific. This is true for all web applications. What is your ultimate goal? There is probably a

[web2py] Re: Extraction of web2py configuration support

2019-11-28 Thread Massimo Di Pierro
Not sure I know what you are talking about. What is the configuration support? On Thursday, 28 November 2019 13:07:56 UTC-8, The Living Cosmos wrote: > > I believe long ago the web2py configuration support was released > separately. Could someone provide me with the link? > > -- Resources: -

[web2py] Re: web2py on an existing PostgreSQL Database?

2019-11-28 Thread Massimo Di Pierro
Cannot talk about Django. In web2py you can run the script: web2py/scripts/extract_pgsql_models.py which will generate a model from your database table. It is not guaranteed to work. It depends on the type of references that you have. Also after it crates the model for you, you may need to

[web2py] Re: vscode with web2py

2019-11-28 Thread Massimo Di Pierro
I have not but I am pretty sure it will not recognize the objects in the global environment unless you use the usual trick: if False: import anything already defined that you want vscode to see py4web will work with vscode without hacks. On Thursday, 28 November 2019 13:07:55 UTC-8,

[web2py] Re: New databse overwriting old one on app update

2019-11-28 Thread Massimo Di Pierro
If the database structure did not change if you copy the new files over the deployed ones (except the content of the databases/ folder) you should be fine. On Thursday, 28 November 2019 13:07:54 UTC-8, Guilherme Botelho wrote: > > I have a simple web2py app deployed, and would like to be able

[web2py] Re: Web2py with python 3.8.0

2019-11-28 Thread Massimo Di Pierro
At this time we do not support python 3.8. It seems to have broken both web2py and py4web in different ways. I think 3.8 should be fixed, not web2py, On Friday, 22 November 2019 07:07:18 UTC-8, Woody wrote: > > I updated to Python 3.8 on Arch Linux today and I had the same problem > with

[web2py] Re: Redis session error - latest web2py master

2019-11-28 Thread Massimo Di Pierro
Did I drop the ball on this one? I do not see a PR On Thursday, 21 November 2019 08:22:58 UTC-8, Jim S wrote: > > FWIW - I gave up on waiting. Converted my sessions to use the database. > > I use redis in other parts of my app within web2py and am having no > troubles there. > > -Jim > > On

[web2py] Re: Web2py with python 3.8.0

2019-11-02 Thread Massimo Di Pierro
Should be fixed. Funny anough that import was not used. On Saturday, 2 November 2019 13:46:41 UTC-7, Donald McClymont wrote: > > So this seems to be because cgi.escape which was deprecated has now been > removed. I think there may have been a fix submitted for this - however if > not it should

[web2py] Re: web2py | video course | license terms

2019-11-02 Thread Massimo Di Pierro
The only reason for the LGPL is to prevent companies to change the name of the framework, claim they made it, and sell it. Every other use with acknowledgement is permitted. On Saturday, 2 November 2019 19:48:57 UTC-7, Massimo Di Pierro wrote: > > No license restriction. if you d

[web2py] Re: web2py | video course | license terms

2019-11-02 Thread Massimo Di Pierro
No license restriction. if you do it I will be happy to link it. On Friday, 1 November 2019 16:27:53 UTC-7, Jay B wrote: > > Hello guys, > > I have become familiar with web2py over the last months and am now playing > with the idea of creating a video course. > > However, I have been wondering

[web2py] Re: web2py | video course | license terms

2019-11-02 Thread Massimo Di Pierro
No license restriction. if you do it I will be happy to link it. On Friday, 1 November 2019 16:27:53 UTC-7, Jay B wrote: > > Hello guys, > > I have become familiar with web2py over the last months and am now playing > with the idea of creating a video course. > > However, I have been wondering

[web2py] Re: Pydal validate issue 2.15.4

2019-10-31 Thread Massimo Di Pierro
You have a recent version of web2py with an old version of pydal On Wednesday, 30 October 2019 20:21:23 UTC-7, Vlad Doster wrote: > > Hi all, > > I am currently trying to get a dev environment up and running. I try to > login and the pydal/object.py > complains about __call__() taking 3

[web2py] Re: Scheduler for py4web ?

2019-10-30 Thread Massimo Di Pierro
No. The fact is, it does not need it. py4web is does not have the problem of a custom environment. apps are modules that can be imported. Celery works great with py4web and therefore I recommend using that instead of a custom scheduler. On Wednesday, 30 October 2019 04:52:33 UTC-7, Ramos

Re: [web2py] Web2Py with LDAP and SAML : Is it worth it for Windows ?

2019-10-27 Thread Massimo Di Pierro
l >> identity attributes are needed once the user is authenticated. >> >> Perhaps I am over simplifying! Hope this helps! >> >> >> On Sunday, August 18, 2019 at 1:35:32 AM UTC-4, Massimo Di Pierro wrote: >>> >>> web2py or py4web? I could

[web2py] Re: Web2py arabic translations not working

2019-10-27 Thread Massimo Di Pierro
Can you provide more info? Does it not identify the translation file? Does it not read it? Does it not translate properly? There should not be anything special about arabic other the it is Right to Left. On Tuesday, 22 October 2019 06:36:27 UTC-7, John Bannister wrote: > > Tried to use the

[web2py] Re: problems running PY4WEB

2019-10-21 Thread Massimo Di Pierro
This is the problem: https://stackoverflow.com/questions/54608421/how-to-fix-notimplementederror-when-trying-to-run-hydrogen-in-atom Try the latest master. Includes a fix. It will never be as good on Windows as on Linux/Mac. On Friday, 18 October 2019 17:10:15 UTC-7, lu ond wrote: > > Dear

Re: [web2py] db.import_from_csv_file in python3

2019-10-16 Thread Massimo Di Pierro
Can you please open a pydal ticket? I can fix this over the week-end. On Monday, 14 October 2019 01:54:41 UTC-7, Mamisoa Andriantafika wrote: > > It seems to be related with the "blob" type where python 2 accept also > string type while python 3 expect byte type. > > When I delete the row which

[web2py] Re: Error upload file csv database

2019-10-16 Thread Massimo Di Pierro
Do you have the original database. If you do you should export it from the web2py shell with db.export_to_csv_file and reimport it with db.import_from_csv_file. This is documented in the manual. The import will automatically fix your keys. If you use postgres you can use pgdump and pgrestore.

[web2py] Re: About response.toolbar

2019-10-16 Thread Massimo Di Pierro
Those are queries made by your app to the database within the same request that serves the toolbar. This looks like a registration page because of INSERT in auth_user. It does make a lot of select. you may want to simplify your code and use caching, else this page is going to be very slow. I

Re: [web2py] Re: py4web - will it inherit web2py structures ?

2019-10-14 Thread Massimo Di Pierro
the documentation isn't really helpful in this. > > I'm currently using a 20190929 build (via Pycharm) and py4web itself will > run. > > graham > On Monday, October 14, 2019, 1:26:36 AM GMT+1, Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > > > I

<    1   2   3   4   5   6   7   8   9   10   >