Re: [web2py] Web2py Utils now on the CheeseShop, With a new unittesting module

2010-05-06 Thread Mathieu Clabaut
Really nice ! Thank you for publishing it... I'll try this soon... -Mathieu On Thu, May 6, 2010 at 20:19, Thadeus Burgess wrote: > The documentation will now live on the cheeseshop. > > http://packages.python.org/web2py_utils/ > > You can now easy_install it > > This release includes a new Test

Re: [web2py] Re: Web2py Utils now on the CheeseShop, With a new unittesting module

2010-05-13 Thread Mathieu Clabaut
an unexpected keyword argument 'extra_request' Web2py version : R-1.77.3+20 (ff230ef97232) web2py-utils==0.0.7dev Did I miss something ? On Fri, May 7, 2010 at 00:30, Patrick wrote: > > > On May 6, 3:15 pm, Mathieu Clabaut wrote: > > Really nice ! > > > >

Re: [web2py] Re: Web2py Utils now on the CheeseShop, With a new unittesting module

2010-05-13 Thread Mathieu Clabaut
Oups.. Just seen "Warning You must use web2py version 1.77.4, or at least source revision 445." on the documentation page... Sorry for the noise. -Mathieu On Thu, May 13, 2010 at 10:27, Mathieu Clabaut wrote: > Hello Thadeus, > Trying to use the testing environment, I g

[web2py] [PATCH] Make decorators well behaved

2010-05-13 Thread mathieu . clabaut
.22 # HG changeset patch # User Mathieu Clabaut # Date 1273752449 -7200 # Node ID 6acd0eed342316b128d4964dfa96d1bc1025a655 # Parent 6117613d0b77301aa6688e4d8f17f34252f2b88a Make decorators well behaved. Without this patches, all decorated functions __name__ is set to f, which is not desirable in

[web2py] Testing an upload function

2010-05-15 Thread Mathieu Clabaut
Hello, I'd like to test an upload function in my default controller (I use Thadeus testrunner from web2py_utils). I wonder what object I shall put in my request.post_vars.file where 'file' is the upload field ? Apparently it should have a 'filename' attribute and a read method ? Any tip on h

Re: [web2py] Testing an upload function

2010-05-16 Thread Mathieu Clabaut
t in webtest and perform > an app.post() on the function. > > Now you can verify using another new_env that the record was inserted, > and you can manually check the existence of the file and its contents. > > -- > Thadeus > > > > > > On Sat, May 1

[web2py] Offline application for a web2py app.

2010-05-16 Thread Mathieu Clabaut
Hello, I'm considering the development of an offline app for a web2py application (CRM would be one of the target). Do you know if such a work has ever been considered ? There are at least two issues to be considered: - synchronisation/reconciliation : When changed are made offline they

Re: [web2py] Testing an upload function

2010-05-16 Thread Mathieu Clabaut
print db(db.photo.id>0).select() Thadeus, do you want a patch to test_runner documentation for this sort of things (in a Howto section ?) ? -Mathieu On Sun, May 16, 2010 at 09:32, Mathieu Clabaut wrote: > Thank you for the directions. > I'll try something like that and keep you in

[web2py] checkboxes and radio widget failed with multiple validators

2010-05-27 Thread Mathieu Clabaut
Reported as http://code.google.com/p/web2py/issues/detail?id=80 Hello, I've met a problem with checkboxes and rzdio widgets: The following works: Field('status', 'string', requires=IS_IN_SET(STATUS_TYPE, multiple=True), widget=SQLFORM.widgets.checkboxes.widget) However if I add another

[web2py] Re: checkboxes and radio widget failed with multiple validators

