default settings there?
Also, should I be using the same model class to configure DB and other
application wide settings?
Regards,
Jagmal
Thanks Bruno for the suggestions. I will keep these in mind.
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.
Hi All,
I have a view which includes a flash .swf file. The view has proper
permissions using Auth but how do I make sure that noone can access .swf
file directly?
Thanks,
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
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?
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 fil
>>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)?
didn't work. Also, is
there anyway I could get around installing packages by tweaking PYTHONPATH?
Thanks & Regards,
Jagmal
ules. I would prefer them upgrading to latest python (but that may take
some time).
Thanks & Regards,
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
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
Thanks Anthony! That was helpful.
Can we put this information on the download page?
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 controller.py
basic here.
Any advice?
Thanks in advance,
Jagmal
15 matches
Mail list logo