[Zope-CVS] CVS: Packages/JobBoardEx - JobList.zcml:1.4

Jeremy Hylton jeremy@zope.com
Wed, 20 Mar 2002 14:26:36 -0500


Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv20421

Modified Files:
	JobList.zcml 
Log Message:
Move the summary view into Views/Browser.

Use a nifty ENTITY to make the .zcml shorter.




=== Packages/JobBoardEx/JobList.zcml 1.3 => 1.4 ===
+<!ENTITY summaryView
+         ".JobBoardEx.Views.Browser.JobListView.JobListSummaryView">
+]>
+
 <zopeConfigure
-   xmlns='http://namespaces.zope.org/zope'
-   xmlns:zmi='http://namespaces.zope.org/zmi'
-   xmlns:security='http://namespaces.zope.org/security'
-   xmlns:browser='http://namespaces.zope.org/browser'
+         xmlns='http://namespaces.zope.org/zope'
+         xmlns:zmi='http://namespaces.zope.org/zmi'
+         xmlns:security='http://namespaces.zope.org/security'
+         xmlns:browser='http://namespaces.zope.org/browser'
 >
 
-<zmi:factoryFromClass name=".JobBoardEx.JobList." 
-                  permission_id="Zope.Public"
-                  title="JobList" />
-
-<security:protectClass name=".JobBoardEx.JobList."
-                  permission_id="Zope.Public"
+<zmi:factoryFromClass 
+         name=".JobBoardEx.JobList." 
+         permission_id="Zope.Public"
+         title="JobList" />
+
+<security:protectClass 
+         name=".JobBoardEx.JobList."
+         permission_id="Zope.Public"
 />
 
-<browser:defaultView for=".JobBoardEx.IJobList."
-              name="summary"
-              factory=".JobBoardEx.JobListView.JobListSummaryView" 
+<browser:defaultView 
+        for=".JobBoardEx.IJobList."
+        name="summary"
+        factory="&summaryView;"
 />
 
-<security:protectClass name=".JobBoardEx.JobListView.JobListSummaryView"
-                       permission_id="Zope.Public"
-                       methods="index, getApprovedJobs"
+<security:protectClass 
+        name="&summaryView;"
+        permission_id="Zope.Public"
+        methods="index, getApprovedJobs"
 />
 
 <browser:view for=".JobBoardEx.IJobList."
-              name="_traverse"
-              factory=".JobBoardEx.JobList.JobListTraverser" 
+        name="_traverse"
+        factory=".JobBoardEx.JobList.JobListTraverser" 
 />
 
-<security:protectClass name=".JobBoardEx.JobListView.JobListSummaryView"
-                       permission_id="Zope.Public"
-                       methods="index, getApprovedJobs"
+<security:protectClass 
+        name="&summaryView;"
+        permission_id="Zope.Public"
+        methods="index, getApprovedJobs"
 />
 
 </zopeConfigure>