Re: [web2py] posgresql connexion

2016-05-18 Thread Richard Vézina
Did you have a look in pg_hba.conf and /etc You have to allow the connection from local with password Richard On Sun, May 15, 2016 at 3:42 PM, Ghada Chabbouh wrote: > Hi every one > acctually i'm binginner in web2py , and i'm trying to develope a web app > i wrote

Re: [web2py] ubuntu:nginx:uwsgi Cannot edit using web2py's browser interface

2016-05-17 Thread Richard Vézina
Did you check if all files have proper owner? Sometimes files get created by web2py and I had issue with that because they get created with wrong owner for some reason I ignore... Richard On Mon, May 16, 2016 at 7:38 PM, Ben Lawrence wrote: > Hi, > I have basically

Re: [web2py] Re: Mercurial and Windows 10

2016-05-17 Thread Richard Vézina
There is this issue open for some times could it be related : https://github.com/web2py/web2py/issues/1245 Richard On Tue, May 17, 2016 at 1:30 AM, Martin Weissenboeck wrote: > I have installed: > > Mercurial on the Windows server: >

Re: [web2py] Version spanish the book with error

2016-04-29 Thread Richard Vézina
You can't access the admin app when in production for security reason... I think Massimo should have a look at the issue... Richard On Thu, Apr 28, 2016 at 3:42 PM, wrote: > Access to books in Spanish version, except the prologue, gives the > following error > > Access: >

Re: [web2py] Re: Using python as an user rules engine in a web2py application

2016-04-28 Thread Richard Vézina
Good points... I forgot about the aspect of changing site way to make calculation... At the same time, I understand the need as more specific for some user the rest of the crowd stock with the basic calculation if they don't know how to hack their own calculation function... In this context

Re: [web2py] Re: Using python as an user rules engine in a web2py application

2016-04-28 Thread Richard Vézina
Why not just found a way to attach Ipython notebook (which seem to had been renamed Jupyter) to your app?? https://jupyter.org/ By providing dataset over which users can interact with... I am not sure exactly how to do that, but one idea could be to db select data that user can play with inside

Re: [web2py] Re: caching questions

2016-04-28 Thread Richard Vézina
On Wed, Apr 27, 2016 at 4:44 PM, Niphlod wrote: > on these "philosophical" notes, boring for someone, exciting for yours > truly, the are a few other pointers (just to point out that the concept of > "caching" isn't really something to discard beforehand)...be aware that on >

Re: [web2py] Re: Component within component

2016-04-27 Thread Richard Vézina
The web2py autocomplete already involve componization + component in the main controller container... The issue was the autocomplete which hang... So I guess that it should use web2py_component() instead of LOAD() but this involve a lot of rewrite of web2py autocomplete... I solve it by removing

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-27 Thread Richard Vézina
Thanks Leonel... I learn something today :) http://stackoverflow.com/questions/2742852/unicode-characters-in-urls On Wed, Apr 27, 2016 at 9:11 AM, Mamisoa Andriantafika wrote: > Thank you I will do post an issue. > > Le mercredi 27 avril 2016 00:16:39 UTC+2, Leonel Câmara a

Re: [web2py] Re: web2py 2.14.1 is OUT

2016-04-27 Thread Richard Vézina
Can you open a issue here : https://github.com/mdipierro/web2py-book/issues/new On Wed, Apr 27, 2016 at 1:57 AM, Mirek Zvolský wrote: > AppConfig really need better description in the book. > > > > > > Dne pátek 25. března 2016 3:07:18 UTC+1 Massimo Di Pierro napsal(a): > >>

Re: [web2py] Re: caching questions

2016-04-26 Thread Richard Vézina
If you cache db().select() results cache.ram should be allrigths as every user/session can be operate in isolation without issue... This wouldn't be the case for things that need to be up to date for all the users at the same time, global variables for instance even if they are the result of bad

Re: [web2py] Re: web2py slices down

2016-04-26 Thread Richard Vézina
Why not merge with : http://www.web2pyref.com/reference/field-type-database-field-types ?? Richard On Tue, Apr 26, 2016 at 1:17 PM, rochacbruno wrote: > > There were some changes in pythonanywhere mysql hosts name and access > policies. > > It is back now! > > We really

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Richard Vézina
Also URL(url_encode=True) is default... On Tue, Apr 26, 2016 at 1:17 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > @Leonel, he receives unicode characters which are parsed and result with > no record in case those special characters are include in th

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Richard Vézina
@Leonel, he receives unicode characters which are parsed and result with no record in case those special characters are include in the REST query... There is not really any way to url_encode has he not generate unicode URL... Richard On Tue, Apr 26, 2016 at 11:05 AM, Leonel Câmara

