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
UP! Is py4web has jwt token mechanism?? Evaluating py4web currently (yes getting back to good stuff loved web2py and pydal)... I would need py4web to support jwt (https://jwt.io/). I recall that been implement in web2py Not found anything in the doc about it :

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> wrote:

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
That what I thought... It easy to messup with pip pip3 or python python3 also with virtualenv it even trickier because the pipenv use the python and pip for the actual version installed... So you might end pass from pip3 in the os and pip in the pipenv and you still use py3 in both... On Wed, Feb

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 python3 + a >

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...

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)

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
I wonder how the glue will be made for this to be consider a framework?? It all sound really interesting although as far as I understand we will have to code in vues.js for most part... If SQLForm is gone I feel a lot of the web2py simplicity to start with will be lost... How this to be

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 to adapt

Re: [web2py] redis in 2.16.1

2018-06-29 Thread Richard Vézina
Is in your issue web2py the only moving part?? Nothing change on OS and Redis side?? As it mention in the final trace back above there seems to need a password to be setup in your redis connection string... Perhap you forgot that you set one or there is a default one defined in you Linux box or

Re: [web2py] managing latin characters

2018-06-18 Thread Richard Vézina
It depends... If it coming from the form you have nothing to do... If you add them in your code as hardcoded value you have to encode them properly, you don't just do 'ton text en français' as it gonna fails... You always better work in english in your code anyway as it makes not much sens to

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 a view: > >

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 version. After I

Re: [web2py] web2py with python3

2018-06-12 Thread Richard Vézina
You update python in your system not web2py... What is your environement windows|linux|mac? I guess since you use Anaconda you are under windows or mac... web2py been ported to python 3.4+, but I am not sure it could be considered production ready under python 3. I am not following progress

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

2018-06-11 Thread Richard Vézina
Hello Joe, I am not using the scheduler primarilly because I never had time to implemented it. But I miss so much all the things you mention... Let says just configure a task to lock a user account on a specific date in the future when you have employee termination in advance and you have no

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' wrote: > Hello I have a grid with certain fields. > In a filed there is a name of a pdf file that I have in

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

2018-05-04 Thread Richard Vézina
to adapt Pandas syntax for > DAL (SELECT part mostly, in my case) :) > > -- > Jurgis Pralgauskis > tel: 8-616 77613 > > 2018-05-03 04:05 popiet "Richard Vézina" <ml.richard.vez...@gmail.com> > rašė: > > I use this to merge join dal query : > &

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

2018-05-03 Thread Richard Vézina
rgis Pralgauskis > tel: 8-616 77613 > > 2018-05-02, tr 22:22, Richard Vézina <ml.richard.vez...@gmail.com> rašė: > >> I am not sure I understand what you want... >> >> It a nice thing if Pandas use RAM it means that it use the fastest >> component of

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

2018-05-02 Thread Richard Vézina
I am not sure I understand what you want... It a nice thing if Pandas use RAM it means that it use the fastest component of you computer... It should make Pandas fast... I am not sure what would involve overloading operators to use pyDAL... Pandas is used to transform data... If what you do on

Re: [web2py] DAL return all Fields

2018-05-01 Thread Richard Vézina
some 4 fields only. I have about 60 in some db. Plus there is > this: > > > On Tue, 1 May 2018, 16:44 Richard Vézina <ml.richard.vez...@gmail.com> > wrote: > >> for f, v in row: >> >> Should be >> >> for f, v in row.iteritems(): >>

Re: [web2py] DAL return all Fields