2010-05-27 Thread Mathieu Clabaut
if hasattr(requires[0], 'options'): +options = requires[0].options() +else: +raise SyntaxError, 'widget cannot determine options of %s' \ +% field options = [(k, v) for k, v in options if k

Re: [web2py] Re: Hide tables to appadmin based on user permissions

2010-05-27 Thread Mathieu Clabaut
Thank you for sharing ! On Thu, May 27, 2010 at 19:16, Thadeus Burgess wrote: > This is what I settled with: So obviously if they are admin, it leaves it alone and they see all tables. > > Also all tables are decorated with @auth.reuquires_membership('Operations') > > What do you mean by "ta

[web2py] Group some fields into a

2010-05-27 Thread Mathieu Clabaut
Hello In my model, I've a table defined as STATUS_TYPE = ('identification','analyse') db.define_table('faq', Field('status', 'string', requires=[IS_IN_SET(STATUS_TYPE, multiple=True), IS_NOT_EMPTY(), IS_ORDERED(STATUS_TYPE)], default=STATUS_TYPE[0], widget=SQLFORM.widg

Re: [web2py] Re: Hide tables to appadmin based on user permissions

2010-05-27 Thread Mathieu Clabaut
> > > > > On Thu, May 27, 2010 at 2:31 PM, Mathieu Clabaut > wrote: > > Thank you for sharing ! > > On Thu, May 27, 2010 at 19:16, Thadeus Burgess > > wrote: > >> > >> This is what I settled with: > > > > > > So obvio

Re: [web2py] Re: Autoincrement field

2010-05-28 Thread Mathieu Clabaut
I guess that one may want some more constraints on the autoincrement field. For example, it shall begin at 100 for ecample. It may be because for example, before the application exists some paper records where made which were referenced by number < 100) For such a problem, I've set up with: Fiel

Re: [web2py] Re: Group some fields into a

2010-05-28 Thread Mathieu Clabaut
Ok... I'll try with that. On Fri, May 28, 2010 at 03:11, Candid wrote: > Use form.custom.widget. See http://web2py.com/book/default/section/7/7 > for details. > > On May 27, 4:48 pm, Mathieu Clabaut wrote: > > Hello > > In my model, I've a ta

Re: [web2py] Re: "wizard" style forms in web2py

2010-05-29 Thread Mathieu Clabaut
Nice idea ! I needed something similar... I'll give a try.. Thanks ! On Sat, May 29, 2010 at 17:19, mdipierro wrote: > db.define_table('mytable', > Field('field1'), Field('field2'), Field('field3'), > Field('field4')) > > make sure they all have defaults. > > def wizard(): > fields=[['

Re: [web2py] Re: Group some fields into a

2010-05-29 Thread Mathieu Clabaut
re added in 1.77.1; check the README > file for info on them. > Also note that you can set it to your own defined style: > > form=SQLFORM(..., _style='some inline style statements to modify > things') > form=SQLFORM(..., _class='your_defined_css_class') >

Re: [web2py] help with auth.requires_login()

2010-05-29 Thread Mathieu Clabaut
Did i miss something ot the following would be ok ? def requires_login(self, next=None, message=self.message.access_denied ): """ decorator that prevents access to action if not logged in """ def decorator(action): def f(*a, **b):

Re: [web2py] Re: help with auth.requires_login()

2010-05-31 Thread Mathieu Clabaut
ful with the variable scope. Without copying the decorator parameter into the local scope (see pnext), I get UnboundLocalError: local variable 'next' referenced before assignment -Mathieu On Sun, May 30, 2010 at 01:57, mdipierro wrote: > I need to try this. there is a potential

[web2py] Re: checkboxes and radio widget failed with multiple validators

2010-06-03 Thread Mathieu Clabaut
Hello, Is there any interest in this problem ? Is there any chance a correction may be integrated into trunk ? -Mathieu On Thu, May 27, 2010 at 20:20, Mathieu Clabaut wrote: > Reported as http://code.google.com/p/web2py/issues/detail?id=80 > > Hello, > > I've met a pro

Re: [web2py] Re: checkboxes and radio widget failed with multiple validators

2010-06-04 Thread Mathieu Clabaut
ust already > mention all the allowed values in the IS_IN_SET() and usually empty > value in not inside. > > On Jun4, 1:36am, Mathieu Clabaut wrote: > > Hello, > > > > Is there any interest in this problem ? Is there any chance a correction > may > > be integrated in

Re: [web2py] Re: checkboxes and radio widget failed with multiple validators

2010-06-17 Thread Mathieu Clabaut
Any news on this problem ? (not that I'm in a hurry, but I'd like to be able to use that feature in a not so far future) -Mathieu On Thu, Jun 3, 2010 at 21:18, mdipierro wrote: > I will look into this hopefully tomorrow. > > On Jun 3, 12:36 pm, Mathieu Clabaut wrote: &g

