[svn] / z3 / Five / trunk / demo / FiveViewsDemo / browser.py Repository:
ViewVC logotype

View of /z3/Five/trunk/demo/FiveViewsDemo/browser.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 46891 - (download) (as text) (annotate)
Wed Jun 16 12:54:00 2004 UTC (9 years, 10 months ago) by faassen
File size: 890 byte(s)
Initial import of Five. This is a cvs export of cvs.infrae.com/Five.
from AccessControl import ClassSecurityInfo
from Globals import InitializeClass
from Products.Five.api import BrowserView

class SimpleContentView(BrowserView):
    """More docstring. Please Zope"""
    security = ClassSecurityInfo()

    security.declareProtected('View Management Screens', 'eagle')
    def eagle(self):
        """Docstring"""
        return "The eagle has landed"
    
InitializeClass(SimpleContentView)

class SimpleFolderView(BrowserView):
    security = ClassSecurityInfo()

    security.declarePublic('eagle')
    def eagle(self):
        """Test
        """
        return "The eagle has landed: %s" % self.context.objectIds()

    security.declareProtected('View management screens', 'mydefault')
    def mydefault(self):
        """Test
        """
        return "This is default view for %s" % self.context.absolute_url()
    
InitializeClass(SimpleFolderView)

zope.org Infrastructure
ViewVC Help
Powered by ViewVC 1.0.3