[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Paolo Caruccio
Do you mean to add a new MENU attribute (i.e. 'bootstrap_menu') like 'mobile' and to switch by menu types? I think that's a good option. Il giorno sabato 26 maggio 2012 03:40:26 UTC+2, Massimo Di Pierro ha scritto: We can include this in MENU and eliminate the JS. What do you think? On

[web2py] Questions for an application with a large number of features and a large database.

2012-05-26 Thread Nico de Groot
Hi David, Got Jenkins running on mac and windows with unittests, will send you details later. Nico de Groot

[web2py] Re: Stripe javascript and form

2012-05-26 Thread james c.
Hi Massimo, Thanks for the answere. The documention available was clear to me that the stripe APIs are to be used in the controller. I'm just trying to understand if anyone is using the stripe supplied javascript, with Web2py. Stripe's javascript is for sending the credit card data to stripe

[web2py] Re: compute not working on update

2012-05-26 Thread peter
So def update_images(): rows=db(db.image).select() for row in rows: row.update(file=row.file) db.commit() does work. I wrote (title=row.title) as I was a little loath to write (file=row.file) as I was not sure if this was okay with 'upload' fields. Clearly it is. Thinking

[web2py] java class path

2012-05-26 Thread Marian Siwiak
Hello, I am trying to add java applet to my application. I have problem with pointing the page to proper path. In and old thread I found Massimo's code like: applet code=jalview/bin/JalviewLite.class archive=/{{=request.application}}/static/jalviewApplet.jar mayscript viewastext param

[web2py] Re: cpdb errors

2012-05-26 Thread mart
the first message is expected because of this import: try: from gluon import DAL except ImportError as err: print('gluon path not found') It wants to assume that that gluon is already loaded as part of the web2py environment (or as part of some other environment, like Aptana for

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Niphlod
me too. @Massimo, feel free to use it here's a small variation with mobile parameter: def twitter_menu(menu, level=0, mobile=False): Generates twitter bootstrap's compliant menu lis = [] for li in menu: (text, active, href) = li[:3] sub = len(li) 3 and

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Niphlod
me too. @Massimo: please feel free to use it, edit, ask, etc. here's a small variation with mobile parameter: def twitter_menu(menu, level=0, mobile=False): Generates twitter bootstrap's compliant menu lis = [] for li in menu: (text, active, href) = li[:3]

[web2py] Sending email with localhost / Postfix

2012-05-26 Thread Yarin
I'm trying to send email out of web2py via localhost and Postfix, but everything I try just fails silently. Having the same issue on my Mac OSX and CentOS6 server, each with Postfix installed and able to send emails from the command line. I've played with variations of the following settings:

[web2py] Re: compute not working on update

2012-05-26 Thread Massimo Di Pierro
Can you please open an issue about the compute on update problem? I will try reproduce and fix it. On Saturday, 26 May 2012 07:11:28 UTC-5, peter wrote: So def update_images(): rows=db(db.image).select() for row in rows: row.update(file=row.file) db.commit() does

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Massimo Di Pierro
For now this is in trunk. Your implementation looks good. For me the problem whether we want to do this or not. Most of the conventions implemented in web2py core are web2py own conventions or standard protocol. Bootstrap is a css library. very popular today but will disappear tomorrow as a

[web2py] Re: Sending email with localhost / Postfix

2012-05-26 Thread Massimo Di Pierro
Something is wrong with postfilx configuration. Use a python shell and try the smtplib library directly. I use postfix all the time and nothing has change in those parts of web2py. On Saturday, 26 May 2012 09:24:27 UTC-5, Yarin wrote: I'm trying to send email out of web2py via localhost and

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Paolo Caruccio
Massimo, from my point of view - a simple user - the web2py core must remain tied to its conventions and use standard protocols. As you say, bootstrap twitter is one of the possible choices and then we will do? we will have so many switches as are the web frameworks? For my little experience in

[web2py] Re: Sending email with localhost / Postfix

2012-05-26 Thread Yarin
Got this working on the CentOS server as follows: mail.settings.server = 'localhost:25' mail.settings.sender = 'y...@mail.com' mail.settings.login = None Massimo, please note the book says Set mail.settings.login=False if the SMTP server does not require authentication. This was failing for

Re: [web2py] Re: Sending email with localhost / Postfix

2012-05-26 Thread Jonathan Lundell
On May 26, 2012, at 8:41 AM, Yarin wrote: Got this working on the CentOS server as follows: mail.settings.server = 'localhost:25' mail.settings.sender = 'y...@mail.com' mail.settings.login = None Massimo, please note the book says Set mail.settings.login=False if the SMTP server does

[web2py] Re: Questions for an application with a large number of features and a large database.

2012-05-26 Thread David McKeone
*Massimo and Nico:* Thanks for looking into those things, can't wait! *RAM Cache and DAL?* I've been looking into conditional models and attempting to combine them with the module based system just to see how far I can take it and I've run into a question: Is there any reason I shouldn't

[web2py] Wep2Py Database Tables

2012-05-26 Thread Horus
In the administrative section of your app there are the usual ACL tables. I realise there is a *acl_cas* table along with these tables. I am curious as to what this tables does?

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Niphlod
Until some time ago web2py mantained the burden of it's own template, it's own css, it's own javascript functions based on jquery. I think I started using web2py when it contained only ez.css's classes. Having to be a CSS/JS coder better than all peoples around the world can be hard ;-) Then

[web2py] Re: Wep2Py Database Tables

2012-05-26 Thread Niphlod
it's for Central Authentication Services http://web2py.com/books/default/chapter/29/9#Central-Authentication-Service Il giorno sabato 26 maggio 2012 18:46:26 UTC+2, Horus ha scritto: In the administrative section of your app there are the usual ACL tables. I realise there is a *acl_cas*

[web2py] sqlform.grid html text

2012-05-26 Thread CtrlSoft
hi, how to display in sqlform.grid - viewhtml formated text? i mean: *someText lazy** fox* instead ofbsomeText lazy ifox/i/b

[web2py] Re: Questions for an application with a large number of features and a large database.

2012-05-26 Thread Massimo Di Pierro
You cannot quite do this. Each http request is wrapped in a transaction. Even if the db object stays cached, the connection inside may be closed when the first request ends, unless the transaction logic is overwritten. On Saturday, 26 May 2012 11:45:31 UTC-5, David McKeone wrote: *Massimo and

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Massimo Di Pierro
These no record boostrap and the new menu logic is staying in trunk. The only issue is whether the weird menu structure should be generated by MENU helper or by the JS in layout.html. On Saturday, 26 May 2012 12:33:52 UTC-5, Niphlod wrote: Until some time ago web2py mantained the burden of

[web2py] Re: 4th Edition manual RSS example problems

2012-05-26 Thread Jarrod Wilcox
Massimo Chrome does not serve an RSS page given the manual's example controller logic in the overview chapter, even after the manual's repond is corrected to respond. This is an old error first reported last fall by someone else. This is not a big deal. I still am working through the

[web2py] Re: 4th Edition manual RSS example problems

2012-05-26 Thread Massimo Di Pierro
I am sorry to hear this. I apologize for the typos in the book (that is indeed my fault) but there is nothing wrong with the RSS feed as generated by web2py. And using Django would not make any difference. In fact I think the problem is discussed here in the chrome mailing list

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread LightDot
I actually like having the code in html.py, but I'd vote for keeping this as JS in layout.html. It's simple, it's practical, easily changed, leaves less things to be kept backwards compatible in the web2py itself. The day Bootstrap stops looking so good will come, sooner or later. Another

[web2py] Re: Where do we submit book errata?

2012-05-26 Thread Yarin
In http://web2py.com/books/default/chapter/29/4#Accessing-the-API-from-Python-modules: Global variables instead are defined only once when the model is imported for the first time. Should read when the *module* is imported for the first time On Friday, May 18, 2012 4:34:40 PM UTC-4, Anthony

Re: [web2py] Configuring web2py with nginx - domain error (gaierror: [Errno -2] Name or service not known)

2012-05-26 Thread Carlos
HI, I just saw this error in my server log, just once, with the following entry: ERROR:web2py:Traceback (most recent call last): File /home/www-data/web2py/gluon/main.py, line 401, in wsgibase socket.gethostbyname(http_host)] gaierror: [Errno -2] Name or service not known So

