To force zope (and reportlab) to use a different working directory, use:
still this is a pretty big workaround, but hey... It works!
> Hello ed,
> If you figure this out let me know. We tried several times and were
> unsuccessful. we only have two files (logos) so it wasn't worth fighting
> ed colmar wrote:
> > Thanks for the help everyone!
> > I'm a few steps closer to solving this one. What I'm doing is pretty
> > workaround, since I can't figure out how to pass a image file directly
> > within the zodb. I have created a seperate field that gets passed to a
> > localFS directory.
> > Right now, I just need to refrence a file that is somewhere other than
> > /usr/local/zope directory.
> > I've been trying:
> > c.drawInlineImage(str('/home/zope/uploadedimages/' + filename), .5*inch,
> > 10.*inch,4*inch)
> > for some reason it can't find a file anywhere other than the base
> > in zope. I cannot use this directory because it will serve as a
> > of image files.
> > Any ideas how to force it to look somewhere else for this file?
> > Thanks again!
> > -e-
> > ----- Original Message -----
> > From: "Daniel Rusch" <[EMAIL PROTECTED]>
> > > I have no idea if this will help you. We use PIL, reportlabs and zope
> > > create P.O.'s, to place a logo on the page we use the following line
> > > code:
> > >
> > > c.drawInlineImage("gclogo_color.gif", .5*inch, 10.*inch,4*inch)
> > >
> > _______________________________________________
> > Zope maillist - [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -