[web2py] is upgrade still experimental ?

2023-11-20 Thread António Ramos
hello is the upgrade button still experimental ? [image: image.png] [image: image.png] Regards António -- 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) ---

[web2py] cibersecurity audit issue about login

2023-11-16 Thread António Ramos
Hello friends, i guess this is a similar issue between web2py and py4web so im posting to both groups. Sorry if im abusing ... We had a cibersecurity audit in our web2py app and they found this issue QUOTE During the application audit process, it was possible to identify that the the company

Re: [web2py] Re: web2py 2.26.1 released

2023-10-30 Thread António Ramos
I´m so comfortable with web2py, the admin dashboard and the scheduler are blocking me from moving to py4web... Regards Em seg., 30 de out. de 2023 às 04:48, Raul Monares escreveu: > Great news. I appreatiate your work on both platforms > > On Sunday, October 29, 2023 at 3:13:31 PM UTC-6 Massimo

Re: [web2py] Re: administrator login with 2fa

2023-09-01 Thread António Ramos
s that are currently exempt from >>>>> MFA >>>>> # if ag: >>>>> # for exempt_user in db( >>>>> # (db.auth_user.mfa_override >= >>>>> datetime.datetime.now()) >>>>&g

Re: [web2py] Re: administrator login with 2fa

2023-09-01 Thread António Ramos
& (db.auth_membership.user_id == >>> exempt_user.id) >>> # ).delete() >>> # db.commit() >>> # >>> # print(datetime.datetime.now()) >>> # >>> # # set t

Re: [web2py] Re: administrator login with 2fa

2023-09-01 Thread António Ramos
factor: _send_sms(user, auth_two_factor) > ] > > My _send_sms code built and sms and sent it via Twilio or RingCentral > > I wrote this code, but then we ended up not implementing. The web2py code > is going away for us. All the same concepts work in py

Re: [web2py] Re: administrator login with 2fa

2023-09-01 Thread António Ramos
Anyone can help me ? Em qua., 30 de ago. de 2023 às 10:14, António Ramos escreveu: > in other words, how do i protect the administrator password? it does not > have a username , just a password. This is scary :) > > > Em ter., 29 de ago. de 2023 às 19:44, António Ra

Re: [web2py] Re: administrator login with 2fa

2023-08-30 Thread António Ramos
in other words, how do i protect the administrator password? it does not have a username , just a password. This is scary :) Em ter., 29 de ago. de 2023 às 19:44, António Ramos escreveu: > But that is for everyone, i just want to start with users with admin > powers > > Clemens

Re: [web2py] Re: administrator login with 2fa

2023-08-29 Thread António Ramos
But that is for everyone, i just want to start with users with admin powers Clemens escreveu em ter., 29/08/2023 às 18:25 : > Try enabling 2FA via the following setting, since this is for all users: > *auth.settings.auth_two_factor_enabled = True* > > Regards > Clemens > > On Tuesday, August

[web2py] administrator login with 2fa

2023-08-29 Thread António Ramos
i just activated the two step auth with this auth.settings.two_factor_authentication_group = "auth2step" but now how do i include the administrator user ? regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Model function raises error when called from scheduler and not from controller

2022-11-30 Thread António Ramos
Hello i have tested a model function script and it works when i call it from a controller. Then i need to run it every 10 minutes. Calling if from admin scheduler task raises an error because the model associated with it loads another python module. It cannot import it. The question is if the

[web2py] About images in mail.sent

2022-10-21 Thread António Ramos
Coding like in the manual mail.send('y...@example.com', 'Message subject', '', attachments = mail.Attachment('/path/to/photo.jpg', content_id='photo')) all the images appear at the bottom of the email as attachments like this ( anexos means attachments!) [image: image.png] how do i

[web2py] how to translate upload button?

2022-06-06 Thread António Ramos
How/where do i translate this? Regards [image: image.png] -- 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] owasp anyone ?

