[Zope] please take a look at this, it's probably really easy, but I'm totally stuck

Jacob Singh jacob@prisonbooks.org
Tue, 20 Nov 2001 22:52:09 -0500


Sorry that was typo, I do have it right in my prog

-----Original Message-----
From: Richard Jones [mailto:richard@bizarsoftware.com.au] 
Sent: Tuesday, November 20, 2001 10:20 PM
To: Jacob Singh
Subject: Re: [Zope] please take a look at this, it's probably really
easy, but I'm totally stuck

On Wednesday 21 November 2001 13:59, Jacob Singh wrote:
> So here is my tragedy:
> I have an SQL query which pulls a record from a database.  One of the
> fields is called file1.  It contains a path to a file (i.e.
> media/inline/asdasd.jpeg).  This file is accessible through LocalFS.
> LocalFS requires a syntax like media['inline']['asdasd.jpg'], so I
wrote
> a script to convert the Unix style path to something LocalFS can
> understand.  This works fine.  Here is the code I use in my DTML doc
to
> render asdasd.jpg:

My initial comment is that you're referring to the same file as having
an 
extension ".jpeg" and then ".jpg"... this would cause a key error...


    Richard