Re: Dexterity - TAL Expression to Display Images from Blobstorage

Andreas Mantke <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Hi Asko,

Am 06.12.2014 um 11:24 schrieb Asko Soukka:
> Hi Andreas,
>
> have tried the following methods (included in Plone by default):
>
>     https://pypi.python.org/pypi/plone.app.imaging
>
> e.g.
>
>     img tal:replace="structure context/@@images/image/mini" />
>
> where 'image' is the fieldname.
>

I tried this but with no success:

 Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
  Module zope.tales.tales, line 696, in evaluate
   - URL: /home/andi/Plone/libotemplatecenter/src/tdf.extensionsuploadcenter/src/tdf/extensionsuploadcenter/eupcenter_templates/view.pt
   - Line 147, Column 27
   - Expression: <PathExpr standard:u'context/@@images/project_logo/mini'>
   - Names:
      {'args': (),
       'container': <Container at /softwarecentertest/en/extensions>,
       'context': <Container at /softwarecentertest/en/extensions>,
       'default': <object object at 0x7f2229ea9500>,
       'here': <Container at /softwarecentertest/en/extensions>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7f2218e04af8>,
       'request': <HTTPRequest, URL=http://localhost:9095/softwarecentertest/en/extensions/view>,
       'root': <Application at >,
       'static': <Products.Five.metaclass.DirectoryResource28 object at 0x7f2218e8bc90>,
       'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0xa4cf150>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>,
       'view': <tdf.extensionsuploadcenter.eupcenter.View object at 0x7f2218e8b210>,
       'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7f2218b89710>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 147, in _eval
  Module zope.tales.expressions, line 124, in _eval
  Module Products.PageTemplates.Expressions, line 97, in trustedBoboAwareZopeTraverse
  Module zope.traversing.adapters, line 136, in traversePathElement
   - __traceback_info__: (<Products.Five.metaclass.ImageScaling object at 0x7f22105f2b50>, 'project_logo')
  Module plone.namedfile.scaling, line 165, in traverse
  Module plone.namedfile.scaling, line 201, in guarded_orig_image
  Module AccessControl.ImplPython, line 675, in guarded_getattr
AttributeError: project_logo

---------- end of traceback --------------


I think there is an issue with the load from the blobstorage.

Regards,

Andreas

-- 
## Developer LibreOffice
## Freie Office-Suite für Linux, Mac, Windows
## http://LibreOffice.org
## Support the Document Foundation (http://documentfoundation.org)
## Meine Seite: http://www.amantke.de 


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
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.