Re: [web2py] py4web jwt ?

2021-02-26 Thread Richard Vézina
w.free-email-tracker.com> Powered by > cloudHQ <https://www.free-email-tracker.com> > > Am Fr., 26. Feb. 2021 um 19:39 Uhr schrieb Richard Vézina < > ml.richard.vez...@gmail.com>: > >> UP! >> >> Is py4web has jwt token mechanism?? >> >> Eval

Re: [web2py] py4web jwt ?

2021-02-26 Thread Richard Vézina
/static/en/chapter-11.html Thanks Richard On Thu, Feb 20, 2020 at 2:19 PM Val K wrote: > As I know py2web already stores _session_token as jwt, no? > > On Thursday, February 20, 2020 at 10:00:00 PM UTC+3, Kevin Keller wrote: >> >> With a Spa the routing is done in Java

[web2py] Re: Graphql consumption

2020-07-29 Thread Richard D
Looking at Jupyter Notebook use give me the hint for the solution. from gql.transport.requests import RequestsHTTPTransport _transport = RequestsHTTPTransport( url="https://countries.trevorblades.com/;, use_json=True, ) Issue solved :) Richard On Wednesday, Ju

[web2py] Graphql consumption

2020-07-29 Thread Richard D
print(result) asyncio.run(main()) But this 'hangs' Does anybody has some experience with this? Kind regards, Richard -- 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] web2py website development contractor wanted

2020-04-25 Thread Richard Gordon
Hello web2py users: Is anyone out there ready, willing and able to contract-program for me to put up a new web2py-based shopping site for my product? Something simple and clean with product photos, shopping cart, basic inventory control, links to Paypal or other payment site, and some static

Re: [web2py] web2py 2.19.1 is OUT

2020-03-25 Thread Richard Vézina
KEEP GOING!! WEB2PY!! :D On Wed, Mar 25, 2020 at 4:42 AM Nico Zanferrari wrote: > Hi Jim, > > you should use the latest available Python version and the web2py sources > (and possibly a full web server) for Production and complex / unusual > development. > But using the binaries is much

Re: [web2py] Re: any travis expert can help debug failures?

2019-09-05 Thread Richard Vézina
Sorry, I would help more, but I have not much time... I am not using web2py full time anymore... I am happy to see you pursue with py4web... I am eager to find time to try it... Seems really fast! :) Richard On Mon, Aug 19, 2019 at 3:57 PM Massimo Di Pierro < massimo.dipie...@gmail.com>

Re: [web2py] Re: any travis expert can help debug failures?

2019-08-19 Thread Richard Vézina
Did you fix it? On Sun, Aug 18, 2019 at 2:40 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I think I fixed. Travis updated the docker image and broke some stuff. > > On Saturday, 17 August 2019 22:13:57 UTC-7, Massimo Di Pierro wrote: >> >> Any idea why web2py on travisci is

Re: [web2py] install script for web2py using python 3

2019-02-06 Thread Richard Vézina
'# Emperor uWSGI script > > > description "uWSGI Emperor" > > start on runlevel [2345] > > stop on runlevel [06] > > ## > > #remove the comments in the next section to enable static file compression > for the welcome app > > #in that case, t

Re: [web2py] install script for web2py using python 3

2019-02-05 Thread Richard Vézina
Share you change here, we may point you in the right direction, so you can submit a PR on github... It shouldn't be hard to get the actual script to work. Richard On Tue, Feb 5, 2019 at 2:28 PM Ben Lawrence wrote: > HI > If anyone has a working install script for web2py using p

[web2py] Re: adding fields dynamically in web2y forms

2019-01-26 Thread Richard D
Field("name"), Field("invoice_line_ids", "list:reference invoice_line"), Field('total_price', compute=lambda r: invoice_sum(r['invoice_line_ids']) ), format='%(name)s') Hope this helps. Richard D On Wednesday, Jan

[web2py] rewrting url for function flexibility through routes

2019-01-26 Thread Richard D
', '/testme'), ) but accessing http://127.0.0.1:8000/shcc/default/Sfg_customer_1 gives "invalid function (default/Sfg_customer_1) " How can I resolve this? Thank you, Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

Re: [web2py] Re: Slightly on-topic -- CMSs

