[Checkins] SVN: z3ext.layoutform/tags/1.0.0/ egg 1.0.0
Nikolay Kim
fafhrd at datacom.kz
Tue May 13 12:32:33 EDT 2008
Log message for revision 86706:
egg 1.0.0
Changed:
A z3ext.layoutform/tags/1.0.0/
D z3ext.layoutform/tags/1.0.0/CHANGES.txt
A z3ext.layoutform/tags/1.0.0/CHANGES.txt
D z3ext.layoutform/tags/1.0.0/setup.py
A z3ext.layoutform/tags/1.0.0/setup.py
D z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/__init__.py
A z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/__init__.py
D z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/add.py
A z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/add.py
D z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/edit.py
A z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/edit.py
D z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/i18n.py
D z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/interfaces.py
A z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/interfaces.py
-=-
Copied: z3ext.layoutform/tags/1.0.0 (from rev 86699, z3ext.layoutform/trunk)
Deleted: z3ext.layoutform/tags/1.0.0/CHANGES.txt
===================================================================
--- z3ext.layoutform/trunk/CHANGES.txt 2008-05-13 10:57:42 UTC (rev 86699)
+++ z3ext.layoutform/tags/1.0.0/CHANGES.txt 2008-05-13 16:32:33 UTC (rev 86706)
@@ -1,17 +0,0 @@
-=======
-CHANGES
-=======
-
-- Use z3c.autoinclude
-
-
-0.1.1 (2008-01-22)
-------------------
-
-- Fixed missing import in add.py
-
-
-0.1 (2008-01-19)
-----------------
-
-- Initial release
Copied: z3ext.layoutform/tags/1.0.0/CHANGES.txt (from rev 86705, z3ext.layoutform/trunk/CHANGES.txt)
===================================================================
--- z3ext.layoutform/tags/1.0.0/CHANGES.txt (rev 0)
+++ z3ext.layoutform/tags/1.0.0/CHANGES.txt 2008-05-13 16:32:33 UTC (rev 86706)
@@ -0,0 +1,26 @@
+=======
+CHANGES
+=======
+
+1.0.0 (2008-05-13)
+------------------
+
+- Use `includeDependencies` instead `autoinclude`
+
+
+0.2.0 (2008-??-??)
+------------------
+
+- Use z3c.autoinclude
+
+
+0.1.1 (2008-01-22)
+------------------
+
+- Fixed missing import in add.py
+
+
+0.1 (2008-01-19)
+----------------
+
+- Initial release
Deleted: z3ext.layoutform/tags/1.0.0/setup.py
===================================================================
--- z3ext.layoutform/trunk/setup.py 2008-05-13 10:57:42 UTC (rev 86699)
+++ z3ext.layoutform/tags/1.0.0/setup.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -1,71 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 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.
-#
-##############################################################################
-"""Setup for z3ext.layoutform package
-
-$Id$
-"""
-import sys, os
-from setuptools import setup, find_packages
-
-def read(*rnames):
- return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-version='0.3dev'
-
-
-setup(name='z3ext.layoutform',
- version=version,
- description="UI Skin for z3c.form based on z3ext.layout",
- long_description=(
- 'Detailed Documentation\n' +
- '======================\n'
- + '\n\n' +
- read('CHANGES.txt')
- ),
- classifiers=[
- 'Development Status :: 5 - Production/Stable',
- 'Environment :: Web Environment',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: Zope Public License',
- 'Programming Language :: Python',
- 'Natural Language :: English',
- 'Operating System :: OS Independent',
- 'Topic :: Internet :: WWW/HTTP',
- 'Framework :: Zope3'],
- author='Nikolay Kim',
- author_email='fafhrd91 at gmail.com',
- url='http://z3ext.net/',
- license='ZPL 2.1',
- packages=find_packages('src'),
- package_dir = {'':'src'},
- namespace_packages=['z3ext'],
- install_requires = ['setuptools',
- 'zope.publisher',
- 'zope.component',
- 'zope.pagetemplate',
- 'zope.app.pagetemplate',
- 'zope.i18nmessageid',
- 'zope.lifecycleevent',
-
- 'z3c.form',
- 'z3c.macro',
- 'z3c.template',
- 'z3c.autoinclude',
-
- 'z3ext.layout',
- 'z3ext.statusmessage',
- ],
- include_package_data = True,
- zip_safe = False
- )
Copied: z3ext.layoutform/tags/1.0.0/setup.py (from rev 86705, z3ext.layoutform/trunk/setup.py)
===================================================================
--- z3ext.layoutform/tags/1.0.0/setup.py (rev 0)
+++ z3ext.layoutform/tags/1.0.0/setup.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -0,0 +1,71 @@
+##############################################################################
+#
+# Copyright (c) 2007 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.
+#
+##############################################################################
+"""Setup for z3ext.layoutform package
+
+$Id$
+"""
+import sys, os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+version='1.0.0'
+
+
+setup(name='z3ext.layoutform',
+ version=version,
+ description="UI Skin for z3c.form based on z3ext.layout",
+ long_description=(
+ 'Detailed Documentation\n' +
+ '======================\n'
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ classifiers=[
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Zope Public License',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Framework :: Zope3'],
+ author='Nikolay Kim',
+ author_email='fafhrd91 at gmail.com',
+ url='http://z3ext.net/',
+ license='ZPL 2.1',
+ packages=find_packages('src'),
+ package_dir = {'':'src'},
+ namespace_packages=['z3ext'],
+ install_requires = ['setuptools',
+ 'zope.publisher',
+ 'zope.component',
+ 'zope.pagetemplate',
+ 'zope.app.pagetemplate',
+ 'zope.i18nmessageid',
+ 'zope.lifecycleevent',
+
+ 'z3c.form',
+ 'z3c.macro',
+ 'z3c.template',
+ 'z3c.autoinclude',
+
+ 'z3ext.layout',
+ 'z3ext.statusmessage',
+ ],
+ include_package_data = True,
+ zip_safe = False
+ )
Deleted: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/__init__.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/__init__.py 2008-05-13 10:57:42 UTC (rev 86699)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/__init__.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -1,9 +0,0 @@
-# This file is necessary to make this directory a package.
-
-from z3c.form import button
-
-from field import Fields
-from form import PageletForm
-from add import PageletAddForm
-from edit import PageletEditForm
-
Copied: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/__init__.py (from rev 86705, z3ext.layoutform/trunk/src/z3ext/layoutform/__init__.py)
===================================================================
--- z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/__init__.py (rev 0)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/__init__.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -0,0 +1,8 @@
+# This file is necessary to make this directory a package.
+
+from z3c.form import button
+
+from field import Fields
+from form import PageletForm
+from add import PageletAddForm
+from edit import PageletEditForm
Deleted: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/add.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/add.py 2008-05-13 10:57:42 UTC (rev 86699)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/add.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -1,96 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Foundation 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.
-#
-##############################################################################
-"""Support for Layout Templates
-
-$Id$
-"""
-from zope import interface, event
-from zope.lifecycleevent import ObjectCreatedEvent
-from zope.traversing.browser import absoluteURL
-from zope.app.container.interfaces import IAdding
-from zope.app.container.interfaces import IWriteContainer
-from zope.app.container.interfaces import IContainerNamesContainer
-
-from z3c.form import form, button
-from z3ext.layout.pagelet import BrowserPagelet
-from z3ext.statusmessage.interfaces import IStatusMessage
-
-import interfaces
-from i18n import _
-
-
-class PageletAddForm(form.AddForm, BrowserPagelet):
- interface.implements(interfaces.IPageletAddForm)
-
- render = BrowserPagelet.render
- __call__ = BrowserPagelet.__call__
-
- _addedObject = None
-
- formCancelMessage = _(u'Action has been canceled.')
-
- @button.buttonAndHandler(_(u'Add'), name='add',
- provides=interfaces.IAddButton)
- def handleAdd(self, action):
- data, errors = self.extractData()
-
- if errors:
- IStatusMessage(self.request).add(self.formErrorsMessage, 'warning')
- else:
- obj = self.createAndAdd(data)
-
- if obj is not None:
- self._addedObject = obj
- self._finishedAdd = True
- self.redirect(self.nextURL())
-
- @button.buttonAndHandler(_(u'Cancel'), name='cancel',
- provides=interfaces.ICancelButton)
- def handleCancel(self, action):
- self._finishedAdd = True
- self.redirect(self.cancelURL())
- IStatusMessage(self.request).add(self.formCancelMessage)
-
- def createAndAdd(self, data):
- obj = self.create(data)
- event.notify(ObjectCreatedEvent(obj))
- self.add(obj)
- return obj
-
- def nextURL(self):
- if self._addedObject is None:
- return '%s/@@SelectedManagementView.html'%\
- absoluteURL(self.context, self.request)
- else:
- return absoluteURL(self._addedObject, self.request) + '/'
-
- def cancelURL(self):
- context = self.context
-
- if IAdding.providedBy(context):
- return '%s/'%absoluteURL(context.context, self.request)
- else:
- return '%s/'%absoluteURL(context, self.request)
-
- def nameAllowed(self):
- """Return whether names can be input by the user."""
- context = self.context
-
- if IAdding.providedBy(context):
- context = context.context
-
- if IWriteContainer.providedBy(context):
- return not IContainerNamesContainer.providedBy(context)
- else:
- return False
Copied: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/add.py (from rev 86705, z3ext.layoutform/trunk/src/z3ext/layoutform/add.py)
===================================================================
--- z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/add.py (rev 0)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/add.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -0,0 +1,96 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation 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.
+#
+##############################################################################
+"""Support for Layout Templates
+
+$Id$
+"""
+from zope import interface, event
+from zope.lifecycleevent import ObjectCreatedEvent
+from zope.traversing.browser import absoluteURL
+from zope.app.container.interfaces import IAdding
+from zope.app.container.interfaces import IWriteContainer
+from zope.app.container.interfaces import IContainerNamesContainer
+
+from z3c.form import form, button
+from z3ext.layout.pagelet import BrowserPagelet
+from z3ext.statusmessage.interfaces import IStatusMessage
+
+import interfaces
+from interfaces import _
+
+
+class PageletAddForm(form.AddForm, BrowserPagelet):
+ interface.implements(interfaces.IPageletAddForm)
+
+ render = BrowserPagelet.render
+ __call__ = BrowserPagelet.__call__
+
+ _addedObject = None
+
+ formCancelMessage = _(u'Action has been canceled.')
+
+ @button.buttonAndHandler(_(u'Add'), name='add',
+ provides=interfaces.IAddButton)
+ def handleAdd(self, action):
+ data, errors = self.extractData()
+
+ if errors:
+ IStatusMessage(self.request).add(self.formErrorsMessage, 'warning')
+ else:
+ obj = self.createAndAdd(data)
+
+ if obj is not None:
+ self._addedObject = obj
+ self._finishedAdd = True
+ self.redirect(self.nextURL())
+
+ @button.buttonAndHandler(_(u'Cancel'), name='cancel',
+ provides=interfaces.ICancelButton)
+ def handleCancel(self, action):
+ self._finishedAdd = True
+ self.redirect(self.cancelURL())
+ IStatusMessage(self.request).add(self.formCancelMessage)
+
+ def createAndAdd(self, data):
+ obj = self.create(data)
+ event.notify(ObjectCreatedEvent(obj))
+ self.add(obj)
+ return obj
+
+ def nextURL(self):
+ if self._addedObject is None:
+ return '%s/@@SelectedManagementView.html'%\
+ absoluteURL(self.context, self.request)
+ else:
+ return absoluteURL(self._addedObject, self.request) + '/'
+
+ def cancelURL(self):
+ context = self.context
+
+ if IAdding.providedBy(context):
+ return '%s/'%absoluteURL(context.context, self.request)
+ else:
+ return '%s/'%absoluteURL(context, self.request)
+
+ def nameAllowed(self):
+ """Return whether names can be input by the user."""
+ context = self.context
+
+ if IAdding.providedBy(context):
+ context = context.context
+
+ if IWriteContainer.providedBy(context):
+ return not IContainerNamesContainer.providedBy(context)
+ else:
+ return False
Deleted: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/edit.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py 2008-05-13 10:57:42 UTC (rev 86699)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/edit.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -1,66 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2008 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.
-#
-##############################################################################
-"""
-
-$Id$
-"""
-from zope import interface, event
-from zope.traversing.browser import absoluteURL
-from zope.lifecycleevent import ObjectCreatedEvent
-from zope.app.container.interfaces import IAdding
-from zope.app.container.interfaces import IWriteContainer
-from zope.app.container.interfaces import IContainerNamesContainer
-
-from z3c.form import form, button
-from z3ext.layout.pagelet import BrowserPagelet
-from z3ext.statusmessage.interfaces import IStatusMessage
-
-import interfaces
-from i18n import _
-
-
-class PageletEditForm(form.EditForm, BrowserPagelet):
- interface.implements(interfaces.IPageletEditForm)
-
- render = BrowserPagelet.render
- __call__ = BrowserPagelet.__call__
-
- formCancelMessage = _(u'Edit action has been canceled.')
-
- @button.buttonAndHandler(_(u'Save'), name='save',
- provides=interfaces.ISaveButton)
- def handleApply(self, action):
- data, errors = self.extractData()
- if errors:
- IStatusMessage(self.request).add(self.formErrorsMessage, 'warning')
- else:
- changes = self.applyChanges(data)
- if changes:
- IStatusMessage(self.request).add(self.successMessage)
- else:
- IStatusMessage(self.request).add(self.noChangesMessage)
-
- @button.buttonAndHandler(_(u'Cancel'), name='cancel',
- provides=interfaces.ICancelButton)
- def handleCancel(self, action):
- self.redirect(self.cancelURL())
- IStatusMessage(self.request).add(self.formCancelMessage)
-
- def nextURL(self):
- return '%s/@@SelectedManagementView.html'%\
- absoluteURL(self.context, self.request)
-
- def cancelURL(self):
- return '%s/@@SelectedManagementView.html'%\
- absoluteURL(self.context, self.request)
Copied: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/edit.py (from rev 86705, z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py)
===================================================================
--- z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/edit.py (rev 0)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/edit.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -0,0 +1,66 @@
+##############################################################################
+#
+# Copyright (c) 2008 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.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+from zope import interface, event
+from zope.traversing.browser import absoluteURL
+from zope.lifecycleevent import ObjectCreatedEvent
+from zope.app.container.interfaces import IAdding
+from zope.app.container.interfaces import IWriteContainer
+from zope.app.container.interfaces import IContainerNamesContainer
+
+from z3c.form import form, button
+from z3ext.layout.pagelet import BrowserPagelet
+from z3ext.statusmessage.interfaces import IStatusMessage
+
+import interfaces
+from interfaces import _
+
+
+class PageletEditForm(form.EditForm, BrowserPagelet):
+ interface.implements(interfaces.IPageletEditForm)
+
+ render = BrowserPagelet.render
+ __call__ = BrowserPagelet.__call__
+
+ formCancelMessage = _(u'Edit action has been canceled.')
+
+ @button.buttonAndHandler(_(u'Save'), name='save',
+ provides=interfaces.ISaveButton)
+ def handleApply(self, action):
+ data, errors = self.extractData()
+ if errors:
+ IStatusMessage(self.request).add(self.formErrorsMessage, 'warning')
+ else:
+ changes = self.applyChanges(data)
+ if changes:
+ IStatusMessage(self.request).add(self.successMessage)
+ else:
+ IStatusMessage(self.request).add(self.noChangesMessage)
+
+ @button.buttonAndHandler(_(u'Cancel'), name='cancel',
+ provides=interfaces.ICancelButton)
+ def handleCancel(self, action):
+ self.redirect(self.cancelURL())
+ IStatusMessage(self.request).add(self.formCancelMessage)
+
+ def nextURL(self):
+ return '%s/@@SelectedManagementView.html'%\
+ absoluteURL(self.context, self.request)
+
+ def cancelURL(self):
+ return '%s/@@SelectedManagementView.html'%\
+ absoluteURL(self.context, self.request)
Deleted: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/i18n.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/i18n.py 2008-05-13 10:57:42 UTC (rev 86699)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/i18n.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -1,19 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2008 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.
-#
-##############################################################################
-""" i18n
-
-$Id$
-"""
-from zope.i18nmessageid import MessageFactory
-_ = MessageFactory('z3ext')
Deleted: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/interfaces.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py 2008-05-13 10:57:42 UTC (rev 86699)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/interfaces.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -1,71 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 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.
-#
-##############################################################################
-""" z3ext.layout interfaces
-
-$Id$
-"""
-from zope import interface
-from z3c.form.interfaces import IFormLayer
-from z3ext.layout.interfaces import IPagelet
-
-
-class ILayoutFormLayer(IFormLayer):
- """ browser layer """
-
-
-class IPageletForm(IPagelet):
- """Form mixin for pagelet implementation."""
-
- label = interface.Attribute('Form label')
-
- description = interface.Attribute('Form label')
-
-
-class IPageletAddForm(IPageletForm):
- """Add form mixin for pagelet implementation."""
-
- formCancelMessage = interface.Attribute('Form cancel message')
-
- def nextURL():
- """ as next url use newly created content url """
-
- def cancelURL():
- """ cancel url """
-
- def nameAllowed():
- """Return whether names can be input by the user."""
-
-
-class IPageletEditForm(IPageletForm):
- """Edit form mixin for pagelet implementation."""
-
- formCancelMessage = interface.Attribute('Form cancel message')
-
- def nextURL():
- """ as next url use newly created content url """
-
- def cancelURL():
- """ cancel url """
-
-
-class IAddButton(interface.Interface):
- """ add button """
-
-
-class ISaveButton(interface.Interface):
- """ save button """
-
-
-class ICancelButton(interface.Interface):
- """ cancel button """
Copied: z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/interfaces.py (from rev 86705, z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py)
===================================================================
--- z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/interfaces.py (rev 0)
+++ z3ext.layoutform/tags/1.0.0/src/z3ext/layoutform/interfaces.py 2008-05-13 16:32:33 UTC (rev 86706)
@@ -0,0 +1,74 @@
+##############################################################################
+#
+# Copyright (c) 2007 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.
+#
+##############################################################################
+""" z3ext.layoutform interfaces
+
+$Id$
+"""
+from zope import interface
+from zope.i18nmessageid import MessageFactory
+from z3c.form.interfaces import IFormLayer
+from z3ext.layout.interfaces import IPagelet
+
+_ = MessageFactory('z3ext')
+
+
+class ILayoutFormLayer(IFormLayer):
+ """ browser layer """
+
+
+class IPageletForm(IPagelet):
+ """Form mixin for pagelet implementation."""
+
+ label = interface.Attribute('Form label')
+
+ description = interface.Attribute('Form label')
+
+
+class IPageletAddForm(IPageletForm):
+ """Add form mixin for pagelet implementation."""
+
+ formCancelMessage = interface.Attribute('Form cancel message')
+
+ def nextURL():
+ """ as next url use newly created content url """
+
+ def cancelURL():
+ """ cancel url """
+
+ def nameAllowed():
+ """Return whether names can be input by the user."""
+
+
+class IPageletEditForm(IPageletForm):
+ """Edit form mixin for pagelet implementation."""
+
+ formCancelMessage = interface.Attribute('Form cancel message')
+
+ def nextURL():
+ """ as next url use newly created content url """
+
+ def cancelURL():
+ """ cancel url """
+
+
+class IAddButton(interface.Interface):
+ """ add button """
+
+
+class ISaveButton(interface.Interface):
+ """ save button """
+
+
+class ICancelButton(interface.Interface):
+ """ cancel button """
More information about the Checkins
mailing list