tag() Funktion auf ImageField angewendet - komisches height Attribut

Nico Grubert <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo zusammen

Ich habe einen Content-Typen für Plone entwickelt, der in etwas so 
definiert ist:

--------------------------------------------------------------------------
atapi.ImageField('teaserbild',
     searchable = False,
     required = False,
     max_size = (125, 125),
     allowable_content_types = ('image/gif','image/jpeg','image/png'),
     widget = atapi.ImageWidget(label = u'Teaserbild'),
     ),

atapi.StringField('teaserbild_titel',
     required = False,
     searchable = False, 

     widget = atapi.StringWidget(label = u'Teaserbild-Titel'),
     ),

class pressemitteilung(base.ATCTContent):
     """Describe a pressemitteilung item.
     """

     implements(Ipressemitteilung)

     portal_type = "pressemitteilung"
     _at_rename_after_creation = True
     schema = pressemitteilungSchema

     def getTeaserbildTag(self):
         """ return teaserbild tag
         """
         teaser_titel = getattr(self, 'teaserbild_titel', None)
         tb = getattr(self, 'teaserbild', None)
         if tb:
             return tb.tag(self, alt=teaser_titel, title=teaser_titel)
--------------------------------------------------------------------------

Das Teaserbild gebe ich mit der Funktion 'getTeaserbildTag' zurück und 
lasse es dann im view-Template wie folgt einzeigen:

   <span tal:replace="structure context/getTeaserbildTag" />

Wenn ich nun eine Instanz des Content-Typen erstelle, wird das 
'teaserbild' wie folgt gerendert:

<img src="http://localhost:8080/plone/pm01/teaserbild"
alt="Meine PM" title="Meine PM" height="&lt;pressemitteilung at 
pm01&gt;" width="125">

Irgendwas scheint mit dem 'height' Attribut nicht zu stimmen.
Hat jemand eine Idee, woran das liegen könnte?


Vielen Dank im voraus
Nico


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.