2018-05-01 Thread Richard Vézina
t this error : ValueError : too many values to unpack > > On Mon, 30 Apr 2018, 20:38 Richard Vézina <ml.richard.vez...@gmail.com> > wrote: > >> >> >> On Mon, Apr 30, 2018 at 1:21 PM, Maurice Waka <mauricew...@gmail.com> >> wrote: >> >>&g

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
ition data: A mango is a fruit blah blah blah. > abnvals data: A mango when its green is bitter to taste. > normvals data: A mango when ripe looks bright yellow and tastes sweet. > > so when doing return row > I should get ['A mango is a fruit blah blah blah. A mango when its green &g

Re: [web2py] DAL return all Fields

2018-04-27 Thread Richard Vézina
for f in db.table.fields: print f or rows = db(db.fruits.id > 0).select(db.fruits.ALL) # ALL means all fields for r in rows: print(r) You can control which field you want with the previous example myfields = [f for f in db.table.fields if SOME_FILTERING_CHECK_OVER_THE_FIELD_YOU_WANT]

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

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
ot; block, something like: > > if welcome.w2p is correctly created: > > try: > > os.unlink('NEWINSTALL') > > except FileNotFoundError: > > nothing to do > > except: > > error removing 'NEWINSTALL' file > > > Greetings. &

Re: [web2py] Multiple domains nginx/uwsgi?

2018-04-23 Thread Richard Vézina
The most complicated part is to properly craft the OpenSSL command to properly get you SSL certificate to be signed, but if you use Lets Encrypt, I guess it easier then... I answer an other thread recently with the command that I had use for multiple subdomain certificate, that I had work an lot

Re: [web2py] Multiple domains nginx/uwsgi?

2018-04-23 Thread Richard Vézina
It depends, are you going to have SSL certificates??, 1 or multiples?? If you reuse the same I suggest you configure your different site with individual subdomain name and create a single certificate for all the subdomain. If you have single certificate, so multiple certificate for same IP, you

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. some_other_table_field*db.table. another_table_field) Doh! Richard On Mon, Apr 23, 2018 at 2:58 PM, Richard wrote: > Hello, >

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
STALL') > FileNotFoundError: [Errno 2] No such file or directory: 'NEWINSTALL' > -------- > > El 23/04/18 a las 11:48, Richard Vézina escribió: > > In gluon/fileutil.py > > Richard > > On Mon, Apr 23, 2018 at 11:47 AM, Rich

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
On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> wrote: > I have the same issue, using the current master branch in Ubuntu. > > Greetings. > > El 21/04/18 a las 08:21, Richard Vézina escribió: > > Actually I c

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-21 Thread Richard Vézina
, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > 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

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
I hear you and I agree about that... I am just supprise that we have no control over rouding of what goes in the database as it is very critical in some use case with weird rounding spec that you could have in academic sometime for instance. At some point I had extend field "length" to 10 places

