Skip to content

Commit

Permalink
Fix up zope.traversing, zope.formlib and zope.viewlet according to new
Browse files Browse the repository at this point in the history
BrowserView location
  • Loading branch information
philikon committed Apr 6, 2006
1 parent 865f632 commit db6d07c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions page.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
##############################################################################
#
# Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Simple Page support
$Id$
"""
from zope import interface
from zope.publisher.interfaces import NotFound
from zope.publisher.browser import BrowserView
from zope.formlib.interfaces import IPage

class Page(BrowserView):
"""Simple page-support class
"""

interface.implements(IPage)

def browserDefault(self, request):
return self, ()

def publishTraverse(self, request, name):
raise NotFound(self, name, request)

0 comments on commit db6d07c

Please sign in to comment.