Re: [web2py] Re: OAuth and Web2Py Tutorial

2010-06-22 Thread Mathieu Clabaut
Nice.. Thank you for sharing! On Mon, Jun 21, 2010 at 18:45, mdipierro wrote: > +1 > > On Jun 21, 10:44 am, Doug Warren wrote: > > I wrote a small tutorial on how to use OAuth with web2py by linking a > > session with a Twitter account. A future update will include > > embedding the access tok

Re: [web2py] Using username field instead of email field in Auth

2010-06-25 Thread Mathieu Clabaut
In your model (db.py) set at the beginning : from gluon.tools import * auth=Auth(globals(),db) auth.define_tables(username=True) Best regards, -Mathieu On Fri, Jun 25, 2010 at 14:03, Jacques van der Merwe wrote: > Greetings all, > > I would like to use an alternative authentication like LDAP f

[web2py] Exception on unknown header when sending mail

2010-07-07 Thread Mathieu Clabaut
Hello, I've got an exception on encode_header in tools.py. This patch seems to correct the problem. Best regards, -Mathieu diff -r a75ecb072248 gluon/tools.py --- a/gluon/tools.py Tue Jul 06 19:22:00 2010 -0500 +++ b/gluon/tools.py Wed Jul 07 18:19:27 2010 +0200 @@ -283,7 +283,7 @@ d

Re: [web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-08 Thread Mathieu Clabaut
I guess you should update web2py from the development repository (on google code) -Mathieu On Thu, Jul 8, 2010 at 16:40, Scott wrote: > I just checked out the cube2py repository from code.google.com and am > attempting to run it on the Source branch of web2py 1.79.2 (2010-06-08 > 22:45:26). At

Re: [web2py] Best way for a config file

2010-07-13 Thread Mathieu Clabaut
I use http://web2pyslices.com/main/slices/take_slice/88 Which allows the admin to change config on the fly by updating the database values. On Tue, Jul 13, 2010 at 09:06, Narendran wrote: > Hi, > I have been trying to work without a config file, but it is a little > difficult to work across

Re: [web2py] Strange radio button behavior

2010-07-27 Thread Mathieu Clabaut
Hi Massimo, A colleague of mine tell me he sent you a patch to include a horizontal radio buttons in gluon (similar to the existing horizontal checkboxes). Has the patch a chance to make its way to the trunk ? Best regards, -Mathieu On Tue, Jul 27, 2010 at 10:15, Alastair Medford wrote: > I

Re: [web2py] Re: where to put helper functions?

2010-07-27 Thread Mathieu Clabaut
But then note that you have to pass as arguments to your helpers objects that are otherwise directly available in models and controllers, like : db, request, response, T, auth,... -Mathieu On Mon, Jul 26, 2010 at 21:03, Iceberg wrote: > Put your helpers into modules, then use local_import(...).

Re: [web2py] Re: where to put helper functions?

2010-07-27 Thread Mathieu Clabaut
On Tue, Jul 27, 2010 at 18:30, Jonathan Lundell wrote: > On Jul 27, 2010, at 9:26 AM, Mathieu Clabaut wrote: > > But then note that you have to pass as arguments to your helpers objects > that are otherwise directly available in models and controllers, like : db, > request, re

Re: [web2py] Re: Strange radio button behavior

2010-07-28 Thread Mathieu Clabaut
)) > > +opts.append(TR(tds)) > > + > > if opts: > > opts[-1][0][0]['hideerror'] = False > > return TABLE(*opts, **attr) > > @@ -1199,3 +1214,4 @@ > > components.append(TBODY(*tbody)) > > > > form_f

Re: [web2py] Re: Strange behavior for Storage object

2010-04-11 Thread Mathieu Clabaut
On Sun, Apr 11, 2010 at 16:31, mdipierro wrote: > I think the problem is is that request.vars.file is a cgi.FieldStorage > object and it lacks a __zero__ method therefore it incorrectly > evaluates to false even if the object is present. This is an error in > the book. Ah yes... I've looked in

[web2py] Re: Trouble starting web2py

2010-04-12 Thread Mathieu Clabaut
I didn't try it, but perhaps the use of virtualenv should be considered : http://pypi.python.org/pypi/virtualenv (http://www.doughellmann.com/docs/virtualenvwrapper/ may be considered too)... -Mathieu On Sun, Apr 11, 2010 at 20:45, muybay wrote: > Yikes, I was a little to quick on the send but

