[web2py] db.commit() fails?

2011-01-03 Thread Lucas R. Martins
pdate(pass = request.vars.new_pass) db.commit() session.flash = 'Password changed' redirect(URL('default','index')) This code runs with no errors, but my database is not being updated. I put the line "db.commit()", but the problem keep happing. Anyone can help me? Lucas R. Martins

[web2py] Re: db.commit() fails?

2011-01-04 Thread Lucas R. Martins
request.vars.new_pass) > > because > > user.update(pass = request.vars.new_pass) just updates the user row in > ram, not the db. > > On Jan 3, 11:04 am, "Lucas R. Martins" wrote: > > > Hi folks, > > > i'm try to run the following code: > >

Re: [web2py] Accessing non-returned items in Views

2012-07-17 Thread Lucas R. Martins
Just curious: There is a special reason to not simply return the needed dicts? Em Ter 17 Jul 2012 18:40:00 BRT, adohertyd escreveu: In my function page2(): I return a dictionary to be accessed by the page2 HTML view. In the page2 function I have some other dictionaries. What I want to do to be

Re: [web2py] BR()

2012-07-25 Thread Lucas R. Martins
You also can use {{=BR()*5}} or {{=ANYTHING()*5}} Em Qua 25 Jul 2012 13:51:38 BRT, Toby Shepard escreveu: In my own html generating libraries, I normally allow an integer argument to the maker, which is a count of how many tags to put out. So: {{=BR(5)}} could output This works out since t

Re: [web2py] Re: Generating web2py views for use in PhoneGap?

2012-07-31 Thread Lucas R. Martins
You can generate and use your views and serve it as a common webapp. Just include phonegap.js If you are planning an offline only app, you can download and pack your content with wget. --

[web2py] Web2py RAM usage

2012-06-17 Thread Lucas R. Martins
Hi guys, I'm running a website with ~ 900 urls and no many daily access in a small vps. I have observed that, when a start the server, this use only 10mb, in my case. However, with the time and natural access (specially googlebot), the server memory usage grow and grows indefinitely until use all

Re: [web2py] Re: Web2py RAM usage

2012-06-18 Thread Lucas R. Martins
use > of this problem. > Did you try to bytecode compile the app? > > Massimo > > > On Sunday, 17 June 2012 21:17:01 UTC-5, Lucas R. Martins wrote: >> >> Hi guys, >> >> I'm running a website with ~ 900 urls and no many daily access in a small >&

Re: [web2py] Re: Web2py RAM usage

2012-06-18 Thread Lucas R. Martins
In my case, i just started web2py server and set up apache2 + proxypass. I need to change to uwsgi? 2012/6/18 Jon Molesa > I can't say for certain now, but I'm pretty sure I switched from > apache + mod_wsgi to uwsgi. In any case uwsgi is what I've set up on > my Rackspace server. So far so goo