[Zope3-checkins] CVS: Zope3/src/zope/app/browser/workflow - configure.zcml:1.7 definition.py:1.3 definition_index.pt:1.2 importexport_index.pt:1.3 instance.py:1.4 instance_index.pt:1.2 instancecontainer_index.pt:1.3 instancecontainer_main.pt:1.2 useprocessdefinitionconfig.pt:1.4 workflows.pt:1.3 workflows.py:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 7 14:42:26 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/workflow
In directory cvs.zope.org:/tmp/cvs-serv26029/workflow

Modified Files:
	configure.zcml definition.py definition_index.pt 
	importexport_index.pt instance.py instance_index.pt 
	instancecontainer_index.pt instancecontainer_main.pt 
	useprocessdefinitionconfig.pt workflows.pt workflows.py 
Log Message:
Internationalized the rest of zope/app/browser.

I also took the chance to clean up some old code and remove a lot of cruft.
(This is the reason I decided to do it instead of letting a less 
experienced developer do it.)

I now consider I18n of the Zope core done. What does this mean to you?

1. All code you check into the CVS must be internationalized. That means:

   (a) Python and PT code must be properly tagged.

   (b) zope.pot must be updated. This can be done with::

       [zope/app/translation_files]$ python extract.py

       Note: You do not need to merge the new POT file with the catalogs.

2. Any code snippet that has no I18n is considered a bug! Therefore, please
   take care and do the I18n and make code so when you see missing spots.

Finally I would like to mention that some forms might experience some 
hickups, as I changed and moved around a lot of templates and was not able
to verify them all by hand. Please let me know, if something that used to 
work is not working anymore.


=== Zope3/src/zope/app/browser/workflow/configure.zcml 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/workflow/configure.zcml:1.6	Sun Aug  3 13:50:03 2003
+++ Zope3/src/zope/app/browser/workflow/configure.zcml	Thu Aug  7 13:41:45 2003
@@ -1,123 +1,105 @@
 <configure
-   xmlns='http://namespaces.zope.org/zope'
-   xmlns:browser='http://namespaces.zope.org/browser'
-   i18n_domain='zope'
-   >
+   xmlns:zope="http://namespaces.zope.org/zope"
+   xmlns="http://namespaces.zope.org/browser">
 
 
 <!-- Workflow Service -->
-<browser:page
-  for="zope.app.interfaces.workflow.IWorkflowService"
-  name="index.html"
-  template="workflows.pt"
-  class=".workflows.WorkflowsRegistryView"
-  permission="zope.ManageServices"  
-  menu="zmi_views" title="Processes"
-  />
-
-
-
-<browser:menuItem
-  menu="add_service"
-  for="zope.app.interfaces.container.IAdding"
-  action="WorkflowService"
-  title="'Workflow Service"
-  description="A workflow service" 
-  />
+  <page
+      for="zope.app.interfaces.workflow.IWorkflowService"
+      name="index.html"
+      template="workflows.pt"
+      class=".workflows.WorkflowsRegistryView"
+      permission="zope.ManageServices"  
+      menu="zmi_views" title="Processes" />
+
+  <menuItem
+      menu="add_service"
+      for="zope.app.interfaces.container.IAdding"
+      action="WorkflowService"
+      title="'Workflow Service"
+      description="A workflow service" />
 
 
 
 <!-- ProcessDefinition Registration -->
 
