Re: Re: ImageField in Archetypes

"Alwin M. Schronen" <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.CMFCore.PortalContent, line 108, in __call__
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.ZopePageTemplate, line 255, in _exec
  Module Products.CacheSetup.patch_cmf, line 68, in PT_pt_render
  Module Products.CacheSetup.patch_utils, line 9, in call_pattern
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - <ZopePageTemplate at /Content/BENNOKOCHT/REZEPT_view used for /Content/BENNOKOCHT/hauptspeisen/rezept.2010-03-03.1252059511>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 780, in do_defineSlot
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 728, in do_defineMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 772, in do_defineSlot
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 728, in do_defineMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 647, in do_insertStructure_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: /Content/BENNOKOCHT/portal_skins/custom/REZEPT_view
   - Line 61, Column 0
   - Expression: <PythonExpr here.Bild1.tag(scale='preview')>
   - Names:
      {'container': <PloneSite at /Content/BENNOKOCHT>,
       'context': <REZEPT at /Content/BENNOKOCHT/hauptspeisen/rezept.2010-03-03.1252059511>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x7f4378913950>,
       'here': <REZEPT at /Content/BENNOKOCHT/hauptspeisen/rezept.2010-03-03.1252059511>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x926f098>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x7f4378913d88>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x926f098>,
       'request': <HTTPRequest, URL=http://www.bennokocht.de/hauptspeisen/rezept.2010-03-03.1252059511>,
       'root': <Application at >,
       'template': <ZopePageTemplate at /Content/BENNOKOCHT/REZEPT_view used for /Content/BENNOKOCHT/hauptspeisen/rezept.2010-03-03.1252059511>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.Bild1.tag(scale='preview')
  Module Python expression "here.Bild1.tag(scale='preview')", line 1, in <expression>
  Module OFS.Image, line 813, in tag
TypeError: a float is required




Andreas Jung schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hanno Schulz wrote:
>   
>> Hi,
>>
>> versuch mal <img tal:replace="structure python: here.Bild1_preview"
>> />
>>
>> Archetypes generieren da für alle Größen einen accessor.
>>     
> die Lösung via tag() sollte aber eigentlich tun..aber wir brauchen einen
> vollen Traceback für Detailhilfe :-)
>
> Andreas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkuP6eQACgkQCJIWIbr9KYycuACgoD3jxSLemer8bDMfSRk5896j
> 75gAnj9QRBFvRzz8fEMHXSgyFTaEnZOF
> =9asy
> -----END PGP SIGNATURE-----
>
>   
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
>



_______________________________________________
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.