Re: [web2py] Re: is there any way to resurrect a past deleted primary key?

2015-11-03 Thread Richard Vézina
Oups! On Tue, Nov 3, 2015 at 3:15 PM, Alex Glaros wrote: > it worked! wow... thanks guys! > > Alex > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > -

Re: [web2py] bootstrap3 formstyle checkboxes

2015-11-03 Thread Richard Vézina
What is the expected behavior? On Tue, Nov 3, 2015 at 4:50 AM, Gary Cowell wrote: > Web2py version: > >>> import gluon.widget > >>> print gluon.widget.ProgramVersion > Version 2.12.3-stable+timestamp.2015.08.19.00.18.03 > > > When using bootstrap3_inline for forms, the

Re: [web2py] DAL alternatives

2015-11-02 Thread Richard Vézina
Hello, About webpy example, I think this is readilly possible in web2py, I mean it just maybe a better way to structure your model declaration/defintion... Did you try it with web2py? Richard On Mon, Nov 2, 2015 at 9:51 AM, Carlos Cesar Caballero Díaz < desarro...@spicm.cfg.sld.cu> wrote: >

Re: [web2py] Re: How to make a copy of db for unittest

2015-10-30 Thread Richard Vézina
You can have a look at these two examples of test stack for web2py : https://github.com/viniciusban/web2py.test https://github.com/niphlod/welcome_augmented (from Niphold :) The web2py.test connection to regular or test database is supported, welcome_augmented manage connection and have function

Re: [web2py] Re: Re-use user's login and password to bind with LDAP server

2015-10-30 Thread Richard Vézina
How do you bind to ldap in the first place, I mean when using ldap_auth.py? Answer : your credentials... So, I guess you just use the credentials of the user that is used to authenticate users of web2py with ldap_auth.py In my case, I ask for the creation of user in Active Directory different

Re: [web2py] Re: Re-use user's login and password to bind with LDAP server

