############################################################################## # # Copyright (c) 2005-2006 Brian Sutherland. # 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. # ############################################################################## from Acquisition import Implicit from Products.Five.form import AddView from zope.app.container.browser import adding class ContentAdding(adding.ContentAdding, Implicit): """Silly docstring for Zope2.""" class UnHackedAddView(AddView): """Use this as the AddView if your classes don't want an id/title keyword. Perhaps Five could provide this. """ def create(self, *args, **kw): return self._factory(*args, **kw)