Re: [PythonReports-users] Images
Brought to you by:
a1s
From: Werner F. B. <wer...@fr...> - 2013-01-02 16:47:34
|
Hi Alex, On 02/01/2013 17:06, alexander smishlajev wrote: > Werner F. Bruhin wrote, at 02.01.2013 17:44: >> In my application the user can store images (e.g. wine labels, recipe >> preparation etc), the images are stored in the file system in a user >> defined folder and the application just stores the file name. >> >> On my recipe report I like to show the image of the "Recipe finished" >> image if it exists. >> >> I was hoping to use a function "getImagePath(THIS.id, 'imgtype') and it >> comes back with the appropriate full path to the image, in the case of >> the recipe report it would find the image showing the "finished" stage >> of the recipe. >> >> Looking at the image element I don't see how I could do this, if it is >> possible could you give me some tips. > Sorry, at present there is no way to dynamically compute image file path > or bitmap data. Not the end of the world, but would definitely be very very nice if you can come up with something. > > That is quite a flaw in the template language. I will have to think of > a syntax for such things. So far I've got several ideas, but all of > them are either ugly or not backward compatible. Is backward compatibility for something like this that important? Could you create a "dynamic image" element which is ignored by older versions? If you do something can you please allow the program to define what image type is used. Werner |