[Checkins] SVN: z3ext.layoutform/tags/1.1.0/ tag for 1.1.0 release

Nikolay Kim fafhrd at datacom.kz
Mon Jul 21 16:49:53 EDT 2008


Log message for revision 88661:
  tag for 1.1.0 release

Changed:
  A   z3ext.layoutform/tags/1.1.0/
  D   z3ext.layoutform/tags/1.1.0/CHANGES.txt
  A   z3ext.layoutform/tags/1.1.0/CHANGES.txt
  D   z3ext.layoutform/tags/1.1.0/setup.py
  A   z3ext.layoutform/tags/1.1.0/setup.py
  D   z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/edit.py
  A   z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/edit.py
  D   z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/interfaces.py
  A   z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/interfaces.py

-=-
Copied: z3ext.layoutform/tags/1.1.0 (from rev 88426, z3ext.layoutform/trunk)

Deleted: z3ext.layoutform/tags/1.1.0/CHANGES.txt
===================================================================
--- z3ext.layoutform/trunk/CHANGES.txt	2008-07-17 00:55:16 UTC (rev 88426)
+++ z3ext.layoutform/tags/1.1.0/CHANGES.txt	2008-07-21 20:49:52 UTC (rev 88661)
@@ -1,32 +0,0 @@
-=======
-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

Copied: z3ext.layoutform/tags/1.1.0/CHANGES.txt (from rev 88660, z3ext.layoutform/trunk/CHANGES.txt)
===================================================================
--- z3ext.layoutform/tags/1.1.0/CHANGES.txt	                        (rev 0)
+++ z3ext.layoutform/tags/1.1.0/CHANGES.txt	2008-07-21 20:49:52 UTC (rev 88661)
@@ -0,0 +1,38 @@
+=======
+CHANGES
+=======
+
+1.1.0 (2008-07-22)
+------------------
+
+- Remove cancel button from edit form
+
+
+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.1.0/setup.py
===================================================================
--- z3ext.layoutform/trunk/setup.py	2008-07-17 00:55:16 UTC (rev 88426)
+++ z3ext.layoutform/tags/1.1.0/setup.py	2008-07-21 20:49:52 UTC (rev 88661)
@@ -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.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.1.0/setup.py (from rev 88660, z3ext.layoutform/trunk/setup.py)
===================================================================
--- z3ext.layoutform/tags/1.1.0/setup.py	                        (rev 0)
+++ z3ext.layoutform/tags/1.1.0/setup.py	2008-07-21 20:49:52 UTC (rev 88661)
@@ -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.1.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.1.0/src/z3ext/layoutform/edit.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py	2008-07-17 00:55:16 UTC (rev 88426)
+++ z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/edit.py	2008-07-21 20:49:52 UTC (rev 88661)
@@ -1,69 +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)
-
-            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)

Copied: z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/edit.py (from rev 88660, z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py)
===================================================================
--- z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/edit.py	                        (rev 0)
+++ z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/edit.py	2008-07-21 20:49:52 UTC (rev 88661)
@@ -0,0 +1,56 @@
+##############################################################################
+#
+# 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
+
+from interfaces import _, IPageletEditForm, ISaveButton
+
+
+class PageletEditForm(form.EditForm, BrowserPagelet):
+    interface.implements(IPageletEditForm)
+
+    render = BrowserPagelet.render
+    __call__ = BrowserPagelet.__call__
+
+    @button.buttonAndHandler(
+        _(u'Save'), name='save', provides=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)
+
+    def nextURL(self):
+        return ''

Deleted: z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/interfaces.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py	2008-07-17 00:55:16 UTC (rev 88426)
+++ z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/interfaces.py	2008-07-21 20:49:52 UTC (rev 88661)
@@ -1,74 +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.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 """

Copied: z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/interfaces.py (from rev 88660, z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py)
===================================================================
--- z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/interfaces.py	                        (rev 0)
+++ z3ext.layoutform/tags/1.1.0/src/z3ext/layoutform/interfaces.py	2008-07-21 20:49:52 UTC (rev 88661)
@@ -0,0 +1,69 @@
+##############################################################################
+#
+# 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."""
+
+    def nextURL():
+        """ as next url use newly created content 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