Re: [web2py] Re: prepolutating a SQLFORM.factory form

2010-04-16 Thread Mathieu Clabaut
I have used form.element to prepopulate a form : form = crud.create(db.data, onaccept=give_update_permission) # add current date as default form form.element('input', _name="date")['_value'] = > time.strftime("%Y-%m-%d") At this point, form is still not a string but an HTML Helper

Re: [web2py] Re: Trouble starting web2py

2010-04-19 Thread Mathieu Clabaut
I use virtualenvwrapper http://www.doughellmann.com/docs/virtualenvwrapper/ which seems to work like a charm. export WORKON_HOME=$HOME/.virtualenvs source /usr/bin/virtualenvwrapper.sh # put those 2 lines in your $HOME/.bashrc mkvirtualenv web2py >From here, you just have to type : workon web2py

Re: [web2py] Re: Trouble starting web2py

2010-04-21 Thread Mathieu Clabaut
n2.5/site-packages/PIL', '/usr/lib/python2.5/ > site-packages/gst-0.10', '/usr/lib/pymodules/python2.5/gtk-2.0', '/usr/ > lib/python2.5/site-packages/wx-2.6-gtk2-unicode'] > > > On ápr. 19, 13:30, Mathieu Clabaut wrote: > > I use virtualenvwrap

Re: [web2py] Re: Application logging

2010-04-29 Thread Mathieu Clabaut
The use of python logging modules inside web2py will ideally allow people to use syslog or any other logging back end provided by this module. It would be very nice if web2py integration would allow logging for GAE (into database or whatever mechanism is provided by GAE..). Perhaps we should have a

Re: [web2py] Re: defaulting a value of a column in table with other columns of table

