[web2py] Re: API changed ?

2017-03-12 Thread Olivier Choquet
Hi I believe I do. Thanks Le samedi 25 février 2017 05:19:00 UTC+1, Anthony a écrit : > > Are you referring to this: http://web2py.readthedocs.io/en/latest/ > > On Friday, February 24, 2017 at 11:50:56 AM UTC-5, Olivier Choquet wrote: >> >> Hi everyone. >> >>

[web2py] API changed ?

2017-02-24 Thread Olivier Choquet
Hi everyone. My question might look a little bit weird but in the (very good) tutorial videos of web2py a link to the API is shown. It goes to quite detailled API pages with the regular look of API pages... If I follow the link now provided within the Web2Py site it goes to the chapter 4 of

[web2py] GRID export broken for CSV but not for JSON

2016-02-12 Thread olivier hubert
e, _href=URL('view_task', args=row.id)) If I remove the previous row the export function work for all format but I lose the cliquable link on the task title. I checked with the Notifier application available on GitHub https://github.com/mdipierro/web2py-appliances/tree/master/Notifier and I s

[web2py] Re: Multi language site

2015-03-21 Thread olivier hubert
# set the language if 'userlanguage' in request.cookies and not (request.cookies['userlanguage'] is None): T.force(request.cookies['userlanguage'].value) I have now a language selector compatible with all browser and especially IE9... Et encore merci pour ton aide :) Olivier Le vendredi 20 mars

[web2py] Multi language site

2015-03-18 Thread olivier hubert
I try to made a simple multi language site with routes, but I can't. The routing are correct because I can use the url like this http://127.0.0.1:8000/*testme*/en/ and *translate* application are serve. But translate application is always in french! translate application is a copy of welcome

[web2py] where to find syntax smart_query

2015-01-18 Thread olivier hubert
I use smart_query in my project but I can't found a complete supported syntax in the documentation. Have you more info about that or a reference of the syntax analyser in the web2py code ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: get the iteration number from a scheduled task

2014-12-28 Thread olivier hubert
Thanks for the help, the solution is perfect for me. Le samedi 27 décembre 2014 18:16:16 UTC+1, Niphlod a écrit : uhm... there's not a stable API to do it, but you can access the relative scheduler_task record via W2P_TASK. From web2py 2.4.1, any task processed by the scheduler can

[web2py] get the iteration number from a scheduled task

2014-12-27 Thread olivier hubert
Could you tell me the way to get the iteration number inside a scheduled task? I want to perform a different treatment if it's the first run of my tasks. ex: iteration 1 : treatment A iteration 2 : treatment B iteration 3 : treatment B iteration 4 : treatment B ... -- Resources: -

[web2py] web2py https and Codeanywhere

2014-10-06 Thread olivier hubert
Ave you already start web2py in https mode in Codeanywhere devbox ? I apply this method to generate certificate and apply the adequate command lines to activate https but my server don't send any pages.

[web2py] Re: PythonAnywhere linking with domain at Godaddy

2014-10-06 Thread olivier hubert
Or you can use Cloudflare and take advantage of DDOS protection and other cool stuff freely. Le lundi 6 octobre 2014 12:27:41 UTC+2, Harry Percival a écrit : You need to use a CNAME, not a redirect. There's more info here: https://www.pythonanywhere.com/wiki/OwnDomains On Friday, 3

[web2py] git push error

2014-10-01 Thread olivier hubert
If I use the function git push from the admin console I get an error Traceback 1. 2. 3. 4. 5. 6. Traceback (most recent call last): File /home/olituks/web2py/gluon/restricted.py, line 224, in restricted exec ccode in environment File

[web2py] pending registration alert for a new user

2014-09-20 Thread olivier hubert
how I can detect in a controllers, if a new user pending registration before to use my app? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received

[web2py] url rewriting and url mapping

2014-09-17 Thread olivier hubert
My application is a clone of Reddit clone app from Massimo. This is the url I use to show all the posts in a category. http://127.0.0.1:8000/list_posts_by_votes/16 16 = category id I would like this url in place of. http://127.0.0.1:8000/my_category_name It's the same to show a post

[web2py] Re: show multiple buttons in SQLFORM

