RelationsPortlet/skins/RelationsPortlet portlet_relations.pt,1.5,1.6

Nils Haagen <[email protected]> Tue, 13 Dec 2005 13:13:52 +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-serv12485/skins/RelationsPortlet

Modified Files:
	portlet_relations.pt 
Log Message:
 fixed portlet for displaying LU-Relations

Index: portlet_relations.pt
===================================================================
RCS file: /cvsroot/eduplone/RelationsPortlet/skins/RelationsPortlet/portlet_relations.pt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** portlet_relations.pt	13 Dec 2005 10:54:18 -0000	1.5
--- portlet_relations.pt	13 Dec 2005 13:13:49 -0000	1.6
***************
*** 11,18 ****
      <div class="portlet" tal:define="rp       python: here.portal_relationsportlet;
                                       regTypes python: rp.registeredTypes();
!                                      mdtool   here/portal_metadata;
!                                      references python: here.reference_catalog.getReferences(here);
!                                      LuReferences python: here.reference_catalog.getReferences(here.lu_in_parents());
!                                      createable python: rp.createableRelationsForType(here.portal_type);"
                           tal:condition="python: here.portal_type in regTypes or hasattr(here, 'lu_in_parents')">
  
--- 11,15 ----
      <div class="portlet" tal:define="rp       python: here.portal_relationsportlet;
                                       regTypes python: rp.registeredTypes();
!                                      mdtool   here/portal_metadata;"
                           tal:condition="python: here.portal_type in regTypes or hasattr(here, 'lu_in_parents')">
  
***************
*** 20,24 ****
          <h5 i18n:translate="box_relations_headline">Relations</h5>
  
!         <div class="portletBody">
  
  
--- 17,23 ----
          <h5 i18n:translate="box_relations_headline">Relations</h5>
  
!         <div class="portletBody"
!              tal:define="references python: here.reference_catalog.getReferences(here);
!                          createable python: rp.createableRelationsForType(here.portal_type);">
  
  
***************
*** 75,79 ****
          </ul>
  
!         <ul tal:condition="python:here.portal_type != 'LearningUnit'">
          <metal:block tal:repeat="ref LuReferences">
                <tal tal:define="sUID python: ref.getSourceObject().UID();
--- 74,79 ----
          </ul>
  
!         <ul tal:condition="python:here.portal_type != 'LearningUnit'"
!             tal:define="LuReferences python: here.reference_catalog.getReferences(here.lu_in_parents());">
          <metal:block tal:repeat="ref LuReferences">
                <tal tal:define="sUID python: ref.getSourceObject().UID();



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