Re: [web2py] Re: Component within component

2016-04-26 Thread Richard Vézina
https://groups.google.com/d/msg/web2py/I6xhaSaQCdE/sjSeYBHjMcUJ Massimo's suggest also to use RactiveJS... Richard On Tue, Apr 26, 2016 at 1:11 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Think I try that in the pass and it wasn't working... Let me find the > thread

Re: [web2py] Re: Component within component

2016-04-26 Thread Richard Vézina
Think I try that in the pass and it wasn't working... Let me find the thread in question see if it was the case... On Tue, Apr 26, 2016 at 11:04 AM, Anthony wrote: > On Tuesday, April 26, 2016 at 9:30:21 AM UTC-4, Richard wrote: >> >> Component inside component can work

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-26 Thread Richard Vézina
@Massimo... Look here!! Richard On Mon, Apr 25, 2016 at 12:00 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > I think it comes from here : > > > https://github.com/web2py/pydal/blob/85c530cc791e2aadbbbf6302b2f58d354d9800b5/pydal/helpers/rest.py#L70 > > A

Re: [web2py] Re: Component within component

2016-04-26 Thread Richard Vézina
Component inside component can work theoritically but you will have to craft your own ajax... the web2py LOAD() ou web2py_component() not going to work... Richard On Mon, Apr 25, 2016 at 6:41 PM, wrote: > Note: This may also have something to do with fancybox, which is

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-25 Thread Richard Vézina
I think it comes from here : https://github.com/web2py/pydal/blob/85c530cc791e2aadbbbf6302b2f58d354d9800b5/pydal/helpers/rest.py#L70 As RestParse is used here : https://github.com/web2py/pydal/blob/85c530cc791e2aadbbbf6302b2f58d354d9800b5/pydal/base.py#L538 By parse_as_rest() RestParse don't

Re: [web2py] Re: [REST] encoding character in query patterns

2016-04-24 Thread Richard Vézina
I don't understrand... Are you trying to generate this URL or you receive the request? Does it fails for a request you receive? On Sat, Apr 23, 2016 at 8:38 PM, Mamisoa Andriantafika wrote: > Just to be clearer, here is a response from the following get: > > >

Re: [web2py] [REST] encoding character in query patterns

2016-04-23 Thread Richard Vézina
It unicode : http://stackoverflow.com/questions/15092437/python-encoding-utf-8 What I don't understand is why to get those without the u'' >>> print u"ma\u00eft" maït >>> print u"ma\u00eft".encode('utf8') maït >>> u"ma\u00eft".encode('utf8') 'ma\xc3\xaft' Inside web2py it should be :

Re: [web2py] Re: E2E Automated Tests

2016-04-22 Thread Richard Vézina
I mean they are not outdated in the sens that the core works, but since the solution surround app, the app code on which they are based is effectively outdated, but can really easily upgrade... On Fri, Apr 22, 2016 at 1:38 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > I had

Re: [web2py] Re: E2E Automated Tests

2016-04-22 Thread Richard Vézina
I had proposed to integrate one or the other in welcome, but never had feedback... On Fri, Apr 22, 2016 at 1:36 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Sorry the link should be this : > https://github.com/niphlod/welcome_augmented > > Don't know wh

Re: [web2py] Re: E2E Automated Tests

2016-04-22 Thread Richard Vézina
Sorry the link should be this : https://github.com/niphlod/welcome_augmented Don't know why it get messed up... Both project are not outdated... On Fri, Apr 22, 2016 at 10:52 AM, Matheus Cardoso wrote: > I've seen the first link, but the project is really outdated. So

Re: [web2py] Re: relation "auth_user" already exists

