Re: [web2py] Re: web2py -> py4web

2024-07-16 Thread Carlos Correia
Hi, Moving to Python 3 is a must! As for Web2py I have several servers using it (one of them is an ERP) and I don't know when I will have time to move them to Py4web, so I beg you not to drop Web2py support. Best regards, Carlos Às 04:49 de 17/07/24, Massimo Di Pierro escreveu: It is

Re: [web2py] How to perform a DB migration from outside the app where DB is defined?

2023-11-28 Thread Carlos Correia
n the case theres is also data changes associated. Regards, Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917 157 146 (Signal) e-mail:ge...@memoriapersistente.pt URL:http://www.memoriapersistente.pt -- Resources: - http://web2py.com - http://web2py.com/book (Documentati

Re: [web2py] Response flash message after email sent not working

2022-03-07 Thread Carlos Correia
messages.email_sent = flash.get(request.args(0), auth.messages.email_sent) use: response.flash = 'Reset password email sent' http://web2py.com/books/default/chapter/29/07/forms-and-validators#Forms-and-redirection -- Com os melhores cumprimentos, Carlos Correia ===

Re: [web2py] VSCODE with linter + debugging in WEB2PY

2021-09-18 Thread Carlos Costa
Hi, I have a video teaching how to setup web2py launch and debug in vs code. It is in Portuguese, but you can activate english subtitles, and it is also to see what I do in the video. https://www.youtube.com/watch?v=4LSy5VuLqCQ Em sexta-feira, 17 de setembro de 2021 às 05:21:04 UTC-3, muratkas..

Re: [web2py] DAL how to increment column value

2021-05-25 Thread Carlos Correia
he record first in other to get the value to be incremented. But, if there are many users it might lead to corrupted values due to concurrency. As far as I know, the latest is the only sane approach to solve your problem. Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917

Re: [web2py] Changes to sqlhtml.py are not detected on linux server.

2021-05-25 Thread Carlos Correia
catch those modifications. Any idea what may be going on? Sorry for the bad translation. Thanks. Hi, Have you deleted sqlhtml.pyc before restarting the server? Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917 157 146 (Signal, WhatsApp) e-mail: ge...@memoriapersistente.p

[web2py] Re: Errors using web2py 2.18.5 , python3 and ssl

2021-04-25 Thread Carlos Lopez
Hi, I stumbled upon the same problem. Using Version 2.20.4-stable+timestamp.2020.05.02.22.03.36 This problem only happens using Google chrome. If I use Firefox, there is no issue at all. I could find a possible solution here: https://www.bountysource.com/issues/90475877-w-solution-python-3-ssl-ro

Re: [web2py] How to pass variables to db.executesql?

2020-11-20 Thread Carlos Correia
ble where id = %(id)s', placeholders=dict( id=someWeb2PyVariable ) ) Regards, Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917 157 146 (Signal, WhatsApp) e-mail: ge...@memoriapersistente.pt URL: http://www.memoriapersistente.pt XMPP (Jabber): car...@memoriapersistente.

Re: [web2py] Login via an link/URL

2020-11-18 Thread Carlos Correia
sh, then use Auth.login_user() to authenticate the user. Having said that, please note that it is a (very) bad idea, since a "man in the middle" could easily intercept the mail and hack the session. Regards, Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917 157 146

[web2py] Re: uWSGI Permission denied

2020-11-04 Thread Carlos A
You are not using the default directories, please run those commands into your CLI: wget https://raw.githubusercontent.com/web2py/web2py/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh chmod a+x setup-web2py-nginx-uwsgi-ubuntu.sh ./setup-web2py-nginx-uwsgi-ubuntu.sh Then you can use the

[web2py] Re: Opalstack for ex-webfaction users or people looking for a Web2Py Web Hosting (Tutorial for Python 3 or 2.7)

2020-10-25 Thread Carlos A
Try this: cd ~/apps/yourapp source env/bin/activate cd web2py/ python -c "from gluon.main import save_password; save_password(raw_input('admin password: '), )" Note: You can find your assigned port with the command "ls" inside of the web2py path and looking for the file: parameters_.py