2010-05-03 Thread Mathieu Clabaut
Hello, Mdipierro wrote "calculate=lambda..." not "default=lambda" (But I didn't try it even if I'm interested in the trick !) -Mathieu On Mon, May 3, 2010 at 14:29, Rohan wrote: > Hi Mdipierro, > > Could you please elaborate,I tried > > Field('access_key', 'string', readable=False,

Re: [web2py] small bug in the online web2py Book

2010-08-16 Thread Mathieu Clabaut
Perhaps the use of doctest in documentation may allow somehow to test the doc See : http://www.doughellmann.com/PyMOTW/doctest/#External_Documentation On Mon, Aug 16, 2010 at 15:06, selecta wrote: > http://web2py.com/book/default/chapter/04?search=local_import > 1. mymodule = local_impo

[web2py] EditableGrid

2010-09-10 Thread Mathieu Clabaut
Hello, It may be of interest to some of you : http://www.webismymind.be/editablegrid/ -Mathieu

Re: [web2py] Re: EditableGrid

2010-09-10 Thread Mathieu Clabaut
Alas not, I didn't try it with web2py..; -Mathieu On Fri, Sep 10, 2010 at 10:08, ceriox wrote: > cute, > u can post an easy working web2py example? > > > On 10 Set, 09:02, Mathieu Clabaut wrote: > > Hello, > > > > It may be of interest to som

[web2py] [Solved] "file inaccessible" on GAE for error handlers

2016-05-24 Thread Mathieu Clabaut
Hello, I had some difficulties to set up some "routes_onerror" files on GAE. It worked perfectly on a local instance, but each time an HTTP exception was raised, GAE issued a "file inaccessible" error (status 500). The problem comes from the fact that static files are treated specially on GAE a

[web2py] Re: [Solved] "file inaccessible" on GAE for error handlers

2016-05-24 Thread Mathieu Clabaut
If anybody knows how to allow access of only a part of the static folder to the application on GAE, I'm interested to hear about it. Best regards, -Mathieu On Tue, May 24, 2016 at 12:38 PM Mathieu Clabaut wrote: > Hello, > > I had some difficulties to set up some "routes_onerr

Re: [web2py] Re: static asset management

2016-08-22 Thread Mathieu Clabaut
Try : response.static_version_urls = True in your model. I think it is not documented in the book, but there is a bug report about it. On Mon, Aug 22, 2016 at 6:46 AM T.R.Rajkumar wrote: > I hope the question is not clear. The purpose is to reduce band with by > making the browser store the s

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-13 Thread Mathieu Clabaut
I also do, but didn't try further than 2.14.6 + some git revisions… And it makes me realized I still have no test for password reset… I'll add some ! For now I have quite bad performances on GAE (3 requests / seconds for one instance when facing 20 simultaneous simulated users → leads to more tha

Re: [web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-14 Thread Mathieu Clabaut
t scaling options you have set in the app.yaml. > > > On Tuesday, September 13, 2016 at 11:57:11 AM UTC-7, Mathieu Clabaut wrote: > >> I also do, but didn't try further than 2.14.6 + some git revisions… >> >> And it makes me realized I still have no test for passwo

Re: [web2py] Login page - Menu bar does not work

2016-09-22 Thread Mathieu Clabaut
The last time it happens to me (menu did not open on click), I had an error in my javascript… Look at the navigator javascript console… On Thu, Sep 22, 2016 at 1:18 AM SR wrote: > When I am in the Login page, the menu items does not work. > Any idea why it is not working? > Thanks. > > -- > Reso

Re: [web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2016-09-23 Thread Mathieu Clabaut
I had a probably similar problem that I solved by patching pydal. See https://github.com/web2py/pydal/issues/403 and https://github.com/web2py/pydal/pull/404. However, as mention in the issue thread, the change shall be done in w

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-06 Thread Mathieu Clabaut
Hello, I'm pondering to volunteer as a mentor for a pytest web2py framework, but I'm a bit afraid of my low level of availability. What I a have in mind is a pytest plugin to allow three level of testing : 1. unit testing (with or without view rendering), 2. fast WebClient level testing (withou

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-07 Thread Mathieu Clabaut
hree layers .. Are your project in github? > > > Em sexta-feira, 7 de outubro de 2016 03:46:17 UTC-3, Mathieu Clabaut > escreveu: > > Hello, > > I'm pondering to volunteer as a mentor for a pytest web2py framework, but > I'm a bit afraid of my low level of availa

[web2py] session.forget and webclient

2016-10-09 Thread Mathieu Clabaut
Hello, I'm looking for a deeper understanding on how session and `session.forget` works. More precisely, I was wondering if the authentication would survive a `session.forget` call. So, I add `session.forget` at the beginning of the default/index controller, and everything seems to go fine when

Re: [web2py] Re: session.forget and webclient

2016-10-09 Thread Mathieu Clabaut
a post to the /user/register > action, but because you have session.forget() in the index function, no > session is created at all. What happens if you try a test that visits at > least one action (without session.forget) before attempting to > register/login? > > Anthony > > >

Re: [web2py] Re: session.forget and webclient

2016-10-10 Thread Mathieu Clabaut
Hello Antony, The simplest failing test I run is the one from gluon/tests/test_web.py in TestWeb.testRegisterAndLogin from commit e6a3081b42ecd58441419930266baf286561c4c7. Where the default controller has only a line added to forget session and reads : def index(): session.forget(response)

Re: [web2py] Re: session.forget and webclient

2016-10-11 Thread Mathieu Clabaut
gt; > > On Monday, October 10, 2016 at 3:54:54 PM UTC-4, Mathieu Clabaut wrote: > > Hello Antony, > > The simplest failing test I run is the one from gluon/tests/test_web.py in > TestWeb.testRegisterAndLogin from commit > e6a3081b42ecd58441419930266baf286561c4c7. > > W

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-12 Thread Mathieu Clabaut
, Oct 12, 2016 at 5:16 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > If you need any help with the proposal, let me know. > > > On Friday, 7 October 2016 01:46:17 UTC-5, Mathieu Clabaut wrote: > > Hello, > > I'm pondering to volunteer as a mentor for

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-13 Thread Mathieu Clabaut
, …), - writing more web2py default tests, Hope it still may be of some use. Best regards, -Mathieu On Fri, Oct 7, 2016 at 2:28 PM Mathieu Clabaut wrote: > Not for now. > My intention was to put it on github, but it needs to be separated from my > actual application code which I can

[web2py] Made with web2py

2017-01-05 Thread Mathieu Clabaut
Hello everybody, This is just to announce a new web2py powered website (my first one) going live : http://bback.me This site is in beta test for now, but you can ask for taking part in the beta test phase at https://bback.me/user_/request_access. Note that the English version has not been proofr

[web2py] Re: Made with web2py

2017-01-06 Thread Mathieu Clabaut
gt; Great project.. > > Can you explain the pytest plugin project? > > It is a plugin or a package to test web2py applications? > > I could like to contribute with more knowledgement of project > > Em quinta-feira, 5 de janeiro de 2017 18:32:17 UTC-3, Mathieu Clabaut > escreve

[web2py] Re: Made with web2py

2017-01-07 Thread Mathieu Clabaut
I host it on GAE. I'm a bit disappointed about performances, but I wanted to minimise the administration burden with respect to scaling... There was indeed some intermittent hickups with the SSL certificate, but I still haven't diagnose the problem (it wasn't reproducible on chrome or WebKit on my

Re: [web2py] If I where to use a headless testing and CI what would ou recomend?

2017-01-29 Thread Mathieu Clabaut
I'm using py.test with splinter (phantomjs & chrome), xvfbwrapper, but I would not call it a fast way to go. I'm working (very little by little) on a py.test plugin to help starting UI (and unit) testing faster : https://github.com/matclab/pytest-web2py.wip But there is still a long way to go… On

[web2py] GAE and date query, where is the limit

2015-12-13 Thread Mathieu Clabaut
Hello, the doc says that GAE does not support complex datetime query… Could someone tell me if the following is expected to fail (where end_date is a datetime): db((db.auth_user.end_date.year() == end.year) & (db.auth_user.end_date.month() == end.month) & (db.auth_user.end_date.day()

[web2py] Re: GAE and date query, where is the limit

2015-12-13 Thread Mathieu Clabaut
As a response to myself, with a date field, db((db.auth_user.end_date == end)).select() is working. I nonetheless would appreciate to know what is the expected status of the former query with datetime field on GAE. -Mathieu. On Sun, Dec 13, 2015 at 3:58 PM Mathieu Clabaut wrote: > He

Re: [web2py] How do I upload web2py project on google app engine? I can't get any resource to learn this.

2015-12-14 Thread Mathieu Clabaut
/usr/bin/appcfg.py --oauth2 update web2py/ On Mon, Dec 14, 2015 at 8:33 PM RAGHIB R wrote: > Also, the youtube video went out of my mind as I have never used MAC. > Please tell it with context with windows or ubuntu. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Document

Re: [web2py] Re: Payment gateway

2015-12-20 Thread Mathieu Clabaut
I have,'t seen anything up to date for paypal… But there is a working base for stripe on gluon/contrib/stripe.py On Sun, Dec 20, 2015 at 8:55 PM Ron Chatterjee wrote: > Is there a .w2p example with forms and payment processing to look at? Not > sure if slice is updated for paypal etc. > > > On

Re: [web2py] web2py and authomatic (OAtuh 1 & 2)

2015-12-29 Thread Mathieu Clabaut
Nice ! I'm really interested and ready to give some time in helping for tests. -Mathieu On Tue, Dec 29, 2015 at 10:48 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I made a PR for authomatic that include an adapter and example to use > authomatic with web2py: > > https://github.c

Re: [web2py] Re: Auth extra fields

2016-01-06 Thread Mathieu Clabaut
Be careful that when you update extra fields, it is your responsibility to update auth.user and session.auth.user accordingly... Le mer. 6 janv. 2016 03:42, Anthony a écrit : > I assume you want auth.user.store. > > > Anthony > > > On Tuesday, January 5, 2016 at 5:24:19 PM UTC-5, greenpoise wrot

Re: [web2py] Re: Can we use a web2py app on Android mobile?

2016-01-13 Thread Mathieu Clabaut
A bit out of topic, but also note that with the help of the nice termux android app, you can develop and run the web2py server on your android… Quite nice when you're far from a real computer… -Mathieu 2016-01-12 16:39 GMT+01:00 eric cuver : > there are several solution all depends on your appli

Re: [web2py] Re: UnicodeDecodeError "'utf-8' codec can't decode..." when inserting a blob in database (python 3.6.3)

2018-04-02 Thread Mathieu Clabaut
Alexandre, just go to : https://github.com/web2py/web2py/issues/new And fill in the issue withe the information given in your mail. Le ven. 30 mars 2018 à 16:50, a écrit : > Sure! Let me see how to do that and I will. Thank you > > > Le mercredi 28 mars 2018 18:49:08 UTC+2, Massimo Di Pierro a

Re: [web2py] Re: Using Stripe's Checkout w/ web2py

2017-03-23 Thread Mathieu Clabaut
I have a working stripe integration in web2py which is closely based to what the gluon/contrib/stripe.py provides. I'll try to provide more information this evening. On Thu, Mar 23, 2017 at 2:47 AM Dave S wrote: > > > On Wednesday, March 22, 2017 at 6:42:42 PM UTC-7, Dave S wrote: > > > > On Wed

Re: [web2py] Re: Using Stripe's Checkout w/ web2py

2017-03-25 Thread Mathieu Clabaut
I use the attached modules/stripeform.py, which is mostly based upon the contrib/stripe.py It imports the python stripe module : https://github.com/stripe/stripe-python.git I use it like : @auth.requires_login(otherwise=lambda: helper.flash( T("You need to log in to extend your subscription")

Re: [web2py] Re: Using Stripe's Checkout w/ web2py

2017-03-28 Thread Mathieu Clabaut
I have no easy solution to your problem. I guess that the response is empty and lead to an invalid json when trying to decode it. Do you see the request in your stripe dashboard ? You could also try to debug down to the call of stripe.charge() to see internally what is received or spy what is excha

Re: [web2py] Sites Powered by web2py

2017-04-03 Thread Mathieu Clabaut
Yep, Same problem here. I was unable to submit one ans stumble upon an exception. On Sun, Apr 2, 2017 at 10:58 PM Alex wrote: > The section for "Sites Powered by web2py" does not look very promising and > also seems outdated. Most pages don't have a screenshot and some of them > are not even wo

Re: [web2py] Language file on GAE

2017-05-15 Thread Mathieu Clabaut
Yes. When manually visitting the website locally, the files are updated ans then will be uploaded to GAE when deploying. On Mon, May 15, 2017 at 4:53 PM Karoly Kantor wrote: > I understand web2py would generate my language file (e.g. it.py) in > runtime, except on GAE. Now, I am on GAE. > > What

Re: [web2py] Language file on GAE

2017-05-16 Thread Mathieu Clabaut
Couldn't yo run your application in a normal python environment (with a sqlite memory db for example) ? I'm doing that for quick testing phases, before testing in devapp server and in full GAe environment. Thus I'm able to produce the updated language files. Otherwise, I think there is a script or

Re: [web2py] Architectural advice needed: background report generation (on GAE)

2017-06-10 Thread Mathieu Clabaut
I think I would use a GAE task queue (it allows for longer run time and does not take process power from actual page rendering). The queue controller would generate the report and send a mail or change a database value upon completion. from google.appengine.api import taskqueue def action():

Re: [web2py] Re: New site on web2py

2017-06-17 Thread Mathieu Clabaut
Looks nice, and the concept is interesting. FYI, the next button didn't work here on Firefox on android. What's your hosting model ? Le sam. 17 juin 2017 à 11:35, Ian Ryder a écrit : > Thanks Tim, much appreciated - it's quite neat as you can flick from > device to the other really easily. Assu

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-20 Thread Mathieu Clabaut
You may have a look at my work in progress pytest plugin for web2py : https://github.com/matclab/pytest-web2py.wip There are some example (with registration in https://github.com/matclab/pytest-web2py.wip/blob/master/tests/unit-tests/test_default.py I'm really sorry to not be able to put more tim

Re: [web2py] Web2py + PhoneGap + Cordova (Mobile Developer)

2017-09-02 Thread Mathieu Clabaut
Hello, Thanks for sharing ! A minimal README would however be welcomed to explain the goal of the project. Also, you would certainly get more user traction if you wrote the code in English. Best regard. On Sat, Sep 2, 2017 at 8:03 AM Junior Phanter wrote: > Hi guys... > I'm starting a project

Re: {Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-09-12 Thread Mathieu Clabaut
at 4:50 PM António Ramos wrote: > @Mathieu Clabaut > I see a lot of space for a Testing tutorial with web2py... > > Please sit down and do it :) > I will buy your book/video especially because there is nothing yet about > it... > > Regards > António > > > 2017-