[web2py] Re: Navbar auth

2013-09-01 Thread Johan Englund
You can add some logic in the layout.html, if I understand correctly you want to disable the navbar in some views? {{if not 'navbar_disable' in globals():}} ul id=navbar class=nav pull-right{{='auth' in globals() and auth.navbar(mode=dropdown) or ''}}/ul {{pass}} and then pass navbar_disable

[web2py] Re: Logged in dropdown links

2013-08-30 Thread Johan Englund
Yes, write your own navbar function and use that instead, or take a look at modify navbar() in gluon/tools.py (You will need source code for that) Also I did a rewrite of navbar in the repo, should make it much easier to write your own navbar imo. On Wednesday, August 28, 2013 8:19:28 PM

[web2py] Re: reCaptcha in registration form with custom layout

2013-02-12 Thread Johan Börjesson
this problem? On Monday, 11 February 2013 09:13:15 UTC-6, Johan Börjesson wrote: I had the same problem a while ago. The solution is described in the book: http://web2py.com/books/default/chapter/29/09#CAPTCHA-and-reCAPTCHA Instead of {{=form.custom.widget.recaptcha}} use {{=FORM

[web2py] Re: reCaptcha in registration form with custom layout

2013-02-11 Thread Johan Börjesson
I had the same problem a while ago. The solution is described in the book: http://web2py.com/books/default/chapter/29/09#CAPTCHA-and-reCAPTCHA Instead of {{=form.custom.widget.recaptcha}} use {{=FORM(Recaptcha(request,PUBLIC_KEY, PRIVATE_KEY, options=theme:'white' ))}} -- --- You

[web2py] Multiple submit buttons using selectable in SQLFORM.grid

2012-09-04 Thread Johan
I am using selectable in SQLFORM.grid to create checkboxes and a submit button, it's working fine. But I would like to have two submit buttons where each button calls a different function, depending on if the checkboxes is checked or not. Is that possible? --

[web2py] Re: web2py recipe book

2012-03-15 Thread Johan
Hi, The ebook is now available and can be downloaded. Johan On Monday, March 12, 2012 8:18:43 AM UTC+1, Massimo Di Pierro wrote: The web2py recipes book is finally out: http://www.packtpub.com/web2py-application-development-recipes-to-master-python-web-framework-cookbook/book

[web2py] Re: {{=response.toolbar()}}

2011-05-31 Thread Johan
the function')) response.write(' ', escape=False) response.write(A(request.function+'()',_href='#')) response.write(' ', escape=False) response.write(T('located in the file')) Johan On May 30, 7:54 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: We can make this better

[web2py] GAE deployment routing to welcome app, not my own app.

2011-04-27 Thread Johan
/default/index I searched in chapter 11 and in the group mails, but can't find any reference to what to change. Johan See my current app.yaml settings: application: kiekjs version: 1 api_version: 1 runtime: python default_expiration: 24h derived_file_type: - python_precompiled handlers

[web2py] Re: GAE deployment routing to welcome app, not my own app.

2011-04-27 Thread Johan
Thanks! Used router and changed default app to kiekjs. On Apr 27, 9:33 pm, Jonathan Lundell jlund...@pobox.com wrote: On Apr 27, 2011, at 12:27 PM, Johan wrote: Hi, I'm trying to deploy my app on GAE, but I don't know how to configure the app.yaml so that the request

[web2py] book chapter 6.17.6 queries not understanding the binary operators results

2010-09-07 Thread Johan
In book chapter 6.17.6 I expect different return in the following example: rows = db((db.person.name=='Alex') (db.person.id3)).select() for row in rows: print row.id, row.name 4 Alex Why does it return 4 Alex ? I expect none, as there is no record with id3 and name == Alex. I also don't

[web2py] Re: My editor ...

2010-08-23 Thread Johan
Is it possible to post a free version of this _as it is_ ? Some of us my find it very useful. Or even, a version without the wysiwyg, if that's the problem.

[web2py] web2py rocket error on vps

2010-07-31 Thread Johan
gluon.widget.start(cron=True) File /home/johan/web2py/gluon/widget.py, line 875, in start server.start() File /home/johan/web2py/gluon/main.py, line 683, in start self.server.start() File /home/johan/web2py/gluon/rocket.py, line 208, in start self._threadpool.start() File /home/johan

[web2py] Re: web2py rocket error on vps

2010-07-31 Thread Johan
I'm using python 2.6.5 On 31 iul., 11:00, mdipierro mdipie...@cs.depaul.edu wrote: which python version? On Jul 30, 11:41 am, Johan jo...@johan.ro wrote: Hello. I'm new here. I just bought a vps at intovps.com , I installed archlinux on it with everything that I'm used to work

[web2py] Re: web2py rocket error on vps

2010-07-31 Thread Johan
' ignored It doesn't seem to affect web2py, but I'm not sure that it won't cause a problem in the future. It may be related to the problem above. On 31 iul., 11:27, mdipierro mdipie...@cs.depaul.edu wrote: Can you try with the -N option? On Jul 31, 3:20 am, Johan jo...@johan.ro wrote: I'm