Re: [web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard Vézina
It maybe just me, but I kind of think that if my models says decimal(10, 2) it means that I don't want to store more than 2 places... Since my models should behave like the database table and column as they are just an abstraction of the later... I know web2py offer alot of granularity control

Re: [web2py] IS_DECIMAL_IN_RANGE

2018-04-20 Thread Richard Vézina
There seems to have some thing related to gae : https://github.com/web2py/pydal/blob/a7b7e4c11604d0b8b2de46e832469b78bfd7a1cf/pydal/helpers/gae.py#L16 I guess custom validator with quantize decimal parameters would do it. I recall having use that for report porpuses, but was on the impression

Re: [web2py] web2py, nginx and big files

2018-04-20 Thread Richard Vézina
.cu> wrote: > > El 19/04/18 a las 16:21, Richard Vézina escribió: > > Ah ok, make sens then. Are you storing the file in database or on file > system at web2py level?? > > > > In the file system, I think that storing big (or so many) files in the > database can over

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
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 insert 1.304, and submit the form it ends up with 1.304 in the read form (backend has 3 places). How do we validated the number of places??

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
files can be several > Gigabytes. > > > Greetings. > > El 17/04/18 a las 13:10, Richard Vézina escribió: > > How big? > > https://www.bookstackapp.com/docs/admin/upload-limits/ > > https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size >

Re: [web2py] web2py, nginx and big files

2018-04-17 Thread Richard Vézina
How big? https://www.bookstackapp.com/docs/admin/upload-limits/ https://www.nginx.com/resources/wiki/modules/upload/#upload-max-file-size Quote from the above link: For “hard” limit client_max_body_size directive must be used. The value of zero for this directive specifies that no restrictions

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 wrote: > Hi there, sorry to bother again,

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

2018-04-16 Thread Richard Vézina
Thanks Joe, I will have a better read... I had fix my issue, my customization of the plugin introduce a couple of problem... I ends up refactoring the and only load data when all the controlled field has to be updated "once". It fix 80% of the loading time issue the rest of the issue is user

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 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/Django tutorials I

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

2018-04-11 Thread Richard Vézina
I gave a look directly in the redis shell redis-cli -h localhost -p 6379 -a PASSWORD_IF_YOU_SET_ONE It appears that each session store will have a different key which goes like that : w2p:sess:APP_NAME:SOME_ID And w2p:sess:APP_NAME:id_idx will contains a set of each unique session existings, so

Re: [web2py] License expiry date management

2018-04-11 Thread Richard Vézina
Something like that : next_week_sunday_date = \ (request.now.date() + datetime.timedelta(days=7)) + datetime.timedelta(days=6 - request.now.weekday()) rows_with_records_of_software_license_that_will_end_the_next_sunday = db(db.table_name.field_date_name == next_week_sunday_date

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 wrote: > Mi propósito es editar los datos de usuario desde un formulario diferente > a SQLFORM. Ya lo

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

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 wrote: > This behavior is controlled by the following auth.settings: > > renew_session_onlogin (default=True) > keep_session_onlogin (default=True) >

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 wrote: > One potential downside of db sessions is that you can have race > conditions, as the session record does not

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

2018-04-04 Thread Richard Vézina
DB sessions are so much more convenient... you only need one connection, not need to access remote server or sudo password etc... Walk the extra mile and set a cron job for session2trash clean up and you now have one less thing to check for... Depending on your workload, you don't have to do

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

2018-04-04 Thread Richard Vézina
About session clean up, I recently set it in place (finally) and I can assure you that db sessions get cleared as expected. About the FS sessions, I can say for sure but maybe it faster to just create another file than search the exsting file, then append or rewrite part of it... Finally it

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

2018-03-29 Thread Richard Vézina
They are intent to be used to specify something before or after the delete... I mean even if there is no "pure" deletion occuring your record doesn't exist anymore for the end user once you "deleted" it even if versioning mechanism keep trace of it for the purpose of the audit trail integrity...

Re: [web2py] btn-default

2018-03-28 Thread Richard Vézina
Or : touch /static/css/myapp.css Then add : .btn-default {YOUR WANTED STYLE} Then modify the /views/layout.html and add a new : response.files.append(URL('static', 'css/myapp.css')) You don't really want to customize the bootstrap css class or you should learn "sass" and add another level of

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
It depends... This is a start if you want to create CSV type of file : ```python # The code below is greatly inspired by gluon/sqlhtml.py class ExporterTSV and ExporterCSV import cStringIO out = cStringIO.StringIO() final = cStringIO.StringIO() import csv if csv_or_xls ==

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 wrote: > I think we2py should join the

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
I wonder if we could we also make field lazy that way in context of custom form... I find some issue with some of my custom form where I use Field() to define my field that will be use... This form is also dynamic, I manipulate field visibility and lazy_option_widget() to make some field depend

Re: [web2py] LDAP authentication questions

2018-03-15 Thread Richard Vézina
For 1 you already have this opportunity as you example is mostly the same as : auth.settings.login_methods = \ [auth, ldap_auth(...)] So web2py will try authenticate user against web2py data, if it fails it will try the AD. 2) There's the tricky part... The simplest would be to inform

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
Which version of web2py are you using? Are you talking of a new app you just created with web2py admin interface (which is base on welcome app)?? If so, it mays exist some issue with the welcome app that need to be resolved. Please add details here, eventually it may lead to a issue to be

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

2018-03-14 Thread Richard Vézina
> python3-ldap3 and not python3-ldap. > > I have installed python3-ldap and now it works - at least so far for > importing: > > from gluon.contrib.login_methods.ldap_auth import ldap_auth > > Regards > Johann > > On 13 March 2018 at 19:05, Richard Vézina <

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 wrote: > Thanks for that! > > Any example code anywhere on how to implement login and then

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
python3-ldap -> ldap3 (https://pypi.python.org/pypi/python3-ldap/0.9.8.4/) is not the same thing as python-ldap... It seems that python-ldap support python 3 : https://github.com/python-ldap/python-ldap Saddly enough, I hadn't successfully install python-ldap under python3 with pip3... It fails

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 wrote: > > As of 2018 March 31 Google doesn't support reCaptcha V1 anymore. > I thought the book should be updated with the following

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

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

2018-03-07 Thread Richard Vézina
In [4]: query = (test2.type_marker=='object') | (test2.type_marker==None) & (test1.type_marker=='person') ...: In [5]: db().select(db.test.ALL) Out[5]: I did there... Same result... That my point... On Wed, Mar 7, 2018 at 1:47 PM, 'Awe' via web2py-users < web2py@googlegroups.com> wrote:

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

2018-03-07 Thread Richard Vézina
I don't get it, I don't understand what is the issue... I just demonstrate that with and without record versioning DAL returns the same set of result which what it should be doing no?? So my understanding of the issue is that you don't get the same query output when record versioning is on and

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

2018-03-07 Thread Richard Vézina
Here some tests : *WITH record versioning* In [1]: db(db.test.id < 0).select() Out[1]: In [2]: db(db.test.id > 0).select() Out[2]: In [3]: test1 = db.test.with_alias('test1') In [4]: test2 = db.test.with_alias('test2') In [5]: query = (test2.type_marker=='object') |

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

2018-03-06 Thread Richard Vézina
Can you make a model definition with a fixture for loading the table, I will make some test with trunk and various version to determine if it a regression... Nevermind I just thought you provide that in the first email... Let me have a look at that... Richard On Mon, Mar 5, 2018 at 2:02 PM,

Re: [web2py] Re: please help us test trunk web2py

2018-03-05 Thread Richard Vézina
@pbreit, I think that if you clone recursive at start pull will be enough to update you envrionement... You can assess which version of the pyDAL you have once you pull, just go in gluon/packages/dal/CHANGES and check which version is mention in the last change log there... You can compare what

Re: [web2py] Re: book help

2018-03-05 Thread Richard Vézina
Massimo has to push the merge stuff online once it get merge... If not update is apply to the web site of the book even if change are merge they still are not available... Richard On Sat, Mar 3, 2018 at 11:50 AM, villas wrote: > Where is the ASSIGNJS description in the

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

2018-03-05 Thread Richard Vézina
Did you set the actual record that have been deleted to is_active = False?? Or all the records that haven't be deleted yet to TRUE?? You have to go in your backend and do an update there UPDATE stored_item SET is_active = TRUE WHERE is_active IS NULL If you didn't delete any record

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

2018-03-02 Thread Richard Vézina
Hmmm... I think that if you have record versioning activated there shouldn't be any is_active row(s) with NULL value... I mean is_active flag is used to determine if the record in the "parent" table has been deleted or not, since you can truely deleted in case you use record versioning feature as

Re: [web2py] PostgreSQL 10.2

2018-03-01 Thread Richard Vézina
Base on this : https://github.com/web2py/pydal/blob/466a39f13e443bbcc54db2d1ba6ed10196abf440/pydal/drivers.py#L45 web2py shouldn't enforce a specific version of psycopg2... Are you using python 2 or python 3 and is your last psycopg2 version you mention is install for the python version that you

Re: [web2py] Re: please help us test trunk web2py

2018-02-28 Thread Richard Vézina
Here the issue and a PR : https://github.com/web2py/pydal/pull/523 Please including it in the next release if it don't break anything... It will help with backward (empty query) compatibility... Thanks Richard On Tue, Feb 27, 2018 at 5:37 PM, Richard Vézina <ml.richard.vez...@gmail.com >

  1   2   3   4   5   6   7   8   9   10   >