-<browser:page
-  for="zope.app.interfaces.workflow.IProcessDefinition"
-  name="useRegistration.html"
-  template="useprocessdefinitionconfig.pt"
-  class=".definition.Registered"
-  permission="zope.workflow.ManageProcessDefinitions"
-  menu="zmi_views" title="Registrations"
-  />
-
-
-<browser:addform
-  for="zope.app.interfaces.workflow.IProcessDefinition"
-  name="addRegistration.html"
-  schema="zope.app.interfaces.workflow.IProcessDefinitionRegistration"
-  class="zope.app.browser.services.registration.AddComponentRegistration"
-  permission="zope.workflow.ManageProcessDefinitions"
-  content_factory="zope.app.workflow.service.ProcessDefinitionRegistration"
-  arguments="name componentPath"
-  set_after_add="status"
-  fields="name componentPath permission status"
-  />
- 
-<browser:editform
-  name="index.html"
-  menu="zmi_views" title="Edit"
-  schema="zope.app.interfaces.workflow.IProcessDefinitionRegistration"
-  label="ProcessDefinition Registration"
-  permission="zope.workflow.ManageProcessDefinitions"
-  fields="name componentPath permission status"
-  />
-
-
-<browser:page
-  for="zope.app.interfaces.workflow.IProcessDefinition"
-  name="importexport.html"
-  template="importexport_index.pt"
-  class=".definition.ImportExportView"
-  permission="zope.workflow.ManageProcessDefinitions"
-  menu="zmi_views" title="Import/Export"
-  />
-
-<browser:pages
-     for="zope.app.interfaces.workflow.IProcessDefinition"
-     permission="zope.workflow.ManageProcessDefinitions"
-     class=".definition.ImportExportView">
-     
-    <browser:page name="import.html" attribute="importDefinition" />
-    <browser:page name="export.html" attribute="exportDefinition" />
-</browser:pages>
+  <page
+      for="zope.app.interfaces.workflow.IProcessDefinition"
+      name="useRegistration.html"
+      template="useprocessdefinitionconfig.pt"
+      class=".definition.Registered"
+      permission="zope.workflow.ManageProcessDefinitions"
+      menu="zmi_views" title="Registrations" />
+
+
+  <addform
+      for="zope.app.interfaces.workflow.IProcessDefinition"
+      name="addRegistration.html"
+      schema="zope.app.interfaces.workflow.IProcessDefinitionRegistration"
+      class="zope.app.browser.services.registration.AddComponentRegistration"
+      permission="zope.workflow.ManageProcessDefinitions"
+      content_factory="zope.app.workflow.service.ProcessDefinitionRegistration"
+      arguments="name componentPath"
+      set_after_add="status"
+      fields="name componentPath permission status" />
+   
+  <editform
+      name="index.html"
+      menu="zmi_views" title="Edit"
+      schema="zope.app.interfaces.workflow.IProcessDefinitionRegistration"
+      label="ProcessDefinition Registration"
+      permission="zope.workflow.ManageProcessDefinitions"
+      fields="name componentPath permission status" />
+
+
+  <page
+      for="zope.app.interfaces.workflow.IProcessDefinition"
+      name="importexport.html"
+      template="importexport_index.pt"
+      class=".definition.ImportExportView"
+      permission="zope.workflow.ManageProcessDefinitions"
+      menu="zmi_views" title="Import/Export" />
+
+  <pages
+      for="zope.app.interfaces.workflow.IProcessDefinition"
+      permission="zope.workflow.ManageProcessDefinitions"
+      class=".definition.ImportExportView">
+      
+    <page name="import.html" attribute="importDefinition" />
+    <page name="export.html" attribute="exportDefinition" />
+  </pages>
 
 
 <!-- ProcessDefinitionElementContainer -->
 
