[web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-08-18 Thread Jagmal
I guess I need more help. Please bear with me. I assume that you are suggesting the following approach: If I have a SWF at /APP/static/file.swf, then I should create following entry in routes_in in routes.py (r'.*/APP/static/file.swf', r'/APP/controller/file') And in

[web2py] Unable to download not-small SWF files from static folder

2011-08-18 Thread Jagmal
. Any advice? Thanks in advance, Jagmal

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Jagmal
Thanks Ross! Just a quick question - what is the easiest way to download v 1.95.1 ? Do I need to check this out from repository? Regards, Jagmal

[web2py] Re: Web2Py with Python 2.4

2011-08-08 Thread Jagmal
Thanks Anthony! That was helpful. Can we put this information on the download page?

[web2py] Re: Web2Py with Python 2.4

2011-08-04 Thread Jagmal
(but that may take some time). Thanks Regards, Jagmal

Re: [web2py] Re: Web2Py with Python 2.4

2011-08-04 Thread Jagmal
Thanks John for responding. I got the following error when I tried running web2py.py on a machine with python 2.4 ImportError: No module named hashlib I did some googling and installed hashlib from http://code.krypto.org/python/hashlib How should I have proceeded? Regards, Jagmal

[web2py] Web2Py with Python 2.4

2011-08-02 Thread Jagmal
) but it didn't work. Also, is there anyway I could get around installing packages by tweaking PYTHONPATH? Thanks Regards, Jagmal

[web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-29 Thread Jagmal
Thanks Massimo. I think it works (I tried by using response.render - is there any other way as .swf is not a recognized extension?). But, I now have a more interesting problem. This FLASH file actually depends on multiple files/folders in the same folder (including some XMLs for data, audio

[web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-29 Thread Jagmal
Not sure what .swf is not a recognized extension means in this context. Are you saying it is not setting up the content-type? Sorry - my ignorance and incorrect words. Actually, I should have asked another question - How do I render a view which is not HTML (again a very basic question)?

[web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Jagmal
To be clear: Let us say I have a view app/default/view.html, which has a flash file (say FLASH.swf) embedded inside it. One can access this view only if s/he has proper permission. The flash file is supposed to be accessible only on permission too. But, what if someone tries to directly access

Re: [web2py] Re: Enforcing access control on Flash file embedded inside a view

2011-07-27 Thread Jagmal
Does 'upload' field not just copy file over to a location and provide its link when asked? If so, I should be able to access the file directly anyhow by looking at the URL in the final HTML. Am I missing anything?

Re: [web2py] [Newbie] Best practice to set application wide settings

2011-07-26 Thread Jagmal
Thanks Bruno for the suggestions. I will keep these in mind.

[web2py] Re: [Newbie] Best practice to set application wide settings

2011-07-26 Thread Jagmal
Thanks David for the link. I think I am not at a stage right now, where I need to store configurations in the database. I will definitely give this a try once I am at that stage.

[web2py] [Newbie] Best practice to set application wide settings

2011-07-22 Thread Jagmal
these default settings there? Also, should I be using the same model class to configure DB and other application wide settings? Regards, Jagmal