[web2py] Change base directory

2011-07-04 Thread Junaid P V
Hi,

I think I have made web2py working on my hosting account, see: 
http://junaidpv.in/w2p/welcome

But web2py is assuming it is working on document root, actually I installed 
it on /w2p sub directory.
web2py presents every anchors and files (.js, images, etc) in page based to 
document root

How can I tell web2py that I want '/w2py/' as base directory rather than 
'/'?


Thanks


[web2py] Re: limitby not working

2011-06-10 Thread Junaid P V
Thank you Massimo :)

I was thinking in SQL


[web2py] limitby not working

2011-06-10 Thread Junaid P V
Hi,

I have a database of lamps, I was trying to show paginated records from
lamps table.
I could not find limitby working.

My code is:

lamps = db().select(db.lamps.ALL, limitby=(offset, limit))


But, I get records only in the rage 0 to limit starting from offset

To clarify, if I have 7 records in lamps table and I give offset = 2 and
limit 4, I get only two records from offset 2

Could somebody help me please??