2016-04-21 Thread Richard Vézina
What happen when you put back fake_migrate_all to false? Did they really get created in the database? In which context are you needing to do this? If you try to recreate your DB in a new environnement you can simply delete databases/ folder content and set migrate to true... Richard On Thu,

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Richard Vézina
;> >> I am not sure, but .factory() should accept readonly=True for read form... >> >> Are you sure you have not any fields with the same name in both tables? >> >> On Thu, Apr 21, 2016 at 2:00 PM, Richard Vézina <ml.richa...@gmail.com> >> wrote: &

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Richard Vézina
, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > I am not sure what the purpose of this : > >for f in db.investor.fields: > form.vars[f] = investor[f] > for f in db.auth_user.fields: > form.vars[f] = user[f] > > > And why not using &

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Richard Vézina
I am not sure what the purpose of this : for f in db.investor.fields: form.vars[f] = investor[f] for f in db.auth_user.fields: form.vars[f] = user[f] And why not using if form.process().accepted: Richard On Thu, Apr 21, 2016 at 2:05 PM, Richard Vézina

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Richard Vézina
Michael, About displaying value use default = when you create input field it should be all what you need... About the other problem I don't get it... You should be able to update a record email/username as long as the new value is unique... Richard On Wed, Apr 20, 2016 at 11:43 PM, Michael

Re: [web2py] How to append (not erase and write) something to my div with id target called by ajax?

2016-04-21 Thread Richard Vézina
Maybe : http://stackoverflow.com/questions/16192647/how-to-append-only-a-div-from-ajax-done On Thu, Apr 21, 2016 at 4:31 AM, Emmanuel Dsouza wrote: > ajax('{{=URL('default', 'ignite')}}', 'q', 'target'); > > > So taeget is the id of div which shoes something as per

Re: [web2py] How do I add extra buttons to a SQLFORM which will one to a different view?

2016-04-21 Thread Richard Vézina
buttons = [TAG.button((I('', _class='icon-ban-circle icon-large icon-white'), CAT(' '), STRONG(T('Cancel'))), _type='button', _onClick="javascript:void(history.go(-1))", _class='btn btn-small btn-inverse'),

Re: [web2py] Re: How do I send same mail to a list of email ids?

2016-04-21 Thread Richard Vézina
Not ids, but emails... But do you want them to recieve the "same" email by including them into the recipient field ? or you want to send them a copy of the email individually ? In the later case you will have to make multiple mail.send() to single item of your list of emails... Richard On Thu,

Re: [web2py] E2E Automated Tests

2016-04-21 Thread Richard Vézina
Had you give a look at web2py.test ( https://github.com/viniciusban/web2py.test) and welcome_augmented ( https://github.com/niphlod/welcome_augmented)... I did a hybrid of both... Richard On Thu, Apr 21, 2016 at 3:08 AM, Matheus Cardoso wrote: > What do you guys use as

Re: [web2py] Someone tell me what's wrong here?

2016-04-21 Thread Richard Vézina
And what the problem? I guess you want db.auth_user.email.readable = False db.auth_user.email.writable = False On Thu, Apr 21, 2016 at 8:23 AM, Steve Joe wrote: > auth = Auth(db) > auth.user_email.readable=False > auth.user_email.writable=False > > -- > Resources: > -

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-21 Thread Richard Vézina
What if you use this inside _filter_fields() instead of form.vars **{k: v for k, v in form.vars.iteritems() if k not in ('username', 'email')} ? On Wed, Apr 20, 2016 at 11:43 PM, Michael Beller wrote: > Thanks Richard, I should have provided more details. > > When I tried

Re: [web2py] relation "auth_user" already exists

2016-04-20 Thread Richard Vézina
which web2py version? On Wed, Apr 20, 2016 at 4:34 PM, Gael Princivalle wrote: > Hello. > > I'm still having some pain with DAL connection strings and migrations. > > In one application my DAL connection string is like that: >

Re: [web2py] what's the best approach for view and update forms for multiple tables?

2016-04-20 Thread Richard Vézina
Hello Michael, I am not sure to understand what you are trying to acheive exactly and what is causing issue... On Wed, Apr 20, 2016 at 2:18 PM, Michael Beller wrote: > > The approach in the book for one form for multiple tables works well for > create forms: > >

Re: [web2py] Re: ldap_auth, TLS implementation

2016-04-20 Thread Richard Vézina
on of LDAP... Simone, do you know if we can at least test Open >> LDAP easily? >> >> >> >> On Wed, Apr 20, 2016 at 10:29 AM, Richard Vézina <ml.richa...@gmail.com> >> wrote: >> >>> :) >>> >>> On Wed, Apr 20, 2016 at 8:31 AM,

Re: [web2py] Re: ldap_auth, TLS implementation

2016-04-20 Thread Richard Vézina
We should test ldap_auth... But how to with all the different implementation of LDAP... Simone, do you know if we can at least test Open LDAP easily? On Wed, Apr 20, 2016 at 10:29 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > :) > > On Wed, Apr 20, 2016 at 8:31 AM

