[Zope3-checkins] CVS: Zope3/src/zope/app/services - menu.py:1.1.2.2
menu.pyc:1.1.2.2
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Aug 14 19:47:11 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv24609/services
Modified Files:
Tag: dreamcatcher-ttwschema-branch
menu.py menu.pyc
Log Message:
Everything works now. To demo it, do:
1. Create a Utility Service.
2. Create a Menu Service
3. Add a Browser Menu and register it as 'add_content'. This will be
automated.
4. Create a Persistent Schema Utility (this begs to be renamed). Call it
'IDocument'. Add some fields.
5. Create a Content Component Defition. Call it 'Document'.
Find the IDocument schema and set it to the definitions schema. Make
security assertions as desired. Later I will also make all the menu
options adjustable.
6. Go to your Content space. There you should see a 'Document' object in
the list of available Content Objects. As usual, click on it to create
the object.
That's it.
Now it is time to clean up and write tests.
=== Zope3/src/zope/app/services/menu.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/services/menu.py:1.1.2.1 Thu Aug 14 13:58:08 2003
+++ Zope3/src/zope/app/services/menu.py Thu Aug 14 18:46:35 2003
@@ -158,3 +158,8 @@
return super(BrowserMenuService,
self).getMenu(menu_id, object, request, max)
getMenu = ContextMethod(getMenu)
+
+ def getFirstMenuItem(self, menu_id, object, request):
+ return super(BrowserMenuService,
+ self).getFirstMenuItem(menu_id, object, request)
+ getFirstMenuItem = ContextMethod(getFirstMenuItem)
=== Zope3/src/zope/app/services/menu.pyc 1.1.2.1 => 1.1.2.2 ===
More information about the Zope3-Checkins
mailing list