2015-10-30 Thread Richard Vézina
Hello Jonathan, I think if you want to manage LDAP from web2py as you were requesting you will need much more then ldap_auth.py contrib which as it says it mains purpose is to authenticate user of web2py against LDAP instance... I guess you better look on the side of python-ldap (

Re: [web2py] logged in user and auth.user_id=None

2015-10-27 Thread Richard Vézina
Can you show the code you change previous and the actual code? You may have erase something related to the auth... Richard On Tue, Oct 27, 2015 at 8:51 AM, Pierre wrote: > Hi, > > strange..I changed my application adding virtual fields and now it > seems like the

Re: [web2py] Re: Appconfig - what's the best way to handle missing values

2015-10-26 Thread Richard Vézina
I think what Donald is talking about arrive when migrate or pool_size are missing... In line if in the connection string can do the tricks... But it more hacky... I would make a default AppConfig file and an user or application AppConfig file where application AppConfig override the default one of

Re: [web2py] Re: Appconfig - what's the best way to handle missing values

2015-10-26 Thread Richard Vézina
I opened this issue : https://github.com/web2py/web2py/issues/1093 On Mon, Oct 26, 2015 at 9:59 AM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > I think what Donald is talking about arrive when migrate or pool_size are > missing... In line if in the connection string can d

Re: [web2py] Re: Multi-language field content

2015-10-23 Thread Richard Vézina
This is an old thread, but can we hava this to work I didn't see any japanese specific translation file include in the last welcome app... Thanks Richard On Sat, May 4, 2013 at 10:22 AM, 黄祥 wrote: > imho, i think your define table is redundant if you do like your

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
It will make it more difficult to review IMHO and you kind of need to install the app before you can even look at the code... Since there can have nasty piece of code in an uploaded app, I would really avoid this path. Richard On Fri, Oct 23, 2015 at 2:20 PM, Ron Chatterjee

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
Just by providing a way to the user to create model/controller/view file to the web2py ref app securely (which is the difficult path, maybe having a review of posted code can do the trick) can at least let us know if the code can work under the current version of web2py that is in use by the

Re: [web2py] Re: Multi-language field content

2015-10-23 Thread Richard Vézina
T.force('jp') didn't result in jp.py language file being created... Was this available in web2py 2.9.5? My understanding of T.force(some language) was that it override browser preferred language, doc here : http://web2py.com/books/default/chapter/29/04/the-core?search=T.force Richard On Fri, Oct

Re: [web2py] Re: Multi-language field content

2015-10-23 Thread Richard Vézina
Japanese is available in chrome, can I just create the jp.py language file? On Fri, Oct 23, 2015 at 3:56 PM, Leonel Câmara wrote: > You don't need them included in the welcome. You can just create them. The > reason web2py is not creating them automatically is because no

Re: [web2py] Re: Multi-language field content

2015-10-23 Thread Richard Vézina
I may use the wrong language ID? On Fri, Oct 23, 2015 at 4:32 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > T.force('jp') didn't result in jp.py language file being created... Was > this available in web2py 2.9.5? My understanding of T.force(some language) > was t

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
What about snippet validation of code infrastructure?? It sound crazy, but I am sure we can find a way to do it... Just a working Demo environnement that implement the proposed snippet could do it, if the demo run that mean the snippet is still working is not snippet may be put in a queue to be

Re: [web2py] Re: Resource webservice built on web2py for web2py comunity [BETA]

2015-10-23 Thread Richard Vézina
The easiess way I can see, is having a form with code/textarea for each important web2py code container (models/controllers/views, maybe modules), before any bit of code submit get executed it needs a review from site administrator or web2py core dev (which is a bottle neck and a time

Re: [web2py] DAL alternatives

2015-10-22 Thread Richard Vézina
Do you mean pyDAL? If so, you have to consider that it is very young and may still seems to be web2py related which may make poeple think that they can't use it without web2py... I use to refer many StackOverflow asker to pyDAL as a way to solve their issue, I guess word of mouth is not in use

Re: [web2py] Re: PostgreSQL

2015-10-21 Thread Richard Vézina
Thanks for sharing! Richard On Wed, Oct 21, 2015 at 10:07 AM, Leonel Câmara wrote: > It's the only database I use in production. I see no reason to use > anything else really. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

Re: [web2py] issue with conditional columns in select with web2py dal query

2015-10-21 Thread Richard Vézina
Workaround it like that : if someflag: try: base_date = db.other_table.received_timestamp.date() except: base_date = db.other_table.date columns = [(db[table].date - base_date).avg().with_alias('avg_date')] # Works YEAH! else: columns = [(db[table].date -

Re: [web2py] Re: Can web2py "front-end" an API?

2015-10-20 Thread Richard Vézina
Hmm... Model-Less application shouldn't be regarded as a web2py application without model properly defined... Model-Less web2py application is just an application written with web2py where the models are not defined in the models/ folder of web2py to avoid cost of parsing models definition at each

Re: [web2py] Re: 2.12.1 is out

2015-10-19 Thread Richard Vézina
Ron did you download web2py from Github or from web2py site... The latter should prevent fromt this issue, but if you use Git repo, you need to update pyDAL submodule, that what Niphold is explaning... Richard On Mon, Oct 19, 2015 at 11:34 AM, Niphlod wrote: > any version of

Re: [web2py] Re: 2.12.1 is out

2015-10-19 Thread Richard Vézina
You may still use web2py without venv, but consider using it for stuff like pyDAL... :) It all depends of your needs and number of projects you manage... Even if venv is always a better idea, I would say as a rule of thumb, if you didn't face any issue, and only manage one app and only use

Re: [web2py] Re: 2.12.1 is out

2015-10-19 Thread Richard Vézina
Hello Ron, Do you know virtualenv? You can avoid this kind of issue with it... Get started... Ref : http://docs.python-guide.org/en/latest/dev/virtualenvs/ Richard On Mon, Oct 19, 2015 at 12:04 PM, Ron Chatterjee wrote: > I downloaded from web2py site. Anyway, I

Re: [web2py] PyCharm license for web2py dev - who wants?

2015-10-16 Thread Richard Vézina
For the one that want to try PyCharm "Professional" there is the EAP (earlie access program), you can use the next version of PyCharm before the official release... Most of the time these build are pretty stable... Richard On Thu, Oct 15, 2015 at 6:31 PM, Jack Kuan wrote: >

Re: [web2py] PyCharm license for web2py dev - who wants?

2015-10-15 Thread Richard Vézina
How this is going, I think you may just add everyone that have ever contribute to web2py... Just kidding... :-P Richard On Thu, Oct 15, 2015 at 12:35 PM, Carlos Correia < car...@memoriapersistente.pt> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > +1 :D > > Às 20:21 de

Re: [web2py] How to import data from csv file in web2py for SQLite database?

2015-10-14 Thread Richard Vézina
:) Richard On Wed, Oct 14, 2015 at 3:00 PM, Dave S wrote: > > > On Wednesday, October 14, 2015 at 11:57:30 AM UTC-7, Richard wrote: >> >> if db(db.table.id > 0).count() == 0: >> db.table2.import_from_csv_file(open(open('mycsv','r')) >> >> So it will be executed only

Re: [web2py] How to import data from csv file in web2py for SQLite database?

2015-10-14 Thread Richard Vézina
if db(db.table.id > 0).count() == 0: db.table2.import_from_csv_file(open(open('mycsv','r')) So it will be executed only once... Richard On Wed, Oct 14, 2015 at 10:48 AM, Prasad M wrote: > I am trying to import data from csv in web2py's SQlite databae. > 1)

Re: [web2py] PyCharm license for web2py dev - who wants?

2015-10-13 Thread Richard Vézina
+1 On Tue, Oct 13, 2015 at 9:32 AM, Carlos Cesar Caballero Díaz < desarro...@spicm.cfg.sld.cu> wrote: > +1 > > I am from Cuba, and I can't buy a PyCharm licence because of the US > restrictions to cuban citizens for economic transactions (we can't use > Paypal or any credit/debit card payment

Re: [web2py] Re: CMS WEB2PY

2015-10-13 Thread Richard Vézina
Look very nice Carlos, congrats... Richard On Tue, Oct 13, 2015 at 10:42 AM, Ron Chatterjee wrote: > Problem that I see using CMS that its very hard to make changes and the > code is always very embedded and dependent. Hopefully it will be different > than what I

Re: [web2py] what if i want bootstrap with semanticui ?

2015-10-13 Thread Richard Vézina
I think, semantic get more usable in the last version, but bootstrap was just there before. So, I guess it is the main reason why web2py is tide to bootstrap... Also, I know that Massimo really like semantic, so feel free to propose web2py integration or welcome_semantic and it will surely be

Re: [web2py] what if i want bootstrap with semanticui ?

2015-10-13 Thread Richard Vézina
I tried derive a semantic for the w3 Massimo's prototype of client side welcome which use Ractive.js for client side interaction, but my lack of time stall the process... Richard On Tue, Oct 13, 2015 at 1:30 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > I think, semantic

Re: [web2py] Re: qrcode

2015-10-13 Thread Richard Vézina
You can have a look on the side of elaphe : https://bitbucket.org/whosaysni/elaphe/ For most type of code it works... But there were issue with bouding box for some of them in the pass, hope it has been solve since then... Richard On Tue, Oct 13, 2015 at 5:28 PM, 黄祥

Re: [web2py] Re: Has anyone done a detailed security analysis or attempted a methodical attack on web2py?

2015-10-08 Thread Richard Vézina
:) Nice to heard that! Richard On Thu, Oct 8, 2015 at 2:59 PM, Niphlod wrote: > not really. > I built some apps on web2py that are live and in production, and since > EVERY app in my environment NEEDS to pass a Qualys scan to be live and > production ready, I know that MY

Re: [web2py] Re: Has anyone done a detailed security analysis or attempted a methodical attack on web2py?

2015-10-08 Thread Richard Vézina
@Antonio I think Simone just point to the tool that can be use for such purpose... You can use it over your App. From my understanding the App tested is the Ian App... Richard On Thu, Oct 8, 2015 at 1:19 PM, António Ramos wrote: > Niphold, > i dont see where you are

Re: [web2py] Re: spip web2py

2015-10-06 Thread Richard Vézina
You also, just use SPIP since it seems what you want to do and acces the SPIP DB from web2py for your needs instead of trying to populate form and web2py db from web2py form... But I think we need further details about what you actually want to acheive. Richard On Mon, Oct 5, 2015 at 5:12 PM, p

Re: [web2py] Re: spip web2py

2015-10-06 Thread Richard Vézina
On parle français ici si tu as de la difficulté avec l'anglais... :D Richard On Tue, Oct 6, 2015 at 10:04 AM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > You also, just use SPIP since it seems what you want to do and acces the > SPIP DB from web2py for your needs inste

Re: [web2py] Caching - need your thoughts

2015-09-30 Thread Richard Vézina
https://github.com/web2py/web2py/blob/1e66fa3a93560aa5d32c27a6b1b7251e0dd8a428/gluon/cache.py Here the test file about cache : https://github.com/web2py/web2py/blob/1e66fa3a93560aa5d32c27a6b1b7251e0dd8a428/gluon/tests/test_cache.py Richard On Wed, Sep 30, 2015 at 9:33 AM, Richard Vézina

Re: [web2py] Caching - need your thoughts

2015-09-30 Thread Richard Vézina
About Cache, you may try to import gluon cache.py module and see if it can solve you requirement. Something like that : from cache import CacheInRam, CacheOnDisk, Cache You may need to include it in python path... Richard On Wed, Sep 30, 2015 at 8:22 AM, Kiran Subbaraman <

Re: [web2py] Proposed Change to "setup-web2py-fedora.sh"

2015-09-29 Thread Richard Vézina
import getpass On Mon, Sep 28, 2015 at 8:51 PM, Michael M wrote: > On File "Setup-web2py-fedora.sh" > > Line 387: sudo -u apache python -c "from gluon.main import save_password; > save_password(raw_input('admin password: '),443)" > to > Line 387: sudo -u apache python -c

Re: [web2py] Proposed Change to "setup-web2py-fedora.sh"

2015-09-29 Thread Richard Vézina
And consider using base64 to prevent cleartext password in trace... Sorry I didn't see you were importing getpass... Richard On Tue, Sep 29, 2015 at 10:41 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > import getpass > > On Mon, Sep 28, 2015 at 8:51 PM, Mi

Re: [web2py] Proposed Change to "setup-web2py-fedora.sh"

2015-09-29 Thread Richard Vézina
http://stackoverflow.com/questions/157938/hiding-a-password-in-a-python-script On Tue, Sep 29, 2015 at 10:44 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > And consider using base64 to prevent cleartext password in trace... > > Sorry I didn't see you were im

Re: [web2py] Proposed Change to "setup-web2py-fedora.sh"

2015-09-29 Thread Richard Vézina
You right it's not apply here... Richard On Tue, Sep 29, 2015 at 12:06 PM, Niphlod wrote: > uhm, pretty different topics. the setup file doesn't hold the password. > the proposed fix just avoids prying eyes from snooping it (read, a > collegue behind you) when you fill

Re: [web2py] How to architect data for high traffic

2015-09-22 Thread Richard Vézina
Difficult to say without know what the architecture exactly is... Sharing a database between app is not supposed to cause any issue since web2py allow you to have multiples connections strings, this is true in reading, but when you write in this database you may facing lock if multiples concurrent

Re: [web2py] Eclipse + Pydev + Docker - need suggestions

2015-09-21 Thread Richard Vézina
Hi Kiran, Just about having web2py app outside of web2py folder and docker... I think what you want to achieve goes against the idea of containerization... Why not deploy you app inside your container (as you will do if you host your app somewhere for instance, in this case your host is your

Re: [web2py] Re: Is it possible to have this type of multiple requires in db.py?

2015-09-21 Thread Richard Vézina
Or just no out-of-the-box what the ID represent when you read your code... Richard On Mon, Sep 21, 2015 at 3:17 PM, Alex Glaros wrote: > thanks Richard, > > is one of the reasons to retain referential integrity in case app is > ported to another database? (pointed-to

Re: [web2py] Re: Is it possible to have this type of multiple requires in db.py?

2015-09-21 Thread Richard Vézina
About this IS_IN_DB(db(db.Organization.organizationPrimaryTypeID == 1), 'Organization.id'), '%(represent_field_name)s') I avoid using ID generally even if it does one more query I think code get more readable in the future if you nest another query (2 ways of doing it) : organization_id =

Re: [web2py][OT] Workflow

2015-09-16 Thread Richard Vézina
I see SpiffWorkflow get back to work... There is a couple commit 2 months ago... I thought when I look to it that it was abandoned since there were no activity since 2 years... Richard On Wed, Sep 16, 2015 at 8:00 PM, 黄祥 wrote: > yes, you are right, i think, you

Re: [web2py] How to write documentation for REST API?

2015-09-16 Thread Richard Vézina
On Tue, Sep 15, 2015 at 4:11 PM, Michele Comitini < michele.comit...@gmail.com> wrote: > In the end I used sphinx with this extension: > > http://pythonhosted.org/sphinxcontrib-httpdomain > > > > 2015-09-15 3:56 GMT+02:00 Richard Vézina <ml.richard.vez...@gmail.com&g

Re: [web2py] How to get and use attributes from Active Directory

2015-09-15 Thread Richard Vézina
Can you be more specific? Do you want to manage group from AD inside web2py? Richard On Mon, Sep 14, 2015 at 4:38 PM, Laurent Lc wrote: > i am looking for a very simple example > thanks > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation)

Re: [web2py][OT] Workflow

2015-09-15 Thread Richard Vézina
I thought it could be used for workflow management... Richard On Tue, Sep 15, 2015 at 4:33 PM, Niphlod wrote: > > > On Tuesday, September 15, 2015 at 7:16:08 PM UTC+2, Richard wrote: >> >> I should try it, you right, it on my todo since a lot of time... But >> eventually, I

Re: [web2py][OT] Workflow

2015-09-15 Thread Richard Vézina
I should try it, you right, it on my todo since a lot of time... But eventually, I will need workflow not exactly related to task, but for general purpose... Thanks Richard On Tue, Sep 15, 2015 at 3:26 AM, Leonel Câmara wrote: > The included web2py's scheduler already

Re: [web2py] sqlform or crud form update with custom field

2015-09-14 Thread Richard Vézina
I you want to prevent some fields to appears and be created/updated in your form put this in you controller before form declaration : db.table.field.readable = False db.table.field.writeable = False Richard On Mon, Sep 14, 2015 at 12:47 PM, Diego Tostes wrote: > Hi, >

Re: [web2py] Re: Make "create" authorization conditional for grid

2015-09-14 Thread Richard Vézina
Note in both case you need to have auth activated, but I pretty sure you already use auth in your app... Richard On Mon, Sep 14, 2015 at 7:13 PM, Alex Glaros wrote: > thanks Richard, > > was what I was looking for > > Alex > > -- > Resources: > - http://web2py.com > -

Re: [web2py] Re: Make "create" authorization conditional for grid

2015-09-14 Thread Richard Vézina
), though if you use SQLFORM.grid, I guess only what you actually do is working if you want to stay DRY. Richard On Mon, Sep 14, 2015 at 7:01 PM, Richard Vézina <ml.richard.vez...@gmail.com > wrote: > Alex, > > `if not auth.has_membership('GROUPNAME'):` > > Richard > > >

