Re: serving up generated images

2008-12-15 Thread erowan
Hello Matt, Thanks for your response. The page I serve has a graph plus a link to a csv file of the graph data so I can't dynamically return the data as you suggest. The page looks like this. htmltitledemand/title/headbody a href=/tmp/demand.png title=/tmp/demand img id=/tmp/demand

Re: serving up generated images

2008-12-15 Thread Matthew Zwier
Hi, Using tempfile.NamedTemporaryFile specifying this tmp directory could be an improvement if the deletion works ok. If I don't explictly close the file the docs say they will be closed and therefore deleted with gc is run. Hmm...because gc can be run at any time, there's no guarantee the

Re: serving up generated images

2008-12-10 Thread erowan
thanks, I'll take a look at these. I worked around it by creating a soft link from by deploy dir to the install dir but this is not ideal. bash-3.00$ pwd /opt/energy/emd/bmra/web/bmraweb bash-3.00$ ls -lt total 4 lrwxrwxrwx 1 energy asgdev 102 Dec 8 13:40 public - /san/apps/

serving up generated images

2008-12-08 Thread erowan
Hello, I have a web app that dynamically generates images (png files). The main html response page has links to these files i.e. a href=/tmp/demand.png title=/tmp/demand img id=/tmp/demand src=/tmp/demand.png width=300 height=200 / I created the tmp dir under public and while running

Re: serving up generated images

2008-12-08 Thread jerry
Hi, You should find this thread helpful -- http://groups.google.com/group/pylons-discuss/browse_thread/thread/70fb565a909c72f0/aae0f836d23e62a2?lnk=gstq=dataapp#aae0f836d23e62a2 Jerry On Dec 8, 5:40 am, erowan [EMAIL PROTECTED] wrote: Hello, I have a web app that dynamically generates

Re: serving up generated images

2008-12-08 Thread Gael Pasgrimaud
Hi, You can also have a look at this: http://pypi.python.org/pypi/iw.thumbs -- Gael On Mon, Dec 8, 2008 at 11:23 PM, jerry [EMAIL PROTECTED] wrote: Hi, You should find this thread helpful --