Re: fss vs. blob

Thomas Maßmann <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo Sascha,

hab das selbe Phänomen gerade festgestellt (Plone 3.1.7, bei  
nachträglicher Umstellung auf FSS). Bei den News Items wird der Alt- 
Tag angezeigt, wenn kein Bild vergeben wurde. Entsprechendes gilt dann  
auch für die Kollektionen (Summary View). Ich werde Deinen Patch dann  
gleich mal anwenden.

Thomas


Am 13.01.2009 um 12:03 schrieb Sascha Gresk:

>>
>> FSS ist eigentlich komplett transparent, weil es sich auf der AT
>> Storagelayer Ebene einhängt.
>
> dachte ich auch mal, ich glaube bei mir wird mal ne Ausnahme  
> gemacht ;-)
>
>> Hast Du konkrete Angaben zu dem Problem?
>> Tracebacks?
>
>
> hier die patches, tracebacks gab es nicht, die Bilder
> wurden halt nur nicht angezeigt - daher es gab kein
> traceback. Den Patch schlepp ich schon seit zwei Plone3.x-Versionen
> mit mir rum - daher *mir* passiert sowas wohl immer wieder ....
>
>
> %pwd
> /BLUBB/Instance/parts/plone/CMFPlone/skins/plone_content
>
> %rcsdiff --unified newsitem_view.pt folder_summary_view.pt
> ===================================================================
> RCS file: RCS/newsitem_view.pt,v
> retrieving revision 1.1
> diff --unified -r1.1 newsitem_view.pt
> --- newsitem_view.pt	2008/09/22 15:04:39	1.1
> +++ newsitem_view.pt	2008/09/22 15:05:06
> @@ -33,10 +33,11 @@
>
>         <div tal:replace="structure  
> provider:plone.abovecontentbody" />
>
> +
>         <div class="newsImageContainer"
> -             tal:condition="here/image_mini|nothing">
> +             tal:condition="python: here.getImage() !=''">
>             <a href="#"
> -               tal:attributes="href string:$here_url/image/ 
> image_view_fullscreen"
> +               tal:attributes="href string:$here_url/ 
> image_view_fullscreen"
>                id="parent-fieldname-image">
>                <img tal:replace="structure python:  
> here.tag(scale='mini', css_class='newsImage')" src="" alt="" />
>             </a>
> ===================================================================
> RCS file: RCS/folder_summary_view.pt,v
> retrieving revision 1.1
> diff --unified -r1.1 folder_summary_view.pt
> --- folder_summary_view.pt	2008/09/22 15:02:05	1.1
> +++ folder_summary_view.pt	2008/09/22 15:03:31
> @@ -32,7 +32,7 @@
>              id="parent-fieldname-text" class="stx"
>              tal:define="kss_class python:getKssClasses('text',
>                          templateId=templateId, macro='text-field- 
> view');
> -                         text here/aq_explicit/getText|nothing"
> +                         text here/getText|nothing"
>              tal:condition="text"
>              tal:attributes="class python:test(here.Format() in  
> ('text/structured',
>                                                    'text/x-rst', ),  
> 'stx' + kss_class, 'plain' + kss_class)">
> @@ -43,7 +43,8 @@
>         <tal:foldercontents define="contentFilter contentFilter| 
> request/contentFilter|nothing;
>                             limit_display limit_display|request/ 
> limit_display|nothing;
>                             more_url more_url|request/more_url| 
> string:folder_contents;
> -                            folderContents  
> python:here.portal_type=='Topic' and  
> here.queryCatalog(contentFilter, batch=True) or  
> here.getFolderContents(contentFilter, batch=True,  
> b_size=limit_display or 100);
> +                            contentsMethod  
> python:test(here.portal_type=='Topic', here.queryCatalog,  
> here.getFolderContents);
> +                            folderContents folderContents| 
> python:contentsMethod(contentFilter, batch=True,  
> b_size=limit_display or 100);
>                             use_view_action site_properties/ 
> typesUseViewActionInListings|python:();
>                             over_limit python: limit_display and  
> len(folderContents) > limit_display;
>                             folderContents python: (over_limit and  
> folderContents[:limit_display]) or folderContents;
> @@ -70,14 +71,21 @@
>                                    "
>                      tal:attributes="class string:tileItem  
> visualIEFloatFix vevent ${item_type_class}">
>
> +<!-- fix begin -->
> +
> +
>                     <a href="#"
>                        tal:condition="python:item_type != 'Link'"
>                        tal:attributes="href python:test(item_type in  
> use_view_action, item_url+'/view', item_url);">
> +                        <tal:block tal:condition="python:  
> item_object.getImage() !='' ">
>                         <img src="" alt=""
>                              tal:condition="exists:item_object/ 
> image_thumb"
>                              tal:replace="structure python:  
> path('nocall:item_object/tag')(scale='thumb',  
> css_class='tileImage')" />
> +                        </tal:block>
>                     </a>
>
> +<!-- fix end -->
> +
>                     <a href="#"
>                        class="link-plain"
>                        tal:condition="python:item_type == 'Link'"
> @@ -86,6 +94,9 @@
>                              tal:condition="exists:item_object/ 
> image_thumb"
>                              tal:replace="structure python:  
> path('nocall:item_object/tag')(scale='thumb',  
> css_class='tileImage')" />
>                     </a>
> +
> +
> +
>
>                     <h2 class="tileHeadline"
>                         metal:define-macro="listitem">
> @@ -113,9 +124,7 @@
>                                i18n:translate="label_event_byline">
>                              (<span tal:content="string:${item/ 
> location}"
>                                     class="location"
> -                                    i18n:name="location">Oslo</ 
> span><tal:comma
> -                                    tal:replace="string:, "
> -                                    tal:condition="item/location" / 
> >from
> +                                    i18n:name="location">Oslo</ 
> span>, from
>                               <abbr class="dtstart"
>                                     tal:attributes="title  
> python:item_start"
>                                      
> tal:content="python:toLocalizedTime(item_start,long_format=1)"
> @@ -126,6 +135,9 @@
>                                     i18n:name="end">to date</abbr>)
>                          </span>
>                     </tal:event>
> +
> +
> +
>                     <tal:newsitem condition="python: item_type ==  
> 'News Item'">
>                         <tal:name tal:condition="item_creator"
>                             tal:define="author  
> python:mtool.getMemberInfo(item_creator)">
> @@ -145,6 +157,9 @@
>                         August 16, 2001 at 23:35:59
>                         </span>
>                     </tal:newsitem>
> +
> +
> +
>                     </div>
>
>                     <p class="tileBody">
> @@ -155,6 +170,8 @@
>                             description
>                         </span>
>                     </p>
> +
> +
>
>                     <p class="tileFooter">
>                         <a href=""
>
>
>
>
> Gruss,
> Sascha Gresk
>
> -- 
>
> Die Mobilnummer hat sich geändert !
>
> Opensource-Consult ist:
> Kleingewerbebetrieb Sascha Gresk (Inhaber)
> Mobil : +4915124102341
> E-Mail: [email protected]
> USt-IdNr: DE209886748
> Scharnhorststrasse 58
> 44147 Dortmund
>
>
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope

EDV-Beratung Thomas Maßmann
E-Mail: [email protected]
WWW: it-spir.it





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