[Zope3-checkins] CVS: Products3/z3checkins - container_sidebar.pt:1.1 message_sidebar.pt:1.1 configure.zcml:1.18 container.pt:1.11 message.py:1.36 message_part.pt:1.10

Gintautas Miliauskas gintas at pov.lt
Fri Mar 26 17:12:19 EST 2004


Update of /cvs-repository/Products3/z3checkins
In directory cvs.zope.org:/tmp/cvs-serv32625

Modified Files:
	configure.zcml container.pt message.py message_part.pt 
Added Files:
	container_sidebar.pt message_sidebar.pt 
Log Message:
Got rid of 'usage', which is now obsolete and no longer available.


=== Added File Products3/z3checkins/container_sidebar.pt ===
<html>
<head>
<title tal:content="view/title">Zope 3 Checkins</title>
<style type="text/css">
  * { font-size: small; }
  h1 { font-size: medium; margin-bottom: 0.5ex; }
  div.toolbar { font-size: xx-small; margin-left: 1em; margin-bottom: 1.5em; }
  div.toolbar > a { display: block; width: 100%; }
  div.navigation { margin-top: 1em; }
  div.navigation > a { display: block; width: 100%; text-align: right; }
  .message { margin-top: 1ex; }
  .description { font-size: small; margin-left: 1em; }
  .same { color: gray; margin-top: 0.5ex; }
  .author { font-weight: bold; }
  a.title { display: block; width: 100%; }
  a:hover { background: #e0e6ff; }
  img.icon { float: right; padding: 0ex; margin: 2px; border: none; }
  hr { width: 60%; border: none; background: gray; height: 1px;
       margin-top: 1ex; margin-bottom: 0ex; }
</style>
</head>
<body tal:define="dummy view/placeBookmark;
                  start python:int(request.get('start', '0'));
                  size python:int(request.get('size', '20'));
                  opt_size python:(size != 20) and '&amp;size=%d' % size or ''">
<h1 tal:replace="view/title">Zope 3 Checkins</h1>

<div class="toolbar"
     tal:define="first_batch python:start <= 0">
<a tal:condition="view/archive_url"
   tal:attributes="href view/archive_url"
   target="_content"
   href="http://mail.zope.org/pipermail/zope3-checkins/">List archives</a>
<a tal:condition="first_batch"
   href="javascript:window.location.reload()">Refresh</a>
<a tal:condition="not: first_batch"
   tal:attributes="href request/URL">Newest checkins</a>
</div>

<div class="navigation">
<a tal:define="prev python:max(0, start - size)"
   tal:condition="python: start > 0"
   tal:attributes="href string:${request/URL}?start=${prev}${opt_size}">Previous
   <span tal:replace="size">20</span></a>
</div>

<div tal:replace="structure view/renderCheckins" />

<div class="navigation">
<a tal:define="next python:start + size"
   tal:condition="python: next < view.count()"
   tal:attributes="href string:${request/URL}?start=${next}${opt_size}">Next
   <span tal:replace="size">20</span></a>
</div>

</body>
</html>


=== Added File Products3/z3checkins/message_sidebar.pt ===
<div class="message">
<a class="title" tal:attributes="href context/@@absolute_url" target="_content">
  <img class="icon"
       tal:define="icon view/icon"
       tal:attributes="src icon/src; alt icon/alt; title icon/title" />
  <img tal:condition="context/branch | nothing"
       class="icon" src="++resource++branch.png" alt="Branch"
       tal:attributes="title string:Branch: ${context/branch}"/>
  <span class="date" tal:content="context/date/@@isodatetime" />:
  <span class="author" tal:content="context/author_name" />
  - <span class="subject" tal:content="context/subject" />
</a>
<tal:if condition="context/log_message | nothing">
<div class="same description" tal:condition="options/same_as_previous">
(Same as above)
</div>
<div class="description" tal:condition="not:options/same_as_previous"
     tal:content="context/log_message" />
</tal:if>
</div>


=== Products3/z3checkins/configure.zcml 1.17 => 1.18 ===
--- Products3/z3checkins/configure.zcml:1.17	Sun Mar 14 05:56:48 2004
+++ Products3/z3checkins/configure.zcml	Fri Mar 26 17:11:47 2004
@@ -159,8 +159,7 @@
   <browser:page
     for=".interfaces.IMessage"
     name="html-sidebar"
-    template="message_part.pt"
-    usage="sidebar"
+    template="message_sidebar.pt"
     class=".message.MessageView"
     permission="zope.View" />
 
@@ -197,8 +196,7 @@
   <browser:page
     for=".interfaces.ICheckinMessage"
     name="html-sidebar"
-    template="message_part.pt"
-    usage="sidebar"
+    template="message_sidebar.pt"
     class=".message.CheckinMessageView"
     permission="zope.View" />
 
@@ -244,8 +242,7 @@
   <browser:page
     for=".interfaces.ICheckinFolder"
     name="checkins-sidebar.html"
-    template="container.pt"
-    usage="sidebar"
+    template="container_sidebar.pt"
     class=".message.ContainerView"
     permission="zope.View" />
 


=== Products3/z3checkins/container.pt 1.10 => 1.11 ===
--- Products3/z3checkins/container.pt:1.10	Wed Sep 17 09:35:44 2003
+++ Products3/z3checkins/container.pt	Fri Mar 26 17:11:47 2004
@@ -18,13 +18,11 @@
   hr { width: 60%; border: none; background: gray; height: 1px;
        margin-top: 1ex; margin-bottom: 0ex; }
 </style>
-<style type="text/css" tal:condition="not:usage/sidebar">
+<style type="text/css">
   .description { white-space: pre; }
 </style>
 </head>
-<body tal:define="sidebar usage/sidebar;
-                  target python: sidebar and '_content' or None;
-                  dummy view/placeBookmark;
+<body tal:define="dummy view/placeBookmark;
                   start python:int(request.get('start', '0'));
                   size python:int(request.get('size', '20'));
                   opt_size python:(size != 20) and '&amp;size=%d' % size or ''">
@@ -32,7 +30,7 @@
 
 <div class="toolbar"
      tal:define="first_batch python:start <= 0">
-<tal:block tal:condition="not: usage/sidebar" tal:replace='structure string:
+<tal:block tal:replace='structure string:
 <script language="JavaScript" type="text/javascript">
 <!--
 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
@@ -43,7 +41,7 @@
 </script>
 '/>
 <a tal:condition="view/archive_url"
-   tal:attributes="target target; href view/archive_url"
+   tal:attributes="href view/archive_url"
    href="http://mail.zope.org/pipermail/zope3-checkins/">List archives</a>
 <a tal:condition="first_batch"
    href="javascript:window.location.reload()">Refresh</a>


=== Products3/z3checkins/message.py 1.35 => 1.36 ===
--- Products3/z3checkins/message.py:1.35	Sun Mar 21 18:04:01 2004
+++ Products3/z3checkins/message.py	Fri Mar 26 17:11:47 2004
@@ -463,7 +463,6 @@
     def renderCheckins(self, start=None, size=None):
         """Returns a list of checkins rendered into HTML.  See `checkins` for
         description of parameters."""
-        usage = self.index.usage
         html = []
         previous_message = None
         for item in self.checkins(start=start, size=size):
@@ -473,8 +472,7 @@
             else:
                 same_as_previous = None
             view = getView(item, 'html', self.request)
-            output = view(template_usage=usage,
-                          same_as_previous=same_as_previous)
+            output = view(same_as_previous=same_as_previous)
             html.append(output)
         return "".join(html)
 


=== Products3/z3checkins/message_part.pt 1.9 => 1.10 ===
--- Products3/z3checkins/message_part.pt:1.9	Fri Aug  1 05:43:16 2003
+++ Products3/z3checkins/message_part.pt	Fri Mar 26 17:11:47 2004
@@ -1,6 +1,5 @@
-<div class="message"
-     tal:define="target python: path('usage/sidebar') and '_content' or None">
-<a class="title" tal:attributes="href context/@@absolute_url; target target">
+<div class="message">
+<a class="title" tal:attributes="href context/@@absolute_url">
   <img class="icon"
        tal:define="icon view/icon"
        tal:attributes="src icon/src; alt icon/alt; title icon/title" />




More information about the Zope3-Checkins mailing list