Re: [PythonReports-users] Images
Brought to you by:
a1s
From: alexander s. <al...@go...> - 2013-02-11 08:08:36
|
On 11.02.2013 9:54, Werner F. Bruhin wrote: >> >> Try <data expr="ru.getRecipeImagePNG(THIS.id)" /> > > Sorry, to confuse you, the file contains: > > <image type="png"> > <box height="30" width="75" x="374" y="50" /> > <data> expr="ru.getRecipeImagePNG(THIS.id)"</data> > </image> > > When I run it through the debugger (WingIDE) I see at line 92 of fromdata in PILDrivers that the > param "data" contains: > > u'expr="ru.getRecipeImagePNG(THIS.id)"' > > As if the expression has never been evaluated (correct term) Indeed it is not evaluated. It shouldn't be, with your template contents. Please change the <data> line to <data expr="ru.getRecipeImagePNG(THIS.id)" /> Best wishes, alex. |