Metadata-Version: 1.0
Name: megrok.menu
Version: 0.2
Summary: Grok extension to configure browser menus
Home-page: http://pypi.python.org/pypi/megrok.menu
Author: Philipp von Weitershausen
Author-email: philipp@weitershausen.de
License: ZPL
Description: This package allows you to register browser menus and menu items for
        browser views in Grok.
        
        A menu is easily registered by creating a subclass of ``megrok.menu.Menu``::
        
        import megrok.menu.Menu
        
        class Tabs(megrok.menu.Menu):
        grok.name('tabs')
        grok.title('Tabs')
        grok.description('')
        
        A view can then placed on a menu with the ``menuitem`` directive::
        
        class Edit(grok.View):
        grok.title('Edit')
        grok.description("Change this object's data.")
        megrok.menu.menuitem('tabs')
        
        ...
        
        The ``title`` and ``description`` directives used here specifie the
        menu item's label and description.  The ``menuitem`` directive takes
        at least one argument, the menu that the item is registered to be for.
        This can either be an identifier string or the menu class
        itself. Other optional parameters include ``icon``, ``filter``, ``order``
        and ``extra``.
        
        For more use cases and examples, take a look to tests/test_functional.py
        
        
        Changelog
        =========
        
        0.2 (2008-03-02)
        ----------------
        * Compatible with grok1.0a1
        * Add the SubMenuItem base class and it's grokker SubMenuItemGrokker
        * Add the `extra` parameter to the menuitem directive
        * Tests for added functionality
        * Remove version.cfg
        
        0.1 (2008-07-12)
        ----------------
        
        Initial release.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Environment :: Web Environment
Classifier: Framework :: Zope3
Classifier: License :: OSI Approved :: Zope Public License
