[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - content_byline.pt:1.5 discussion_reply_form.pt:1.6 discussion_reply_preview.pt:1.6 recent_news.pt:1.7 search_form.pt:1.8 talkback_tree.pt:1.5

Yvo Schubbe schubbe at web.de
Tue Dec 23 16:47:56 EST 2003


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv21105/CMFDefault/skins/zpt_generic

Modified Files:
	content_byline.pt discussion_reply_form.pt 
	discussion_reply_preview.pt recent_news.pt search_form.pt 
	talkback_tree.pt 
Log Message:
Merged yuppie-collector025-branch:
- Creator element no longer depends on Ownership. (Collector #25)
- TypeInfo's _finishConstruction() now calls reindexObject().
- Removed WorkflowMethod wrapper of Document.setFormat().


=== CMF/CMFDefault/skins/zpt_generic/content_byline.pt 1.4 => 1.5 ===
--- CMF/CMFDefault/skins/zpt_generic/content_byline.pt:1.4	Fri Mar 14 13:16:01 2003
+++ CMF/CMFDefault/skins/zpt_generic/content_byline.pt	Tue Dec 23 16:47:25 2003
@@ -1,24 +1,27 @@
-<div id="ContentByline"
-     metal:define-macro="byline"
-     tal:define="creator here/Creator;
-                 home_url python: here.portal_membership.getHomeUrl(creator);
-                "
-     i18n:domain="cmf_default"
->
-
-<p>
-   <span tal:omit-tag="" i18n:translate="">Created by</span>
-   <span tal:condition="home_url"
-     ><a href="." title="Here"
-         tal:attributes="href home_url;
-                         title creator;
-                        "
-         tal:content="creator">Creator</a
-    ></span><span tal:condition="not: home_url"
-                 tal:content="creator">Creator</span
-    >. <span tal:omit-tag="" i18n:translate="">Last modified</span>
-    <span tal:content="here/ModificationDate"
-    >Today</span>.
-</p>
+<html>
+<body>
 
+<div id="ContentByline"
+   metal:define-macro="byline"
+   tal:define="mtool here/portal_membership"
+   i18n:domain="cmf_default">
+ <p><tal:span i18n:translate="">Created by</tal:span
+ > <tal:case tal:condition="here/listCreators"
+  ><tal:loop tal:repeat="creator here/listCreators"
+   ><tal:case tal:condition="not: repeat/creator/start"
+    ><tal:case tal:condition="not: repeat/creator/end">, </tal:case
+    ><tal:case tal:condition="repeat/creator/end"
+     > <tal:span i18n:translate="">and</tal:span> </tal:case></tal:case
+   ><a href="." title="creator"
+       tal:define="home_url python: mtool.getHomeUrl(creator)"
+       tal:attributes="href home_url; title creator"
+       tal:content="creator"
+       tal:omit-tag="not: home_url">creator</a></tal:loop></tal:case
+ ><tal:case tal:condition="not: here/listCreators" i18n:translate=""
+  >unknown</tal:case>.
+  <tal:span i18n:translate="">Last modified</tal:span
+ > <tal:span tal:content="here/ModificationDate">Today</tal:span>.</p>
 </div>
+
+</body>
+</html>


=== CMF/CMFDefault/skins/zpt_generic/discussion_reply_form.pt 1.5 => 1.6 ===
--- CMF/CMFDefault/skins/zpt_generic/discussion_reply_form.pt:1.5	Thu Mar  6 05:26:23 2003
+++ CMF/CMFDefault/skins/zpt_generic/discussion_reply_form.pt	Tue Dec 23 16:47:26 2003
@@ -9,9 +9,6 @@
       tal:attributes="action string:${here/absolute_url}/talkback">
 <input type="hidden" name=":default_method" value="discussion_reply" />
 
-<input type="hidden" name="Creator" value=""
-       tal:attributes="value here/portal_membership/getAuthenticatedMember" />
-
 <table class="FormLayout">
  <tr>
   <th align="left" i18n:translate="">Subject (Title)</th>
@@ -42,5 +39,3 @@
 </div>
 </body>
 </html>
-
-


=== CMF/CMFDefault/skins/zpt_generic/discussion_reply_preview.pt 1.5 => 1.6 ===
--- CMF/CMFDefault/skins/zpt_generic/discussion_reply_preview.pt:1.5	Thu Mar  6 05:27:24 2003
+++ CMF/CMFDefault/skins/zpt_generic/discussion_reply_preview.pt	Tue Dec 23 16:47:26 2003
@@ -15,8 +15,6 @@
         tal:attributes="value request/form/title" />
  <input type="hidden" name="text" value=""
         tal:attributes="value request/form/text" />
- <input type="hidden" name="Creator" value=""
-        tal:attributes="value here/portal_membership/getAuthenticatedMember" />
  <table><tr>
   <td width="15%"></td>
   <td>
@@ -31,5 +29,3 @@
 </div>
 </body>
 </html>
-
-


=== CMF/CMFDefault/skins/zpt_generic/recent_news.pt 1.6 => 1.7 ===
--- CMF/CMFDefault/skins/zpt_generic/recent_news.pt:1.6	Thu Mar  6 05:33:02 2003
+++ CMF/CMFDefault/skins/zpt_generic/recent_news.pt	Tue Dec 23 16:47:26 2003
@@ -17,29 +17,37 @@
  </p>
 
  <table cellspacing="0" border="0" width="90%"
-        tal:repeat="newsitems batch"
+        tal:repeat="newsitem batch"
         tal:condition="newsitems">
  <tr>
   <td class="NewsListing" align="left" valign="top">
       <a href="" class="NewsListing"
-         tal:attributes="href newsitems/getURL"
-         tal:content="newsitems/Title">Title</a>
+         tal:attributes="href newsitem/getURL"
+         tal:content="newsitem/Title">Title</a>
   </td>
   <td class="NewsListing" align="right" valign="top"
-      tal:content="newsitems/Date">Date
+      tal:content="newsitem/Date">Date
   </td>
  </tr>
  <tr><td class="NewsByLine" valign="top" colspan="2" align="left">
-      By <span tal:replace="newsitems/Creator">Creator</span>
+  By <tal:case tal:condition="newsitem/listCreators"
+  ><tal:loop tal:repeat="creator newsitem/listCreators"
+   ><tal:case tal:condition="not: repeat/creator/start"
+    ><tal:case tal:condition="not: repeat/creator/end">, </tal:case
+    ><tal:case tal:condition="repeat/creator/end"
+     > <tal:span i18n:translate="">and</tal:span> </tal:case></tal:case
+   ><tal:span tal:content="creator">creator</tal:span></tal:loop></tal:case
+ ><tal:case tal:condition="not: newsitem/listCreators" i18n:translate=""
+  >unknown</tal:case>
   </td>
-  </tr>
+ </tr>
  <tr>
   <td colspan="2">
-    <em> <span tal:define="pss modules/Products.PythonScripts.standard; niDescription newsitems/Description"
+    <em> <span tal:define="pss modules/Products.PythonScripts.standard; niDescription newsitem/Description"
                tal:replace="structure python:pss.structured_text(niDescription)">Description</span></em>
   </td>
  </tr>
-  </table>
+ </table>
 <div tal:condition="python:not(newsitems)">
  <p class="Desktop" i18n:translate="">
   No news is good news!
@@ -56,4 +64,3 @@
 </div>
 </body>
 </html>
-


=== CMF/CMFDefault/skins/zpt_generic/search_form.pt 1.7 => 1.8 ===
--- CMF/CMFDefault/skins/zpt_generic/search_form.pt:1.7	Sat Nov  1 11:05:10 2003
+++ CMF/CMFDefault/skins/zpt_generic/search_form.pt	Tue Dec 23 16:47:26 2003
@@ -62,11 +62,11 @@
    <select name="Subject:list" multiple size="5">
     <option value="" selected i18n:translate="">-- any --</option>
     <option value=""
-		    tal:repeat="item items"
-		    tal:attributes="value item"
-		    tal:content="item">
-      </option>
-    </select>
+       tal:repeat="item items"
+       tal:attributes="value item"
+       tal:content="item">
+    </option>
+   </select>
   </td>
  </tr>
 
@@ -86,12 +86,12 @@
  <tr>
   <th i18n:translate="">Find new items since...</th>
   <td tal:define="today python: here.ZopeTime().earliestTime();
-			      mtool here/portal_membership;
+                  mtool here/portal_membership;
                   member python:mtool.getAuthenticatedMember();
                   lastLogin member/last_login_time|nothing;
-	              yesterday python:(today-1).Date();
-	              lastWeek python:(today-7).Date();
-	              lastMth python:(today-31).Date();
+                  yesterday python:(today-1).Date();
+                  lastWeek python:(today-7).Date();
+                  lastMth python:(today-31).Date();
                  ">
    <select name="created:date">
     <option value="1970/01/02"
@@ -142,7 +142,7 @@
  <tr>
   <th i18n:translate="">Creator</th>
   <td>
-   <input name="Creator" size="20" />
+   <input name="listCreators" size="20" />
 
    <dl class="FieldHelp">
     <dd i18n:translate="">To find items by a particular user only, enter
@@ -166,6 +166,4 @@
 </div>
 </body>
 </html>
-
-
 


=== CMF/CMFDefault/skins/zpt_generic/talkback_tree.pt 1.4 => 1.5 ===
--- CMF/CMFDefault/skins/zpt_generic/talkback_tree.pt:1.4	Thu Aug  1 11:28:50 2002
+++ CMF/CMFDefault/skins/zpt_generic/talkback_tree.pt	Tue Dec 23 16:47:26 2003
@@ -4,7 +4,7 @@
 <table cellspacing="0" border="0"
        metal:define-macro="tree"
        tal:define="t python:here.setup_talkback_tree(here);
-				   height t/root/height;">
+                   height t/root/height;">
  <tr tal:repeat="row t/rows">
   <td colspan="1"
       tal:define="indent python: row.depth - 1"
@@ -25,11 +25,19 @@
    <a href=""
       tal:attributes="href url"
    ><img border="0" src=""
-         tal:attributes="src string:${obj/portal_url}/${obj/getIcon}" /></a> 
+         tal:attributes="src string:${obj/portal_url}/${obj/getIcon}" /></a>
    <a href=""
        tal:attributes="href url"
        tal:content="obj/Title">Title</a>,
-   by <span tal:replace="obj/Creator">Me</span>
+   by <tal:case tal:condition="obj/listCreators"
+  ><tal:loop tal:repeat="creator obj/listCreators"
+   ><tal:case tal:condition="not: repeat/creator/start"
+    ><tal:case tal:condition="not: repeat/creator/end">, </tal:case
+    ><tal:case tal:condition="repeat/creator/end"
+     > <tal:span i18n:translate="">and</tal:span> </tal:case></tal:case
+   ><tal:span tal:content="creator">creator</tal:span></tal:loop></tal:case
+ ><tal:case tal:condition="not: obj/listCreators" i18n:translate=""
+  >unknown</tal:case>
    on <span tal:replace="obj/CreationDate">Today</span>
   </td>
  </tr>




More information about the CMF-checkins mailing list