-<browser:defaultView
-  for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
-  name="contents.html"
-  />  
-
-<browser:page
-     for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
-     permission="zope.workflow.ManageProcessDefinitions"
-     class="zope.app.browser.container.contents.Contents"
-     name="contents.html" attribute="contents"
-     menu="zmi_views"
-     title="Contents"
-     />
-
-<!-- ProcessInstanceContainerAdaptable 
-     XXX Commented Out .. is just a demo
-<browser:pages
-  for="zope.app.interfaces.workflow.IProcessInstanceContainerAdaptable"
-  permission="zope.workflow.UseProcessInstances"
-  class="zope.app.browser.workflow.instance.InstanceContainerView">
-
-  <browser:page name="processinstances.html" attribute="contents" />
-  <browser:page name="removeObjects.html" attribute="removeObjects" />
-  <browser:page name="processinstance.html" attribute="instanceindex" />
-
-</browser:pages>
-
-<browser:menuItem
-  for="zope.app.interfaces.workflow.IProcessInstanceContainerAdaptable"
-  menu="zmi_views"
-  title="ProcessInstances"
-  action="processinstances.html"
-  />
--->
+  <page
+      for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
+      permission="zope.workflow.ManageProcessDefinitions"
+      class="zope.app.browser.container.contents.Contents"
+      name="contents.html" 
+      attribute="contents"
+      menu="zmi_views" title="Contents" />
+
+  <defaultView
+      for="zope.app.interfaces.workflow.IProcessDefinitionElementContainer"
+      name="contents.html" />  
+
+  <!-- ProcessInstanceContainerAdaptable 
+       XXX Commented Out .. is just a demo
+  <pages
+      for="zope.app.interfaces.workflow.IProcessInstanceContainerAdaptable"
+      permission="zope.workflow.UseProcessInstances"
+      class="zope.app.browser.workflow.instance.InstanceContainerView">
+
+    <page name="processinstances.html" attribute="contents"
+          menu="zmi_views" title="ProcessInstances" />
+    <page name="removeObjects.html" attribute="removeObjects" />
+    <page name="processinstance.html" attribute="instanceindex" />
+
+  </pages>
 
+  -->
 
-<include package=".stateful" />
+  <zope:include package=".stateful" />
 
 </configure>


=== Zope3/src/zope/app/browser/workflow/definition.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/workflow/definition.py:1.2	Sat Jun 21 17:22:07 2003
+++ Zope3/src/zope/app/browser/workflow/definition.py	Thu Aug  7 13:41:45 2003
@@ -18,20 +18,16 @@
 __metaclass__ = type
  
 from zope.component import getAdapter, getView, getUtility
-from zope.publisher.browser import BrowserView
 from zope.app.traversing import traverse
 from zope.app.interfaces.services.registration import IRegistered
 from zope.app.interfaces.workflow import IProcessDefinitionImportExport
 
 
-
-class Registered(BrowserView):
-    """View for displaying the registrations for a process definition
-    """
+class Registered:
+    """View for displaying the registrations for a process definition"""
 
     def uses(self):
-        """Get a sequence of registration summaries
-        """
+        """Get a sequence of registration summaries"""
         component = self.context
         useconfig = getAdapter(component, IRegistered)
         result = []
@@ -46,13 +42,13 @@
         return result
 
 
-class ProcessDefinitionView(BrowserView):
+class ProcessDefinitionView:
  
     def getName(self):
         return """I'm a dummy ProcessInstance"""
 
 