[web2py] Opalstack for ex-webfaction users or people looking for a Web2Py Web Hosting (Tutorial for Python 3 or 2.7)

2020-10-19 Thread Carlos A
After the oficial announce from webfaction (goDaddy) about the inminent shutdown of Web2Py support, I decided to migrate my Apps to Opalstack.com . I want to share with you the procedure what I received from the support guys (It works!!!). The initial web2py installer script is attached. There

Re: [web2py] Re: Object type None error

2020-10-15 Thread Carlos Correia
    response.flash = 'please fill the form'     # Note: no form instance is passed to the view     ## record passed to set the id value in view.     rows = db(db.cont_overheads.id == record).select() rowsconlab = db.executesql("exec usr_getconla

[web2py] [pydal] Connect to Heroku Database

2020-07-21 Thread Carlos Zenteno
Has anybody been able to connect to a Postgres database using stand alone Pydal? I know I have to pass the database credentials via the environment variable DATABASE_URL thru the heroku-cli like this: DATABASE_URL=$(heroku config:get DATABASE_URL -a books-proyecto1) MY-PROCESS but I don't know w

Re: [web2py] Problem starting a distributed transaction

2020-07-04 Thread Carlos Correia
Às 14:40 de 03/07/20, Carlos Correia escreveu: Hi, I have this piece of code in a controller to test a distributed transaction but it fails with: "ValueError: need more than 0 values to unpack". def index(): response.flash = T("Hello World") db0 = DAL('

Re: [web2py] Re: two Database syncrho

2020-07-04 Thread Carlos Correia
Às 13:28 de 04/07/20, Carlos Correia escreveu: Às 06:14 de 01/07/20, Massimo Di Pierro escreveu: Yes. Only on PostgreSQL, MySQL and Firebird. Assuming the feature has not been broken over time, I do not know of anybody who used it. On Thursday, 11 June 2020 12:51:48 UTC-7, Ari Lion BR Sp

Re: [web2py] Re: two Database syncrho

2020-07-04 Thread Carlos Correia
;http://trane:8000/admin/default/edit/welcome/controllers/default.py>, line 12, in index DAL.distributed_transaction_begin( db0, db1 ) File ".../web2py/gluon/packages/dal/pydal/base.py", line 341, in distributed_transaction_begin keys = ['%s.%i' % (thread_key, i) for (i, db)

[web2py] Problem starting a distributed transaction

2020-07-03 Thread Carlos Correia
on_begin( db0, db1 ) File ".../web2py/gluon/packages/dal/pydal/base.py", line 341, in distributed_transaction_begin keys = ['%s.%i' % (thread_key, i) for (i, db) in instances] What I am doing wrong? Thanks, Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917 157 146 (Sign

Re: [web2py] web2py hosting

2020-05-22 Thread Carlos Cesar Caballero
Some time ago I found Contabo, an is working quite well for my needs. Greetings. El vie., 22 de mayo de 2020 3:45 a. m., António Ramos escribió: > I´m a webfaction long time user and from another post here i got worried > about the godaddy acquisition.Eventually webfaction may die in a short te

Re: [web2py] Re: how to expire sessions in py4web

2020-03-20 Thread Carlos Hanson
> not clear the session. There is no need. You can of course do > session.clear() if you want. > > Sessions tells py4web (or web2py) that you are the same user as before. > auth tells who you are and what you are authorized to do. > > On Tuesday, 3 March 2020 19:03:37 UTC-

Re: [web2py] Re: Why would new code be ignored and old code be executed?

2020-03-06 Thread Carlos Correia
wrote: To track module changes try this from gluon.custom_import import track_changes; track_changes(True) Also, your problem looks like you have more then one web2py server running Regards, Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917 157 146 e-mail: ge

Re: [web2py] Re: LOAD in py4web

2020-03-04 Thread Carlos Costa
polly.js and cannot find it. Have a link? >> >> >> On Wednesday, 26 February 2020 19:32:20 UTC-8, Carlos Costa wrote: >>> >>> LOAD is a very cool thing! And beginners just say WOW when they can >>> create ajax-like experience so easy. >>> But, I

[web2py] how to expire sessions in py4web

2020-03-03 Thread Carlos Hanson
res. session = Session(secret=settings.SESSION_SECRET_KEY, expiration=settings. SESSION_EXPIRATION) What is the story about sessions containing login information? How do I ensure I am not logged in forever? Thanks. Carlos -- Resources: - http://web2py.com - http://web2py.com/book (Documentat

Re: [web2py] Re: Many records in one transaction

2020-03-02 Thread Carlos Correia
2py one. Regards, Carlos Correia = MEMÓRIA PERSISTENTE GSM: 917 157 146 e-mail: ge...@memoriapersistente.pt URL: http://www.memoriapersistente.pt XMPP (Jabber): car...@memoriapersistente.pt GnuPG: wwwkeys.eu.pgp.net -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: LOAD in py4web

2020-02-26 Thread Carlos Costa
LOAD is a very cool thing! And beginners just say WOW when they can create ajax-like experience so easy. But, IMO, it lacks some important features for modern apps, like error handling and history handling. I have written some simple functions to help cover these things... Another way I found v

Re: [web2py] Re: LOAD in py4web

2020-02-23 Thread Carlos Cesar Caballero
Or maybe using something like https://github.com/MoOx/pjax El dom., 23 de febrero de 2020 7:02 p. m., Val K escribió: > for server side you can > @action("foo") > @action.uses("foo.html") > def foo(): > return dict(...) > > @action("bar") > @action.uses("bar.html") > def bar(): > return

[web2py] Re: py4web and record versioning

2020-02-20 Thread Carlos Hanson
Consider it done. On Thursday, February 20, 2020 at 8:02:45 PM UTC-8, Massimo Di Pierro wrote: > > No obvious solution yet but will prioritize this. Would you mind opening > an issue on github about this? > > On Wednesday, 19 February 2020 12:33:32 UTC-8, Carlos Hanson wrote:

[web2py] Re: py4web and record versioning

2020-02-19 Thread Carlos Hanson
evariable/__init__.py", line 16, in __get__* *return getattr(self.storage, "%s.%s" % (id(instance), id(self)))* * File "src/gevent/local.py", line 408, in gevent._local.local.__getattribute__* AttributeError: 'gevent._local.local' object has no attribute

[web2py] Re: py4web and record versioning

2020-02-18 Thread Carlos Hanson
Greetings, I just started using py4web, and I'm very excited to do so. Has there been any more thought on this issue? I was partially into a new web2py app in which I use _enable_record_versioning(), and I am migrating it to py4web. Thanks. On Saturday, August 17, 2019 at 10:34:21 PM UTC-7,

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

2020-01-22 Thread Carlos Costa
> have to write some more helpers to do some things that web2py did for you, >>>> but that's half the fun, isn't it? For instance, I used the grid that >>>> web2py's SQLFORM.grid provides for lots of listing pages. py4web doesn't >>>> ha

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

2020-01-22 Thread Carlos Costa
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...@go

Re: [web2py] blob fields with PostGres

2020-01-15 Thread Carlos Correia
Às 05:45 de 15/01/20, Dave S escreveu: On Sunday, January 12, 2020 at 9:36:14 AM UTC-8, Carlos Correia wrote: Às 22:51 de 10/01/20, Dave S escreveu: > For web2py/pydal when the backend is PostGres, are blob fields translated to > bytea or to large object? > &

Re: [web2py] blob fields with PostGres

2020-01-12 Thread Carlos Correia
)? Psycopg2 (not Web2py) maps blobs to bytea, but has the 1GB limit. This thread explains how to deal with that (using lo_import and lo_export): https://postgresrocks.enterprisedb.com/t5/EDB-Postgres/problems-with-writing-reading-a-data-bytea/td-p/2095 , Regards, Carlos Correia

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

2020-01-05 Thread Carlos Cesar Caballero
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 de 2020 4:56 p. m., Jim S escribió: > Hi > > I have a large web2py application that I want to start migrating to

Re: [web2py] Re: Scheduler for py4web ?

2019-11-01 Thread Carlos Zenteno
a python function from your code. > Gulp and alike are task automation tools like creating files and folders , > compiling jade to html or sass to css. > Not the same thing.. > and yes you should be able to use gulp with py4web. > > > Carlos Zenteno escreveu em sex, 1/11/2019 às 1

[web2py] Re: Scheduler for py4web ?

2019-11-01 Thread Carlos Zenteno
Is a scheduler the same thing as a task manager? Can we use GULP with py4web? -- 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

Re: [web2py] Re: Vue2pyj - alternative web IDE

2019-09-27 Thread Carlos Costa
Didnt work here. I did a fresh install from py4web source and clone vue3pyj. ERROR:root:Traceback (most recent call last): File "/home/carlos/projects/py4web/py4web/core.py", line 472, in wrapper ret = func(*func_args, **func_kwargs) File "/home/carlos/projects/py4web

Re: [web2py] py4web has now a grid ...

2019-09-13 Thread Carlos Costa
; > > > > > On Thursday, 12 September 2019 06:52:23 UTC-7, Carlos Costa wrote: >> >> It's done. >> But I have a question: where will we put component styling? >> I add an table.css file and linked in layout.html but I think it belongs >> to the comp

Re: [web2py] py4web has now a grid ...

2019-09-12 Thread Carlos Costa
09:52, Carlos Costa escreveu: > I liked it. > Much more faster and responsive. > > I didn't get how use search properly. > > I have on suggestion for letting grid more mobile friendly. > Take a look at this snippet https://codepen.io/andornagy/pen/EVXpbR > It is pur

Re: [web2py] py4web has now a grid ...

2019-09-12 Thread Carlos Costa
it, send an > email to web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/cc53051f-104c-4b20-97a6-c32f8220d052%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/cc53051f-104c-4b20-97a6-c32f8220d052%40

Re: [web2py] Descriptografar senha do usuario

2019-08-21 Thread Carlos Costa
end an > email to web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/855c52d8--476d-b8e9-27249fbb53ff%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/855c52d8--476d-b8e9-27249fbb53ff%40google

Re: [web2py] github vs gitlab

2019-07-23 Thread Carlos Cesar Caballero
Gitlab blocks access from countries affected by UUSS sanction laws, I can't use gitlab from Cuba without tor or vpn. Greetings. El mar., 23 de jul. de 2019 1:56 a.m., Massimo Di Pierro < massimo.dipie...@gmail.com> escribió: > I have some reasons to consider switching from github to gitlab for w

[web2py] Re: please help testing web3py

2019-07-10 Thread Carlos Cesar Caballero
Working great in Ubuntu 19.04 and Python 3.6.8, no errors, I have created a new app and a new user for the app and login without issues. In the dashboard there is a broken link to "/_dashboard/static/favicon.ico" PD: My words when I looked the dashboard for first time: "My eyes!! my eyes!!!" :P

Re: [web2py] Re: please help testing web3py

2019-07-09 Thread Carlos Costa
Does it work? >>>> How does it flow? >>>> What explanations should be necessary? >>>> Can you write a brief documentation of your experience for other users? >>>> >>>> >>>> -- &

Re: [web2py] please help testing web3py

2019-07-09 Thread Carlos Costa
- 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...@g

[web2py] Re: web2py + Vue + Vuetify

2019-07-01 Thread Carlos A
Hi Ariel, Why not to create an Starter App Template on GitHub? Just an idea. Actually Iam using Web2py + Vue + Quasar Framework and it's amazing but Vietify it's amazing too. El domingo, 30 de junio de 2019, 23:20:10 (UTC-7), Ariel Antunez escribió: > > Hi every body. > > For some years I ha

Re: [web2py] route 53 or Dns record

2019-06-04 Thread Carlos Costa
t; escreveu: > hai carlos costa , i have an idea for that , i have domain registered with > godaddy , go daddy subdomain forwarding is unlimited and its free too . you > can add like this > in subdomain section add subdomainname as *user1* , target url is > *your.pythonanywhere.com/

Re: [web2py] route 53 or Dns record

2019-06-02 Thread Carlos Costa
> >> Thanks alot for reply . I will try this idea and let you know >> >> On Sun, 2 Jun 2019 at 7:09 PM, Carlos Costa >> wrote: >> >>> I was about to do this before I gave up on aws because of costs. >>> So I don't know exactly what have to b

Re: [web2py] route 53 or Dns record

2019-06-02 Thread Carlos Costa
-730d-46c0-b59b-2800d2b67954%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/1cfce879-730d-46c0-b59b-2800d2b67954%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- At. Carlos J. Cost

Re: [web2py] Re: A little suggestion: Create a forum for web3py

2019-06-01 Thread Carlos Cesar Caballero
not today. ;-) > > On Friday, 31 May 2019 19:57:26 UTC-7, Carlos Cesar Caballero wrote: >> >> Please no!! we can't use Slack from Cuba. >> >> Greetings. >> >> El miércoles, 29 de mayo de 2019, 12:45:50 (UTC-4), Ramos escribió: >>> >>> Do we n

