[web2py:24446] web2py on Android Scripting Environment (ASE)

2009-06-18 Thread Hasanat Kazmi
Google has officially released Android Scripting Environment (ASE) for Android phones. ASE supports Python. Has anyone tried to run web2py on ASE? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework"

[web2py:24850] Re: Authentication for services

2009-06-23 Thread Hasanat Kazmi
Here is an interesting behavior. i have following function @auth.requires_login() @service.json @service.jsonrpc def acceptme(): return "accepted" in this case, whatever username and password I give, I get returned "accepted" but if I put @auth.requires_login() after @service.jsonrpc, it alw

[web2py:25246] Authenticating a user without creating a form

2009-06-29 Thread Hasanat Kazmi
Hi, I want to programatically authenticate a user. I have username and password of a user and I want to authenticate it without created a form. Something like this: token = Auth().check(username, password) if token: .. Is it possible? --~--~-~--~~~---~--~~

[web2py:26936] Re: killer app idea

2009-07-19 Thread Hasanat Kazmi
On Jul 19, 6:21 pm, Fran wrote: > On Jul 19, 11:31 am, Yarko Tymciurak wrote: > > > ...more to the point - to forward commits / changes in the LACK of a > > network... > > Think about cell phones only passing a baton, where that cloud provides > > persistence... > > This is consistent w/ some

[web2py:27965] cron job website communication, find to find port?

2009-08-04 Thread Hasanat Kazmi
I have a website where my cron job (present in application/cron) calls webservices hosted by localhost. I have the whole URL but except the port at which the website is hosted. I don't want to hardcode port 80, any idea how to do it? Hasanat

[web2py:28489] Re: Cron @reboot can't call script?

2009-08-13 Thread Hasanat Kazmi
This isn't a big problem. I placed my script in cron folder (same as crontab) and added this line @reboot script.py It worked On Aug 12, 6:31 pm, Fran wrote: > Should cron's @reboot be able to call a script or can it just call a > controller function? > > The docs just show a controller func

[web2py:28545] Re: Cron @reboot can't call script?

2009-08-13 Thread Hasanat Kazmi
sorry, It didn't work for me either. I thought in first place that it is working but it wasnt.. problem is still open. On Aug 13, 12:32 pm, Hasanat Kazmi wrote: > This isn't a big problem. I placed my script in cron folder (same as > crontab) and added this line > @reboot sc

[web2py:37959] Re: Retrieve Images From Database

2009-12-28 Thread Hasanat Kazmi
I have a quick question, how do I show an image stored in database (as blob; the default used in web2py when image is stored using crud) like, if some one embeds link like /image/24 , it shows image not html (i mean, content type is automatically set)? On Nov 19, 10:02 pm, mdipierro wrote: > fo

[web2py:22511] Auth problem

2009-05-23 Thread Hasanat Kazmi
Hi, I am newbie to web2py. I am working on a project where multiple people will have to get different type of authentication, (e.g. teacher and student have different level of access to the system). Now the problem is that I can not create different instances of Auth class, e.g. autht = Auth(glob

[web2py:22515] Re: Auth problem

2009-05-23 Thread Hasanat Kazmi
Now, I have changed database, I have switched to mysql, and whole database is empty. Now it gives me this error: Table 'web2py.teacher' doesn't exist If create table myself, it says it already exists. Any help? On May 23, 11:49 pm, Hasanat Kazmi wrote: > Hi, > I am n

[web2py:22525] Re: Auth problem

2009-05-23 Thread Hasanat Kazmi
only one auth. > > When delete a database make sure also delete everything in app/ > databases/ > > Massimo > > On May 23, 5:15 pm, Hasanat Kazmi wrote: > > > Now, I have changed database, I have switched to mysql, and whole > > database is empty. Now it gives me t

[web2py] encoding and decoding spaces in request.args

2010-12-20 Thread Hasanat Kazmi
Hey, I am generating URLs on the go and then decoding when they are called by user. e.g. application/controller/funtion/foo/bar/. I encode foo and bar individually so that if they have spaces, they get encoded to %20 not _ which seems liked default. but when I decode it (After user calls it

[web2py] downloading a static file without streaming

2011-01-04 Thread Hasanat Kazmi
Is it about headers? Hasanat Kazmi +923464362473