Re: [web2py] Re: ldap_auth, TLS implementation

2016-04-20 Thread Richard Vézina
:) On Wed, Apr 20, 2016 at 8:31 AM, Niphlod wrote: > no problem. it's better a false bug report than noone checking the code at > all ^_^ > > > On Wednesday, April 20, 2016 at 1:08:18 PM UTC+2, flando wrote: >> >> >> right! my fault, didn't set "secure=True"... >> >> Thank

Re: [web2py] How do I avoid this error?

2016-04-19 Thread Richard Vézina
Did you check if there is record with empty username? If you try to add not null over a column/table that is not empty it may happen that some record(s) don't respect the new rule so your constraint can't be apply... You need to first update your records make sure none are empty than try again the

Re: [web2py] Re: How to find the entry in a table with the highest ID

2016-04-16 Thread Richard Vézina
Hello Jack, You mean you want to pass the id of the inserted record to another controller ? # Controller form 1 if form.process(dbio=False).accept: id = db.table.insert(**forms.vars) session.last_record_id = id In the next controller you can access the id you store in session #

Re: [web2py] Re: How to check whether an auth.user is online?

2016-04-16 Thread Richard Vézina
Steve, There is no way you can be sure a use is logged in web2py from plain web2py auth as it may seems to be logged in but had quit without loggin out (closing the navigator not ending session)... So, as Ron says you need to use websocket for that. See websocket messaging contrib for that...

Re: [web2py] Re: btn css

2016-04-16 Thread Richard Vézina
Alex, Were you using BS 2? Now welcome use BS 3... So, I guess you have to learn what has change between these 2 majors versions... Richard On Fri, Apr 15, 2016 at 6:28 PM, Alex Glaros wrote: > if anyone has any nice CSS replacements for the current btn class, please >

Re: [web2py] Re: Empty strings stored as null in database

2016-04-14 Thread Richard Vézina
Let test then!! On Thu, Apr 14, 2016 at 9:15 AM, Niphlod wrote: > I hear you and I'm happy (or not, not sure) to not being alone ranting > about web2py's code quality and lack of tests. this was a serious bug that > should have had the effect of retiring web2py's release

Re: [web2py] Re: web2py 2.14.4 is OUT

2016-04-13 Thread Richard Vézina
I didn't have time to investigate though it won't start with : python web2py.py -S welcome -M But once it has been started with the launcher : python web2py.py It start with the previous command... To reproduce, unzip 2.14.4 and try the first command. Richard On Wed, Apr 13, 2016 at 5:31

Re: [web2py] Re: Odd error

2016-04-13 Thread Richard Vézina
Did you upgrade? If so, you most probably did it with root privileges... So the permission should probably come from there, been change at the upgrade time... On Wed, Apr 13, 2016 at 9:06 AM, Leonel Câmara wrote: > Was appadmin being accessed? It uses admin for

Re: [web2py] Tracking user original referral URL

