[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():}} {{='auth' in globals() and auth.navbar(mode="dropdown") or ''}} {{pass}} and then pass navbar_disable in the controller. return dict(me

[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 UTC+2

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

2013-02-12 Thread Johan Börjesson
t; Would that work? Any suggestion for fixing 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/book

[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'" ))}} -- ---

[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-framewor

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

2011-05-30 Thread Johan
esponse.write(A(request.env.path_info,_href=request.env.path_info)) response.write('\n ', escape=False) response.write(T('Which called the function')) response.write(' ', escape=False) response.write(A(request.function+'()',_href='#'))

[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 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

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

2011-04-27 Thread Johan
081/kiekjs/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: - pyt

[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.id>3)).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 id>3 and name == Alex. I also d

[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] Re: web2py rocket error on vps

2010-07-31 Thread Johan
#x27;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 wrote: > Can you try with the -N option? > > On Jul 31, 3:20 am, Johan wrote: > > > > > I'm using python 2.6.5 > > > On 3

[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 wrote: > which python version? > > On Jul 30, 11:41 am, Johan wrote: > > > > > Hello. I'm new here. > > I just bought a vps at intovps.com , I installed archlinux on it with > > everything that I&#

[web2py] web2py rocket error on vps

2010-07-31 Thread Johan
l last): File "web2py.py", line 20, in 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/web2