-class ImportExportView(BrowserView):
+class ImportExportView:
 
     def doExport(self):
         return self._getUtil().exportProcessDefinition(self.context,


=== Zope3/src/zope/app/browser/workflow/definition_index.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/workflow/definition_index.pt:1.1	Thu May  8 13:27:17 2003
+++ Zope3/src/zope/app/browser/workflow/definition_index.pt	Thu Aug  7 13:41:45 2003
@@ -1,14 +1,16 @@
 <html metal:use-macro="views/standard_macros/page">
 <head>
-  <title>ProcessDefinition</title>
+  <title metal:fill-slot="title" i18n:translate="">Process Definition</title>
 </head>
+
 <body>
- 
-  <div metal:fill-slot="body">
+<div metal:fill-slot="body">
 
-  <p>ProcessDefinition: <tal:block tal:replace="view/getName" /></p>
- 
-  </div>
+  <p i18n:translate="">
+    Process Definition: 
+        <tal:block tal:replace="view/getName" i18n:name="pd_name"/>
+  </p>
  
+</div> 
 </body>
 </html>


=== Zope3/src/zope/app/browser/workflow/importexport_index.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/workflow/importexport_index.pt:1.2	Wed Jun 25 17:18:57 2003
+++ Zope3/src/zope/app/browser/workflow/importexport_index.pt	Thu Aug  7 13:41:45 2003
@@ -1,19 +1,30 @@
-  <html metal:use-macro="context/@@standard_macros/page">
-    <body>
-      <div metal:fill-slot="body">
-        <span tal:define="success request/success | nothing"
-          tal:condition="success"><br />Import was successfull!<br /></span>
+<html metal:use-macro="context/@@standard_macros/page">
+<body>
+<div metal:fill-slot="body">
 
-        <p>Import / Export ProcessDefinitions:</p>
-        Import:
-        <form action="@@import.html" method="post" encoding="multipart/form-data">
-          <textarea cols="50" rows="10" name="definition"></textarea><br />
-            <input type="submit" value="do import"/>
-        </form>
-        <p></p>
-        Export: <a href="@@export.html">save as file</a><br />
-          <pre tal:content="view/doExport"/>
-      </div>
-    </body>
-  </html>
+  <br />
+  <p tal:define="success request/success | nothing"
+     tal:condition="success"
+     i18n:translate="">
+    Import was successfull!
+  </p>
+
+  <p i18n:translate="">Import / Export Process Definitions:</p>
+  <span i18n:translate="">Import:</span>
+  <form action="@@import.html" method="post" encoding="multipart/form-data">
+    <textarea cols="50" rows="10" name="definition"></textarea>
+    <br />
+    <input type="submit" value="Import"
+           i18n:attributes="value import-button" />
+  </form>
+
+  <p i18n:translate="">
+    Export: <a href="@@export.html">save as file</a>
+  </p>
+  
+  <pre tal:content="view/doExport"/>
+
+</div>
+</body>
+</html>
   


=== Zope3/src/zope/app/browser/workflow/instance.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/workflow/instance.py:1.3	Sat Jun  7 02:37:20 2003
+++ Zope3/src/zope/app/browser/workflow/instance.py	Thu Aug  7 13:41:45 2003
@@ -15,19 +15,17 @@
  
 $Id$
 """
-__metaclass__ = type
-
-from zope.schema import getFieldNames
-from zope.component import getAdapter
-from zope.publisher.browser import BrowserView
-from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
-
 from zope.app.interfaces.workflow import IProcessInstanceContainerAdaptable
 from zope.app.interfaces.workflow import IProcessInstanceContainer
 from zope.app.interfaces.workflow.stateful import IStatefulProcessInstance
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
+from zope.component import getAdapter
+from zope.schema import getFieldNames
+
+__metaclass__ = type
 
 
-class InstanceContainerView(BrowserView):
+class InstanceContainerView:
 
     __used_for__ = IProcessInstanceContainerAdaptable
 


=== Zope3/src/zope/app/browser/workflow/instance_index.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/workflow/instance_index.pt:1.1	Thu May  8 13:27:17 2003
+++ Zope3/src/zope/app/browser/workflow/instance_index.pt	Thu Aug  7 13:41:45 2003
@@ -1,54 +1,56 @@
-  <html metal:use-macro="views/standard_macros/page">
-    <head>
-      <style metal:fill-slot="headers" type="text/css">
-        <!--
-        .ContentTitle {
-        text-align: left;
-        }
-        -->
-      </style>
-    </head>
-    <body>
-      <div metal:fill-slot="body">
-        <tal:block tal:define="pi_name request/pi_name;
-          info python:view.getProcessInstanceInfo(pi_name)">
-
-          <p>Status: <tal:block tal:replace="info/status" /></p>
-
-          Outgoing Transitions:<br />
-            <tal:block tal:repeat="name info/outgoing_transitions"
-          tal:condition="info/outgoing_transitions | nothing">
-          <tal:block tal:replace="name" /> 
-            <a tal:attributes="href string:?pi_name=${pi_name}&fire_transition=${name}">fire</a><br />
-          </tal:block>
-          
-          <table  id="sortable" class="listing" summary="ProcessInstance Data"
-                 cellpadding="2" cellspacing="0" >
-            
-            <thead> 
-              <tr>
-                <th>Key</th>
-                <th>Value</th>
-              </tr>
-            </thead>
-            
-            <tbody tal:define="data info/data | nothing"
-              tal:condition="info/data">
-  
-              <tr tal:repeat="key python:data.keys()">
-                <td class="ContentTitle" tal:content="key" />
-        <td tal:content="python:data.get(key) or default">No Value</td>
-              </tr>
-              
-            </tbody>
-            
-          </table>
-          <br />
-        </tal:block>
-      </div>
-    </body>
-  </html>
-
-
-
-
+<html metal:use-macro="views/standard_macros/page">
+<head>
+  <style metal:fill-slot="headers" type="text/css">
+    <!--
+    .ContentTitle {
+    text-align: left;
+    }
+    -->
+  </style>
+</head>
+<body>
+<div metal:fill-slot="body">
+
+  <tal:block define="pi_name request/pi_name;
+                     info python:view.getProcessInstanceInfo(pi_name)">
+
+    <p i18n:translate="">
+      Status: 
+      <tal:block tal:replace="info/status" i18n:name="status"/>
+    </p>
+
+    <div i18n:translate="">Outgoing Transitions:</div>
+    <br />
+    <tal:block repeat="name info/outgoing_transitions"
+               condition="info/outgoing_transitions | nothing">
+      <span tal:replace="name" /> 
+      <a tal:attributes="href 
+             string:?pi_name=${pi_name}&fire_transition=${name}">fire</a>
+      <br />
+    </tal:block>
+    
+    <table id="sortable" class="listing" summary="ProcessInstance Data"
+           cellpadding="2" cellspacing="0" >
+      
+      <thead> 
+        <tr>
+          <th i18n:translate="">Key</th>
+          <th i18n:translate="">Value</th>
+        </tr>
+      </thead>
+      
+      <tbody tal:define="data info/data | nothing" tal:condition="info/data">
+
+        <tr tal:repeat="key python:data.keys()">
+          <td class="ContentTitle" tal:content="key" />
+          <td tal:content="python:data.get(key) or default">No Value</td>
+        </tr>
+        
+      </tbody>
+      
+    </table>
+  </tal:block>
+
+</div>
+</body>
+</html>
\ No newline at end of file


=== Zope3/src/zope/app/browser/workflow/instancecontainer_index.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/workflow/instancecontainer_index.pt:1.2	Mon Jun 30 13:10:58 2003
+++ Zope3/src/zope/app/browser/workflow/instancecontainer_index.pt	Thu Aug  7 13:41:45 2003
@@ -1,43 +1,37 @@
 <html metal:use-macro="views/standard_macros/page">
 <head>
-<style metal:fill-slot="headers" type="text/css">
-<!--
-
-.ContentTitle {
-    text-align: left;
-}
--->
-</style>
+  <style metal:fill-slot="headers" type="text/css">
+    <!--
+      .ContentTitle {
+          text-align: left;
+      }
+     -->
+  </style>
 </head>
+
 <body>
 <div metal:fill-slot="body">
 
-  <table  id="sortable" class="listing" summary="ProcessInstance listing"
-             cellpadding="2" cellspacing="0" >
-
+  <table id="sortable" class="listing" summary="ProcessInstance listing"
+         cellpadding="2" cellspacing="0" >
     <thead> 
       <tr>
-        <th>Name</th>
+        <th i18n:translate="">Name</th>
       </tr>
     </thead>
-  
     <tbody>
   
       <tr tal:repeat="info view/listContentInfo">
-  
         <td class="ContentTitle">
           <a href="subfolder_id"
              tal:attributes="href info/url"
              tal:content="info/id"
           >ID here</a>
         </td>
-
       </tr>
   
     </tbody>
-  
   </table>
-  <br />
 
 </div>
 </body>


=== Zope3/src/zope/app/browser/workflow/instancecontainer_main.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/workflow/instancecontainer_main.pt:1.1	Thu May  8 13:27:17 2003
+++ Zope3/src/zope/app/browser/workflow/instancecontainer_main.pt	Thu Aug  7 13:41:45 2003
@@ -1,61 +1,55 @@
 <html metal:use-macro="views/standard_macros/page">
-<head>
-<style metal:fill-slot="headers" type="text/css">
-</style>
-</head>
 <body>
 <div metal:fill-slot="body">
-<div metal:define-macro="contents">
 
-  <form name="containerContentsForm" method="get" action="." 
-        tal:define="container_contents view/listContentInfo"
-        tal:condition="container_contents"
-        >
-
-      <table id="sortable" class="listing" summary="ProcessInstance listing"
-             cellpadding="2" cellspacing="0" 
-             metal:define-macro="contents_table"
-             >
-    
-        <thead> 
-          <tr>
-            <th>&nbsp;</th>
-            <th>Name</th>
-          </tr>
-        </thead>
-
-        <tbody>
-
-        <metal:block tal:repeat="item container_contents">
-          <tr tal:define="oddrow repeat/item/odd; url item/url"
-              tal:attributes="class python:oddrow and 'even' or 'odd'" > 
-            <td>
-              <input type="checkbox" class="noborder" name="ids:list" id="#"
-                     value="#"
-                     tal:attributes="value item/id;
-                                     id python: 'cb_'+item['id'];
-                                     checked request/ids_checked|nothing;"/>
-            </td>
-            <td> 
-              <a href="#" 
-                 tal:attributes="href 
-                                 string:${url}"
-                 tal:content="item/id"
-                 >foo</a> 
-            </td>
-          </tr>
-        </metal:block>
-        </tbody> 
-      </table>
-      <br />
-
-      <input type="submit" name="@@removeObjects.html:method" value="Delete"
-             tal:attributes="value string:menu_delete_button"
-             i18n:attributes="value" /> 
+  <div metal:define-macro="contents">
 
-  </form>
+    <form name="containerContentsForm" method="get" action="." 
+          tal:define="container_contents view/listContentInfo"
+          tal:condition="container_contents">
+
+        <table id="sortable" class="listing" summary="ProcessInstance listing"
+               cellpadding="2" cellspacing="0" 
+               metal:define-macro="contents_table">
+      
+          <thead> 
+            <tr>
+              <th>&nbsp;</th>
+              <th i18n:translate="">Name</th>
+            </tr>
+          </thead>
+
+          <tbody>
+
+          <tal:block repeat="item container_contents">
+            <tr tal:define="oddrow repeat/item/odd; url item/url"
+                tal:attributes="class python:oddrow and 'even' or 'odd'" > 
+              <td>
+                <input type="checkbox" class="noborder" name="ids:list" id="#"
+                       value="#"
+                       tal:attributes="value item/id;
+                                       id python: 'cb_'+item['id'];
+                                       checked request/ids_checked|nothing;"/>
+              </td>
+              <td> 
+                <a href="#" 
+                   tal:attributes="href 
+                                   string:${url}"
+                   tal:content="item/id"
+                   >foo</a> 
+              </td>
+            </tr>
+          </tal:block>
+          </tbody> 
+        </table>
+        <br />
 
-</div>
+        <input type="submit" name="@@removeObjects.html:method" value="Delete"
+               i18n:attributes="value delete-button" /> 
+
+    </form>
+
+  </div>
 
 </div>
 </body>


=== Zope3/src/zope/app/browser/workflow/useprocessdefinitionconfig.pt 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/workflow/useprocessdefinitionconfig.pt:1.3	Mon Jun 30 13:10:58 2003
+++ Zope3/src/zope/app/browser/workflow/useprocessdefinitionconfig.pt	Thu Aug  7 13:41:45 2003
@@ -1,26 +1,23 @@
 <html metal:use-macro="context/@@standard_macros/page">
 <body>
-  <div metal:fill-slot="body">
+<div metal:fill-slot="body">
 
-    <p>Configurations for this process definition:</p>
+  <p i18n:translate="">Configurations for this process definition:</p>
 
-    <ul>
+  <ul>
+    <li tal:repeat="use view/uses">
+      <a href="."
+         tal:attributes="href use/url">
+        <span tal:replace="string:process definition ${use/name}" />
+      </a>
+      (<span tal:replace="use/status">Active</span>)
+    </li>
+  </ul>
+
+  <p><a href="addConfiguration.html" i18n:translate="">
+    Add a configuration for this process definition
+  </a></p>
 
-      <li tal:repeat="use view/uses">
-
-        <a href="."
-           tal:attributes="href use/url">
-          <span tal:replace="string:process definition ${use/name}" />
-        </a>
-        (<span tal:replace="use/status">Active</span>)
-
-      </li>
-    </ul>
-
-    <p><a href="addConfiguration.html">
-      Add a configuration for this process definition
-    </a></p>
-
-  </div>
+</div>
 </body>
 </html>


=== Zope3/src/zope/app/browser/workflow/workflows.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/workflow/workflows.pt:1.2	Tue Jul 29 20:00:10 2003
+++ Zope3/src/zope/app/browser/workflow/workflows.pt	Thu Aug  7 13:41:45 2003
@@ -1,34 +1,42 @@
 <html metal:use-macro="views/standard_macros/page">
-<body metal:fill-slot="body">
+<body>
+<div metal:fill-slot="body">
+
   <div metal:use-macro="view/indexMacros/macros/body">
  
-  <h2 metal:fill-slot="heading">
-    ProcessDefinitions configured in this workflow service.
-  </h2>
- 
-  <p metal:fill-slot="empty_text">No ProcessDefinitions have been configured</p>
- 
-  <div metal:fill-slot="extra_top">
- 
-    <p>For each ProcessDefinition, the ProcessDefinition name is given and all
-       of the components registered to provide the ProcessDefinition are
-       shown.  You may select the component to provide the ProcessDefinition
-       or disable the ProcessDefinition.</p>
- 
-    <p>Select a ProcessDefinition name or a component name to visit the
-       ProcessDefinition or component.</p>
- 
-  </div>
- 
-  <p metal:fill-slot="help_text">
-     To configure a ProcessDefinition, add a ProcessDefinition
-     component to a <em>package</em> in <a
-     href="../../../Packages">Packages</a> or to the <a
-     href="../../../Packages/default">default package</a>. After the component
-     is added, add a ProcessDefinition configuration that configures the 
-     component to provide a ProcessDefinition.
-  </p>
+    <h2 metal:fill-slot="heading" i18n:translate="">
+      ProcessDefinitions configured in this workflow service.
+    </h2>
+ 
+    <p metal:fill-slot="empty_text" i18n:translate="">
+      No ProcessDefinitions have been configured
+    </p>
+ 
+    <div metal:fill-slot="extra_top">
+ 
+      <p i18n:translate="">
+        For each ProcessDefinition, the ProcessDefinition name is given and all
+        of the components registered to provide the ProcessDefinition are
+        shown.  You may select the component to provide the ProcessDefinition
+        or disable the ProcessDefinition.</p>
+ 
+      <p i18n:translate="">
+        Select a ProcessDefinition name or a component name to visit the
+        ProcessDefinition or component.</p>
+ 
+    </div>
+ 
+    <p metal:fill-slot="help_text" i18n:translate="">
+       To configure a ProcessDefinition, add a ProcessDefinition
+       component to a <em>package</em> in <a
+       href="../../../Packages">Packages</a> or to the <a
+       href="../../../Packages/default">default package</a>. After the component
+       is added, add a ProcessDefinition configuration that configures the 
+       component to provide a ProcessDefinition.
+    </p>
  
   </div>
+
+</div>
 </body>
 </html>


=== Zope3/src/zope/app/browser/workflow/workflows.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/workflow/workflows.py:1.1	Tue Jul 29 21:51:01 2003
+++ Zope3/src/zope/app/browser/workflow/workflows.py	Thu Aug  7 13:41:45 2003
@@ -1,3 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Workflow View Classes
+
+$Id$
+"""
 from zope.app.browser.services.registration import \
      NameComponentRegistryView, NameRegistryView
 from zope.app.traversing import traverse, getParent, getName




More information about the Zope3-Checkins mailing list