[Checkins] SVN: z3ext.layoutform/tags/1.6.0/ release tag
Nikolay Kim
fafhrd91 at gmail.com
Tue Aug 11 04:42:21 EDT 2009
Log message for revision 102648:
release tag
Changed:
A z3ext.layoutform/tags/1.6.0/
D z3ext.layoutform/tags/1.6.0/CHANGES.txt
A z3ext.layoutform/tags/1.6.0/CHANGES.txt
D z3ext.layoutform/tags/1.6.0/bootstrap.py
A z3ext.layoutform/tags/1.6.0/bootstrap.py
D z3ext.layoutform/tags/1.6.0/setup.py
A z3ext.layoutform/tags/1.6.0/setup.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/buttons.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/buttons.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/formview.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/formview.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/interfaces.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/interfaces.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/widget.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/widget.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/edit.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/edit.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/error.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/error.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/field.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/field.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/interfaces.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/interfaces.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/z3ext.layoutform.pot
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/z3ext.layoutform.pot
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/subform.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/subform.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/tests/tests.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/tests/tests.py
D z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/utils.py
A z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/utils.py
-=-
Deleted: z3ext.layoutform/tags/1.6.0/CHANGES.txt
===================================================================
--- z3ext.layoutform/trunk/CHANGES.txt 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/CHANGES.txt 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,190 +0,0 @@
-=======
-CHANGES
-=======
-
-1.5.1 (Unreleased)
-------------------
-
-- Do not show status message for subform
-
-- Add status message in edit subform
-
-- Update tests to pass with chameleon
-
-
-1.5.0 (2009-06-21)
-------------------
-
-- Widget pagelet for different widget modes added
-
-
-1.4.0 (2009-05-22)
-------------------
-
-- Use SelectionManager for form subforms,groups,view
-
-
-1.3.5 (2009-04-15)
-------------------
-
-- Added 'formErrorMessage' to base class
-
-- Do not use z3c.autoinclude
-
-
-1.3.4 (2009-04-03)
-------------------
-
-- Added changed attributes descriptions to ObjectModifiedEvent for subform
-
-
-1.3.3 (2009-03-11)
-------------------
-
-- Added a patched sequence converters that don't raise a LookupError
- when dealing with values that are removed from the terms. This
- is fixed in z3c.form's 2.0.0, so it's only needed when using z3c.form
- 1.9.x and below. Include the ``converter.zcml`` file with the
- ``includeOverrides`` directive, if you need it.
-
-- Added applyChanges method to subform
-
-- Do not insert <form> html tag if form wrapped with other <form>
-
-
-1.3.2 (2009-01-22)
-------------------
-
-- Added missing security declarations
-
-
-1.3.1 (2008-12-25)
-------------------
-
-- Fixed subform initialization
-
-- Fixed IPagelet contract implementation
-
-
-1.3.0 (2008-12-22)
-------------------
-
-- Added subforms based on new z3ext.layout pagelet api
-
-- Fixed 'formError' status message
-
-- Use button.handler instead of buttonAndHandler
-
-- Use new pagelet api for rendering widgets
-
-
-1.2.8 (2008-11-21)
-------------------
-
-- Fixed 'formError' status message
-
-
-1.2.7 (2008-11-20)
-------------------
-
-- Use new z3ext.statusmessage api
-
-
-1.2.6 (2008-11-06)
-------------------
-
-- Use updated pagelet api for nameless pagelets
-
-
-1.2.5 (2008-10-22)
-------------------
-
-- Update translations
-
-
-1.2.4 (2008-10-20)
-------------------
-
-- Added support of display form
-
-- Added tranlsations: nl, ru
-
-
-1.2.3 (2008-10-14)
-------------------
-
-- Groups support restored
-
-- Use IPageletType for views
-
-
-1.2.2 (2008-10-08)
-------------------
-
-- Added extra views for form
-
-
-1.2.1 (2008-10-08)
-------------------
-
-- Show all form errors
-
-
-1.2.0 (2008-10-06)
-------------------
-
-- Added default css styles
-
-- Removed z3c packages dependencies
-
-- Use pagelets instead of macros
-
-
-1.1.2 (2008-09-26)
-------------------
-
-- Added group support
-
-- Return added object in createAndAdd method
-
-
-1.1.1 (2008-08-05)
-------------------
-
-- Fixed wrong `for` in label tag
-
-
-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
Copied: z3ext.layoutform/tags/1.6.0/CHANGES.txt (from rev 102647, z3ext.layoutform/trunk/CHANGES.txt)
===================================================================
--- z3ext.layoutform/tags/1.6.0/CHANGES.txt (rev 0)
+++ z3ext.layoutform/tags/1.6.0/CHANGES.txt 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,192 @@
+=======
+CHANGES
+=======
+
+1.6.0 (2009-08-11)
+------------------
+
+- Do not show status message for subform
+
+- Add status message in edit subform
+
+- Update tests to pass with chameleon
+
+- Copyright changed to 'Zope Foundation and Contributors'
+
+
+1.5.0 (2009-06-21)
+------------------
+
+- Widget pagelet for different widget modes added
+
+
+1.4.0 (2009-05-22)
+------------------
+
+- Use SelectionManager for form subforms,groups,view
+
+
+1.3.5 (2009-04-15)
+------------------
+
+- Added 'formErrorMessage' to base class
+
+- Do not use z3c.autoinclude
+
+
+1.3.4 (2009-04-03)
+------------------
+
+- Added changed attributes descriptions to ObjectModifiedEvent for subform
+
+
+1.3.3 (2009-03-11)
+------------------
+
+- Added a patched sequence converters that don't raise a LookupError
+ when dealing with values that are removed from the terms. This
+ is fixed in z3c.form's 2.0.0, so it's only needed when using z3c.form
+ 1.9.x and below. Include the ``converter.zcml`` file with the
+ ``includeOverrides`` directive, if you need it.
+
+- Added applyChanges method to subform
+
+- Do not insert <form> html tag if form wrapped with other <form>
+
+
+1.3.2 (2009-01-22)
+------------------
+
+- Added missing security declarations
+
+
+1.3.1 (2008-12-25)
+------------------
+
+- Fixed subform initialization
+
+- Fixed IPagelet contract implementation
+
+
+1.3.0 (2008-12-22)
+------------------
+
+- Added subforms based on new z3ext.layout pagelet api
+
+- Fixed 'formError' status message
+
+- Use button.handler instead of buttonAndHandler
+
+- Use new pagelet api for rendering widgets
+
+
+1.2.8 (2008-11-21)
+------------------
+
+- Fixed 'formError' status message
+
+
+1.2.7 (2008-11-20)
+------------------
+
+- Use new z3ext.statusmessage api
+
+
+1.2.6 (2008-11-06)
+------------------
+
+- Use updated pagelet api for nameless pagelets
+
+
+1.2.5 (2008-10-22)
+------------------
+
+- Update translations
+
+
+1.2.4 (2008-10-20)
+------------------
+
+- Added support of display form
+
+- Added tranlsations: nl, ru
+
+
+1.2.3 (2008-10-14)
+------------------
+
+- Groups support restored
+
+- Use IPageletType for views
+
+
+1.2.2 (2008-10-08)
+------------------
+
+- Added extra views for form
+
+
+1.2.1 (2008-10-08)
+------------------
+
+- Show all form errors
+
+
+1.2.0 (2008-10-06)
+------------------
+
+- Added default css styles
+
+- Removed z3c packages dependencies
+
+- Use pagelets instead of macros
+
+
+1.1.2 (2008-09-26)
+------------------
+
+- Added group support
+
+- Return added object in createAndAdd method
+
+
+1.1.1 (2008-08-05)
+------------------
+
+- Fixed wrong `for` in label tag
+
+
+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.6.0/bootstrap.py
===================================================================
--- z3ext.layoutform/trunk/bootstrap.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/bootstrap.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,77 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 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.
-#
-##############################################################################
-"""Bootstrap a buildout-based project
-
-Simply run this script in a directory containing a buildout.cfg.
-The script accepts buildout command-line options, so you can
-use the -c option to specify an alternate configuration file.
-
-$Id$
-"""
-
-import os, shutil, sys, tempfile, urllib2
-
-tmpeggs = tempfile.mkdtemp()
-
-is_jython = sys.platform.startswith('java')
-
-try:
- import pkg_resources
-except ImportError:
- ez = {}
- exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
- ).read() in ez
- ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
-
- import pkg_resources
-
-if sys.platform == 'win32':
- def quote(c):
- if ' ' in c:
- return '"%s"' % c # work around spawn lamosity on windows
- else:
- return c
-else:
- def quote (c):
- return c
-
-cmd = 'from setuptools.command.easy_install import main; main()'
-ws = pkg_resources.working_set
-
-if is_jython:
- import subprocess
-
- assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
- quote(tmpeggs), 'zc.buildout'],
- env=dict(os.environ,
- PYTHONPATH=
- ws.find(pkg_resources.Requirement.parse('setuptools')).location
- ),
- ).wait() == 0
-
-else:
- assert os.spawnle(
- os.P_WAIT, sys.executable, quote (sys.executable),
- '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout',
- dict(os.environ,
- PYTHONPATH=
- ws.find(pkg_resources.Requirement.parse('setuptools')).location
- ),
- ) == 0
-
-ws.add_entry(tmpeggs)
-ws.require('zc.buildout')
-import zc.buildout.buildout
-zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
-shutil.rmtree(tmpeggs)
Copied: z3ext.layoutform/tags/1.6.0/bootstrap.py (from rev 102647, z3ext.layoutform/trunk/bootstrap.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/bootstrap.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/bootstrap.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,77 @@
+##############################################################################
+#
+# Copyright (c) 2006 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.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+try:
+ import pkg_resources
+except ImportError:
+ ez = {}
+ exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+ import pkg_resources
+
+if sys.platform == 'win32':
+ def quote(c):
+ if ' ' in c:
+ return '"%s"' % c # work around spawn lamosity on windows
+ else:
+ return c
+else:
+ def quote (c):
+ return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws = pkg_resources.working_set
+
+if is_jython:
+ import subprocess
+
+ assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
+ quote(tmpeggs), 'zc.buildout'],
+ env=dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ).wait() == 0
+
+else:
+ assert os.spawnle(
+ os.P_WAIT, sys.executable, quote (sys.executable),
+ '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout',
+ dict(os.environ,
+ PYTHONPATH=
+ ws.find(pkg_resources.Requirement.parse('setuptools')).location
+ ),
+ ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)
Deleted: z3ext.layoutform/tags/1.6.0/setup.py
===================================================================
--- z3ext.layoutform/trunk/setup.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/setup.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,72 +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.5.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.i18n',
- 'zope.i18nmessageid',
- 'z3c.form',
- 'z3ext.layout',
- 'z3ext.resource',
- 'z3ext.resourcepackage',
- 'z3ext.statusmessage',
- ],
- extras_require = dict(test=['zope.testing',
- 'zope.app.testing',
- 'zope.app.zcmlfiles',
- 'z3ext.autoinclude',]),
- include_package_data = True,
- zip_safe = False
- )
Copied: z3ext.layoutform/tags/1.6.0/setup.py (from rev 102647, z3ext.layoutform/trunk/setup.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/setup.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/setup.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,72 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""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.6.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.i18n',
+ 'zope.i18nmessageid',
+ 'z3c.form',
+ 'z3ext.layout',
+ 'z3ext.resource',
+ 'z3ext.resourcepackage',
+ 'z3ext.statusmessage',
+ ],
+ extras_require = dict(test=['zope.testing',
+ 'zope.app.testing',
+ 'zope.app.zcmlfiles',
+ 'z3ext.autoinclude',]),
+ include_package_data = True,
+ zip_safe = False
+ )
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/buttons.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/browser/buttons.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/buttons.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,52 +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.
-#
-##############################################################################
-""" Castom Button Widget Implementation
-
-$Id$
-"""
-__docformat__ = "reStructuredText"
-from zope import interface, component
-
-from z3c.form import interfaces, widget, action, button
-
-from z3ext.layoutform.interfaces import \
- IAddAction, ISaveAction, ICancelAction, ILayoutFormLayer
-
-
-class ButtonAction(button.ButtonAction):
- interface.implements(interfaces.IButtonAction)
- component.adapts(ILayoutFormLayer, interfaces.IButton)
-
- klass="z-form-button"
-
-
-class AddButtonAction(button.ButtonAction):
- interface.implements(interfaces.IButtonAction)
- component.adapts(ILayoutFormLayer, IAddAction)
-
- klass="z-form-addbutton"
-
-
-class SaveButtonAction(button.ButtonAction):
- interface.implements(interfaces.IButtonAction)
- component.adapts(ILayoutFormLayer, ISaveAction)
-
- klass="z-form-savebutton"
-
-
-class CancelButtonAction(button.ButtonAction):
- interface.implements(interfaces.IButtonAction)
- component.adapts(ILayoutFormLayer, ICancelAction)
-
- klass="z-form-cancelbutton"
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/buttons.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/browser/buttons.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/buttons.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/buttons.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2008 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.
+#
+##############################################################################
+""" Castom Button Widget Implementation
+
+$Id$
+"""
+__docformat__ = "reStructuredText"
+from zope import interface, component
+
+from z3c.form import interfaces, widget, action, button
+
+from z3ext.layoutform.interfaces import \
+ IAddAction, ISaveAction, ICancelAction, ILayoutFormLayer
+
+
+class ButtonAction(button.ButtonAction):
+ interface.implements(interfaces.IButtonAction)
+ component.adapts(ILayoutFormLayer, interfaces.IButton)
+
+ klass="z-form-button"
+
+
+class AddButtonAction(button.ButtonAction):
+ interface.implements(interfaces.IButtonAction)
+ component.adapts(ILayoutFormLayer, IAddAction)
+
+ klass="z-form-addbutton"
+
+
+class SaveButtonAction(button.ButtonAction):
+ interface.implements(interfaces.IButtonAction)
+ component.adapts(ILayoutFormLayer, ISaveAction)
+
+ klass="z-form-savebutton"
+
+
+class CancelButtonAction(button.ButtonAction):
+ interface.implements(interfaces.IButtonAction)
+ component.adapts(ILayoutFormLayer, ICancelAction)
+
+ klass="z-form-cancelbutton"
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/formview.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/browser/formview.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/formview.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,34 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2009 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: 2007-12-12 12:27:02Z fafhrd $
-"""
-from z3ext.layoutform.interfaces import IFormWrapper
-
-
-class FormView(object):
-
- def isWrapped(self):
- context = self.context
-
- while 1:
- if IFormWrapper.providedBy(context):
- return True
-
- context = getattr(context, '__parent__', None)
- if context is None:
- break
-
- return False
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/formview.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/browser/formview.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/formview.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/formview.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,34 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id: 2007-12-12 12:27:02Z fafhrd $
+"""
+from z3ext.layoutform.interfaces import IFormWrapper
+
+
+class FormView(object):
+
+ def isWrapped(self):
+ context = self.context
+
+ while 1:
+ if IFormWrapper.providedBy(context):
+ return True
+
+ context = getattr(context, '__parent__', None)
+ if context is None:
+ break
+
+ return False
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/interfaces.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/browser/interfaces.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/interfaces.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,42 +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: 2007-12-12 12:27:02Z fafhrd $
-"""
-from zope import interface
-
-
-class IForm(interface.Interface):
- """ form view """
-
-
-class IViewspace(interface.Interface):
- """ form viewspace """
-
-
-class IExtraViewspaceInfo(interface.Interface):
- """ extra widget information """
-
-
-class IWidget(interface.Interface):
- """ widget view """
-
-
-class IFormButtons(interface.Interface):
- """ form buttons """
-
-
-class IErrorView(interface.Interface):
- """ Error view snippet view """
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/interfaces.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/browser/interfaces.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/interfaces.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/interfaces.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,42 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id: 2007-12-12 12:27:02Z fafhrd $
+"""
+from zope import interface
+
+
+class IForm(interface.Interface):
+ """ form view """
+
+
+class IViewspace(interface.Interface):
+ """ form viewspace """
+
+
+class IExtraViewspaceInfo(interface.Interface):
+ """ extra widget information """
+
+
+class IWidget(interface.Interface):
+ """ widget view """
+
+
+class IFormButtons(interface.Interface):
+ """ form buttons """
+
+
+class IErrorView(interface.Interface):
+ """ Error view snippet view """
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/widget.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/browser/widget.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/widget.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,40 +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: 2007-12-12 12:27:02Z fafhrd $
-"""
-from zope import interface, component
-from zope.component import getMultiAdapter
-from z3c.form.interfaces import IWidget
-from z3ext.layout.interfaces import IPageletContext
-
-import interfaces
-
-
-class WidgetRenderer(object):
-
- def render(self):
- renderer = getMultiAdapter(
- (self.context,) + self.contexts + (self.request,),
- interfaces.IWidget, name=self.context.mode)
-
- renderer.update()
- return renderer.render()
-
-
- at component.adapter(IWidget)
- at interface.implementer(IPageletContext)
-def getWidgetManager(widget):
- return widget.field, widget.form
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/widget.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/browser/widget.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/widget.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/browser/widget.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,40 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id: 2007-12-12 12:27:02Z fafhrd $
+"""
+from zope import interface, component
+from zope.component import getMultiAdapter
+from z3c.form.interfaces import IWidget
+from z3ext.layout.interfaces import IPageletContext
+
+import interfaces
+
+
+class WidgetRenderer(object):
+
+ def render(self):
+ renderer = getMultiAdapter(
+ (self.context,) + self.contexts + (self.request,),
+ interfaces.IWidget, name=self.context.mode)
+
+ renderer.update()
+ return renderer.render()
+
+
+ at component.adapter(IWidget)
+ at interface.implementer(IPageletContext)
+def getWidgetManager(widget):
+ return widget.field, widget.form
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/edit.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/edit.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,60 +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.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.statusmessage.interfaces import IStatusMessage
-
-from form import PageletForm
-from interfaces import _, IPageletEditForm, ISaveAction
-
-
-class PageletEditForm(PageletForm, form.EditForm):
- interface.implements(IPageletEditForm)
-
- @button.buttonAndHandler(_(u'Save'), name='save', provides=ISaveAction)
- def handleApply(self, action):
- data, errors = self.extractData()
- if errors:
- IStatusMessage(self.request).add(
- (self.formErrorsMessage,) + errors, 'formError')
- else:
- changes = self.applyChanges(data)
- if changes:
- IStatusMessage(self.request).add(self.successMessage)
- else:
- changed = False
- for subform in self.subforms:
- if subform.changesApplied:
- IStatusMessage(self.request).add(self.successMessage)
- self.changed = True
- break
-
- if not changed:
- IStatusMessage(self.request).add(self.noChangesMessage)
-
- nextURL = self.nextURL()
- if nextURL:
- self.redirect(nextURL)
-
- def nextURL(self):
- return ''
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/edit.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/edit.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/edit.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/edit.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,60 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+from zope import interface, event
+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.statusmessage.interfaces import IStatusMessage
+
+from form import PageletForm
+from interfaces import _, IPageletEditForm, ISaveAction
+
+
+class PageletEditForm(PageletForm, form.EditForm):
+ interface.implements(IPageletEditForm)
+
+ @button.buttonAndHandler(_(u'Save'), name='save', provides=ISaveAction)
+ def handleApply(self, action):
+ data, errors = self.extractData()
+ if errors:
+ IStatusMessage(self.request).add(
+ (self.formErrorsMessage,) + errors, 'formError')
+ else:
+ changes = self.applyChanges(data)
+ if changes:
+ IStatusMessage(self.request).add(self.successMessage)
+ else:
+ changed = False
+ for subform in self.subforms:
+ if subform.changesApplied:
+ IStatusMessage(self.request).add(self.successMessage)
+ self.changed = True
+ break
+
+ if not changed:
+ IStatusMessage(self.request).add(self.noChangesMessage)
+
+ nextURL = self.nextURL()
+ if nextURL:
+ self.redirect(nextURL)
+
+ def nextURL(self):
+ return ''
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/error.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/error.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/error.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,36 +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: 2007-12-12 12:27:02Z fafhrd $
-"""
-from zope import interface
-from zope.app.pagetemplate import ViewPageTemplateFile
-from z3ext.statusmessage.message import Message
-from z3c.form.interfaces import IErrorViewSnippet
-
-
-class FormErrorStatusMessage(Message):
-
- index = ViewPageTemplateFile('browser/message.pt')
-
- @property
- def context(self):
- return self
-
- def render(self, message):
- self.message = message[0]
- self.errors = [err for err in message[1:]
- if IErrorViewSnippet.providedBy(err) and err.widget is None]
- return self.index()
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/error.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/error.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/error.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/error.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,36 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id: 2007-12-12 12:27:02Z fafhrd $
+"""
+from zope import interface
+from zope.app.pagetemplate import ViewPageTemplateFile
+from z3ext.statusmessage.message import Message
+from z3c.form.interfaces import IErrorViewSnippet
+
+
+class FormErrorStatusMessage(Message):
+
+ index = ViewPageTemplateFile('browser/message.pt')
+
+ @property
+ def context(self):
+ return self
+
+ def render(self, message):
+ self.message = message[0]
+ self.errors = [err for err in message[1:]
+ if IErrorViewSnippet.providedBy(err) and err.widget is None]
+ return self.index()
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/field.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/field.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/field.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,26 +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 z3c.form import field
-from zope.proxy import removeAllProxies
-
-
-class Fields(field.Fields):
-
- def __init__(self, *args, **kw):
- super(Fields, self).__init__(
- *[removeAllProxies(arg) for arg in args], **kw)
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/field.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/field.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/field.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/field.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,26 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id$
+"""
+from z3c.form import field
+from zope.proxy import removeAllProxies
+
+
+class Fields(field.Fields):
+
+ def __init__(self, *args, **kw):
+ super(Fields, self).__init__(
+ *[removeAllProxies(arg) for arg in args], **kw)
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/interfaces.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/interfaces.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,136 +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.
-#
-##############################################################################
-""" z3ext.layoutform interfaces
-
-$Id$
-"""
-from zope import interface, schema
-from zope.i18nmessageid import MessageFactory
-from z3c.form.interfaces import IFormLayer, ISelectionManager
-from z3ext.layout.interfaces import IPagelet
-
-_ = MessageFactory('z3ext.layoutform')
-
-
-class IAddAction(interface.Interface):
- """ add action """
-
-
-class ISaveAction(interface.Interface):
- """ save action """
-
-
-class ICancelAction(interface.Interface):
- """ cancel action """
-
-
-class ILayoutFormLayer(IFormLayer):
- """ browser layer """
-
-
-class IPageletFormView(interface.Interface):
- """ pagelet form view """
-
-
-class IPageletBaseForm(IPagelet):
- """ Base interface for pagelet forms """
-
-
-class IPageletForm(IPageletBaseForm):
- """Form mixin for pagelet implementation."""
-
- label = interface.Attribute('Form label')
- description = interface.Attribute('Form label')
-
- forms = interface.Attribute('Ordered list of managed forms')
- groups = interface.Attribute('Ordered list of managed groups')
- subforms = interface.Attribute('Ordered list of managed subforms')
- views = interface.Attribute('Ordered list of managed views')
-
- successMessage = interface.Attribute('Success message')
- noChangesMessage = interface.Attribute('No changes message')
- formErrorsMessage = interface.Attribute('Error message')
-
- def updateForms():
- """Update pagelet subforms."""
-
-
-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 IPageletDisplayForm(IPageletBaseForm):
- """ Display form mixin """
-
-
-class IPageletEditForm(IPageletForm):
- """Edit form mixin for pagelet implementation."""
-
- def nextURL():
- """ as next url use newly created content url """
-
-
-class IPageletEditSubForm(IPageletBaseForm):
- """ Sub form mixin for pagelet implementation."""
-
- changesApplied = interface.Attribute('Changes applied')
-
- def executeActions(form):
- """Execute form actions."""
-
-
-class IPageletSubform(interface.Interface):
- """ Subform """
-
- weight = schema.Int(
- title = u'Weight',
- description = u'Weight for order',
- default = 9999,
- required = False)
-
- def isAvailable():
- """If subform available."""
-
- def postUpdate():
- """Update form after manager form updated."""
-
-
-class IAddButton(IAddAction):
- """ add button """
-
-
-class ISaveButton(ISaveAction):
- """ save button """
-
-
-class ICancelButton(ICancelAction):
- """ cancel button """
-
-
-class IFormWrapper(interface.Interface):
- """ """
-
-class IForms(ISelectionManager):
- """ Forms manager """
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/interfaces.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/interfaces.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/interfaces.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,136 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+""" z3ext.layoutform interfaces
+
+$Id$
+"""
+from zope import interface, schema
+from zope.i18nmessageid import MessageFactory
+from z3c.form.interfaces import IFormLayer, ISelectionManager
+from z3ext.layout.interfaces import IPagelet
+
+_ = MessageFactory('z3ext.layoutform')
+
+
+class IAddAction(interface.Interface):
+ """ add action """
+
+
+class ISaveAction(interface.Interface):
+ """ save action """
+
+
+class ICancelAction(interface.Interface):
+ """ cancel action """
+
+
+class ILayoutFormLayer(IFormLayer):
+ """ browser layer """
+
+
+class IPageletFormView(interface.Interface):
+ """ pagelet form view """
+
+
+class IPageletBaseForm(IPagelet):
+ """ Base interface for pagelet forms """
+
+
+class IPageletForm(IPageletBaseForm):
+ """Form mixin for pagelet implementation."""
+
+ label = interface.Attribute('Form label')
+ description = interface.Attribute('Form label')
+
+ forms = interface.Attribute('Ordered list of managed forms')
+ groups = interface.Attribute('Ordered list of managed groups')
+ subforms = interface.Attribute('Ordered list of managed subforms')
+ views = interface.Attribute('Ordered list of managed views')
+
+ successMessage = interface.Attribute('Success message')
+ noChangesMessage = interface.Attribute('No changes message')
+ formErrorsMessage = interface.Attribute('Error message')
+
+ def updateForms():
+ """Update pagelet subforms."""
+
+
+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 IPageletDisplayForm(IPageletBaseForm):
+ """ Display form mixin """
+
+
+class IPageletEditForm(IPageletForm):
+ """Edit form mixin for pagelet implementation."""
+
+ def nextURL():
+ """ as next url use newly created content url """
+
+
+class IPageletEditSubForm(IPageletBaseForm):
+ """ Sub form mixin for pagelet implementation."""
+
+ changesApplied = interface.Attribute('Changes applied')
+
+ def executeActions(form):
+ """Execute form actions."""
+
+
+class IPageletSubform(interface.Interface):
+ """ Subform """
+
+ weight = schema.Int(
+ title = u'Weight',
+ description = u'Weight for order',
+ default = 9999,
+ required = False)
+
+ def isAvailable():
+ """If subform available."""
+
+ def postUpdate():
+ """Update form after manager form updated."""
+
+
+class IAddButton(IAddAction):
+ """ add button """
+
+
+class ISaveButton(ISaveAction):
+ """ save button """
+
+
+class ICancelButton(ICancelAction):
+ """ cancel button """
+
+
+class IFormWrapper(interface.Interface):
+ """ """
+
+class IForms(ISelectionManager):
+ """ Forms manager """
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,54 +0,0 @@
-# #############################################################################
-#
-# Copyright (c) 2003-2004 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.
-#
-# #############################################################################
-msgid ""
-msgstr ""
-"Project-Id-Version: Development/Unknown\n"
-"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: zope/app/locales/extract.py\n"
-
-#: src/z3ext/layoutform/add.py:41
-msgid "Action has been canceled."
-msgstr ""
-
-#: src/z3ext/layoutform/add.py:43
-msgid "Add"
-msgstr ""
-
-#: src/z3ext/layoutform/add.py:59
-msgid "Cancel"
-msgstr ""
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
-msgid "Content short name"
-msgstr ""
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
-msgid ""
-"Should not contain spaces, underscores or mixed case. Short Name is part of "
-"the item's web address."
-msgstr ""
-
-#: src/z3ext/layoutform/edit.py:35
-msgid "Save"
-msgstr ""
-
-#: src/z3ext/layoutform/form.py:65
-msgid "Please fix indicated errors."
-msgstr ""
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,54 @@
+# #############################################################################
+#
+# Copyright (c) 2003-2004 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.
+#
+# #############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: src/z3ext/layoutform/add.py:41
+msgid "Action has been canceled."
+msgstr ""
+
+#: src/z3ext/layoutform/add.py:43
+msgid "Add"
+msgstr ""
+
+#: src/z3ext/layoutform/add.py:59
+msgid "Cancel"
+msgstr ""
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
+msgid "Content short name"
+msgstr ""
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
+msgid ""
+"Should not contain spaces, underscores or mixed case. Short Name is part of "
+"the item's web address."
+msgstr ""
+
+#: src/z3ext/layoutform/edit.py:35
+msgid "Save"
+msgstr ""
+
+#: src/z3ext/layoutform/form.py:65
+msgid "Please fix indicated errors."
+msgstr ""
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,56 +0,0 @@
-# #############################################################################
-#
-# Copyright (c) 2003-2004 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.
-#
-# #############################################################################
-msgid ""
-msgstr ""
-"Project-Id-Version: Development/Unknown\n"
-"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
-"PO-Revision-Date: 2008-10-14 17:25+0100\n"
-"Last-Translator: F. Kooman <fkooman at tuxed.net>\n"
-"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: zope/app/locales/extract.py\n"
-
-#: src/z3ext/layoutform/add.py:41
-msgid "Action has been canceled."
-msgstr "Bewerk actie is geannuleerd."
-
-#: src/z3ext/layoutform/add.py:43
-msgid "Add"
-msgstr "Toevoegen"
-
-#: src/z3ext/layoutform/add.py:59
-msgid "Cancel"
-msgstr "Annuleren"
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
-msgid "Content short name"
-msgstr "Inhoud korte naam"
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
-msgid ""
-"Should not contain spaces, underscores or mixed case. Short Name is part of "
-"the item's web address."
-msgstr ""
-"Mag geen spaties, underscores of wisselend hoofdlettergebruik bevatten. "
-"Korte naam is onderdeel van het webadres."
-
-#: src/z3ext/layoutform/edit.py:35
-msgid "Save"
-msgstr "Opslaan"
-
-#: src/z3ext/layoutform/form.py:65
-msgid "Please fix indicated errors."
-msgstr ""
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,56 @@
+# #############################################################################
+#
+# Copyright (c) 2003-2004 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.
+#
+# #############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
+"PO-Revision-Date: 2008-10-14 17:25+0100\n"
+"Last-Translator: F. Kooman <fkooman at tuxed.net>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: src/z3ext/layoutform/add.py:41
+msgid "Action has been canceled."
+msgstr "Bewerk actie is geannuleerd."
+
+#: src/z3ext/layoutform/add.py:43
+msgid "Add"
+msgstr "Toevoegen"
+
+#: src/z3ext/layoutform/add.py:59
+msgid "Cancel"
+msgstr "Annuleren"
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
+msgid "Content short name"
+msgstr "Inhoud korte naam"
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
+msgid ""
+"Should not contain spaces, underscores or mixed case. Short Name is part of "
+"the item's web address."
+msgstr ""
+"Mag geen spaties, underscores of wisselend hoofdlettergebruik bevatten. "
+"Korte naam is onderdeel van het webadres."
+
+#: src/z3ext/layoutform/edit.py:35
+msgid "Save"
+msgstr "Opslaan"
+
+#: src/z3ext/layoutform/form.py:65
+msgid "Please fix indicated errors."
+msgstr ""
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,56 +0,0 @@
-# #############################################################################
-#
-# Copyright (c) 2003-2004 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.
-#
-# #############################################################################
-msgid ""
-msgstr ""
-"Project-Id-Version: Development/Unknown\n"
-"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
-"PO-Revision-Date: 2008-10-20 14:35+0600\n"
-"Last-Translator: Nikolay Kim <fafhrd91 at gmail.com>\n"
-"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: zope/app/locales/extract.py\n"
-
-#: src/z3ext/layoutform/add.py:41
-msgid "Action has been canceled."
-msgstr "Ðобавление ÑлеменÑа пÑеÑвано."
-
-#: src/z3ext/layoutform/add.py:43
-msgid "Add"
-msgstr "ÐобавиÑÑ"
-
-#: src/z3ext/layoutform/add.py:59
-msgid "Cancel"
-msgstr "ÐÑмениÑÑ"
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
-msgid "Content short name"
-msgstr "ÐоÑоÑкое имÑ"
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
-msgid ""
-"Should not contain spaces, underscores or mixed case. Short Name is part of "
-"the item's web address."
-msgstr ""
-"ÐÐ¼Ñ Ð½Ðµ должно ÑодеÑжаÑÑ Ð¿Ñобелов, подÑеÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑмеÑаннÑй ÑегиÑÑÑ. "
-"ÐоÑоÑкое Ð¸Ð¼Ñ ÑаÑÑÑ Ð²ÐµÐ± адÑеÑа ÑлеменÑа."
-
-#: src/z3ext/layoutform/edit.py:35
-msgid "Save"
-msgstr "СоÑ
ÑаниÑÑ"
-
-#: src/z3ext/layoutform/form.py:65
-msgid "Please fix indicated errors."
-msgstr ""
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,56 @@
+# #############################################################################
+#
+# Copyright (c) 2003-2004 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.
+#
+# #############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
+"PO-Revision-Date: 2008-10-20 14:35+0600\n"
+"Last-Translator: Nikolay Kim <fafhrd91 at gmail.com>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: src/z3ext/layoutform/add.py:41
+msgid "Action has been canceled."
+msgstr "Ðобавление ÑлеменÑа пÑеÑвано."
+
+#: src/z3ext/layoutform/add.py:43
+msgid "Add"
+msgstr "ÐобавиÑÑ"
+
+#: src/z3ext/layoutform/add.py:59
+msgid "Cancel"
+msgstr "ÐÑмениÑÑ"
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
+msgid "Content short name"
+msgstr "ÐоÑоÑкое имÑ"
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
+msgid ""
+"Should not contain spaces, underscores or mixed case. Short Name is part of "
+"the item's web address."
+msgstr ""
+"ÐÐ¼Ñ Ð½Ðµ должно ÑодеÑжаÑÑ Ð¿Ñобелов, подÑеÑÐºÐ¸Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑмеÑаннÑй ÑегиÑÑÑ. "
+"ÐоÑоÑкое Ð¸Ð¼Ñ ÑаÑÑÑ Ð²ÐµÐ± адÑеÑа ÑлеменÑа."
+
+#: src/z3ext/layoutform/edit.py:35
+msgid "Save"
+msgstr "СоÑ
ÑаниÑÑ"
+
+#: src/z3ext/layoutform/form.py:65
+msgid "Please fix indicated errors."
+msgstr ""
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/z3ext.layoutform.pot
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/z3ext.layoutform.pot 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/z3ext.layoutform.pot 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,53 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2003-2004 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.
-#
-##############################################################################
-msgid ""
-msgstr ""
-"Project-Id-Version: Development/Unknown\n"
-"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
-"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: zope/app/locales/extract.py\n"
-
-#: src/z3ext/layoutform/add.py:41
-msgid "Action has been canceled."
-msgstr ""
-
-#: src/z3ext/layoutform/add.py:43
-msgid "Add"
-msgstr ""
-
-#: src/z3ext/layoutform/add.py:59
-msgid "Cancel"
-msgstr ""
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
-msgid "Content short name"
-msgstr ""
-
-#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
-msgid "Should not contain spaces, underscores or mixed case. Short Name is part of the item's web address."
-msgstr ""
-
-#: src/z3ext/layoutform/edit.py:35
-msgid "Save"
-msgstr ""
-
-#: src/z3ext/layoutform/form.py:65
-msgid "Please fix indicated errors."
-msgstr ""
-
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/z3ext.layoutform.pot (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/z3ext.layoutform.pot)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/z3ext.layoutform.pot (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/locales/z3ext.layoutform.pot 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,53 @@
+##############################################################################
+#
+# Copyright (c) 2003-2004 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.
+#
+##############################################################################
+msgid ""
+msgstr ""
+"Project-Id-Version: Development/Unknown\n"
+"POT-Creation-Date: Wed Apr 15 11:37:16 2009\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: Zope 3 Developers <zope3-dev at zope.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: zope/app/locales/extract.py\n"
+
+#: src/z3ext/layoutform/add.py:41
+msgid "Action has been canceled."
+msgstr ""
+
+#: src/z3ext/layoutform/add.py:43
+msgid "Add"
+msgstr ""
+
+#: src/z3ext/layoutform/add.py:59
+msgid "Cancel"
+msgstr ""
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:4
+msgid "Content short name"
+msgstr ""
+
+#: src/z3ext/layoutform/browser/formaddbuttons.pt:5
+msgid "Should not contain spaces, underscores or mixed case. Short Name is part of the item's web address."
+msgstr ""
+
+#: src/z3ext/layoutform/edit.py:35
+msgid "Save"
+msgstr ""
+
+#: src/z3ext/layoutform/form.py:65
+msgid "Please fix indicated errors."
+msgstr ""
+
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/subform.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/subform.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/subform.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,91 +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: 2007-12-12 12:27:02Z fafhrd $
-"""
-from zope import interface, event
-from zope.component import queryMultiAdapter
-from zope.traversing.browser import absoluteURL
-from zope.lifecycleevent import Attributes, ObjectModifiedEvent
-
-from z3c.form import subform, button
-from z3c.form.interfaces import ISubForm, IActionHandler
-
-from z3ext.statusmessage.interfaces import IStatusMessage
-
-from utils import applyChanges
-from form import PageletBaseForm
-from interfaces import _, IPageletEditSubForm, IPageletSubform, ISaveAction
-
-
-class PageletEditSubForm(subform.EditSubForm, PageletBaseForm):
- interface.implements(IPageletEditSubForm)
-
- label = u''
- description = u''
- changesApplied = False
-
- render = PageletBaseForm.render
- __call__ = PageletBaseForm.__call__
-
- def __init__(self, context, parentForm, request):
- super(PageletEditSubForm, self).__init__(context, request, parentForm)
-
- def applyChanges(self, data):
- return applyChanges(self, self.getContent(), data)
-
- @button.handler(ISaveAction)
- def handleApply(self, action):
- data, errors = self.extractData()
-
- if not errors:
- changes = self.applyChanges(data)
- if changes:
- descriptions = []
- for interface, names in changes.items():
- descriptions.append(Attributes(interface, *names))
-
- self.changesApplied = True
- event.notify(
- ObjectModifiedEvent(self.getContent(), *descriptions))
-
- def executeActions(self, form):
- request = self.request
- content = self.getContent()
-
- if hasattr(form, 'actions'):
- for action in form.actions.executedActions:
- adapter = queryMultiAdapter(
- (self, request, content, action), IActionHandler)
- if adapter:
- adapter()
-
- if ISubForm.providedBy(form):
- self.executeActions(form.parentForm)
-
- elif IPageletSubform.providedBy(form) and form.managers:
- self.executeActions(form.managers[0])
-
- def update(self):
- self.updateWidgets()
-
- if not IPageletSubform.providedBy(self):
- self.executeActions(self.parentForm)
-
- def isAvailable(self):
- return True
-
- def postUpdate(self):
- self.executeActions(self.parentForm)
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/subform.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/subform.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/subform.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/subform.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,91 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id: 2007-12-12 12:27:02Z fafhrd $
+"""
+from zope import interface, event
+from zope.component import queryMultiAdapter
+from zope.traversing.browser import absoluteURL
+from zope.lifecycleevent import Attributes, ObjectModifiedEvent
+
+from z3c.form import subform, button
+from z3c.form.interfaces import ISubForm, IActionHandler
+
+from z3ext.statusmessage.interfaces import IStatusMessage
+
+from utils import applyChanges
+from form import PageletBaseForm
+from interfaces import _, IPageletEditSubForm, IPageletSubform, ISaveAction
+
+
+class PageletEditSubForm(subform.EditSubForm, PageletBaseForm):
+ interface.implements(IPageletEditSubForm)
+
+ label = u''
+ description = u''
+ changesApplied = False
+
+ render = PageletBaseForm.render
+ __call__ = PageletBaseForm.__call__
+
+ def __init__(self, context, parentForm, request):
+ super(PageletEditSubForm, self).__init__(context, request, parentForm)
+
+ def applyChanges(self, data):
+ return applyChanges(self, self.getContent(), data)
+
+ @button.handler(ISaveAction)
+ def handleApply(self, action):
+ data, errors = self.extractData()
+
+ if not errors:
+ changes = self.applyChanges(data)
+ if changes:
+ descriptions = []
+ for interface, names in changes.items():
+ descriptions.append(Attributes(interface, *names))
+
+ self.changesApplied = True
+ event.notify(
+ ObjectModifiedEvent(self.getContent(), *descriptions))
+
+ def executeActions(self, form):
+ request = self.request
+ content = self.getContent()
+
+ if hasattr(form, 'actions'):
+ for action in form.actions.executedActions:
+ adapter = queryMultiAdapter(
+ (self, request, content, action), IActionHandler)
+ if adapter:
+ adapter()
+
+ if ISubForm.providedBy(form):
+ self.executeActions(form.parentForm)
+
+ elif IPageletSubform.providedBy(form) and form.managers:
+ self.executeActions(form.managers[0])
+
+ def update(self):
+ self.updateWidgets()
+
+ if not IPageletSubform.providedBy(self):
+ self.executeActions(self.parentForm)
+
+ def isAvailable(self):
+ return True
+
+ def postUpdate(self):
+ self.executeActions(self.parentForm)
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/tests/tests.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/tests/tests.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/tests/tests.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,38 +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: 2007-12-12 12:27:02Z fafhrd $
-"""
-import unittest, os
-from zope.testing import doctest
-from zope.app.testing.functional import ZCMLLayer, FunctionalDocFileSuite
-
-layoutformLayer = ZCMLLayer(
- os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
- __name__, 'layoutformLayer', allow_teardown=True)
-
-
-def test_suite():
- form = FunctionalDocFileSuite(
- "form.txt",
- optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE)
- form.layer = layoutformLayer
-
- tests = FunctionalDocFileSuite(
- "tests.txt",
- optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE)
- tests.layer = layoutformLayer
-
- return unittest.TestSuite((form, tests,))
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/tests/tests.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/tests/tests.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/tests/tests.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/tests/tests.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,38 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id: 2007-12-12 12:27:02Z fafhrd $
+"""
+import unittest, os
+from zope.testing import doctest
+from zope.app.testing.functional import ZCMLLayer, FunctionalDocFileSuite
+
+layoutformLayer = ZCMLLayer(
+ os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
+ __name__, 'layoutformLayer', allow_teardown=True)
+
+
+def test_suite():
+ form = FunctionalDocFileSuite(
+ "form.txt",
+ optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE)
+ form.layer = layoutformLayer
+
+ tests = FunctionalDocFileSuite(
+ "tests.txt",
+ optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE)
+ tests.layer = layoutformLayer
+
+ return unittest.TestSuite((form, tests,))
Deleted: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/utils.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/utils.py 2009-08-10 17:22:44 UTC (rev 102631)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/utils.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -1,48 +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: 2007-12-12 12:27:02Z fafhrd $
-"""
-from zope.component import getMultiAdapter
-from z3c.form.interfaces import IDataManager
-
-
-def applyChanges(form, content, data):
- changes = {}
- for name, field in form.fields.items():
- # If the field is not in the data, then go on to the next one
- if name not in data:
- continue
-
- # Get the datamanager and get the original value
- dm = getMultiAdapter((content, field.field), IDataManager)
-
- # Only update the data, if it is different
- try:
- value = dm.get()
- except:
- value = object()
-
- try:
- updated = value != data[name]
- except TypeError:
- updated = True
-
- if updated:
- dm.set(data[name])
- # Record the change using information required later
- changes.setdefault(dm.field.interface, []).append(name)
-
- return changes
Copied: z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/utils.py (from rev 102647, z3ext.layoutform/trunk/src/z3ext/layoutform/utils.py)
===================================================================
--- z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/utils.py (rev 0)
+++ z3ext.layoutform/tags/1.6.0/src/z3ext/layoutform/utils.py 2009-08-11 08:42:20 UTC (rev 102648)
@@ -0,0 +1,48 @@
+##############################################################################
+#
+# Copyright (c) 2009 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.
+#
+##############################################################################
+"""
+
+$Id: 2007-12-12 12:27:02Z fafhrd $
+"""
+from zope.component import getMultiAdapter
+from z3c.form.interfaces import IDataManager
+
+
+def applyChanges(form, content, data):
+ changes = {}
+ for name, field in form.fields.items():
+ # If the field is not in the data, then go on to the next one
+ if name not in data:
+ continue
+
+ # Get the datamanager and get the original value
+ dm = getMultiAdapter((content, field.field), IDataManager)
+
+ # Only update the data, if it is different
+ try:
+ value = dm.get()
+ except:
+ value = object()
+
+ try:
+ updated = value != data[name]
+ except TypeError:
+ updated = True
+
+ if updated:
+ dm.set(data[name])
+ # Record the change using information required later
+ changes.setdefault(dm.field.interface, []).append(name)
+
+ return changes
More information about the Checkins
mailing list