2014-09-17 Thread olivier hubert
, olivier hubert a écrit : I have a simple FORM with a submit button and I want to add a second button to open a new window with Markmin info. I declare my form like that form = SQLFORM(db.comm, buttons=['submit', A(Markmin syntax,_class='btn',_href=http://www.web2py.com/init/static

[web2py] Re: Web2py ajax call and Angularjs

2014-09-17 Thread olivier hubert
Hi, I don't know angular to, but I found this documentation with a ajax sample at the end. http://slides.com/amberdoctor/angularjs_and_web2py Le mardi 16 septembre 2014 20:39:02 UTC+2, piero crisci a écrit : I am testing angularjs with web2py. In my web2py i have some ajax call that store the

[web2py] Re: Reddit clone - make a menu by a query error

2014-09-14 Thread olivier hubert
:) Le samedi 13 septembre 2014 16:23:35 UTC+2, Niphlod a écrit : any db.category call must go after db.define_table('category'). Have you checked it ? On Friday, September 12, 2014 8:05:27 AM UTC+2, olivier hubert wrote: I try implement Reddit clone from massimo video (2013 edition), but I

[web2py] MARKMIN image margin

2014-09-14 Thread olivier hubert
Is it possible to add a margin with a MARKMIN syntax to a image ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] show multiple buttons in SQLFORM

2014-09-14 Thread olivier hubert
I have a simple FORM with a submit button and I want to add a second button to open a new window with Markmin info. I declare my form like that form = SQLFORM(db.comm, buttons=['submit', A(Markmin syntax,_class='btn',_href=http://www.web2py.com/init/static/markmin.html;,

[web2py] Reddit clone - make a menu by a query error

2014-09-12 Thread olivier hubert
I try implement Reddit clone from massimo video (2013 edition), but I have a strange problem with the dynamic menu construction part. My menu.py (I remove all comments): response.logo = A(B('web',SPAN(2),'py'),XML('trade;nbsp;'), _class=brand,_href=http://www.web2py.com/;)

[web2py] Re: extra_fields can't showed in auth_user db.

2014-09-08 Thread olivier hubert
UTC-5, olivier hubert wrote: I use the web2py version 2.9.8. I create a simple new app test_auth In Models I add my_tables.py with the contents below. # -*- coding: utf-8 -*- #Add authentication to the app. from gluon.tools import Auth auth = Auth(db, hmac_key=Auth.get_or_create_key

[web2py] Re: extra_fields can't showed in auth_user db.

2014-09-08 Thread olivier hubert
I find my problem. I double define auth.define_tables. once in db.py and second in my_tables.py. Only once definition can be declared. Le dimanche 7 septembre 2014 18:14:27 UTC+2, olivier hubert a écrit : I Massimo, thanks for your quick response. Could you confirm the extra fields

[web2py] extra_fields can't showed in auth_user db.

2014-09-07 Thread olivier hubert
I use the web2py version 2.9.8. I create a simple new app test_auth In Models I add my_tables.py with the contents below. # -*- coding: utf-8 -*- #Add authentication to the app. from gluon.tools import Auth auth = Auth(db, hmac_key=Auth.get_or_create_key()) *#Add some fields in auth_user

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-07 Thread olivier hubert
I encounter exactly the same issue if you try to open the db administration page in a app. Le dimanche 7 septembre 2014 01:19:31 UTC+2, Luciano Laporta Podazza a écrit : Same issue :(, as mentioned before, tried testing default apps and my app and it redirects to admin page. On Sat, Sep

[web2py] Re: Removing Foreign Key constraint?

2013-07-16 Thread Olivier Johner
Just a little modification and all is right. Le lundi 15 juillet 2013 16:21:13 UTC+2, Massimo Di Pierro a écrit : I made some simplification to your patch. Please check it in trunk. Thank you! On Monday, 15 July 2013 03:51:39 UTC-5, Olivier Johner wrote: I propose this patch Le

[web2py] Re: Removing Foreign Key constraint?

2013-07-15 Thread Olivier Johner
I propose this patch Le vendredi 12 juillet 2013 14:08:21 UTC+2, Olivier Johner a écrit : It's ok for the foreign key but when you archive records in another database, all fields comes in big int and raise a value error for string fields ValueError: invalid literal for long() with base

[web2py] Re: Removing Foreign Key constraint?

2013-07-12 Thread Olivier Johner
It's ok for the foreign key but when you archive records in another database, all fields comes in big int and raise a value error for string fields ValueError: invalid literal for long() with base 10: 'v6 box spearmint' Le dimanche 16 juin 2013 10:28:26 UTC+2, Massimo Di Pierro a écrit :

[web2py] admin access under gunicorn on Heroku

2013-05-02 Thread olivier
! Olivier -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

[web2py] update_or_insert doesn't always return the corresponding row id

2011-12-30 Thread olivier
of a long running process). I would rather have the method to always output the id of the updated/ inserted row... Or is there any use-case you would like to discriminate between the fact you inserted or update a row? What do you think? -Olivier From dal.py (I added the proposed modification

[web2py] SQLFORM.smartgrid | linked_tables with

2011-11-10 Thread olivier
, but I was wondering if there was a quicker way to achieve this. I can wait for the 4th version of the book... I had to leave developing with web2py for a few months and I can no more catch up with all the amazing new features! ;-) Many thanks, Olivier

[web2py] webfaction python2.5 - python2.6

2011-05-06 Thread olivier
hi there, I have an old installation of web2py on webfaction. It is using mod_wsgi 2.5 and Python 2.5.4 How can I a upgrade to python 2.6? (I need it for some modules I plan to use) Should I start a new installation from scratch or is there a simpler way to migrate to mod_wsgi 3.3 and Python

[web2py] Re: can web2py internal webserver handle serveral requests in parallel?

2011-03-25 Thread olivier
and db connections are not locked. Thank everyone again for all the answers and insight! Lesson of the day: don't take Google's word for granted when saying their API handles 4 requests concurrently... :-( On Mar 24, 4:59 pm, John Heenan johnmhee...@gmail.com wrote: On Mar 22, 7:37 am, olivier

[web2py] Re: can web2py internal webserver handle serveral requests in parallel?

2011-03-23 Thread olivier
Thanks for the clarification on session behavior. I tried to unlock the session (or to forget it) in the controller but it seems requests from the same user are still handled sequentially. Is it possible to have the same user request two pages at the same time or am I missing something? On Mar

[web2py] Re: can web2py internal webserver handle serveral requests in parallel?

2011-03-22 Thread olivier
thanks for the answer. I will follow your advice! On Mar 22, 6:59 pm, Ross Peoples ross.peop...@gmail.com wrote: To answer simply, yes the embedded Rocket server will handle multiple simultaneous requests. However, if you have long-running processes, they may force Rocket to wait until they

[web2py] can web2py internal webserver handle serveral requests in parallel?

2011-03-21 Thread olivier
I plan to use web2py as a simple desktop app service (using the packaged web2py for windows). Will the web server (I don't know which server ships in the stand alone version) handle several requests in parallel if I use ajax calls to several controller functions? I am wondering if this could be

[web2py] Content-Type for generic.json

2010-11-08 Thread olivier
According to RFC 4617 (http://www.ietf.org/rfc/rfc4627.txt), The MIME media type for JSON text is application/json. Community seems to agree: http://stackoverflow.com/questions/477816/the-right-json-content-type However, in 'generic.json' Content-Type is set to 'text/json'

[web2py:36085] wsgi and http_authorization

2009-11-27 Thread olivier
I am using web2py build-in server for development and basic http auth works fine! However, when pushing the code on my server (on which my provider propose to use wsgi...) it is not working anymore. :-( On the server, I checked the request.env, http_authorization is indeed missing. I confess I

[web2py:31986] Re: Security advice

2009-10-01 Thread olivier
hi mr.freeze, I believe this is not secure The entire purpose of storing hashes of password is to protect against database exploitation. If some part of your db is publicly revealed, it doesn't mean that passwords are revealed (because hash functions are one way functions). In your

[web2py:31899] Re: API for web2py projects

2009-09-30 Thread olivier
thanks for the answer, Massimo. for legacy reason, the password i have in the db are stored as apache passwords (...because those passwords are also used to authenticated user for different services using apache [svn, wiki, etc...]) i therefore developed a custom login method (added to

[web2py:31853] API for web2py projects

2009-09-29 Thread olivier
i would like to setup an authenticated API for my web2py project. how could i use a custom login_methods to authenticate user through basic http authentication? it seems that 'login_bare' doesn't use auth.settings.login_methods? thanks! --~--~-~--~~~---~--~~ You

[web2py:31210] custom auth method

2009-09-17 Thread olivier
For legacy reasons, I will have to use a custom auth method... I need to have a custom function to check password at login time. (basically, I have htpassword-like stored in a field password_http in the auth_user table. I therefore need a custom login function: hash password obtain form the

[web2py:28707] Re: Template syntax for comments

2009-08-15 Thread Olivier
to add a space in between as in } } Web:http://www.openerp.com OK. Thanks for the answer. -- Olivier Developer OpenERP - Tiny sprl Web:http://www.openerp.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users

[web2py:28303] Re: Template syntax for comments

2009-08-10 Thread Olivier
td colspan=10 class=footer\np\nCopyright copy; 2009 -\nPowered by a href=http:// www.web2py.comweb2py/a\n/p\n /td\n /tr\n /table\n/div\n /body\n/html\n',escape=False) ^ SyntaxError: invalid syntax -- Olivier Developer OpenERP

[web2py:27719] Re: Default CRYPT() is unsecure

2009-07-31 Thread olivier
in the length of the salt can also be a parameter (if you really want to play with some trade-off between storage/security, bad idea) i can work on that, if it makes sense to you guys -olivier --~--~-~--~~~---~--~~ You received this message because you