[Checkins] SVN: z3ext.layoutform/tags/1.3.5/ release tag
Nikolay Kim
fafhrd at datacom.kz
Wed Apr 15 01:38:18 EDT 2009
Log message for revision 99184:
release tag
Changed:
A z3ext.layoutform/tags/1.3.5/
D z3ext.layoutform/tags/1.3.5/CHANGES.txt
A z3ext.layoutform/tags/1.3.5/CHANGES.txt
D z3ext.layoutform/tags/1.3.5/buildout.cfg
A z3ext.layoutform/tags/1.3.5/buildout.cfg
D z3ext.layoutform/tags/1.3.5/setup.py
A z3ext.layoutform/tags/1.3.5/setup.py
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/form.py
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/form.py
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/interfaces.py
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/interfaces.py
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.mo
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.mo
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.mo
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.mo
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.mo
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.mo
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/z3ext.layoutform.pot
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/z3ext.layoutform.pot
D z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/tests/ftesting.zcml
A z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/tests/ftesting.zcml
-=-
Deleted: z3ext.layoutform/tags/1.3.5/CHANGES.txt
===================================================================
--- z3ext.layoutform/trunk/CHANGES.txt 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/CHANGES.txt 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,167 +0,0 @@
-=======
-CHANGES
-=======
-
-
-1.3.5 (2009-04-??)
-------------------
-
-- 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.3.5/CHANGES.txt (from rev 99183, z3ext.layoutform/trunk/CHANGES.txt)
===================================================================
--- z3ext.layoutform/tags/1.3.5/CHANGES.txt (rev 0)
+++ z3ext.layoutform/tags/1.3.5/CHANGES.txt 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,169 @@
+=======
+CHANGES
+=======
+
+
+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.3.5/buildout.cfg
===================================================================
--- z3ext.layoutform/trunk/buildout.cfg 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/buildout.cfg 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,56 +0,0 @@
-[buildout]
-develop = .
-parts = test coverage-test coverage-report i18n i18nall i18ncheck i18ndude
-
-[test]
-recipe = zc.recipe.testrunner
-eggs = z3ext.layoutform [test]
-
-[coverage-test]
-recipe = zc.recipe.testrunner
-eggs = z3ext.layoutform [test]
-defaults = ['--coverage', '../../coverage']
-
-[coverage-report]
-recipe = zc.recipe.egg
-eggs = z3c.coverage
-scripts = coverage=coverage-report
-arguments = ('coverage', 'coverage/report')
-
-
-[i18n]
-recipe = z3c.recipe.i18n:i18n
-packages = z3ext.layoutform
-domain = z3ext.layoutform
-output = ${buildout:directory}/src/z3ext/layoutform/locales
-eggs = z3ext.layoutform [test]
-zcml =
- <configure i18n_domain="zope"
- xmlns:zcml="http://namespaces.zope.org/zcml"
- xmlns:browser="http://namespaces.zope.org/browser">
- <include package="zope.component" file="meta.zcml" />
- <include package="zope.app.component" file="meta.zcml" />
- <include package="zope.app.security" file="meta.zcml" />
- <include package="zope.app.pagetemplate" file="meta.zcml" />
- <include package="zope.app.security" />
- <include package="zope.app.zcmlfiles" />
- <include package="zope.app.authentication" />
-
- <include package="z3c.autoinclude" file="meta.zcml" />
- <include package="z3ext.layoutform" />
- </configure>
-
-[i18nall]
-recipe = buildout_script
-template_dir = ${buildout:directory}/scripts/
-template = i18nall.in
-
-[i18ncheck]
-recipe = buildout_script
-template_dir = ${buildout:directory}/scripts/
-template = i18ncheck.in
-
-[i18ndude]
-unzip = true
-recipe = zc.recipe.egg
-eggs = i18ndude
Copied: z3ext.layoutform/tags/1.3.5/buildout.cfg (from rev 99183, z3ext.layoutform/trunk/buildout.cfg)
===================================================================
--- z3ext.layoutform/tags/1.3.5/buildout.cfg (rev 0)
+++ z3ext.layoutform/tags/1.3.5/buildout.cfg 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,48 @@
+[buildout]
+develop = .
+parts = test coverage-test coverage-report i18n i18nall i18ncheck i18ndude
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3ext.layoutform [test]
+
+[coverage-test]
+recipe = zc.recipe.testrunner
+eggs = z3ext.layoutform [test]
+defaults = ['--coverage', '../../coverage']
+
+[coverage-report]
+recipe = zc.recipe.egg
+eggs = z3c.coverage
+scripts = coverage=coverage-report
+arguments = ('coverage', 'coverage/report')
+
+
+[i18n]
+recipe = z3c.recipe.i18n:i18n
+packages = z3ext.layoutform
+domain = z3ext.layoutform
+output = ${buildout:directory}/src/z3ext/layoutform/locales
+eggs = z3ext.layoutform [test]
+zcml =
+ <configure i18n_domain="zope"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
+ xmlns:browser="http://namespaces.zope.org/browser">
+ <include package="z3ext.autoinclude" file="meta.zcml" />
+ <includeAllDependencies package="z3ext.layoutform" extras="test" />
+ </configure>
+
+[i18nall]
+recipe = buildout_script
+template_dir = ${buildout:directory}/scripts/
+template = i18nall.in
+
+[i18ncheck]
+recipe = buildout_script
+template_dir = ${buildout:directory}/scripts/
+template = i18ncheck.in
+
+[i18ndude]
+unzip = true
+recipe = zc.recipe.egg
+eggs = i18ndude
Deleted: z3ext.layoutform/tags/1.3.5/setup.py
===================================================================
--- z3ext.layoutform/trunk/setup.py 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/setup.py 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,69 +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.3.5dev'
-
-
-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',]),
- include_package_data = True,
- zip_safe = False
- )
Copied: z3ext.layoutform/tags/1.3.5/setup.py (from rev 99182, z3ext.layoutform/trunk/setup.py)
===================================================================
--- z3ext.layoutform/tags/1.3.5/setup.py (rev 0)
+++ z3ext.layoutform/tags/1.3.5/setup.py 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,72 @@
+##############################################################################
+#
+# 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.3.5'
+
+
+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.3.5/src/z3ext/layoutform/form.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/form.py 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/form.py 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,151 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Support for Layout Templates
-
-$Id$
-"""
-from zope import interface
-from zope.component import getAdapters
-from zope.component import getMultiAdapter, queryMultiAdapter
-from zope.pagetemplate.interfaces import IPageTemplate
-
-from z3c.form import form
-from z3c.form.interfaces import IForm, IGroup, ISubForm
-
-from z3ext.layout.interfaces import IPagelet
-from z3ext.layout.pagelet import BrowserPagelet
-
-from interfaces import IFormWrapper
-from interfaces import IPageletForm, IPageletSubform
-from interfaces import IPageletDisplayForm, IPageletFormView
-
-
-class PageletBaseForm(form.BaseForm, BrowserPagelet):
-
- __call__ = BrowserPagelet.__call__
-
- def render(self):
- if self.template is not None:
- return self.template()
- else:
- view = queryMultiAdapter((self, self.request), IPageletFormView)
- if view is not None:
- view.update()
- return view.render()
-
- raise LookupError("Can't find IPageletFormView view for this form.")
-
-
-class PageletForm(form.Form, PageletBaseForm):
- interface.implements(IPageletForm)
-
- label = u''
- description = u''
-
- forms = ()
- groups = ()
- subforms = ()
- views = ()
-
- render = PageletBaseForm.render
- __call__ = PageletBaseForm.__call__
-
- def extractData(self):
- data, errors = super(PageletForm, self).extractData()
- for form in self.groups:
- formData, formErrors = form.extractData()
- data.update(formData)
- if formErrors:
- errors += formErrors
-
- for form in self.subforms:
- formData, formErrors = form.extractData()
- if formErrors:
- errors += formErrors
-
- return data, errors
-
- def _loadSubforms(self):
- return [form for name, form in
- getAdapters((self.context, self, self.request), IPageletSubform)]
-
- def updateForms(self):
- wrapped = IFormWrapper.providedBy(self)
-
- forms = []
- groups = []
- subforms = []
- views = []
- for form in self._loadSubforms():
- form.update()
- if not form.isAvailable():
- continue
-
- if IGroup.providedBy(form):
- groups.append((form.weight, form.__name__, form))
- elif ISubForm.providedBy(form):
- subforms.append((form.weight, form.__name__, form))
- elif IPageletForm.providedBy(form):
- if wrapped:
- interface.alsoProvides(form, IFormWrapper)
- forms.append((form.weight, form.__name__, form))
- else:
- views.append((form.weight, form.__name__, form))
-
- groups.sort()
- self.groups = [form for weight, name, form in groups]
-
- subforms.sort()
- self.subforms = [form for weight, name, form in subforms]
-
- forms.sort()
- self.forms = [form for weight, name, form in forms]
-
- views.sort()
- self.views = [view for weight, name, view in views]
-
- def update(self):
- self.updateWidgets()
- self.updateActions()
- self.updateForms()
-
- if not IPageletSubform.providedBy(self):
- self.actions.execute()
-
- for form in self.groups:
- form.postUpdate()
- for form in self.subforms:
- form.postUpdate()
- for form in self.forms:
- form.postUpdate()
-
- def isAvailable(self):
- return True
-
- def postUpdate(self):
- for form in self.groups:
- form.postUpdate()
- for form in self.subforms:
- form.postUpdate()
- for form in self.forms:
- form.postUpdate()
-
- self.actions.execute()
-
-
-class PageletDisplayForm(PageletForm, form.DisplayForm):
- interface.implements(IPageletDisplayForm)
-
- render = PageletForm.render
- __call__ = PageletForm.__call__
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/form.py (from rev 99182, z3ext.layoutform/trunk/src/z3ext/layoutform/form.py)
===================================================================
--- z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/form.py (rev 0)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/form.py 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,154 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Support for Layout Templates
+
+$Id$
+"""
+from zope import interface
+from zope.component import getAdapters
+from zope.component import getMultiAdapter, queryMultiAdapter
+from zope.pagetemplate.interfaces import IPageTemplate
+
+from z3c.form import form
+from z3c.form.interfaces import IForm, IGroup, ISubForm
+
+from z3ext.layout.interfaces import IPagelet
+from z3ext.layout.pagelet import BrowserPagelet
+
+from interfaces import _
+from interfaces import IFormWrapper
+from interfaces import IPageletForm, IPageletSubform
+from interfaces import IPageletDisplayForm, IPageletFormView
+
+
+class PageletBaseForm(form.BaseForm, BrowserPagelet):
+
+ __call__ = BrowserPagelet.__call__
+
+ def render(self):
+ if self.template is not None:
+ return self.template()
+ else:
+ view = queryMultiAdapter((self, self.request), IPageletFormView)
+ if view is not None:
+ view.update()
+ return view.render()
+
+ raise LookupError("Can't find IPageletFormView view for this form.")
+
+
+class PageletForm(form.Form, PageletBaseForm):
+ interface.implements(IPageletForm)
+
+ label = u''
+ description = u''
+
+ forms = ()
+ groups = ()
+ subforms = ()
+ views = ()
+
+ render = PageletBaseForm.render
+ __call__ = PageletBaseForm.__call__
+
+ formErrorsMessage = _(u'Please fix indicated errors.')
+
+ def extractData(self):
+ data, errors = super(PageletForm, self).extractData()
+ for form in self.groups:
+ formData, formErrors = form.extractData()
+ data.update(formData)
+ if formErrors:
+ errors += formErrors
+
+ for form in self.subforms:
+ formData, formErrors = form.extractData()
+ if formErrors:
+ errors += formErrors
+
+ return data, errors
+
+ def _loadSubforms(self):
+ return [form for name, form in
+ getAdapters((self.context, self, self.request), IPageletSubform)]
+
+ def updateForms(self):
+ wrapped = IFormWrapper.providedBy(self)
+
+ forms = []
+ groups = []
+ subforms = []
+ views = []
+ for form in self._loadSubforms():
+ form.update()
+ if not form.isAvailable():
+ continue
+
+ if IGroup.providedBy(form):
+ groups.append((form.weight, form.__name__, form))
+ elif ISubForm.providedBy(form):
+ subforms.append((form.weight, form.__name__, form))
+ elif IPageletForm.providedBy(form):
+ if wrapped:
+ interface.alsoProvides(form, IFormWrapper)
+ forms.append((form.weight, form.__name__, form))
+ else:
+ views.append((form.weight, form.__name__, form))
+
+ groups.sort()
+ self.groups = [form for weight, name, form in groups]
+
+ subforms.sort()
+ self.subforms = [form for weight, name, form in subforms]
+
+ forms.sort()
+ self.forms = [form for weight, name, form in forms]
+
+ views.sort()
+ self.views = [view for weight, name, view in views]
+
+ def update(self):
+ self.updateWidgets()
+ self.updateActions()
+ self.updateForms()
+
+ if not IPageletSubform.providedBy(self):
+ self.actions.execute()
+
+ for form in self.groups:
+ form.postUpdate()
+ for form in self.subforms:
+ form.postUpdate()
+ for form in self.forms:
+ form.postUpdate()
+
+ def isAvailable(self):
+ return True
+
+ def postUpdate(self):
+ for form in self.groups:
+ form.postUpdate()
+ for form in self.subforms:
+ form.postUpdate()
+ for form in self.forms:
+ form.postUpdate()
+
+ self.actions.execute()
+
+
+class PageletDisplayForm(PageletForm, form.DisplayForm):
+ interface.implements(IPageletDisplayForm)
+
+ render = PageletForm.render
+ __call__ = PageletForm.__call__
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/interfaces.py
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/interfaces.py 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,127 +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
-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')
-
- 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."""
-
- 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):
- """ """
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/interfaces.py (from rev 99182, z3ext.layoutform/trunk/src/z3ext/layoutform/interfaces.py)
===================================================================
--- z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/interfaces.py (rev 0)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/interfaces.py 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,129 @@
+##############################################################################
+#
+# 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
+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')
+
+ 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."""
+
+ 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):
+ """ """
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.mo
===================================================================
(Binary files differ)
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.mo (from rev 99183, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.mo)
===================================================================
(Binary files differ)
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,50 +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: Tue Oct 21 20:29:16 2008\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:38
-msgid "Save"
-msgstr ""
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po (from rev 99183, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po)
===================================================================
--- z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po (rev 0)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/en/LC_MESSAGES/z3ext.layoutform.po 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,54 @@
+# #############################################################################
+#
+# 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 ""
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.mo
===================================================================
(Binary files differ)
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.mo (from rev 99183, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.mo)
===================================================================
(Binary files differ)
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,52 +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: Tue Oct 21 20:29:16 2008\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:38
-msgid "Save"
-msgstr "Opslaan"
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po (from rev 99183, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po)
===================================================================
--- z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po (rev 0)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/nl/LC_MESSAGES/z3ext.layoutform.po 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,56 @@
+# #############################################################################
+#
+# 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 ""
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.mo
===================================================================
(Binary files differ)
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.mo (from rev 99183, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.mo)
===================================================================
(Binary files differ)
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po 2009-04-15 05:38:18 UTC (rev 99184)
@@ -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: Tue Oct 21 20:29:16 2008\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:38
-msgid "Save"
-msgstr "СоÑ
ÑаниÑÑ"
-
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po (from rev 99183, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po)
===================================================================
--- z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po (rev 0)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/ru/LC_MESSAGES/z3ext.layoutform.po 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,56 @@
+# #############################################################################
+#
+# 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 ""
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/z3ext.layoutform.pot
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/locales/z3ext.layoutform.pot 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/z3ext.layoutform.pot 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,49 +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 Oct 22 00:56:57 2008\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:38
-msgid "Save"
-msgstr ""
-
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/z3ext.layoutform.pot (from rev 99183, z3ext.layoutform/trunk/src/z3ext/layoutform/locales/z3ext.layoutform.pot)
===================================================================
--- z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/z3ext.layoutform.pot (rev 0)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/locales/z3ext.layoutform.pot 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,53 @@
+##############################################################################
+#
+# 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 ""
+
Deleted: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/tests/ftesting.zcml
===================================================================
--- z3ext.layoutform/trunk/src/z3ext/layoutform/tests/ftesting.zcml 2009-04-14 15:08:48 UTC (rev 99170)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/tests/ftesting.zcml 2009-04-15 05:38:18 UTC (rev 99184)
@@ -1,28 +0,0 @@
-<configure
- xmlns="http://namespaces.zope.org/zope"
- xmlns:i18n="http://namespaces.zope.org/i18n"
- i18n:domain="zope">
-
- <include package="zope.component" file="meta.zcml" />
- <include package="zope.app.component" file="meta.zcml" />
- <include package="zope.app.security" file="meta.zcml" />
- <include package="zope.app.pagetemplate" file="meta.zcml" />
- <include package="zope.app.security" />
- <include package="zope.app.zcmlfiles" />
-
- <include package="z3c.form" file="meta.zcml" />
- <include package="z3c.form" />
-
-
- <include package="z3ext.layout" file="meta.zcml" />
- <include package="z3ext.resource" file="meta.zcml" />
- <include package="z3ext.resourcepackage" file="meta.zcml" />
-
- <include package="z3ext.layout" />
- <include package="z3ext.resource" />
- <include package="z3ext.resourcepackage" />
- <include package="z3ext.statusmessage" />
- <include package="z3ext.layoutform" />
- <adapter factory="z3ext.statusmessage.tests.tests.getSession" />
-
-</configure>
Copied: z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/tests/ftesting.zcml (from rev 99182, z3ext.layoutform/trunk/src/z3ext/layoutform/tests/ftesting.zcml)
===================================================================
--- z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/tests/ftesting.zcml (rev 0)
+++ z3ext.layoutform/tags/1.3.5/src/z3ext/layoutform/tests/ftesting.zcml 2009-04-15 05:38:18 UTC (rev 99184)
@@ -0,0 +1,11 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:i18n="http://namespaces.zope.org/i18n"
+ i18n:domain="zope">
+
+ <include package="z3ext.autoinclude" file="meta.zcml" />
+ <includeAllDependencies package="z3ext.layoutform" extras="test" />
+
+ <adapter factory="z3ext.statusmessage.tests.tests.getSession" />
+
+</configure>
More information about the Checkins
mailing list