Re: [web2py] Re: Make "create" authorization conditional for grid

2015-09-14 Thread Richard Vézina
Alex, `if not auth.has_membership('GROUPNAME'):` Richard On Mon, Sep 14, 2015 at 6:33 PM, Alex Glaros wrote: > This works, is there a shorter/better phrasing? > > is_manager = False > if not (db((auth.user_id == db.auth_membership.user_id) & >

Re: [web2py] web2py SPA(single page application)

2015-09-14 Thread Richard Vézina
Look on the side of Ractive.js, it is a simple smaller way to get SPA into web2py without all the overhead that come from Angular.js (which is a framework) Massimo has made an work and progress app to "eventually" replace the welcome app (I quotted eventually because until know it was only

Re: [web2py] How to write documentation for REST API?

2015-09-14 Thread Richard Vézina
I like the way it's done here : https://open.fda.gov/api/reference I had saw many API doc that were looking the same (just can found back a couple of example). I thought at first that it was made using sphinx but can't found any trace of it in the souce of the page or on the github of the open

Re: [web2py] sqlform or crud form update with custom field

2015-09-14 Thread Richard Vézina
And if you only need one field from ten in an update form you may consider this : for f in db.tabe.fields: db.table[f].readable = False db.table[f].writable = False Then you put to True the field you want to update... Richard On Mon, Sep 14, 2015 at 2:16 PM, Richard Vézina

Re: [web2py] sqlform or crud form update with custom field

2015-09-14 Thread Richard Vézina
t;> db.tablename.field.editable = False, >> id) >> >> return dict(form=crud()) >> >> >> regards >> >> diego >> >> 2015-09-14 13:49 GMT-03:00 Richard Vézina <ml.richard.vez...@gmail.com>: >> >>>

Re: [web2py] sqlform or crud form update with custom field

2015-09-14 Thread Richard Vézina
09-14 16:09 GMT-03:00 Richard Vézina <ml.richard.vez...@gmail.com>: > >> writable not editable... >> http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-and-insert-update-delete >> >> You need both readable and writable to be false to comp

Re: [web2py] sqlform or crud form update with custom field

2015-09-14 Thread Richard Vézina
return {'form':form} > > > > > this is my method, and continue showing and updating leechers and seeders > field... > > whats wrong? > > > > > 2015-09-14 15:18 GMT-03:00 Richard Vézina <ml.richard.vez...@gmail.com>: > >> And if you only need one

Re: [web2py] Re: disable field on create Sqlform

2015-09-10 Thread Richard Vézina
db.table.field.readable = False db.table.field.writable = False Richard On Thu, Sep 10, 2015 at 5:53 PM, 黄祥 wrote: > i think you can use condition for the field > e.g. > write_in_form = 'new' in request.args > > best regards, > stifan > > -- > Resources: > -

Re: [web2py] .last() don't return last table id and first() also not returning the first record id

2015-09-09 Thread Richard Vézina
Postgres On Wed, Sep 9, 2015 at 2:23 PM, Leonel Câmara wrote: > You do not have an orderby on that select so, depending on your backend, > yes that can be very normal. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

Re: [web2py] .last() don't return last table id and first() also not returning the first record id

2015-09-09 Thread Richard Vézina
Ok you right... orderby=id On Wed, Sep 9, 2015 at 3:06 PM, Michele Comitini <michele.comit...@gmail.com > wrote: > absolutely normal, try ordering or using max > > 2015-09-09 20:54 GMT+02:00 Richard Vézina <ml.richard.vez...@gmail.com>: > >> Postgres >> >&

Re: [web2py] About web2py

2015-09-06 Thread Richard Vézina
HTML : *HyperText Markup Language*, commonly referred to as *HTML*, is the standard markup language used to create web pages . *Ref :* https://en.wikipedia.org/wiki/HTML web2py : Free open source full-stack

Re: [web2py] 'module' object has no attribute 'startswith'

2015-09-04 Thread Richard Vézina
Could it be possible that you upgrade web2py but not the appadmin controller? Richard On Thu, Sep 3, 2015 at 3:01 AM, Johann Spies wrote: > We have an app working with a database on another server through an > ssh-tunnel. > > The app is working. But the admin app which

Re: [web2py] SQL query equivalent in DAL

2015-09-04 Thread Richard Vézina
db(~db.pc.id.belongs(db(db.assigned.id > 0)._select(db.assigned.id )).select(db.pc.ALL) Richard On Fri, Sep 4, 2015 at 3:35 PM, P T wrote: > > Hello Forum, > > Please help me in getting the equivalent DAL query for the following SQL > query. I intend to pass this on

Re: [web2py] fabric app

2015-09-03 Thread Richard Vézina
Nice Carlos, you should had work really hard... Do you know Fabric ( http://www.fabfile.org/)? I guess you had save some boiler plate... :) Richard On Thu, Sep 3, 2015 at 2:21 PM, Carlos Cesar Caballero Díaz < desarro...@spicm.cfg.sld.cu> wrote: > Hi massimo I took it as an exercise, and this

Re: [web2py] fabric app

2015-09-03 Thread Richard Vézina
Fabric is a python tool to manage remote (and local) task without having to manually go in each remote machine to do so. Massimo mention that it his request that the script may be implemented with Fabric... And it of course a good idea to write a fabfile for it... Richard On Thu, Sep 3, 2015

Re: [web2py] fabric app

2015-09-03 Thread Richard Vézina
If you are developping and deploying web2py app and you not actually using it... You should really consider using it instead of bash script which are painful dependent of your background though... Richard On Thu, Sep 3, 2015 at 4:55 PM, Dave S wrote: > > > On Thursday,

Re: [web2py] Re: IronPython support

2015-08-31 Thread Richard Vézina
ms and PyPy 50-75 ms with a simple page load and >> relaod test with chrome dev tool... >> >> Richard >> >> On Thu, Aug 27, 2015 at 3:45 PM, Richard Vézina <ml.richa...@gmail.com> >> wrote: >> >>> I could be interresting in IronPython from a com

Re: [web2py] Re: IronPython support

2015-08-31 Thread Richard Vézina
Do you have a step by step migration to PyPy tutorial... I try PyPy, but it failed over import of module like os. Thanks Richard On Mon, Aug 31, 2015 at 11:27 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Thanks for explain that, does web2py rows processing (dict init,

Re: [web2py] populating DB in first app run

2015-08-28 Thread Richard Vézina
fixture = False if fixture and db(db.table.id 0).count() == 0: db.table.insert(...) On Fri, Aug 28, 2015 at 9:53 AM, Carlos Cesar Caballero Díaz desarro...@spicm.cfg.sld.cu wrote: Hi, I need to add some users, and some fields to tables at the first time that my app runs, right now I ask

Re: [web2py] Re: IronPython support

2015-08-27 Thread Richard Vézina
I could be interresting in IronPython from a compliance stand point, even if it doesn't change anything, manager may be less anxious with ms crap... :) Richard On Mon, Apr 6, 2015 at 11:58 AM, Derek sp1d...@gmail.com wrote: It doesn't have a GIL, plus it has a good JIT and I know Web2Py works

Re: [web2py] Re: IronPython support

2015-08-27 Thread Richard Vézina
Derek, where is the gain come with PyPy? Just loading the welcome index, CPython I get a steady 20 ms and PyPy 50-75 ms with a simple page load and relaod test with chrome dev tool... Richard On Thu, Aug 27, 2015 at 3:45 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I could

Re: [web2py] ldap import problem

2015-08-20 Thread Richard Vézina
Johann which version of web2py? Richard On Thu, Aug 20, 2015 at 8:20 AM, Johann Spies johann.sp...@gmail.com wrote: Why does this happen? The import process seems to try and import the ldap module from the modules directory and not from gluon/contrib/login_methods. File

Re: [web2py] Refresh page with user/login?_next= in URL ask for credentials even if user is logged in

2015-08-20 Thread Richard Vézina
Done! On Thu, Aug 20, 2015 at 3:06 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: :-) On Thursday, 20 August 2015 10:37:22 UTC-5, Richard wrote: Also make the redirect a subfunc to be reused... On Thu, Aug 20, 2015 at 11:36 AM, Richard Vézina ml.richard.vez...@gmail.com wrote

Re: [web2py] Refresh page with user/login?_next= in URL ask for credentials even if user is logged in

2015-08-20 Thread Richard Vézina
Also make the redirect a subfunc to be reused... On Thu, Aug 20, 2015 at 11:36 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok, will do it... Richard On Thu, Aug 20, 2015 at 10:53 AM, Anthony abasta...@gmail.com wrote: Well, you need to know what next is, so the redirect has

Re: [web2py] Refresh page with user/login?_next= in URL ask for credentials even if user is logged in

2015-08-20 Thread Richard Vézina
it only cas_login related... On Wed, Aug 19, 2015 at 2:00 PM, Richard Vézina ml.richa...@gmail.com wrote: Is the function that perform the check is : allow_access()?? On Wed, Aug 19, 2015 at 1:59 PM, Richard Vézina ml.richa...@gmail.com wrote: Exactly, I was reading the code figure where

Re: [web2py] Refresh page with user/login?_next= in URL ask for credentials even if user is logged in

2015-08-19 Thread Richard Vézina
Is the function that perform the check is : allow_access()?? On Wed, Aug 19, 2015 at 1:59 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Exactly, I was reading the code figure where the credentials check is perform... I will try to make a PR, if I can find the right place... I

Re: [web2py] Refresh page with user/login?_next= in URL ask for credentials even if user is logged in

2015-08-19 Thread Richard Vézina
Exactly, I was reading the code figure where the credentials check is perform... I will try to make a PR, if I can find the right place... I will send here before what I come up with if you want to review... Richard On Wed, Aug 19, 2015 at 1:54 PM, Anthony abasta...@gmail.com wrote: On

Re: [web2py] Refresh page with user/login?_next= in URL ask for credentials even if user is logged in

2015-08-19 Thread Richard Vézina
Nop it only cas_login related... On Wed, Aug 19, 2015 at 2:00 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Is the function that perform the check is : allow_access()?? On Wed, Aug 19, 2015 at 1:59 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Exactly, I was reading

Re: [web2py] Refresh page with user/login?_next= in URL ask for credentials even if user is logged in

2015-08-19 Thread Richard Vézina
cas_login related... On Wed, Aug 19, 2015 at 2:00 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Is the function that perform the check is : allow_access()?? On Wed, Aug 19, 2015 at 1:59 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Exactly, I was reading the code figure

Re: [web2py] This would be nice to integrate with...

2015-08-19 Thread Richard Vézina
Ouch building that is for sure not an easy task... Richard On Wed, Aug 19, 2015 at 12:21 PM, Jason (spot) Brower encomp...@gmail.com wrote: https://webflow.com/cms?utm_campaign=cmsteaserutm_source=newsletterutm_medium=email That or start building our own. :) -- Resources: -

Re: [web2py] Re: Keep values with a list:string field?

2015-08-14 Thread Richard Vézina
You need to use form.vars at first... At the begining your form is emptyl, so you need to get the inputed value from the form not from request.vars... You take them form request.vars for field default but when you redirect you need to pass the form.vars to url... But even then, I am not sure it

Re: [web2py] Re: Keep values with a list:string field?

2015-08-14 Thread Richard Vézina
Ian, you may also just write your own widget for list:string that way it should behave correctly... http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=widget#Widgets def my_string_widget(field, value): return INPUT(_name=field.name, _id=%s_%s %

Re: [web2py] Re: Keep values with a list:string field?

2015-08-12 Thread Richard Vézina
Could you show your model and controller... This make no sens... Richard On Wed, Aug 12, 2015 at 10:45 AM, Ian W. Scott scotti...@gmail.com wrote: I never got any suggestions on this, even though it seems like a significant limitation of the widget. Has anyone come up with a solution for

Re: [web2py] Re: Keep values with a list:string field?

2015-08-12 Thread Richard Vézina
If I bring your stuff into a dummy web2py app under web2py 2.9.5, the keeped values appears in the flash message... Though they are not appearing in the widget... I will try it under more recent version... wait On Wed, Aug 12, 2015 at 8:24 PM, Ian W. Scott scotti...@gmail.com wrote: Hi

Re: [web2py] Re: Keep values with a list:string field?

2015-08-12 Thread Richard Vézina
, I guess not much user have use this widget with keepvalue=True and it pass silently... You can open a ticket and link this thread. You may link you dummy app a way to reproduce the issue. Richard On Wed, Aug 12, 2015 at 8:45 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: If I bring

Re: [web2py] Re: Keep values with a list:string field?

2015-08-12 Thread Richard Vézina
will have to write a lot of code to make entry unique in list:string field and it will never be fast since you will have to parse all the record each time... Richard On Wed, Aug 12, 2015 at 9:12 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: I just fall on this trying to understand web2py

Re: [web2py] Re: Keep values with a list:string field?

2015-08-12 Thread Richard Vézina
a default validator and a default representation, list:integer and list:string do not. So these two need an IS_IN_SETor an IS_IN_DB validator if you want to use them in forms. It may be the reason of your issue, may try to use IS_IN_SET() maybe?? Richard On Wed, Aug 12, 2015 at 8:53 PM, Richard Vézina

Re: [web2py] Re: Keep values with a list:string field?

2015-08-12 Thread Richard Vézina
Is the form widget only display the last input but insert the other values? I mean, it may be possible that values are there but not correctly display by the widget... Richard On Wed, Aug 12, 2015 at 1:21 PM, Ian W. Scott scotti...@gmail.com wrote: Sorry if I'm not explaining this well. The

Re: [web2py] Re: Keep values with a list:string field?

2015-08-12 Thread Richard Vézina
Hi Ian, Can you pack a dummy app with a list:string field an single field form with SQLFORM.factory so I can try it here and confirm your issue... Also, can you tell us which web2py version you use. Thanks Richard PS.: Once I confirm I have the issue we should open a ticket on github... #

Re: [web2py] Software Testing

2015-08-10 Thread Richard Vézina
See web2py.test and welcome_augmented : https://github.com/viniciusban/web2py.test https://github.com/niphlod/welcome_augmented Richard On Sun, Aug 9, 2015 at 4:44 PM, alexielgr...@gmail.com wrote: I would like to know, if someone of you know something about Software Testing with web2py,

Re: [web2py] Re: When will we have a proper forum ?

2015-08-10 Thread Richard Vézina
+1 Limedrop Do you think to something like the Mercurial book? http://hgbook.red-bean.com/read/how-did-we-get-here.html I saw side comments after... Richard On Thu, Aug 6, 2015 at 5:07 PM, Limedrop russ...@holtrd.com wrote: The first step would be to add it to the web2py roadmap :-) I

Re: [web2py] Re: When will we have a proper forum ?

2015-08-05 Thread Richard Vézina
I like receive all email from the list in a dedicated mail box (gmail), I can then easily search in the question and answer... :) Richard On Wed, Aug 5, 2015 at 9:12 AM, JorgeH jorgeh...@gmail.com wrote: I have been using this forum for years, and NEVER EVER have used email. I visit the web

Re: [web2py] Re: When will we have a proper forum ?

2015-08-05 Thread Richard Vézina
advantage for me. We can see the big picture ahead. i´m not limited to my limited knowledge because i can only find what i´m looking for using only emails. There will be a lot of good info that i will never see. 2015-08-05 15:13 GMT+01:00 Richard Vézina ml.richard.vez...@gmail.com: I

Re: [web2py] Re: When will we have a proper forum ?

2015-08-04 Thread Richard Vézina
G+ is dead... It will be renamed Streams... It may be good for news, but surely not for a forum... Richard On Tue, Aug 4, 2015 at 3:07 AM, Paolo Amboni ambo...@gmail.com wrote: One problem of google groups is the lack of categories. What about a g+ comunity? Il giorno mercoledì 29 luglio

Re: [web2py] Programatic form submission in shell / py.test

2015-08-04 Thread Richard Vézina
You may also consider this approach : https://github.com/niphlod/welcome_augmented Which is BDD centric and use Splinter (Python wrap of Selenium HQ) to perform test... Sorry I don't have clue for your issue... :) Richard On Sat, Aug 1, 2015 at 12:32 PM, Octavian G octavia...@gmail.com wrote:

<    4   5   6   7   8   9   10   11   12   13   >