2016-04-10 Thread Richard Vézina
Hello Joe, You can extract URL like this if you know where the use is coming from, I use the below code in "" link to pass the URL in _next variable so the view on which the user is redirected which content a form will redirect the user on the _next var content... URL(r=request,

Re: [web2py] Nginx setup not as recommended

2016-04-09 Thread Richard Vézina
Can you review the script to look at what we do there : https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh On Fri, Apr 8, 2016 at 8:22 AM, 'Yan Wong' via web2py-users < web2py@googlegroups.com> wrote: > The web2py Nginx setup page ( >

Re: [web2py] If statement in View not processing correctly

2016-04-08 Thread Richard Vézina
{{if customer.address2:}} Apt/Suite: {{=customer.address2}} {{else:}} Apt/Suite: {{pass}} On Fri, Apr 8, 2016 at 3:44 PM, Jeff Riley wrote: > Hello all. I have the following if statement in my views to try to > eliminate empty fields that are displaying "None" in

Re: [web2py] Re: testing Recaptcha failed on bizzard error

2016-04-06 Thread Richard Vézina
I take note... As I said it a draft... I consider having something even not perfect is better than non and we have to start somewhere... I learn a lot about web2py internal these days and I have a very limited time... I bang my head on all sort of issue trying to create these tests so don't have

Re: [web2py] Re: testing Recaptcha failed on bizzard error

2016-04-06 Thread Richard Vézina
I try to create self.request and if I remember it start throwing error about threading... I know they are really basic test and the only objective was to get some coverage, start testing and see the difficulty it represents... Richard On Wed, Apr 6, 2016 at 2:49 PM, Niphlod

Re: [web2py] Re: testing Recaptcha failed on bizzard error

2016-04-06 Thread Richard Vézina
it failed for the same reason On Wed, Apr 6, 2016 at 2:29 PM, Niphlod wrote: > recaptcha should be discarded and recaptcha2 should be promoted as the > default. > > > On Wednesday, April 6, 2016 at 6:17:38 PM UTC+2, Richard wrote: >> >> Hello, >> >>

Re: [web2py] auth_user extra fields + row.to_dict()

2016-04-06 Thread Richard Vézina
Yeah you right... On Wed, Apr 6, 2016 at 12:06 PM, Anthony wrote: > On Wednesday, April 6, 2016 at 11:30:34 AM UTC-4, Richard wrote: >> >> You maybe right Anthony abour update_record() it really depend though of >> what he is trying todo... >> > > Well at the point where

Re: [web2py] auth_user extra fields + row.to_dict()

2016-04-06 Thread Richard Vézina
You maybe right Anthony abour update_record() it really depend though of what he is trying todo... :) Richard On Wed, Apr 6, 2016 at 11:21 AM, Anthony wrote: > On Wednesday, April 6, 2016 at 11:20:44 AM UTC-4, Anthony wrote: >> >> On the other hand I am curious that you

Re: [web2py] Re: Downloading from "private" folder

2016-04-06 Thread Richard Vézina
Are they specific to one applications or they apply to multiple application? Are they required in production? I guess not since they seems to be usefull for developping the app... If they are usefull for many app and only serve for development I would say that their place should be in

Re: [web2py] Re: Downloading from "private" folder

2016-04-06 Thread Richard Vézina
6, 2016 at 10:20 AM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Are they specific to one applications or they apply to multiple > application? > > Are they required in production? I guess not since they seems to be > usefull for developping the app... > > I

Re: [web2py] auth_user extra fields + row.to_dict()

2016-04-06 Thread Richard Vézina
Hello Mark, Not sure about the bool part, I think web2py treat bool like that to comply with all the different backend and the apdater does the rest... On the other hand I am curious that you update row with simple update(), you suppose to use update_record() Ref:

Re: [web2py] Re: update crud form

2016-03-31 Thread Richard Vézina
You don't need default for a update form... and as I said you query was wrong... I have big doubt that your auth_user content is not what you think it is... You should look at what your DB contains... Your form may not pass because the value you try to update already not unique too... which would

Re: [web2py] How to upload files programmatically from file system?

2016-03-31 Thread Richard Vézina
Should be URL('static','images/files/{*0*}'.format(file[1])) Richard On Thu, Mar 31, 2016 at 6:34 AM, Marko Seppälä wrote: > Hi, > > I want to upload some of the images programmatically from file system, > when initializing the database. Not the actual file though, just

Re: [web2py] Re: update crud form

2016-03-31 Thread Richard Vézina
Why that for ??? for row in db(db.auth_user.first_name == db.auth_user.first_name).select(): administrator = row.is_manager first_name = row.first_name last_name = row.last_name nickname= row.nickname email = row.email

Re: [web2py] Re: Google App Engine Launcher 1.9.34 breaks web2py?

2016-03-31 Thread Richard Vézina
https://github.com/blog/2131-git-2-8-has-been-released I may be wrong, I think the improvement is in fetch... I thought it was managing clone recursive... Richard On Thu, Mar 31, 2016 at 4:04 AM, Tommi Lahtonen wrote: > > > On Tuesday, March 29, 2016 at 7:48:07 PM UTC+3,

Re: [web2py] update crud form

2016-03-30 Thread Richard Vézina
You should show us some code... The issue you have seems to be cause by a validator that make sure you don't duplicate value entry... Don't have twice the same value for a given field... On Wed, Mar 30, 2016 at 3:52 PM, 'Laer Cius' via web2py-users < web2py@googlegroups.com> wrote: > Hi, > > I

Re: [web2py] Re: Google App Engine Launcher 1.9.34 breaks web2py?

2016-03-29 Thread Richard Vézina
Git 2.8 will solve that... On Tue, Mar 29, 2016 at 1:53 AM, Tommi Lahtonen wrote: > > > On Thursday, March 24, 2016 at 1:41:42 AM UTC+2, Massimo Di Pierro wrote: >> >> Which version of web2py? Did you use git clone? Did you do what it is >> asking? >> >> git submodule update

Re: [web2py] Re: web2py 2.14.2

2016-03-29 Thread Richard Vézina
@Sukrut Maybe here : http://stackoverflow.com/questions/18351553/regular-expression-validation-for-indian-phone-number-and-mobile-number On Tue, Mar 29, 2016 at 4:07 AM, Sukrut Joshi wrote: > please help for regex of mobile numbers of india i dont want use country > code

Re: [web2py] Re: web2py 2.14.2

2016-03-29 Thread Richard Vézina
Or second answer here : http://stackoverflow.com/questions/3813195/regular-expression-for-indian-mobile-numbers On Tue, Mar 29, 2016 at 11:24 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > @Sukrut > Maybe here : > http://stackoverflow.com/questions/18351553/reg

Re: [web2py] Re: Trying to reach a routes behavior

2016-03-29 Thread Richard Vézina
I agree with Anthony... Do you have any constraint that prevent you from doing that... I would definetly stay away from router as much as I can... Richard On Tue, Mar 29, 2016 at 9:37 AM, Anthony wrote: > Right now the url to reach the index function of the country

Re: [web2py] Re: Trying to reach a routes behavior

2016-03-28 Thread Richard Vézina
I don't understand Carlos, do you have a "cuba" controller/function in country/state/city controller files? Are you going to create a function for any given possible contry (+192)? There will be a lot of duplicated code... Why don't you have a location.py controller file with a contry/state/city

Re: [web2py] Re: web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Hello Dave, You may have a look in gluon/contrib... Simone had change scheduler since 2.13.1 and there is info about how to instantiate scheduler now in the changelog... On Thu, Mar 24, 2016 at 3:41 PM, Dave S wrote: > > > On Thursday, March 24, 2016 at 10:36:54 AM

Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Fine for me... On Thu, Mar 24, 2016 at 2:45 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I checked and the stable versions at web2py.com/ and they are 2.14.1. > @Ron. Try again. > > > On Thursday, 24 March 2016 13:41:38 UTC-5, Massimo Di Pierro wrote: >> >> Ron is right. Should

Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Here : http://www.web2py.com/examples/static/nightly/web2py_src.zip On Thu, Mar 24, 2016 at 2:17 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > @Ron, you need to take the trunk : > https://github.com/web2py/web2py/blob/master/VERSION > > On Thu, Mar 24, 20

Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
@Ron, you need to take the trunk : https://github.com/web2py/web2py/blob/master/VERSION On Thu, Mar 24, 2016 at 2:13 PM, Ron Chatterjee wrote: > I downloaded the new source code from web2py/download and it still says: > > 2.13.4-stable+timestamp.2015.12.26.04.59.39 > >

Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Here : https://github.com/web2py/web2py/releases 2.11.2 is still flagged as Latest 2.14.1 doesn't appear either... On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > http://web2py.com/ > > First of all many many thanks to Simone (niphlod), Richard, and

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-22 Thread Richard Vézina
Michael, The preview is really "fucking" nice!! It that what your starter app is capable really? Richard On Tue, Mar 22, 2016 at 10:17 PM, Michael Beller wrote: > I created a new 'starter' app for the types of data and process management > apps I tend to build. > > I used

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread Richard Vézina
pyDAL should be R-2.13.3 : https://github.com/web2py/web2py/tree/R-2.13.4/gluon/packages On Tue, Mar 22, 2016 at 9:05 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > How do you manage your web2py update? Could it happen that you get it from > github and upgrade p

Re: [web2py] MASSIVE PyDAL Issue!!! Unicode not working in a "string" type DB entry... ಠ_ಠ

2016-03-22 Thread Richard Vézina
How do you manage your web2py update? Could it happen that you get it from github and upgrade pydal package with a version different from the one used by web2py 2.13.4? Can you check you version of pyDAL? On Tue, Mar 22, 2016 at 8:12 PM, wrote: > You think this is a game?

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
Nop! On Tue, Mar 22, 2016 at 8:53 PM, wrote: > Are you using GAE? > > On Tuesday, March 22, 2016 at 5:42:33 PM UTC-7, Richard wrote: >> >> I use to store fr uft8 and didn't have any issue with 2.13.4 >> >> Richard >> >> On Tue, Mar 22, 2016 at 8:33 PM,

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
I use to store fr uft8 and didn't have any issue with 2.13.4 Richard On Tue, Mar 22, 2016 at 8:33 PM, wrote: > It could possibly be something specific to GAE. As I said, I don't have > time for a lot of tests right now. Try uploading this in a database > somewhere: テスト

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
All my functional tests had passed just fine... Richard On Tue, Mar 22, 2016 at 8:15 PM, wrote: > Guess I could have posted here first, but it's not an error in the new > version, it's in multiple versions: > > Unicode is not working in "string" DB entries. WTF mate? >

Re: [web2py] Is web2py the right tool for this kind of project?

2016-03-22 Thread Richard Vézina
You want to create a kind of landscape computer management? Richard On Tue, Mar 22, 2016 at 1:47 PM, Dragan Matic wrote: > I want to create a service where users could remotely manage some services > on their computers which are behind the firewall. > > Users could

Re: [web2py] web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
I will launch my app automated tests, but so far it looks very good! Seems fast... On Tue, Mar 22, 2016 at 11:31 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Here : > https://github.com/web2py/web2py/blob/41fd02fa2c03bacafd67faad56861e7d14e9b361/CHANGELOG > >

Re: [web2py] web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
Here : https://github.com/web2py/web2py/blob/41fd02fa2c03bacafd67faad56861e7d14e9b361/CHANGELOG Ok figure it out... There were more then one web2py instance running what causing issue I think, I kill them and now it seems to work. Testing beta now... On Tue, Mar 22, 2016 at 10:59 AM, Richard

Re: [web2py] web2py 2.14.1 beta

2016-03-22 Thread Richard Vézina
I can't figure out how to establish Redis cache connection... I was doing like that before... from gluon.contrib.redis_cache import RedisCache cache.redis = RedisCache('localhost:6379', db=None, debug=True, with_lock=False, password=None) Try that : from gluon.contrib.redis_utils import RConn

Re: [web2py] TAG.button style

2016-03-20 Thread Richard Vézina
Here you have default .grid() button class : https://github.com/web2py/web2py/blob/dbbbd44642f0858871cde6a9d72ace36f907bf69/gluon/sqlhtml.py#L2071 And here how buttons get created : https://github.com/web2py/web2py/blob/dbbbd44642f0858871cde6a9d72ace36f907bf69/gluon/sqlhtml.py#L2184 Richard

Re: [web2py] Re: Djano channels

2016-03-20 Thread Richard Vézina
It just set websocket on... Then you have to implement your own protocol of communication... On Sun, Mar 20, 2016 at 10:42 AM, Ron Chatterjee wrote: > I haven't had a chance to go through the code but is it using multiple > chat room or just one single room? > > On

Re: [web2py] issue when import from one web2py module into another

2016-03-18 Thread Richard Vézina
Don't know why it doesn't nothing special from my side... On Thu, Mar 17, 2016 at 2:59 PM, Leonel Câmara wrote: > from other_module import function > > should work too > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

Re: [web2py] issue when import from one web2py module into another

2016-03-18 Thread Richard Vézina
import module_name Then module_name.function works fine... Richard On Thu, Mar 17, 2016 at 2:48 PM, Richard wrote: > Hello, > > Is there any thing to consider when trying to import from one module to > another? > > I try import a specific fonction like so : > >

Re: [web2py] iterating through form fields with rows

2016-03-15 Thread Richard Vézina
for i in range(0, number_of_total_fields): row[field+i] Richard On Tue, Mar 15, 2016 at 4:22 PM, wrote: > I have a table defined with 3 input fields and then an upload field. The > upload field is used to take the values that are entered by the user and > input them

Re: [web2py] Re: Using writable=False fields in an onupdate function

2016-03-11 Thread Richard Vézina
SQLFORM and SQLFORM.gris play well with each other you just have to leve the create/read/update to SQLFORM and use .grid for the display... Did you try session? Richard On Fri, Mar 11, 2016 at 5:30 AM, David Orme wrote: > Hello all, > > Thanks for the information and

Re: [web2py] Re: Using writable=False fields in an onupdate function

2016-03-10 Thread Richard Vézina
If you use session be aware that the value you put in session will remain there for the duration of the session, so you need to carefully reset them or init them in order to not create bug... As Dave S mention SQLFORM() wouldn't maybe suffer from this issue as you can do that : form =

Re: [web2py] Re: Using writable=False fields in an onupdate function

2016-03-10 Thread Richard Vézina
Ok, your form is not over auth_user... Sorry fast reading does that... You can use session then... session.volunteer_id = db.table(row_id).volunteer_id Or You can passe it as request vars : URL(..., vars=dict(volunteer_id=db.table(row_id).volunteer_id)) Though, I am not sure you will be able

Re: [web2py] Using writable=False fields in an onupdate function

2016-03-10 Thread Richard Vézina
Not complete my sentence : You already retrieve auth_user row, so I guess instead of use form.vars instance for this piece of information you can get it from auth_user row... On Thu, Mar 10, 2016 at 2:41 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > You can't get

Re: [web2py] Using writable=False fields in an onupdate function

2016-03-10 Thread Richard Vézina
You can't get it in you onupdate function? You already retrieve auth_user row, so I guess instead of use form.vars instance for this piece of information... Though I am not sure what is exactly you problem... Richard On Thu, Mar 10, 2016 at 1:34 PM, David Orme wrote: >

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-10 Thread Richard Vézina
... Richard On Wed, Mar 9, 2016 at 1:58 PM, Richard Vézina <ml.richard.vez...@gmail.com> wrote: > Damn it, there is surely something else wrong also... Even with the > removal I seems to have difficulty with other fields not included in the > custom form which are removed with readab

Re: Mensaje privado sobre: [web2py] Bunch/Batch/Bulk insert Re-use db.define_table field definition in SQLFORM.factory() ?

2016-03-10 Thread Richard Vézina
aez...@gmail.com> wrote: > Thanks dude, > Yoel > > 2016-03-09 18:01 GMT-04:00 Richard Vézina <ml.richard.vez...@gmail.com>: > >> I think I had publish something in the past that address your >> requirement... >> >> search for inline form or something..

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-09 Thread Richard Vézina
properly for year now and it seems now completly broken... Richard On Wed, Mar 9, 2016 at 12:19 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Hello Anthony, > > Last suggestion seems the way to go... I do understand and I realise by > trying to hack IS_NOT_EMPTY() tha

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-09 Thread Richard Vézina
Hello Anthony, Last suggestion seems the way to go... I do understand and I realise by trying to hack IS_NOT_EMPTY() that it makes no sens to refactoring it in anyway to make it support bool null since it never going to allow null value to be input in the DB. Though it certainly shouldn't prevent

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-08 Thread Richard Vézina
it works with boolean type field so that it returns false when the checkbox is leave blank as it should... Or even mention in the book that IS_NOT_EMPTY() doesn't apply and shouldn't be use with boolean type field, which seems the simplest solution... Richard On Tue, Mar 8, 2016 at 2:00 PM, Richard

Re: [web2py] bug in IS_NOT_EMPTY() ?

2016-03-08 Thread Richard Vézina
To me, Francisco is rigth... In boolean case, I assume that IS_NOT_EMPTY() would make sure that field don't get a NULL value, so the database get hit with True or False value when you set IS_NOT_EMPTY() and default=False... Richard On Thu, Dec 4, 2014 at 6:27 AM, Kiran Subbaraman

Re: [web2py] Re: for those of us who do not understand ...

2016-03-07 Thread Richard Vézina
I submit a PR to replace bla bla by Lorem ipsum extract... Richard On Mon, Mar 7, 2016 at 6:28 AM, Ron Chatterjee wrote: > Nice work Massimo. Looks really great. Once seen one theme but the others > looks nice as well. > > On Sunday, March 6, 2016 at 5:19:33 PM UTC-5,

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