[Zope3-checkins] CVS: zopeproducts/demo/jobboardi18n - ApproveJobsView.py:1.3 Job.py:1.2 JobCreateView.py:1.3 JobList.py:1.3 configure.zcml:1.8

Guido van Rossum guido@python.org
Thu, 20 Mar 2003 16:03:06 -0500


Update of /cvs-repository/zopeproducts/demo/jobboardi18n
In directory cvs.zope.org:/tmp/cvs-serv11700

Modified Files:
	ApproveJobsView.py Job.py JobCreateView.py JobList.py 
	configure.zcml 
Log Message:
Made it working again.

=== zopeproducts/demo/jobboardi18n/ApproveJobsView.py 1.2 => 1.3 ===
--- zopeproducts/demo/jobboardi18n/ApproveJobsView.py:1.2	Tue Jun 18 13:39:06 2002
+++ zopeproducts/demo/jobboardi18n/ApproveJobsView.py	Thu Mar 20 16:03:05 2003
@@ -1,5 +1,5 @@
-from Zope.App.PageTemplate.ViewPageTemplateFile import ViewPageTemplateFile
-from Zope.Publisher.Browser.BrowserView import BrowserView
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
+from zope.publisher.browser import BrowserView
 
 class ApproveJobsView(BrowserView):
 


=== zopeproducts/demo/jobboardi18n/Job.py 1.1 => 1.2 ===
--- zopeproducts/demo/jobboardi18n/Job.py:1.1	Mon Jun 17 19:57:56 2002
+++ zopeproducts/demo/jobboardi18n/Job.py	Thu Mar 20 16:03:05 2003
@@ -1,10 +1,6 @@
-"""
-Job.py
-"""
-
-from IJob import IJob, JobState
-from Persistence import Persistent
+from persistence import Persistent
 
+from zopeproducts.demo.jobboard.IJob import IJob, JobState
 
 class Job(Persistent):
 


=== zopeproducts/demo/jobboardi18n/JobCreateView.py 1.2 => 1.3 ===
--- zopeproducts/demo/jobboardi18n/JobCreateView.py:1.2	Mon Jun 17 23:06:22 2002
+++ zopeproducts/demo/jobboardi18n/JobCreateView.py	Thu Mar 20 16:03:05 2003
@@ -1,5 +1,6 @@
-from Zope.App.PageTemplate.ViewPageTemplateFile import ViewPageTemplateFile
-from Zope.Publisher.Browser.BrowserView import BrowserView
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
+from zope.publisher.browser import BrowserView
+
 from Job import Job
 
 class JobCreateView(BrowserView):


=== zopeproducts/demo/jobboardi18n/JobList.py 1.2 => 1.3 ===
--- zopeproducts/demo/jobboardi18n/JobList.py:1.2	Tue Aug  6 13:39:33 2002
+++ zopeproducts/demo/jobboardi18n/JobList.py	Thu Mar 20 16:03:05 2003
@@ -1,8 +1,8 @@
-from Persistence import Persistent
-from Persistence.PersistentDict import PersistentDict
+from persistence import Persistent
+from persistence.dict import PersistentDict
 
-from IJobList import IJobList
-from IJob import JobState
+from zopeproducts.demo.jobboard.IJobList import IJobList
+from zopeproducts.demo.jobboard.IJob import JobState
 
 class JobList(Persistent):
 


=== zopeproducts/demo/jobboardi18n/configure.zcml 1.7 => 1.8 ===
--- zopeproducts/demo/jobboardi18n/configure.zcml:1.7	Thu Jun 20 16:34:25 2002
+++ zopeproducts/demo/jobboardi18n/configure.zcml	Thu Mar 20 16:03:05 2003
@@ -1,58 +1,70 @@
 <zopeConfigure
-    xmlns='http://namespaces.zope.org/zope'
-    xmlns:browser='http://namespaces.zope.org/browser'
-    xmlns:gts='http://namespaces.zope.org/gts'
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    xmlns:gts="http://namespaces.zope.org/gts"
 >
 
-<content class=".JobList.">
+<content class=".JobList.JobList">
   <factory
+      id="zopeproducts.demo.jobboard.JobList"
       title="I18n Job List"
-      id="i18nJobList"
-      permission="Zope.ManageContent" />
-  <allow interface=".IJobList." />
-  <implements interface="Zope.App.OFS.Container.IContainer.IItemContainer" />
+      permission="zope.ManageContent"
+      />
+  <allow interface="zopeproducts.demo.jobboard.IJobList.IJobList" />
+  <implements interface="zope.app.interfaces.container.IItemContainer" />
 </content>
 
-<content class=".Job.">
-  <allow interface=".IJob." />
+<browser:menuItem
+    menu="add_content"
+    for="zope.app.interfaces.container.IAdding"
+    title="I18N Job Board"
+    description="Internationalized board for posting and searching jobs."
+    action="zopeproducts.demo.jobboard.JobList"
+    />
+
+<content class=".Job.Job">
+  <allow interface="zopeproducts.demo.jobboard.IJob.IJob" />
 </content>
 
-<browser:view
+<browser:page
     name="index.html"
-    for=".IJobList."
+    for="zopeproducts.demo.jobboard.JobList.IJobList"
     template="JobListView.pt"
-    permission="Zope.View" />
-
-<browser:defaultView for=".IJobList." name="index.html" />
+    permission="zope.View"
+    />
 
-<browser:view
-    for=".IJobList."
-    factory=".JobCreateView."
-    permission="Zope.View">
+<browser:pages
+    for="zopeproducts.demo.jobboard.JobList.IJobList"
+    class=".JobCreateView.JobCreateView"
+    permission="zope.View">
 
   <browser:page name="edit.html"     attribute="edit" />
   <browser:page name="preview.html"  attribute="preview" />
   <browser:page name="create.method" attribute="create" />
-</browser:view>
+</browser:pages>
 
-<browser:view
+<browser:page
     name="index.html"
-    for=".IJob."
+    for="zopeproducts.demo.jobboard.IJob.IJob"
     template="JobView.pt"
-    permission="Zope.View" />
-
-<browser:defaultView for=".IJob." name="index.html" />
+    permission="zope.View"
+    />
 
-<browser:view
-    for=".IJobList."
-    factory=".ApproveJobsView."
-    permission="Zope.ManageContent">
+<browser:pages
+    for="zopeproducts.demo.jobboard.JobList.IJobList"
+    class=".ApproveJobsView.ApproveJobsView"
+    permission="zope.ManageContent"
+    >
 
   <browser:page name="review.html"    attribute="review" />
   <browser:page name="approve.method" attribute="approve" />
-</browser:view>
+</browser:pages>
 
-<browser:icon name="zmi_icon" for=".IJobList." file="joblist.gif" />
+<browser:icon
+    name="zmi_icon" 
+    for="zopeproducts.demo.jobboard.JobList.IJobList"
+    file="../jobboard/joblist.gif"
+    />
 
 <gts:registerTranslations directory="./locale" />