2019-01-16 Thread Richard Vézina
My thoughs about CMS (they all sucks). They are maintains by the one who put them in place (prog side and content side), so you gonna find challenge in bringing someone to maintain the content in it out of IT and in IT you will find it difficult to find someone who wants maintain the content...

[web2py] share AlaSQL

2019-01-16 Thread Richard
Hi All, Fall on this new JS database in browser, SQL/NoSQL : https://github.com/agershun/alasql Seems promissing for simple application, or maybe local storage to speed app. Richard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Bug in tools.py

2018-12-14 Thread Richard Vézina
Note that import string if it would be necessary would have to be deal with in _compat module where web2py sort out compatibility issue between python2 and 3 : https://github.com/web2py/web2py/blob/master/gluon/_compat.py I am pretty sure the .strip() problem you describe would had be sorted

Re: [web2py] lgoin_bare WTF???

2018-12-14 Thread Richard Vézina
I would suggest you to use the new way of customizing auth tables : """ The simplest way is to add extra fields: ## after auth = Auth(db) auth.settings.extra_fields['auth_user']= [ Field('address'), Field('city'), Field('zip'), Field('phone')] ## before auth.define_tables(username=True)

[web2py] [web2py-users] pygraphviz

2018-11-22 Thread Richard
can barely analysing it with the live instance of the 3djs created graph... I search in the 3djs examples didn't find anything already doing something similar to what pygraphviz was doing... To me there is an usability regression here... Any plan to improve that? Thanks Richard -- Resources

Re: [web2py] Re: Future of web2py

2018-11-19 Thread Richard Vézina
You are right, I found some that there wierd things occuring some times as the left side bar completly disappeared... My guess is that this is some glitches that may be existing for some browser/OS?? I think from my standpoint that the issue is that the framework is Signle app vue... I am not

Re: [web2py] Re: Future of web2py

2018-11-15 Thread Richard Vézina
this to be framework will reside related to the server side restful / client side app paradigm ? Thanks Richard On Mon, May 29, 2017 at 7:29 PM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > My plan is this > > It is based on bottle + gevent + gunicorn + rethinkdb + pydal + vue.j

Re: [web2py] db structure graphical analysis tool

2018-10-03 Thread Richard Vézina
Does the old appreciate pygraphviz still work out of the box?? I thought we would keep support for it?? Thanks Richard On Sat, Jul 8, 2017 at 9:27 AM Paolo Valleri wrote: > Hi Jurgis, > web2py master has recently switched from pygraphviz to a js based > solution. I would suggest you

Re: [web2py] redis in 2.16.1

2018-06-29 Thread Richard Vézina
or in the new version of Redis Richard On Tue, Jun 19, 2018 at 9:17 PM, 黄祥 wrote: > it seems session with redis not work in 2.16.1 > *e.g. create web2py from scratch name redis* > *models/db.py* > from gluon.contrib.redis_utils import RConn > from gluon.contrib.redis_cache im

Re: [web2py] managing latin characters

2018-06-18 Thread Richard Vézina
... Richard On Mon, Jun 18, 2018 at 3:40 PM, Andrea Fae' wrote: > How to manage latin character, like italian character like è,é, à, ò > If I want to insert for example à it "translate" to “/xe0153" > How to wotk with this type of charater...Do I need to change

Re: [web2py] Last version supporting Python 2.6

2018-06-18 Thread Richard Vézina
And previous version was : 2.14.6 On Mon, Jun 18, 2018 at 11:27 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Changelog file in web2py folder : > > *## 2.15.1-4* > - pydal 17.08 > *- dropped support for python 2.6* > - dropped web shell > - ex

Re: [web2py] Last version supporting Python 2.6

2018-06-18 Thread Richard Vézina
Changelog file in web2py folder : *## 2.15.1-4* - pydal 17.08 *- dropped support for python 2.6* - dropped web shell - experimental python 3 support - experimental authapi for service login - allow ajax file uploads - more tests - more pep8 compliance - d3.js model visulization - improved

Re: [web2py] fetching events from DB using fullcalendar javascript event calendar

2018-06-13 Thread Richard Vézina
Here I had showed how I was dealing with fullcalendar : https://groups.google.com/d/msg/web2py/GQFIMbNmp_M/ZiRHLUQ_UAAJ Good luck Richard On Sun, Jun 10, 2018 at 4:40 PM, Andrea Fae' wrote: > I'm using web2py and now I'm fetching all calendar events from db using > this code in

Re: [web2py] web2py with python3

2018-06-12 Thread Richard Vézina
That's what I thought... I see others give you tip, I think there few things I can had good luck Richard On Tue, Jun 12, 2018 at 2:45 PM, yifan li wrote: > Hi Richard, > > Thank you for your reply. I'm using a window8 OS. My web2py version is > 2.16.1 which is the latest vers

Re: [web2py] web2py with python3

2018-06-12 Thread Richard Vézina
py.py ..." Richard On Tue, Jun 12, 2018 at 10:19 AM, yifan li wrote: > Hi everyone, > > I install latest version for web2py. But the python version in web2py is > 2.7.9. However, I executed web2py in anaconda. My anaconda has python > version 3.6 installed. How could I upgrade python

Re: [web2py] Re: Scheduler and far-away tasks

2018-06-11 Thread Richard Vézina
of the criticallity of the task this may have bad consequences... Richard On Mon, Jun 11, 2018 at 11:16 AM, Anthony wrote: > I suppose that should be fine. Tasks are stored in a database, so should > be as durable as any other data you are storing. > > Alternatively, you might consider storin

Re: [web2py] link to a grid

2018-05-10 Thread Richard Vézina
The error message is simple, you don't have a controller function named static in you default controller file... Richard On Thu, May 10, 2018 at 6:59 AM, Andrea Fae' <and...@gmail.com> wrote: > Hello I have a grid with certain fields. > In a filed there is a name of a pdf file

Re: [web2py] pyDAL "adapter" for Pandas syntax (phylosophical)

2018-05-04 Thread Richard Vézina
By include in pandas I mean add support to pydal in pandas so you can do something like : df = pd.DataFrame.from_pydal(db(...).select(...)) Richard On Fri, May 4, 2018 at 1:10 AM, Jurgis Pralgauskis < jurgis.pralgaus...@gmail.com> wrote: > I'd like not to include sth into Pandas, but

Re: [web2py] pyDAL "adapter" for Pandas syntax (phylosophical)

2018-05-03 Thread Richard Vézina
).as_list() df = pd.DataFrame([merge_dicts(r['table_1'], r['table_2'], r['table_3'], r[table_4]) for r in rows.as_list()]) What you want would have to be include in p

Re: [web2py] pyDAL "adapter" for Pandas syntax (phylosophical)

2018-05-02 Thread Richard Vézina
mes Richard On Tue, May 1, 2018 at 11:31 PM, Jurgis Pralgauskis < jurgis.pralgaus...@gmail.com> wrote: > Hi, > > Pandas syntax seems very nice (short), and popular ... > But Pandas eat RAM..., and well, most of data is in DB... > > so I wonder, how hard would it be to over

Re: [web2py] DAL return all Fields

2018-05-01 Thread Richard Vézina
rogrammatically" you field you forgot about that... You have to do db.table['table.field']... Richard On Tue, May 1, 2018 at 11:22 AM, Maurice Waka <mauricew...@gmail.com> wrote: > Thanks. > It iterates well giving some fields data, but not all as needed. I get > data from

Re: [web2py] DAL return all Fields

2018-05-01 Thread Richard Vézina
for f, v in row: Should be for f, v in row.iteritems(): k, v for key, value, but I use f instead of k because you will have field_name and value in this for loop... Richard On Mon, Apr 30, 2018 at 11:39 PM, Maurice Waka <mauricew...@gmail.com> wrote: > What would f, v be. > I ge

Re: [web2py] DAL return all Fields

2018-04-30 Thread Richard Vézina
topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > I had been using python isle to test some modules. Now I just want to get > a clearer code by removing the long codes. > > > On Mon, 30 Apr 2018, 20:09

Re: [web2py] DAL return all Fields

2018-04-30 Thread Richard Vézina
bright yellow and tastes sweet.'.format(r.fruit_name) That's it!! Richard On Sat, Apr 28, 2018 at 11:02 AM, Maurice Waka <mauricew...@gmail.com> wrote: > Thanks, but I seem to be having a challenge when returning the rows from a > specific id name or number. I tried this on a different

Re: [web2py] DAL return all Fields

2018-04-27 Thread Richard Vézina
ANT] for r in rows: for f in myfields: print(r[f]) You can play around that you should be able to figure out how you can do what you wanna do. Richard On Fri, Apr 27, 2018 at 10:08 AM, Maurice Waka <mauricew...@gmail.com> wrote: > Addendum > > I want a single

Re: [web2py] Re: Updated Version of web2py and sending emails stopped working

2018-04-27 Thread Richard Vézina
Can you show us your code (omit your credential)... You mention you use Office 365, they might have made some change you may want to have a look in the account config if SMTP has change. Or you could also try ot use the SMTP of the FAI with a no-reply email... Richard On Thu, Apr 26, 2018 at 10

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Richard Vézina
Here : https://github.com/web2py/web2py/issues/1911 On Tue, Apr 24, 2018 at 11:20 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Also, to my understanding it only log an error, it no big deal, as long as > the welcome app package is there... What we could do it to log an

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Richard Vézina
is that it will be out dated which is not ideal, but might be better then having a broken app creation utility... I open an issue.. Richard On Tue, Apr 24, 2018 at 11:09 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Yes but even then, in the end you don't want to create a ne

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Richard Vézina
definetly open an issue... Richard On Tue, Apr 24, 2018 at 8:51 AM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> wrote: > I think we should check if the file exists before try to delete it. > > or move the unlik() function to a new "try-except&qu

Re: [web2py] Multiple domains nginx/uwsgi?

2018-04-23 Thread Richard Vézina
the sites, I guess you better read about how manage security related to such kind of deployment. Richard On Mon, Apr 23, 2018 at 7:20 PM, pbreit <pbreitenb...@gmail.com> wrote: > I was thinking something like that. I occasionally run across the uwsgi > "vassals" thing

Re: [web2py] Multiple domains nginx/uwsgi?

2018-04-23 Thread Richard Vézina
will need to look on the side of SNI SSL cerficiates and how to create those... Once the SSL part is done it pretty straigh foward to configure nginx, you almost basically just copy/paste your server block and adapt it with particular certificates locations and url parsing... Richard On Mon, Apr 23

Re: [web2py] bulk update...

2018-04-23 Thread Richard Vézina
Note to my self : Yes it possible... db(db.table.id > 0).update(field_to_be_updated=db.table. <http://db.table.id/>some_other_table_field*db.table. <http://db.table.id/> another_table_field) Doh! Richard On Mon, Apr 23, 2018 at 2:58 PM, Richard <ml.richard.vez...@gmail.co

[web2py] bulk update...

2018-04-23 Thread Richard
update(...) ??? Thanks Richard -- 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 "w

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
and the template being updated?? Richard On Mon, Apr 23, 2018 at 1:28 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > I guess we could had a simple "try" there... > > Richard > > On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina < > ml.richard.vez...@

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
I guess we could had a simple "try" there... Richard On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Yeah this file is not there when we clone web2py... But I just check and > it's there when you download web2py build from web2py.c

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
Yeah this file is not there when we clone web2py... But I just check and it's there when you download web2py build from web2py.com... What's weird is that I didn't have the issue... Richard On Mon, Apr 23, 2018 at 12:39 PM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu>

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
In gluon/fileutil.py Richard On Mon, Apr 23, 2018 at 11:47 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > The python3 welcome.w2p creation issue?? > > I think it a dependency issue that might be obufuscated by _compat.py > > You can try to replace thi

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
The python3 welcome.w2p creation issue?? I think it a dependency issue that might be obufuscated by _compat.py You can try to replace this line : w2p_pack('welcome.w2p', 'applications/welcome') By w2p_pack('welcome.w2p', 'applications', 'welcome') And report here if it help... Richard

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-21 Thread Richard Vézina
Actually I can't reproduced... It could it be a permission error?? Try to clone it fresh some where you have full access with this command : git clone --recursive https://github.com/web2py/web2py.git Then cd web2py python3 web2py.py Enter password Richard On Sat, Apr 21, 2018 at 8:01 AM

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-21 Thread Richard Vézina
Can you open an issue? I think it related to this : https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269 Path string that has to be manipulated differently in python 3 Explanation https://www.scivision.co/python-idiomatic-pathlib-use/ On Fri,

Re: [web2py] IS_DECIMAL_IN_RANGE

2018-04-21 Thread Richard Vézina
ient if we configure it at Decimal quantize level, but I think you have to maniuplate it for each field so it might come to the same computing resource required. Richard On Fri, Apr 20, 2018 at 3:29 PM, Anthony <abasta...@gmail.com> wrote: > On Friday, April 20, 2018 at 3:06:59 PM U

Re: [web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard Vézina
and flexibility over all this aspect, but I feel that there is a missing component to handle this particular aspect (rounding and enforcing "length" of numeric fields). Richard On Fri, Apr 20, 2018 at 2:59 PM, Anthony <abasta...@gmail.com> wrote: > On Friday, April 20, 2018

Re: [web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard Vézina
that web2py was validating places... But it clearly not doing it anymore Richard On Fri, Apr 20, 2018 at 2:55 PM, Anthony <abasta...@gmail.com> wrote: > On Friday, April 20, 2018 at 2:30:22 PM UTC-4, Richard wrote: >> >> Realize that, though I am sure it use to managed it...

Re: [web2py] web2py, nginx and big files

2018-04-20 Thread Richard Vézina
that code base of apps like these listing : https://opensource.com/life/15/12/5-open-source-web-apps-self-hosted This kind of apps surely had to workaround large file issue that you have... Richard On Fri, Apr 20, 2018 at 10:39 AM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub

Re: [web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard Vézina
e database engine?? Richard On Fri, Apr 20, 2018 at 2:30 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Realize that, though I am sure it use to managed it... > > Anyway, I find it curious that even if I have field of type decimal(10, 2) > for instance, if I inser

Re: [web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard Vézina
?? Richard On Fri, Apr 20, 2018 at 11:32 AM, Anthony <abasta...@gmail.com> wrote: > On Friday, April 20, 2018 at 9:38:47 AM UTC-4, Richard wrote: >> >> Hello, >> >> I was under the impression that IS_DECIMAL_IN_RANGE(2.25, 5.25) would >> validate and prevent input

[web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard
? Thanks Richard -- 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-

Re: [web2py] Re: SSL database connections

2018-04-19 Thread Richard Vézina
It much easier to make ssh port fowarding remote 5432 to local 5433 for instance and then configure pgadmin to use the local port, everything goes to ssh tunnel between you and the server... ssh -L 5433:127.0.0.1:5432 your_user@remote_ip_or_dns Richard On Thu, Apr 19, 2018 at 1:47 PM

Re: [web2py] web2py, nginx and big files

2018-04-19 Thread Richard Vézina
mechanism. I try to make some research and get back to you if I can fin anything that could help. Good luck Richard On Wed, Apr 18, 2018 at 10:37 PM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> wrote: > > El 18/04/18 a las 13:54, Richard Vézina escribió: > >

Re: [web2py] Nginx + SSL certificates for two different apps

2018-04-18 Thread Richard Vézina
Good luck On Wed, Apr 18, 2018 at 2:00 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > You have to use multiple subdomain certificate... > > Look at SNI certificate configuration... > > I will have a look at how I achieve that. > > On Wed, Apr 18, 2018 at

Re: [web2py] Nginx + SSL certificates for two different apps

2018-04-18 Thread Richard Vézina
You have to use multiple subdomain certificate... Look at SNI certificate configuration... I will have a look at how I achieve that. On Wed, Apr 18, 2018 at 6:16 AM, dirman wrote: > I need help setting two SSL certificates for two different apps on one > instance of web2py.

Re: [web2py] web2py, nginx and big files

2018-04-18 Thread Richard Vézina
That big... Hope it could work for you... Are you trying to make El packet transiting the island faster or what... :D Richard On Wed, Apr 18, 2018 at 1:45 PM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> wrote: > Thanks Richard, It seems to be working now. The

Re: [web2py] web2py, nginx and big files

2018-04-17 Thread Richard Vézina
... In the link you provide there not seems to have limit overriding default, so my guess is that your file is bigger than the client_max_body_size Good luck Richard On Tue, Apr 17, 2018 at 12:10 PM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> wrote: > Hi, I have a web2p

Re: [web2py] Re: Web2py locks row at auth_user and web2py_session_* tables and doesn't unlock them

2018-04-16 Thread Richard Vézina
Hello LIsandro, I recall you have ask question about session in redis... Could there are remaining stuff of experiment with redis that haven't been commented out completly?? Richard On Mon, Apr 16, 2018 at 3:15 PM, Lisandro <rostagnolisan...@gmail.com> wrote: > Hi there, sorry to bot

Re: [web2py] Re: Customizing Fields the lazy way

2018-04-16 Thread Richard Vézina
ue is user related because they don't actualize record status. The workaround above wasn't really necessary. Richard On Mon, Apr 16, 2018 at 12:37 AM, Joe Barnhart <joe.barnh...@gmail.com> wrote: > Actually, I borrowed Anthony's excellent idea and made a "factory" class > for m

Re: [web2py] Reverse relationships

2018-04-11 Thread Richard Vézina
I think it coming from DAL vs ORM. :) Richard On Wed, Apr 11, 2018 at 2:13 PM, pbreit <pbreitenb...@gmail.com> wrote: > It's interesting that Rails & Django have a reverse relationship concept > but Web2py apparently does not. Whenever I run into this in the various > Rails

Re: [web2py] How to retrieve info about sessions when they are stored in Redis?

2018-04-11 Thread Richard Vézina
It migth help you figure out how to manage you redis sessions form python and better understand session contrib : https://github.com/web2py/web2py/blob/0d646fa5e7c731cb5c392adf6a885351e77e4903/gluon/contrib/redis_session.py Good luck Richard On Mon, Apr 9, 2018 at 12:11 AM, Lisandro <rostagnoli

Re: [web2py] License expiry date management

2018-04-11 Thread Richard Vézina
).select(db.table_name.ALL) Then : for r in rows_with_records_of_software_license_that_will_end_the_next_sunday: # get data you require from you table row and send you email Richard On Wed, Apr 11, 2018 at 4:01 AM, Prabhakar Shanmugam <prabs...@gmail.com> wrote: > Dear All, > &

Re: [web2py] Re: Decrypt password from auth_user

2018-04-06 Thread Richard Vézina
So you might consider explaining what you try to achieve so we surely can propose you some other, maybe better, way. Richard On Fri, Apr 6, 2018 at 3:06 PM, Luis Sucuc <jlsu...@gmail.com> wrote: > Mi propósito es editar los datos de usuario desde un formulario diferente > a SQLFORM

Re: [web2py] Re: Decrypt password from auth_user

2018-04-06 Thread Richard Vézina
If the purpose is to impersonate support a user, web2py provide tool to do it http://web2py.com/books/default/chapter/29/09/access-control#Authentication It explained at the end the Authentication seciton from the link above. Richard On Fri, Apr 6, 2018 at 2:29 PM, Leonel Câmara <leonel

Re: [web2py] Re: Confused about web2py sessions handling in the filesystem, versus the db handling.

2018-04-05 Thread Richard Vézina
Thank you Anthony as always very clear explanations. :) Richard On Wed, Apr 4, 2018 at 5:19 PM, Anthony <abasta...@gmail.com> wrote: > This behavior is controlled by the following auth.settings: > > renew_session_onlogin (default=True) > keep_session_onl

Re: [web2py] Confused about web2py sessions handling in the filesystem, versus the db handling.

2018-04-04 Thread Richard Vézina
Hello Anthony, Is that normal that multiples sessions files get created in case of FS sessions?? Regards Richard On Wed, Apr 4, 2018 at 3:09 PM, Anthony <abasta...@gmail.com> wrote: > One potential downside of db sessions is that you can have race > conditions, as the session

Re: [web2py] Confused about web2py sessions handling in the filesystem, versus the db handling.

2018-04-04 Thread Richard Vézina
be followed by a list of arguments to be passed to script, to be used with -S, -A must be the last option # -o : args passed to sessions2trash.py which "Delete sessions, then exit." # NOTE if it's omitted, processes get spawned but not killed Good luck Richard On Wed, Apr 4, 2018 a

Re: [web2py] Confused about web2py sessions handling in the filesystem, versus the db handling.

2018-04-04 Thread Richard Vézina
the same amount of time and processing. Richard On Tue, Apr 3, 2018 at 1:01 PM, AlighaThor <alighathor88caribb...@gmail.com> wrote: > Hi. I'm experimenting for the first time (but I'm quite a bit old using > this amazing framework :)) storing sessions in the DB instead the > filesyst

Re: [web2py] on delete event callbacks and versioned tables

2018-03-29 Thread Richard Vézina
udit trail integrity... Do you have any issue related to how those callbacks operate in context of the version table web2py functionality? Richard On Thu, Mar 29, 2018 at 10:55 AM, Manuele Pesenti <manuele.pese...@gmail.com > wrote: > > Are actually _before_delete and _after_delete cal

Re: [web2py] btn-default

2018-03-28 Thread Richard Vézina
ther level of abstraction as you have to convert the sass file into css ... If you want to go down that road here a starter : https://www.sitepoint.com/bootstrap-sass-installation-and-customisation/ Richard On Wed, Mar 28, 2018 at 3:01 PM, Dave S <snidely@gmail.com> wrote: > > &g

Re: [web2py] btn-default

2018-03-28 Thread Richard Vézina
Bootstrap : https://getbootstrap.com/ On Tue, Mar 27, 2018 at 4:02 PM, Andrea Fae' wrote: > Where is the definition btn-default in any welcome clone application? I > need to change the style...thanks > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

Re: [web2py] execute python script

2018-03-28 Thread Richard Vézina
u have to encapsulate the previsous streaming code in a controller function that you are going to call export_report (you can change the name obviously) Good luck Richard On Wed, Mar 28, 2018 at 8:27 AM, ArtDijk <artd...@gmail.com> wrote: > LS, > I've written a print to pdf python sc

Re: [web2py] Re: I was thinking about python2 clock

2018-03-22 Thread Richard Vézina
Take care if you run your app under python 3... It a no way back because pickled object format change and you can't cleanly revert this change back... Try it with a copy of your app. Richard On Thu, Mar 22, 2018 at 3:13 PM, Ty oc <tyoc...@tyoc.info> wrote: > I think we2py should join

[web2py] Annoncement - web2py_lazy_options_widget.py

2018-03-20 Thread Richard
it. py3 portage help is welcome Thanks Richard -- 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: Customizing Fields the lazy way

2018-03-15 Thread Richard Vézina
://www.opensource.org/licenses/mit-license.php # Authors: Kenji Hosoda <hos...@s-cubism.jp> # Support for reference field : Richard Vézina from gluon import * class lazy_options_widget(SQLFORM.widgets.options): def __init__(self, on_key, o

Re: [web2py] Re: Customizing Fields the lazy way

2018-03-15 Thread Richard Vézina
in the way lazy_option_widget() is implemented in the first place though... Richard On Sun, Mar 26, 2017 at 6:34 AM, Joe Barnhart <joe.barnh...@gmail.com> wrote: > That's kinda clever. I may think of that! > > -- Joe > > > On Thursday, March 23, 2017 at 4:19:05 PM UTC-7, Anthon

Re: [web2py] LDAP authentication questions

2018-03-15 Thread Richard Vézina
, )] Good luck Richard On Thu, Mar 15, 2018 at 6:10 AM, Johann Spies <johann.sp...@gmail.com> wrote: > I am trying out ldap authentication after I have last used it in 2006. > > My ldap knowledge is minimal. > > After reading the documentation in the book and in

Re: [web2py] Bug in ldap library for python3?

2018-03-15 Thread Richard Vézina
Migth be interesting in this patch : https://github.com/web2py/web2py/issues/1880 On Wed, Mar 14, 2018 at 12:43 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > It debian package... If you goes with pip it should be python-ldap... > > Good luck > > Richard > >

Re: [web2py] Backwards compatibility

2018-03-14 Thread Richard Vézina
to be created over github web2py repository if we can reproduce the problem. Thanks Richard On Wed, Mar 7, 2018 at 5:40 PM, Mark Erbaugh <mark.elect...@gmail.com> wrote: > I appreciate Web2py's view towards backwards compatibility, but I think > some of the included libraries do not sh

Re: [web2py] Bug in ldap library for python3?

2018-03-14 Thread Richard Vézina
It debian package... If you goes with pip it should be python-ldap... Good luck Richard On Wed, Mar 14, 2018 at 3:57 AM, Johann Spies <johann.sp...@gmail.com> wrote: > Thanks Richard for your attention. > > I have checked my setup again and saw that I had the debian-package

Re: [web2py] Re: Using vue.js as my front end

2018-03-13 Thread Richard Vézina
Maybe here : https://github.com/robertop23/web2py_vuejs_vuetify There is a initiative to create a scafold web2py app base on vue.js... Richard On Tue, Mar 13, 2018 at 1:07 PM, Jim S <ato.st...@gmail.com> wrote: > Thanks for that! > > Any example code anywhere on how to

Re: [web2py] Bug in ldap library for python3?

2018-03-13 Thread Richard Vézina
It might not be an issue with auth_ldap.py On Tue, Mar 13, 2018 at 12:29 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > It works fine... > > On Tue, Mar 13, 2018 at 12:28 PM, Richard Vézina < > ml.richard.vez...@gmail.com> wrote: > >> I try with a

Re: [web2py] Bug in ldap library for python3?

2018-03-13 Thread Richard Vézina
It works fine... On Tue, Mar 13, 2018 at 12:28 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > I try with a module of mine using ldap and had issues with ldapS > connection... > > I had to follow this : > > https://github.com/python-ldap/python-ldap/issues/55

Re: [web2py] Bug in ldap library for python3?

2018-03-13 Thread Richard Vézina
any issue... Richard On Tue, Mar 13, 2018 at 11:58 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Please try this : > > sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev > # setuptools should be there... I was miss leading... > sudo pip3 install

Re: [web2py] Bug in ldap library for python3?

2018-03-13 Thread Richard Vézina
. Thanks Richard On Tue, Mar 13, 2018 at 11:39 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > I open this issue : > > https://github.com/python-ldap/python-ldap/issues/181 > > On Tue, Mar 13, 2018 at 11:03 AM, Richard Vézina < > ml.richard.vez...@gmail.co

Re: [web2py] Bug in ldap library for python3?

2018-03-13 Thread Richard Vézina
I open this issue : https://github.com/python-ldap/python-ldap/issues/181 On Tue, Mar 13, 2018 at 11:03 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > python3-ldap -> ldap3 (https://pypi.python.org/pypi/python3-ldap/0.9.8.4/) > is not the same thing as python-ldap.

Re: [web2py] Bug in ldap library for python3?

2018-03-13 Thread Richard Vézina
nks Richard On Tue, Mar 13, 2018 at 8:32 AM, Johann Spies <johann.sp...@gmail.com> wrote: > Version 2.16.1 > > In python (2.7) I can do: > > python web2py.py -S welcome > .. > > In [1]: from gluon.contrib.login_methods.ldap_auth import ldap_auth > > In [2]

Re: [web2py] Book need update on recaptcha v2

2018-03-13 Thread Richard Vézina
Can you update the book and send a Pull Request through github?? Thank you Richard On Thu, Mar 8, 2018 at 7:28 PM, Alexander Scarlat MD <drscar...@gmail.com> wrote: > > As of 2018 March 31 Google doesn't support reCaptcha V1 anymore. > I thought the book should be updated wit

Re: [web2py] CPU 210%

2018-03-08 Thread Richard Vézina
Couples of folks seem to work over performance tuning right now, so I thought bring that thread UP would give some cues On Tue, Feb 19, 2013 at 12:02 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Ok, find thanks for clarification. > > Richard > > > On Tue,

Re: [web2py] Unit testing apis

2018-03-07 Thread Richard Vézina
I do have customized web2py.test while integrating some of welcome_enhanced stuff like using splinter api for conducting testing + create a test launcher to save some boiler plate initialization... I just don't have time to exectract it form my own app and publish it... It rely on pytest... It

Re: [web2py] Re: new style of welcome app

2018-03-07 Thread Richard Vézina
Did you flush you browser cache?? On Wed, Mar 7, 2018 at 2:40 PM, Andrea Fae' wrote: > Thanks Anthony, but LOGIN is still in the left side... > > >

Re: [web2py] Re: Unexpected behaviour executing a query with DAL and record versioning enabled

2018-03-07 Thread Richard Vézina
get the same output number of record... If you don't it might happen that there was a bug in 2.15.4 web2py version / pyDAL... Try new version... On Wed, Mar 7, 2018 at 2:05 PM, Richard Vézina <ml.richard.vez...@gmail.com> wrote: > In [4]: query = (test2.type_marker=='object')

  1   2   3   4   5   6   7   8   9   10   >