2022-05-29 Thread António Ramos
Hello all I read this part of the book about owasp Security The Open Web Application Security Project[owasp ] (OWASP) is a free and open worldwide community focused on improving the security of application software. OWASP has listed the top ten

[web2py] simple error on QLFORM.factory

2022-05-12 Thread António Ramos
Hello Just trying to teach someone some web2py stuff from the web2py book and i got stuck at the beginning. My friend computer returns this error. The same code in my pc is ok def first(): form = SQLFORM.factory(Field('visitor_name', label='what is your

[web2py] Re: psycopg2 current transaction is aborted, commands ignored until end of transaction block

2022-04-29 Thread António Ramos
Solved! apparently tables were not recreated. All is fine now!! Regards Em sex., 29 de abr. de 2022 às 17:40, António Ramos escreveu: > My scheduler was not running my tasks. > So i deleted scheduler tables from postgres and deletes files from > databases/ > > I restarted my ap

[web2py] psycopg2 current transaction is aborted, commands ignored until end of transaction block

2022-04-29 Thread António Ramos
My scheduler was not running my tasks. So i deleted scheduler tables from postgres and deletes files from databases/ I restarted my app and refreshed appadmin. All files and tables were recreated. However going in appadmin to db.scheduler_task i get this error Error ticket for "fileit"Ticket ID

[web2py] Scheduler stopping for some reason

2022-04-29 Thread António Ramos
Hello i user scheduler and it was working like a charm this is my code in a module scheduler=current.scheduler scheduler.queue_task(self.callPager, pvars=dict(pager=11, local='')) i see the tasks in db.scheduler_task but they are QUEUED and dont complete. I

[web2py] starred expression with tuple or array !? differente behaviour!

2022-04-18 Thread António Ramos
Hello i have my code to generate html base on a condition one of the table columns should be created only if var =1 this works but the html removes the _class="aa" in case of var==1, and does not create the TD if var!=1 TD( ..., *(DIV("b",_class="aa") ) if var==1 else tuple()) , etc *Using

[web2py] Best way to have form submit disabled until file selected

2022-04-10 Thread António Ramos
Hello i have a form with a file to upload. What is the best web2py way to have the submit button disabled until the user selects a file to upload? Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] automate your workflow with gulp...

2022-02-04 Thread António Ramos
sharing my proof of concept 8 years ago. https://github.com/ramstein74/Coffee_Jade_Stylus_inside_web2py Regards António -- 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] update_or_insert on an existing record returns None

2021-09-24 Thread António Ramos
Why update_or_insert on an existing record returns None ?? If the record does not exist it returns the created record id but if updating an existing record i get None. Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] python developer survey

2021-03-05 Thread António Ramos
No responses from Portugal? Fake report :) Pydal should be there also :) Em qui., 4 de mar. de 2021 às 17:59, Jim S escreveu: > I just saw this today. web2py is #5 in web frameworks. > > https://www.jetbrains.com/lp/python-developers-survey-2020/ > > -- > Resources: > - http://web2py.com > -

Re: [web2py] Re: auth.signature not working

2021-02-15 Thread António Ramos
I didnt because the problem was not in that table. I was looking to the wrong table. Thk u Kevin Keller escreveu em seg., 15/02/2021 às 18:58 : > How did you solve it? > > On Mon, Feb 15, 2021, 17:33 António Ramos wrote: > >> Thank you Jim but i found the problem. >

Re: [web2py] Re: auth.signature not working

2021-02-15 Thread António Ramos
lem. >> My fault this time. >> Thank you again. >> >> PS. Its just me or this forum is abandoned? Should i go elsewhere for >> help ? >> >> Em seg., 15 de fev. de 2021 às 15:46, António Ramos >> escreveu: >> >>> Hi Jim >>&g

Re: [web2py] Re: auth.signature not working

2021-02-15 Thread António Ramos
Thank you Jim but i found the problem. My fault this time. Thank you again. PS. Its just me or this forum is abandoned? Should i go elsewhere for help ? Em seg., 15 de fev. de 2021 às 15:46, António Ramos escreveu: > Hi Jim > Sorry but dont understand your suggestion. >