[web2py] Re: recaptcha in LOAD

2012-05-26 Thread Carlos
Hi, I'm using Recaptcha with ajax, and in case it helps I have the following (programmed some time ago but still working): Include this in your layout.html ... script type=text/javascript src= http://www.google.com/recaptcha/api/js/recaptcha_ajax.js;/script Include this somewhere in

[web2py] Re: 4th Edition manual RSS example problems

2012-05-26 Thread Jarrod Wilcox
Massimo: Thank you for explanation. If one goal is to attract newbies, suggest warning re Chrome in manual. Jarrod On Friday, May 25, 2012 1:58:20 PM UTC-4, Jarrod Wilcox wrote: The overview chapter adds an RSS facility to the mywiki example. The example code seems to contain typo errors:

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-26 Thread Annet
I've been working on an application using Bootstrap for a couple of weeks now, and eventually dropped all the extra js plugins I was using, except the jQuery UI datepicker (which I style using JQuery UI Bootstrap: http://addyosmani.github.com/jquery-ui-bootstrap/). My menus are entirely

[web2py] Re: form.custom('table')

2012-05-26 Thread Annet
What do you mean by does not work? When I click the submit button, the form isn't being submitted. Kind regards, Annet.

[web2py] Re: Bootstrap modal and ajax

2012-05-26 Thread Annet
Hi, Thanks for your reply. One thing: does it behave differently if you change ajax=False in the LOAD()? I don't think that's the cause of the problem, I replaced the ajax menu: ul class=nav li class=activea data-toggle=pill onclick={{=web2py_component(' %s','component-pane')