[Checkins] SVN: z3ext.layoutform/tags/1.0.1/ egg 1.0.1

Nikolay Kim fafhrd at datacom.kz
Mon Jun 2 07:10:40 EDT 2008


Log message for revision 87097:
  egg 1.0.1

Changed:
  A   z3ext.layoutform/tags/1.0.1/
  D   z3ext.layoutform/tags/1.0.1/CHANGES.txt
  A   z3ext.layoutform/tags/1.0.1/CHANGES.txt
  U   z3ext.layoutform/tags/1.0.1/setup.py
  D   z3ext.layoutform/tags/1.0.1/src/z3ext/layoutform/edit.py
  A   z3ext.layoutform/tags/1.0.1/src/z3ext/layoutform/edit.py

-=-
Copied: z3ext.layoutform/tags/1.0.1 (from rev 86901, z3ext.layoutform/trunk)

Deleted: z3ext.layoutform/tags/1.0.1/CHANGES.txt
===================================================================
--- z3ext.layoutform/trunk/CHANGES.txt	2008-05-21 22:49:29 UTC (rev 86901)
+++ z3ext.layoutform/tags/1.0.1/CHANGES.txt	2008-06-02 11:10:38 UTC (rev 87097)
@@ -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.1/CHANGES.txt (from rev 87096, z3ext.layoutform/trunk/CHANGES.txt)
===================================================================
--- z3ext.layoutform/tags/1.0.1/CHANGES.txt	                        (rev 0)
+++ z3ext.layoutform/tags/1.0.1/CHANGES.txt	2008-06-02 11:10:38 UTC (rev 87097)
@@ -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

Modified: z3ext.layoutform/tags/1.0.1/setup.py
===================================================================
--- z3ext.layoutform/trunk/setup.py	2008-05-21 22:49:29 UTC (rev 86901)
+++ z3ext.layoutform/tags/1.0.1/setup.py	2008-06-02 11:10:38 UTC (rev 87097)
@@ -21,7 +21,7 @@
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
-version='1.0.1dev'
+version='1.0.1'
 
 
 setup(name='z3ext.layoutform',

Deleted: z3ext.layoutform/tags/1.0.1/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.1/src/z3ext/layoutform/edit.py	2008-06-02 11:10:38 UTC (rev 87097)
@@ -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.1/src/z3ext/layoutform/edit.py (from rev 87096, z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py)
===================================================================
--- z3ext.layoutform/tags/1.0.1/src/z3ext/layoutform/edit.py	                        (rev 0)
+++ z3ext.layoutform/tags/1.0.1/src/z3ext/layoutform/edit.py	2008-06-02 11:10:38 UTC (rev 87097)
@@ -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