Re: [web2py] Re: A little suggestion: Create a forum for web3py

2019-05-31 Thread Carlos Cesar Caballero
Please no!! we can't use Slack from Cuba. Greetings. El miércoles, 29 de mayo de 2019, 12:45:50 (UTC-4), Ramos escribió: > > Do we need to reinvent the wheel again ? > why not use for ex... > > https://slack.com > > or many others out there? > > > Em sex, 24 de mai de 2019 às 21:41, Dave S >

Re: [web2py] Re: A little suggestion: Create a forum for web3py

2019-05-31 Thread Carlos Cesar Caballero
Please no!! We can't use Slack from Cuba. Greetings. -- 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

Re: [web2py] Re: How can I generate hash for user password like web2py

2019-05-29 Thread Carlos Costa
legroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- At. Carlos J. Costa -- Cientista da Computação - Esp. Gestão em Telecom -- Resources: - http://web2p

Re: [web2py] Re: A little suggestion: Create a forum for web3py

2019-05-29 Thread Carlos Costa
on) > - 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 receivin

Re: [web2py] Re: web2py managing capacity ?

2019-05-24 Thread Carlos Costa
egroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/9a708b39-7b1e-4c77-a4b3-49b7bdac9215%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/9a708b39-7b1e-4c77-a4b3-49b7bdac9215%40googlegroups.com?utm_medium=email&utm_so

