Re: [Zope] Forcing Content-Type of Image object

2000-11-14 Thread Dieter Maurer

Peter Bengtsson writes:
  I don't want Zope to find out what content type an Image has. I want to be able to 
 force that programmatically myself from DTML.
  
  Here are some code examples that doesn't work:
  
  dtml-call "PARENTS[0].manage_addImage('awapimage.wbmp',file,'Give it a 
 Title','','image/vnd.wap.wbmp')"
This one should work.

How did it not?



Dieter

___
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] Forcing Content-Type of Image object

2000-11-12 Thread Peter Bengtsson

I don't want Zope to find out what content type an Image has. I want to be able to 
force that programmatically myself from DTML.

Here are some code examples that doesn't work:

dtml-call "PARENTS[0].manage_addImage('awapimage.wbmp',file,'Give it a 
Title','','image/vnd.wap.wbmp')"
dtml-call "PARENTS[0].manage_addImage('awapimage.wbmp',file,'Give it a 
Title','image/vnd.wap.wbmp','image/vnd.wap.wbmp')"
dtml-call "PARENTS[0].manage_addImage('awapimage.wbmp',file,'Give it a 
Title','image/vnd.wap.wbmp','')"

Image.py contains this:
def manage_addImage(self, id, file, title='', precondition='', 
content_type='',REQUEST=None):

I have searched the mailing list and looked at Image.py but can't find it.
Help, please

Best regards, Peter


___
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 )