RelationsPortlet/skins/RelationsPortlet portlet_relations.pt,1.3,1.4

Nils Haagen <[email protected]> Tue, 13 Dec 2005 10:33:07 +0000
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/RelationsPortlet/skins/RelationsPortlet
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13561/skins/RelationsPortlet

Modified Files:
	portlet_relations.pt 
Log Message:
 

Index: portlet_relations.pt
===================================================================
RCS file: /cvsroot/eduplone/RelationsPortlet/skins/RelationsPortlet/portlet_relations.pt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** portlet_relations.pt	13 Dec 2005 09:01:01 -0000	1.3
--- portlet_relations.pt	13 Dec 2005 10:33:04 -0000	1.4
***************
*** 49,74 ****
              <hr>
          </div>
              <metal:block tal:repeat="ref references">
!                   <div tal:define="oddrow repeat/ref/odd;
!                                    sUID python: ref.getSourceObject().UID();
                                     tUID python: ref.getTargetObject().UID();
                                     jigID python: ref.relationship;
-                                    mdtool  here/portal_metadata;
                                     binding  python:mdtool.getMetadata(ref) or None;
                                     mdset    python: binding.getSet('dcwd');
                                     wd_relation  python:binding['dcwd']['Relation'];
                                     wd_relation_key  python:mdset['Relation'].field.render_key(wd_relation);"
!                         tal:attributes="class python:test(oddrow, 'even', 'odd')"
!                         tal:condition="python:jigID in rp.registeredRelations(here.portal_type) and jigID not in createable">
                                         
!                    <span tal:omit-tag=" "
!                          tal:replace="python: context.translate(msgid=wd_relation_key, domain='eduplone')" />
!                    <a tal:content="python: ref.targetTitle()" 
!                       tal:attributes="href python:ref.getTargetObject().absolute_url()"/>
           
!                 </div>
              </metal:block>
  
!             <br />
  
          </div>
--- 49,75 ----
              <hr>
          </div>
+             <ul tal:define="mdtool here/portal_metadata;">
+ 
              <metal:block tal:repeat="ref references">
!                   <tal tal:define="sUID python: ref.getSourceObject().UID();
                                     tUID python: ref.getTargetObject().UID();
                                     jigID python: ref.relationship;
                                     binding  python:mdtool.getMetadata(ref) or None;
                                     mdset    python: binding.getSet('dcwd');
                                     wd_relation  python:binding['dcwd']['Relation'];
                                     wd_relation_key  python:mdset['Relation'].field.render_key(wd_relation);"
!                         tal:condition="python:jigID in rp.registeredRelations(here.portal_type) and jigID not in createable"
!                         tal:omit-tag=" ">
                                         
!                    <li><span tal:omit-tag=" "
!                              tal:replace="python: context.translate(msgid=wd_relation_key, domain='eduplone')" />
!                        <a tal:content="python: ref.targetTitle()" 
!                           tal:attributes="href python:ref.getTargetObject().absolute_url()"/>
!                    </li>
           
!                 </tal>
              </metal:block>
  
!             </ul>
  
          </div>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click