[Zope3-checkins] CVS: Products3/bugtracker/browser - configure.zcml:1.5 tracker.py:1.5

Stephan Richter srichter@cosmos.phy.tufts.edu
Mon, 28 Jul 2003 07:50:12 -0400


Update of /cvs-repository/Products3/bugtracker/browser
In directory cvs.zope.org:/tmp/cvs-serv23146/browser

Modified Files:
	configure.zcml tracker.py 
Log Message:
I finally got sick of using Folder as the base and implemented IContainer
myself and I think the result is good. I am now always using integers as 
ids and they are always generted for you.


=== Products3/bugtracker/browser/configure.zcml 1.4 => 1.5 ===
--- Products3/bugtracker/browser/configure.zcml:1.4	Sat Jul 26 12:59:14 2003
+++ Products3/bugtracker/browser/configure.zcml	Mon Jul 28 07:49:36 2003
@@ -39,9 +39,7 @@
       name="+"
       class=".bug.BugAdding"
       permission="bugtracker.ViewBug"
-      allowed_attributes="addingInfo"
-      menu="zmi_actions"
-      title="Add">
+      allowed_attributes="addingInfo">
       <browser:page name="index.html"  template="add.pt" />
       <browser:page name="action.html" attribute="action" />
   </browser:view>
@@ -97,6 +95,19 @@
       <browser:page name="tracker.xml" attribute="exportXML" />
       <browser:page name="import.html" attribute="importXML" />
   </browser:pages>
+
+  <browser:page
+      name="contents.html"
+      for="zopeproducts.bugtracker.interfaces.IBugTracker"
+      permission="zope.ManageContent"
+      class="zope.app.browser.container.contents.Contents"
+      attribute="contents"
+      menu="zmi_views" title="Contents"/>
+
+  <browser:menuItem
+      menu="zmi_actions" title="Add Bug"
+      for="zopeproducts.bugtracker.interfaces.IBugTracker"
+      action="+/AddBug="/>
 
   <browser:defaultView
       name="overview.html"


=== Products3/bugtracker/browser/tracker.py 1.4 => 1.5 ===
--- Products3/bugtracker/browser/tracker.py:1.4	Mon Jul 28 06:21:09 2003
+++ Products3/bugtracker/browser/tracker.py	Mon Jul 28 07:49:36 2003
@@ -37,7 +37,7 @@
 
     def add(self, content):
         name = self.context.setObject('', content)
-        self.contentName = name
+        self.contentName = str(name)
         return self.context[name]