[Zope] Automatic Image insertion
Lennart Regebro
lennart@regebro.nu
Thu, 7 Mar 2002 11:14:46 +0100
From: "Nico de Boer" <nico@nfg.nl>
> def Add_UpFolderIcon(self):
> """Add an UpFolder icon to the IntraNet product at installation"""
> self.manage_addImage('UpFolderIcon',
> file='www/UpFolder_icon.gif',
> title='',
> precondition='',
> content_type='image/gif'
> )
>
> It's a gif image, but it only installs a reference to the image (I
> think). The size of the image in the edit tab is 21 bytes and it is
> supposed to be 915 bytes.
Yes, as you surely notice, the length of the string 'www/UpFolder_icon.gif'
is 21 bytes. File is not a file reference, but the actual file. The data.
> Can someone help me?
It depends. Why are you trying to do this? Images that are a part of the
management interface should be located on disk, and images that are a part
of the website should only be uploaded once, and then referenced from HTML.
>
> Thanks,
>
> Greetz Nico
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> 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 )
>
>