[Checkins] SVN: z3ext.layoutform/tags/1.0.2/ egg 1.0.2
Nikolay Kim
fafhrd at datacom.kz
Thu Jun 5 03:55:52 EDT 2008
Log message for revision 87158:
egg 1.0.2
Changed:
A z3ext.layoutform/tags/1.0.2/
D z3ext.layoutform/tags/1.0.2/CHANGES.txt
A z3ext.layoutform/tags/1.0.2/CHANGES.txt
D z3ext.layoutform/tags/1.0.2/setup.py
A z3ext.layoutform/tags/1.0.2/setup.py
D z3ext.layoutform/tags/1.0.2/src/z3ext/layoutform/edit.py
A z3ext.layoutform/tags/1.0.2/src/z3ext/layoutform/edit.py
-=-
Copied: z3ext.layoutform/tags/1.0.2 (from rev 86901, z3ext.layoutform/trunk)
Deleted: z3ext.layoutform/tags/1.0.2/CHANGES.txt
===================================================================
--- z3ext.layoutform/trunk/CHANGES.txt 2008-05-21 22:49:29 UTC (rev 86901)
+++ z3ext.layoutform/tags/1.0.2/CHANGES.txt 2008-06-05 07:55:52 UTC (rev 87158)
@@ -1,26 +0,0 @@
-=======
-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
Copied: z3ext.layoutform/tags/1.0.2/CHANGES.txt (from rev 87096, z3ext.layoutform/trunk/CHANGES.txt)
===================================================================
--- z3ext.layoutform/tags/1.0.2/CHANGES.txt (rev 0)
+++ z3ext.layoutform/tags/1.0.2/CHANGES.txt 2008-06-05 07:55:52 UTC (rev 87158)
@@ -0,0 +1,32 @@
+=======
+CHANGES
+=======
+
+1.0.1 (2008-06-02)
+------------------
+
+- Redirect to nextURL after success 'apply'
+
+
+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.2/setup.py
===================================================================
--- z3ext.layoutform/trunk/setup.py 2008-05-21 22:49:29 UTC (rev 86901)
+++ z3ext.layoutform/tags/1.0.2/setup.py 2008-06-05 07:55:52 UTC (rev 87158)
@@ -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='1.0.1dev'
-
-
-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.2/setup.py (from rev 87098, z3ext.layoutform/trunk/setup.py)
===================================================================
--- z3ext.layoutform/tags/1.0.2/setup.py (rev 0)
+++ z3ext.layoutform/tags/1.0.2/setup.py 2008-06-05 07:55:52 UTC (rev 87158)
@@ -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.2'
+
+
+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.2/src/z3ext/layoutform/edit.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py 2008-05-21 22:49:29 UTC (rev 86901)
+++ z3ext.layoutform/tags/1.0.2/src/z3ext/layoutform/edit.py 2008-06-05 07:55:52 UTC (rev 87158)
@@ -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 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)
Copied: z3ext.layoutform/tags/1.0.2/src/z3ext/layoutform/edit.py (from rev 87157, z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py)
===================================================================
--- z3ext.layoutform/tags/1.0.2/src/z3ext/layoutform/edit.py (rev 0)
+++ z3ext.layoutform/tags/1.0.2/src/z3ext/layoutform/edit.py 2008-06-05 07:55:52 UTC (rev 87158)
@@ -0,0 +1,69 @@
+##############################################################################
+#
+# 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)
+
+ nextURL = self.nextURL()
+ if nextURL:
+ self.redirect(nextURL)
+
+ @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 ''
+
+ def cancelURL(self):
+ return '%s/@@SelectedManagementView.html'%\
+ absoluteURL(self.context, self.request)
More information about the Checkins
mailing list