Re: [web2py] Electron, NWjs or Netralinojs and web2py

2019-05-23 Thread Carlos Costa
id/web2py/f53f9374-d9ee-45e2-aa29-04988789172e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- At. Carlos J. Costa -- Cientista da Comp

Re: [web2py] Re: Using a recursive select but encountered a broken reference

2019-05-22 Thread Carlos Cesar Caballero Díaz
No, I have just found the issue, I am using record versioning in tables, and the child record was removed, this does not trigered the cascade, so, the parent record was not removed and the recursive select was failing when tries to access to a "deleted" record. Greetings. El 22/5/19 a las 11:

[web2py] Using a recursive select but encountered a broken reference

2019-05-22 Thread Carlos Cesar Caballero Díaz
Hi guys, I have some weird issue here, I have a "Using a recursive select but encountered a broken reference" error in a field wish seems to have a valid reference. This is happening with a very specific record in a MySQL database. Any Idea? Greetings. -- Resources: - http://web2py.com - htt

Re: [web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-18 Thread Carlos Costa
Dw76xbrAD-aFLDZoyrzhTQJ9Nu88HzZt9Q%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - ht

Re: [web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-17 Thread Carlos Costa
> 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/CAEM0BxM9zSuGORmypOr2Tw6BCnYpidNZegG%3DP0J2EpMO0DCBaA%40mail.gmail.com

[web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-15 Thread Carlos Costa
Aweome! I made a similar API for my apps, but is simpler. I like this one more as it is more complete. Mine is called Consult (because we call query as consulta in Portuguese) This is very useful to integrate ui components such as datatable, or anything. Maybe dal-api should be a good name. If

Re: [web2py] Re: Future of web2py

2019-05-13 Thread Carlos Costa
is discussion on the web visit > https://groups.google.com/d/msgid/web2py/fd6ea76b-7d3b-4704-886b-a2e6bc4d6e47%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- At. Carlos J. Costa --

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
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

Re: [web2py] Re: Future of web2py

2019-05-11 Thread Carlos Costa
oglegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/CAMcwXCevb4KiOgh-OVjXvOQYwb%3DVPYVxT52S_hx6ukEQAAXmAA%40mail.gmail.com > <https://groups.google.com/d/msgid/web2py/CAMcwXCevb4KiOgh-OVjXvOQYwb%3DVPYVxT52S_hx6ukEQAAXmAA%40mail.gmail.

Re: [web2py] Re: Future of web2py

2019-05-10 Thread Carlos Costa
email to web2py+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/CAMcwXCf6_8PiWvFtKB9YFPq_J2VxFsO%2BRbNcsAfVJ-nsGm96OQ%40mail.gmail.com > <https://groups.google.com/d/msgid/web2py/CAMcwXCf6_8PiWvFtKB9YFPq_J2VxFsO%2BRbNcs

Re: [web2py] Re: Future of web2py

2019-05-02 Thread Carlos Costa
/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&quo

Re: [web2py] bye bye T, welcome pluralize

2019-05-02 Thread Carlos Cesar Caballero Díaz
'}, 'margherita::pizza':{0:'no pizza',1:'una pizza margherita',2:'due pizze margherite'}} T("pizza") % dict(n=2) -> "due pizze" T("margherita::pizza") % dict(n=2) -> "due pizze margherite" In this

Re: [web2py] bye bye T, welcome pluralize

2019-04-30 Thread Carlos Costa
Looks nice! What would be the best approach to translate phrases and longer texts? Em seg, 29 de abr de 2019 às 10:59, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> escreveu: > It looks good!! I can work to support categories if you think it worth it. > Allow some

Re: [web2py] bye bye T, welcome pluralize

2019-04-29 Thread Carlos Cesar Caballero Díaz
It looks good!! I can work to support categories if you think it worth it. Allow something like T("string", "category") or T("string", cat="category"). A category would map to an specific folder of json internationalization files, if there is no category specified, it will map to a default cate

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
m are relaying their models to ORMs. Greetings El 19/4/19 a las 4:22 p.m., Anthony escribió: On Thursday, April 18, 2019 at 6:48:09 PM UTC-4, Carlos Cesar Caballero wrote: Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm <https://github.com/cccaballero/pydal-orm>.

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Yes, but that's not about the number of code lines, that's about the code organization and readability. Greetings. El 19/4/19 a las 4:17 p.m., Anthony escribió: In the case of the weppy ORM in particular, though, I think it really is just alternative syntax for everything that can already be d

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
odels starts grow big. Greetings. El 19/4/19 a las 2:44 a.m., Dave S escribió: On Thursday, April 18, 2019 at 3:48:09 PM UTC-7, Carlos Cesar Caballero wrote: Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm <https://github.com/cccaballero/pydal-orm>. I th

Re: [web2py] Enjoying web2py

2019-04-18 Thread Carlos Costa
iving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- At. Carlos J. Costa -- Cientista da Computação - Esp. Gestão em Telecom -- Resource

Re: [web2py] Re: Web3py

2019-04-18 Thread Carlos Cesar Caballero Díaz
Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I think including something like this with pydal will be a really good improvement. Greetings. El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió: Can you make it a module on pypi? Or should we include it in pydal? -- Re

[web2py] Re: Does web2py support SSE (server sent events) from HTML5?

2019-04-17 Thread Carlos Zenteno
following -- 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.

Re: [web2py] Re: Web3py

2019-04-12 Thread Carlos Cesar Caballero Díaz
I reaaly would like to use an ORM with web3py, in my opinion ORMs are better for organization when apps grow big and I like a lot the fat models and thin controllers approach, and it is some messy with pydal right now (https://github.com/Medisur/journalmanagement/blob/master/models/citation

Re: [web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz
That's a typo :) El 6/4/19 a las 8:24 p.m., Leonel Câmara escribió: Possibly because you have require instead of requires? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz
Hi, I have this table definition: db.define_table('organization',     Field('name', 'string', require=[IS_ALPHANUMERIC(), IS_NOT_EMPTY(), IS_NOT_IN_DB(db, 'organization.name')], label=T('Name')),     Field('description', 'text', label=T('Description')),     Field('parent', 'reference organizati

[web2py] Re: web3py again....

2019-04-02 Thread Carlos Costa
Will it have default url routes? beyond that, my thought about ui widgets: I think it would be nice: 1 - to have an easy integration via a model rest api 2- be agnostice to client side frameworks 3 - come with a default client side framework (preferably vue) 4 - have a ui lib by default 5 - have

Re: [web2py] web3py again....

2019-03-30 Thread Carlos Cesar Caballero Díaz
So far looks good, but I would prefer that the application include (or import) the framework instead of the framework include the application. With the first one, pip based deployments and CI/CD will be a lot easier. I have being playing with bottle a lot recently, so if there is some web3py f

[web2py] Re: New International Telegram Support Group

2019-03-19 Thread Carlos Costa
we noticied this group has no administrator, so we are moving to a new one, here is the link https://t.me/joinchat/DYZrfBT-bIsVhwLZc1hG8Q Em terça-feira, 19 de março de 2019 12:14:17 UTC-3, Carlos Costa escreveu: > > We have had a good experience with the brazilian telegram group ded

[web2py] New International Telegram Support Group

2019-03-19 Thread Carlos Costa
We have had a good experience with the brazilian telegram group dedicated to to support web2py users. But the english speaking group is not used at. Here is the link to join it: https://t.me/web2py_en Also, here is the link to the Brazilian group (portuguese speaking and some portunhol allowed

Re: [web2py] Re: standalone templates

2019-02-26 Thread Carlos Cesar Caballero Díaz
pydal? On Monday, 25 February 2019 10:04:43 UTC-8, Carlos Cesar Caballero wrote: Hi Massimo,sorry about the delay in responding, I was really busy last week. There is a small example of what we get right now (now using yatl) https://github.com/daxslab/mojito <https://github.

Re: [web2py] Re: standalone templates

2019-02-25 Thread Carlos Cesar Caballero Díaz
Pierro escribió: I did some more refactoring. :-) not sanitizer and helpers (similar to web2py ones) are part of yatl can you provide an example of how to use https://github.com/daxslab/ron On Sunday, 17 February 2019 19:30:59 UTC-8, Carlos Cesar Caballero wrote: Awesome!! I will test it ASAP. A

Re: [web2py] Re: standalone templates

2019-02-17 Thread Carlos Cesar Caballero Díaz
Awesome!! I will test it ASAP. A colleague and I have been playing with your idea of a bottle-based framework and it has became a quite good exercise. So far right now we got this https://github.com/daxslab/ron Greetings. El 17/2/19 a las 9:52 p.m., Massimo Di Pierro escribió: Thanks for all

Re: [web2py] Web2py Website seems like abandoned...

2019-01-30 Thread Carlos Cesar Caballero Díaz
Hi, a long time ago I built this material inspired proposal (https://github.com/cccaballero/web2py-examples-proposal), I am not sure if it's good right now, but indeed I think that the web2py site needs a new and modern look. Greetings. El 30/1/19 a las 6:52 a.m., António Ramos escribió: hel

Re: [web2py] Re: standalone templates

2019-01-28 Thread Carlos Cesar Caballero Díaz
make some kind of wrapper function and include the defaults. Greetings. El 28/1/19 a las 11:14 a.m., Anthony escribió: On Monday, January 28, 2019 at 8:45:53 AM UTC-5, Carlos Cesar Caballero wrote: Hi Antony, Thanks. I am experimenting with the Massimo idea of a bottle based framework

Re: [web2py] Re: Dont allow delete specific records in grid

2019-01-28 Thread Carlos Cesar Caballero Díaz
ction. Anthony On Sunday, January 27, 2019 at 12:55:04 PM UTC-5, Carlos Cesar Caballero wrote: Hi, is possible to don't allow deleting specific records in the grid? Basically, I have a one to many relation "parent has childs", but it is in cascade mode and I ca

Re: [web2py] Re: standalone templates

2019-01-28 Thread Carlos Cesar Caballero Díaz
nment, have a look at https://github.com/web2py/web2py/blob/cef31f127796c638753297235f4e886f6a9e5410/gluon/compileapp.py#L387-L450 to see how web2py sets up its environment. Anthony On Wednesday, January 23, 2019 at 8:09:34 AM UTC-5, Carlos Cesar Caballero wrote: Hi guys, I am using the web2py templates in a side

[web2py] Dont allow delete specific records in grid

2019-01-27 Thread Carlos Cesar Caballero Díaz
Hi, is possible to don't allow deleting specific records in the grid? Basically, I have a one to many relation "parent has childs", but it is in cascade mode and I can't change it, so, I need to forbid deleting of parent records who has childs. Greetings. -- Resources: - http://web2py.com

Re: [web2py] Re: standalone templates

2019-01-27 Thread Carlos Cesar Caballero Díaz
Thanks a lot Leonel, I'm looking at it. Greetings. El 27/1/19 a las 6:11 a.m., Leonel Câmara escribió: Carlos look at: https://github.com/web2py/web2py/blob/master/gluon/compileapp.py Specifically the funtion *run_view_in* -- Resources: - http://web2py.com - http://web2py.com

Re: [web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
direction  Thanks SP On Wed, Jan 23, 2019 at 7:42 PM Carlos Cesar Caballero Díaz <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: Hi sandeep patel, thanks for your answer. In my use case I am using the template module outside web2py as a standalone package, and I need to in

Re: [web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
escribió: @ Carlos I think you can use the current app modules folder. This executes all the .py files on the top label of every request For more information here <http://web2py.com/books/default/chapter/29/04/the-core#Sharing-the-global-scope-with-modules-using-the-current-object> Thanks SP

[web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
Hi guys, I am using the web2py templates in a side project and I want to include some variables in the environment by default, something like how helpers, request and response are included in the framework, but I can't find how this is done. Any idea? Greetings. -- Resources: - http://web2py

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
o On Sunday, 6 January 2019 08:15:58 UTC-8, Carlos Cesar Caballero wrote: I have created a pydal-like structure for templates, including an initial setup.py and tests (there is also a fix for python 3 when running standalone), you can take a look at https://github.com/cccaballero/w

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
I have created a pydal-like structure for templates, including an initial setup.py and tests (there is also a fix for python 3 when running standalone), you can take a look at https://github.com/cccaballero/web2py/tree/modular_templates/gluon/packages/template Greetings. El 5/1/19 a las 1:18

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
Hi Massimo, there is already a package called template in pypi, how should we name the new template module? Greetings. El 5/1/19 a las 1:18 p.m., Massimo Di Pierro escribió: Anybody wants to help 1) moving the scheduler and validator tests into pydal. 2) moving the template tests into gluon/pa

Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread Carlos Cesar Caballero Díaz
an post in his last message. Greetings. El 3/1/19 a las 12:33 a.m., sandeep patel escribió: @Carlos Cesar Caballero, I have taken the same steps as you suggested but I am getting the same error. Robodia@DESKTOP-E4IOU2U MINGW64 /d/TestingWeb3py/web2py/gluon/packages/dal (modular)

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
Hi, this is working for me: git clone --recursive https://github.com/web2py/web2py.git git checkout modular cd web2py/gluon/packages/dal/ git checkout modular cd ../../../ Greetings. El 2/1/19 a las 9:24 p.m., 黄祥 escribió: thx carlos, here is the steps i took | git clone --recursive https

Re: [web2py] Happy New Year

2019-01-02 Thread Carlos Cesar Caballero Díaz
Happy new year!! I have answered this in other thread because for some reason I have missed this one, and many of my wishes match yours https://groups.google.com/d/msg/web2py/BskHaFZkVEI/sudO0jdsFgAJ First a question (mostly for curiosity). Why using Bottle instead (for example) Flask or wer

  1   2   3   4   5   6   7   8   9   10   >