Re: [web2py] Re: auth.signature not working

2021-02-15 Thread António Ramos
Em seg., 15 de fev. de 2021 às 15:33, Jim S escreveu: > Have you tried with an auth decorator? Maybe auth.requires_login()? > > -Jim > > On Saturday, February 13, 2021 at 3:33:01 PM UTC-6 Ramos wrote: > >> Anybody here? >> >> Em sex., 12 de fev. de 2021 às 23

[web2py] Re: auth.signature not working

2021-02-13 Thread António Ramos
Anybody here? Em sex., 12 de fev. de 2021 às 23:57, António Ramos escreveu: > hello this is my model > db.define_table( > 'entities', > Field('uuid', length=64, default=lambda: str(uuid.uuid4())), > Field('entity', 'string',length=70,required=True, label=T("En

[web2py] auth.signature not working

2021-02-12 Thread António Ramos
hello this is my model db.define_table( 'entities', Field('uuid', length=64, default=lambda: str(uuid.uuid4())), Field('entity', 'string',length=70,required=True, label=T("Entity")), Field('description', length=100,label=T("Description"), default=""), Field('status',

Re: [web2py] Re: can i delete sql.log?

2021-02-11 Thread António Ramos
Thank u Em qua., 10 de fev. de 2021 às 23:38, cdbaron escreveu: > Sql.log is an informative file, if you delete it, it will be created again. It > does not affect the operation of the applications. In this file, SQL > queries of the DB migrations are stored. > > El martes, 9 de febrero de 2021

Re: [web2py] Re: fake_migration issues

2021-02-10 Thread António Ramos
I have started another post with apparently the same problem. as i have a production app i cant wait much longer so if anyone can help me professionaly with this please contact me privately. Regards Em dom., 31 de jan. de 2021 às 23:58, Dave S escreveu: > On Saturday, January 30, 2021 at

[web2py] can i delete sql.log?

2021-02-09 Thread António Ramos
can i delete sql.log? -- 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] can broken migration cause current transaction is aborted by pg?

2021-02-09 Thread António Ramos
i´m getting this error editing new tables in appadmin. Does it have to to with broken migrations? how to solve this? regards António current transaction is aborted, commands ignored until end of transaction blockVersão web2py™ Version 2.20.4-stable+timestamp.2020.05.03.05.18.50 Python Python

[web2py] Re: URgent No module named applications.empre.modules.requests

2021-01-07 Thread António Ramos
solved. had to kill processes because stop didnt do it Then start solved the import error Em qui., 7 de jan. de 2021 às 10:28, António Ramos escreveu: > Hello today my web2py does not start with the error > > No module named applications.empre.modules.requests?? > > requests

[web2py] URgent No module named applications.empre.modules.requests

2021-01-07 Thread António Ramos
Hello today my web2py does not start with the error No module named applications.empre.modules.requests?? requests is inside site-packages. I have python3.6 in opalstack What can I do? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Push Notifications

2020-11-20 Thread António Ramos
Yes you make an app in web2py that subscribes to one or many pusher notification channels. That channels are created by you in your html of your web2py app. your web2py server sends notifications to pusher.com using python code ,and your webpages subscribes the same notifications using

Re: [web2py] Re: Push Notifications

2020-11-20 Thread António Ramos
create a module inside web2py API_Pusher.py import pusher def pusher_client(): return pusher.Pusher( app_id='yourid', key='yourkey', secret='yoursecret', cluster='eu',

Re: [web2py] Re: Push Notifications

2020-11-16 Thread António Ramos
Why reiventing the wheel ??? https://pusher.com/ I use it with web2py and works like a charm Em seg., 16 de nov. de 2020 às 08:44, mostwanted escreveu: > So far all I have been able achieve is asking the user for permission to > send them notifications & if they accept all that happens is

[web2py] Re: python3 import error in Opalstack

2020-11-12 Thread António Ramos
solved. I need to activate my env first ! Em qui., 12 de nov. de 2020 às 12:16, António Ramos escreveu: > hello i´m using python3 in opastack and got some problems with import > I installed zeep and web2py is looking in the wrong place for it. > Any help ? > > >

[web2py] python3 import error in Opalstack

2020-11-12 Thread António Ramos
hello i´m using python3 in opastack and got some problems with import I installed zeep and web2py is looking in the wrong place for it. Any help ? No module named applications.fileit.modules.zeepVersão web2py™ Version 2.20.4-stable+timestamp.2020.05.03.05.18.50 Python Python 3.6.8:

Re: [web2py] Scheduler on Opalstack

2020-11-10 Thread António Ramos
it worked for me. Em ter., 10 de nov. de 2020 às 09:25, Gaël Princivalle < gaelprinciva...@gmail.com> escreveu: > > Hello. > > Did someone tried to use the scheduler on Opalstack? > > I was used to run this command to start a worker in Webfaction but in > Opalstack it don't works: > nohup python

Re: [web2py] Re: Migrate a PostgreSQL Webfaction DB to Opalstack

2020-10-27 Thread António Ramos
rsync is awesome :) thank you Em ter., 27 de out. de 2020 às 13:00, Jose C escreveu: > Opalstack have some migration tools available: > https://community.opalstack.com/d/155-howto-migrate-stuff-automatically-from-webfaction > > Also I found my old notes from when I moved my web2py apps and PG

Re: [web2py] Migrate a PostgreSQL Webfaction DB to Opalstack

2020-10-26 Thread António Ramos
i had the same path. Images you should , i think, just download from webfaction and upload to opalstack to uploads folder. I used dbeaver to export from webfaction . and then psql to insert in opalstack. I had the same problem but i used migrate=False. Check docs. Not much but hope it helps. Ramos

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

2020-10-21 Thread António Ramos
me too am crying a litle just send email to supp...@opalstack.com The response time is not as fast as webfaction support but maybe the are having a burst of clients from webfaction. regards António Em qua., 21 de out. de 2020 às 14:42, Jose C escreveu: > > On Wednesday, 21 October 2020

Re: [web2py] Re: python3 sintax

2020-10-19 Thread António Ramos
thank u :) Em seg., 19 de out. de 2020 às 22:13, Jose C escreveu: > > > On Monday, 19 October 2020 22:06:02 UTC+1, Ramos wrote: >> >> can someone help ? understant why this worked in python 2.7 and not python >> 3.6 >> >> File >>

[web2py] python3 sintax

2020-10-19 Thread António Ramos
can someone help ? understant why this worked in python 2.7 and not python 3.6 File "/home/ramos/apps/fileit/web2py/applications/fileit/views/default/user.html", line 75 if 'HELP' in globals() and globals()['HELP']<>[]: ^ SyntaxError:

Re: [web2py] Re: opalstack dal connection time out ?

2020-10-19 Thread António Ramos
got the answer from support Hi António, if you need psycopg2 then please install it like this: export PATH=/usr/pgsql-11/bin/:$PATH cd ~/apps/fileit source env/bin/activate pip install psycopg2 -- Sean from (((Opalstack It worked for me thank you Em seg., 19 de out. de 2020 às 20:03,

[web2py] opalstack dal connection time out ?

2020-10-19 Thread António Ramos
hello i´m starting my journey on Opalstack and my app cant connect to the postgresql db db = DAL('postgres://user:pwdXru@localhost:5432/database', the previous line does not work. I checked that psycopg2 is available in python command line [image: image.png] Failure to connect, tried 5 times:

[web2py] web2py with python 3.6 index.html returns plain text

2020-10-17 Thread António Ramos
hello i´m testing my app from python 2.7 with python 3.6 on another web2py server with web2py 2.20.4 i resolved all issues so far but now only my index.html pages returns plain text other pages are ok. any help? [image: image.png] -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] python3.6 No module named applications.lab.modules.requests

2020-10-17 Thread António Ramos
hello i'm trying web2py with python3 and have an issue with python requests Why is it looking for requests inside my app modules folder ?? regards [image: image.png] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: web2py hosting

2020-10-16 Thread António Ramos
This is not good for me , opalstack is offline for support sometimes. Webfaction is always on and has a ticketing system with a priority flag! [image: image.png] Em sex., 16 de out. de 2020 às 10:30, Jose C escreveu: > HI Antonio, > > Can't speak as to pythonanywhere, but Opalstack

Re: [web2py] Re: web2py hosting

2020-10-16 Thread António Ramos
> yourselves a favour and create an account on Opalstack and check them out. > You should feel right at home. > > Either way, good luck with your migrations. > > Jose > > On Wednesday, 14 October 2020 at 15:51:52 UTC+1 Ramos wrote: > >> no python??? on TsoH

Re: [web2py] Re: web2py hosting

2020-10-14 Thread António Ramos
no python??? on TsoHost?? Em qua., 14 de out. de 2020 às 15:50, António Ramos escreveu: > no postgresql db... i´m doomed > > Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle < > gaelprinciva...@gmail.com> escreveu: > >> I think the new business

Re: [web2py] Re: web2py hosting

2020-10-14 Thread António Ramos
no postgresql db... i´m doomed Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle < gaelprinciva...@gmail.com> escreveu: > I think the new business TsoHost plans are the ones that will replace the > Webfaction cloud plans: > https://www.tsohost.com/business-hosting > > Il giorno

Re: [web2py] Re: OT PollyReports generate PDF using bands from DB

2020-10-06 Thread António Ramos
my favourite https://www.reportbro.com/demo/invoice i has a web2py tutorial of installation. Em ter., 6 de out. de 2020 às 12:47, villas escreveu: > It is strange that Geraldo Reports and PollyReports do not seem to have > been maintained for years. > Maybe everyone is using something else

Re: [web2py] Re: Having a function always running in the background

2020-09-03 Thread António Ramos
maybe this online cron can help. https://www.easycron.com/ Em qui., 3 de set. de 2020 às 02:31, Andy W escreveu: > If you are using PythonAnywhere, they have Scheduled Tasks and (for paid > accounts) an Aways-on Task. > These are very simple to use. I use them for managing the queue of >

Re: [web2py] Voting & Rating

2020-08-25 Thread António Ramos
If the vote was made by a logged in user you should find it in the db right ? Em ter., 25 de ago. de 2020 às 17:31, mostwanted escreveu: > > Hey guys, I'm looking at the voting & rating example on the book ( >

Re: [web2py] Re: Sending smses via my web2py

2020-08-06 Thread António Ramos
i use https://www.easysendsms.com/ very good and with a good and simple api Em qui., 6 de ago. de 2020 às 04:10, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > Nice. will integrate with py4web. :-) > > > On Wednesday, 5 August 2020 16:01:18 UTC-7, Jacinto Parga wrote: >> >> I use

Re: [web2py] How to call other (and retrieve data/dictionnary ... ) web2py applications from within a web2py application

2020-06-22 Thread António Ramos
I guess only with http requests L c escreveu em seg, 22/06/2020 às 11:01 : > Hello, > > there is an item on this subject however the links do not work anymore. Is > there a simple, functional recipe to this question. > Thank you in advance > PS: I've looked in the book and I can't find a clear

Re: [web2py] Problems using Restful method PUT

2020-06-21 Thread António Ramos
Can you detail a litle more your vuejs and web2py side code? Em sáb., 20 de jun. de 2020 às 00:32, Ariel Antunez < ariel.antunezcant...@gmail.com> escreveu: > Hi everyone, I am working in a application using vue.js on vue-cli and > axios. I need to use the method PUT, but I get the error,

Re: [web2py] Schema for auth table

2020-06-21 Thread António Ramos
Why do you want or need schema B? Em sáb., 20 de jun. de 2020 às 21:14, Deep Shah escreveu: > Hi Team, > > I have 2 schemas A and B. Default schema for user is A. I am using > postgres. > I have authetication table in schema B. When i run application > auth.define_tables create auth table in

Re: [web2py] No module named error

2020-06-21 Thread António Ramos
check here https://stackoverflow.com/questions/4657484/how-can-i-use-modules-in-web2py Em sáb., 20 de jun. de 2020 às 21:14, patito feo escreveu: > Hi, > > Please define "all ok" > > __init__.py file in /modules > .py file in /modules > > > Thnx for your help! > > > > > El sábado, 13 de junio

Re: [web2py] No module named error

2020-06-13 Thread António Ramos
if all is ok, restart web2py Em dom., 14 de jun. de 2020 às 00:35, patito feo escreveu: > Hi, > > Im trying to use a module file inside /modules/ folder but keep getting > this error. > > > failed to reload module because: > > ImportError('No module named mdplenus.modules.test',) > > -- >

Re: [web2py] How to clear a list in a view with jquery

2020-06-07 Thread António Ramos
i guess you mean {{for detail in details:}} instead of {{for detail*s* in details:}} anyway the python code is rendered in server before being sent to the view. so your script cant change any of your python code output You could use the ajax function to update a div content or better vuejs or

[web2py] Re: urgent web2py 2.20.4 scheduler error ?!?=

2020-05-28 Thread António Ramos
i am using python 2.7.5!!! any help ?? Em qui., 28 de mai. de 2020 às 21:50, António Ramos escreveu: > [image: image.png] > any help please ? > > regards > António > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

[web2py] urgent web2py 2.20.4 scheduler error ?!?=

2020-05-28 Thread António Ramos
[image: image.png] any help please ? regards António -- 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] email template framework

2020-05-23 Thread António Ramos
Nice https://mjml.io/ django is using it ... https://github.com/liminspace/django-mjml -- 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

[web2py] web2py hosting

2020-05-22 Thread António Ramos
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 term period. Can you recommend a good alternative? Can you share your experience? Opalstack pythonanywhere others ? regards António -- Resources: -

Re: [web2py] Re: Webfaction anyone ??

2020-05-21 Thread António Ramos
I will look at it thank you Em qui., 21 de mai. de 2020 às 20:48, Jose C escreveu: > A bit off-topic (other than the title) but given the GoDaddy buyout of > webfaction (putting it on temporary life support) you may want to consider > thinking about options for your hosting if they follow

Re: [web2py] Re: uwsgi from python2.7 to python3

2020-05-21 Thread António Ramos
no, but i dont want to mess with uwsgi because i may need to use python 2.7 again as i´m fixing code bugs from 2.7 to 3. will i have problems upgrading uwsgi but using python 2.7? Em qui., 21 de mai. de 2020 às 13:28, Clemens < clemens.odend...@claret-clover.de> escreveu: > Have you already

[web2py] Re: Webfaction anyone ??

2020-05-20 Thread António Ramos
Please delete this post. Already created another with a better subject :) Em qua., 20 de mai. de 2020 às 17:15, António Ramos escreveu: > hello i´m using webfaction and this script > > https://github.com/duducosmos/webfaction-web2py-nginx-uwsgi-installer/blob/master/i

[web2py] uwsgi from python2.7 to python3

2020-05-20 Thread António Ramos
hello i´m using webfaction and this script https://github.com/duducosmos/webfaction-web2py-nginx-uwsgi-installer/blob/master/install.py that installed web2py a loong time ago. now i want to use python3.5.9 already available as python3 instead of python 2.7 i read this in the start conf

[web2py] Webfaction anyone ??

2020-05-20 Thread António Ramos
hello i´m using webfaction and this script https://github.com/duducosmos/webfaction-web2py-nginx-uwsgi-installer/blob/master/install.py that installed web2py a loong time ago. now i want to use python3.5.9 already available as python3 instead of python 2.7 i read this in the start conf

[web2py] CON Abandoned framework with (almost) no community

2020-05-17 Thread António Ramos
How is that possible ? https://www.slant.co/versus/1397/1746/~web2py_vs_django I´m here and many others are here... Who is trying to make us look like dead people ?? Regards to you all :) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] ideas we stole and ideas we had . Slides not available ??

2020-05-13 Thread António Ramos
Can someone share the slides please ? https://pycon-2012-notes.readthedocs.io/en/latest/web2py.html maybe add it to the documentation.. http://www.web2py.com/init/default/documentation regards antónio -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Off topic : new js alternative to vue and react

2020-05-07 Thread António Ramos
This is s cool and clean. https://www.imba.io/ The interactive screencasting platform Scrimba.com is written in Imba, both frontend and backend. regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: py4wb simplification

2020-05-07 Thread António Ramos
With this callback can i have "powerfields" that automatically update themselves in the database ? No need to submit forms.. Em sáb., 15 de fev. de 2020 às 11:27, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > They they should be added > > @autneticated and @unauthenticated are

Re: [web2py] Re: tailwindcss with web2py ?

2020-03-22 Thread António Ramos
from the creator https://tailwindcss.com/course/setting-up-tailwind-and-postcss Em sáb., 21 de mar. de 2020 às 12:34, António Ramos escreveu: > I´m just looking into it but after the start barrier it seems that it > give more freedom of creation over bootstrap. > We just have

Re: [web2py] Re: tailwindcss with web2py ?

2020-03-21 Thread António Ramos
I´m just looking into it but after the start barrier it seems that it give more freedom of creation over bootstrap. We just have to learn the utility classes https://blog.logrocket.com/tailwind-css-is-it-tomorrows-bootstrap-ebe560f9d00b/

[web2py] tailwindcss with web2py ?

2020-03-20 Thread António Ramos
any thoughts about tailwindcss ? Seems to me that could be the best option for web2py as it is very programable as we all like :) just one nice thing i like... https://tailwindcss.com/docs/extracting-components -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Fullcalendar v4 and web2py

2020-03-16 Thread António Ramos
{{response.files.append(URL(r=request,c='static/js',f='fullcalendar.min.js'))}} {{response.files.append(URL(r=request,c='static/css',f='fullcalendar.min.css'))}} {{extend 'layout.html'}} .myclass{ background-color: white; } #calendar .fc-agenda-axis, #calendar .fc-widget-header {

Re: [web2py] DId.app auth is good for web2py apps ?

2020-03-11 Thread António Ramos
ents of course. > > > > > On Wed, Mar 11, 2020 at 2:02 PM António Ramos > wrote: > >> DID <https://did.app/> is an Identity Provider, that authenticates users >> by verifying access to either an email address or securely stored private >> key. >>

[web2py] DId.app auth is good for web2py apps ?

2020-03-11 Thread António Ramos
DID is an Identity Provider, that authenticates users by verifying access to either an email address or securely stored private key. This gives users the ability to sign in with a single click without being tracked by the social login providers. It gives developers the ability

[web2py] Tip on declaring tables

2020-03-05 Thread António Ramos
Hello just wondering if declaring a variable for each table is of any concern in the context of many tables and many controllers and models. Regards EquipArea = db.define_table(app+'area', Field('nome', 'string', length=35, requires=IS_NOT_EMPTY()), Field('descricao','string',label

Re: [web2py] Re: off topic - Alpine JS as an alternative to vuejs/react

2020-02-28 Thread António Ramos
maybe this is helpful https://www.alpinetoolbox.com/ Em sex., 28 de fev. de 2020 às 06:19, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > wow. Alpine is pretty good. I will give it a try. > > > On Monday, 24 February 2020 08:33:28 UTC-8, Ramos wrote: >> >> vuejs is awesome but for

Re: [web2py] Re: LOAD in py4web

2020-02-24 Thread António Ramos
I think LOAD should be gone and we should move this kind of interaction to the client part. Also py4web should stick with server stuff and let client stuff integrate better an in a more independent way. For me FORM / smartgrid should also be gone. Vuetify and buefy tables are awesome. dont try to

[web2py] off topic - Alpine JS as an alternative to vuejs/react

2020-02-24 Thread António Ramos
vuejs is awesome but for simple stuff maybe alpine js is simpler. Just asking your thoughts if any... https://github.com/alpinejs/alpine -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] py4web jwt ?

2020-02-20 Thread António Ramos
getting this from py4web as an api. [image: image.png] Is not what i would like to see from a SPA standpoint. Regards António Em qui., 20 de fev. de 2020 às 18:03, Val K escreveu: > It seems it depends on request.content_type > >

[web2py] py4web jwt ?

2020-02-20 Thread António Ramos
this code from the docs... @action('index') @action.uses(auth.user)def index(): return {"ok":1} Here @action.uses(auth.user) tells py4web that this action requires a logged in user and should redirect to login if no user is logged in. this redirect is good for an full web2py app. What

[web2py] pydal bug!

2020-02-20 Thread António Ramos
this is the result [image: image.png] of this code . Why do i get user ??? @action('colors') @action.uses( session, db, T, auth.user) def colors(): return {'colors': ['red', 'blue', 'green']} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] py4web

2020-02-20 Thread António Ramos
Any time i change controllers.py i have to stop and restart the server. why ?? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this

[web2py] buefy for bulma /py4web

2020-02-18 Thread António Ramos
py4web has bulma out of the box so i guess buefy is more advisable than vuetify to use with py4web right ? https://buefy.org/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] Re: PY4WEB socketIO

2020-02-18 Thread António Ramos
I was not expecting less than that from Massimo :) Em ter., 18 de fev. de 2020 às 03:45, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > It would be trivial to implement it like flask does. > > You can do it right now using the bottlepy way: >

[web2py] Re: PY4WEB socketIO

2020-02-17 Thread António Ramos
also rooms ... https://flask-socketio.readthedocs.io/en/latest/ Em seg., 17 de fev. de 2020 às 18:31, António Ramos escreveu: > hello , just asking if py4web will have the ability like flask to have a > socket as simple as ... > Regards > > @socketio.on('my event')def handle_

[web2py] PY4WEB socketIO

2020-02-17 Thread António Ramos
hello , just asking if py4web will have the ability like flask to have a socket as simple as ... Regards @socketio.on('my event')def handle_my_custom_event(arg1, arg2, arg3): print('received args: ' + arg1 + arg2 + arg3) -- Resources: - http://web2py.com - http://web2py.com/book

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

2020-02-15 Thread António Ramos
Nice to know!! Massimo Di Pierro escreveu em sáb, 15/02/2020 às 11:29 : > 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

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

2020-02-14 Thread António Ramos
Hello, like pydal that is now an independent module , would also be interesting to have web2py HTML helpers imported as a independent module outside of web2py. Maybe flask and django developers could use them also... Regards António -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: special chars in view, utf8 issue ?!

2020-02-13 Thread António Ramos
my solution .decode('utf8').encode('latin1') just did it without thinking... dont know what i´m doing but it works... {{temp=db(db.apps.id>0).select(db.apps.icon,db.apps. url,db.apps.bg,db.apps.title,orderby=db.apps.id)}} {{for x in temp:}}

[web2py] Re: cannot reference db.auth_group in model ?

2020-02-12 Thread António Ramos
problem solved. Forgot to add "*list:*reference auth_group" regards António Em qua., 12 de fev. de 2020 às 11:31, António Ramos escreveu: > any help ? > thank you > > Em qua., 12 de fev. de 2020 às 11:31, António Ramos > escreveu: > >> correct model >&

[web2py] Re: cannot reference db.auth_group in model ?

2020-02-12 Thread António Ramos
Field("app",'reference apps'), Field('content','list:string'), Field('icon'), Field('href'), Field('indice') ) db.menus.visibleTo.requires=IS_IN_DB(db,db.auth_group.id,'%(role)s',multiple =True) Em qua., 12 de fev. de 2020 às 11:30, An

  1   2   3   4   5   6   7   8   9   10   >