[Checkins] SVN: z3c.wizard/trunk/ - Using ``requiredInfo`` property to render the information about
Michael Howitz
mh at gocept.com
Tue Dec 29 09:44:49 EST 2009
Log message for revision 107254:
- Using ``requiredInfo`` property to render the information about
required fields. This property returns an i18n message id making the
information translateable.
Changed:
U z3c.wizard/trunk/CHANGES.txt
U z3c.wizard/trunk/setup.py
U z3c.wizard/trunk/src/z3c/wizard/README.txt
U z3c.wizard/trunk/src/z3c/wizard/testing.py
U z3c.wizard/trunk/src/z3c/wizard/wizard.pt
-=-
Modified: z3c.wizard/trunk/CHANGES.txt
===================================================================
--- z3c.wizard/trunk/CHANGES.txt 2009-12-29 14:31:57 UTC (rev 107253)
+++ z3c.wizard/trunk/CHANGES.txt 2009-12-29 14:44:48 UTC (rev 107254)
@@ -8,7 +8,11 @@
- Avoid `z3c.form.testing` in tests: It depends on `lxml`, but `lxml`
features are not needed here.
+- Using ``requiredInfo`` property to render the information about
+ required fields. This property returns an i18n message id making the
+ information translateable.
+
0.8.0 (2009-11-30)
------------------
Modified: z3c.wizard/trunk/setup.py
===================================================================
--- z3c.wizard/trunk/setup.py 2009-12-29 14:31:57 UTC (rev 107253)
+++ z3c.wizard/trunk/setup.py 2009-12-29 14:44:48 UTC (rev 107254)
@@ -61,6 +61,7 @@
'zope.app.testing',
'zope.publisher',
'zope.testing',
+ 'zope.browserresource',
],
),
install_requires = [
Modified: z3c.wizard/trunk/src/z3c/wizard/README.txt
===================================================================
--- z3c.wizard/trunk/src/z3c/wizard/README.txt 2009-12-29 14:31:57 UTC (rev 107253)
+++ z3c.wizard/trunk/src/z3c/wizard/README.txt 2009-12-29 14:44:48 UTC (rev 107254)
@@ -206,8 +206,7 @@
<div class="viewspace">
<div class="label">Person</div>
<div class="required-info">
- <span class="required">*</span>
- – required
+ <span class="required">*</span>– required
</div>
<div class="step">
<div id="form-widgets-firstName-row" class="row">
@@ -334,8 +333,7 @@
<div class="viewspace">
<div class="label">Address</div>
<div class="required-info">
- <span class="required">*</span>
- – required
+ <span class="required">*</span>– required
</div>
<div class="step">
<div id="form-widgets-street-row" class="row">
Modified: z3c.wizard/trunk/src/z3c/wizard/testing.py
===================================================================
--- z3c.wizard/trunk/src/z3c/wizard/testing.py 2009-12-29 14:31:57 UTC (rev 107253)
+++ z3c.wizard/trunk/src/z3c/wizard/testing.py 2009-12-29 14:44:48 UTC (rev 107254)
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2008 Zope Foundation and Contributors.
+# Copyright (c) 2008-2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -18,10 +18,10 @@
from zope.app.pagetemplate import metaconfigure
from zope.app.testing import setup
-
import z3c.macro.tales
+import zope.i18n.interfaces
+import zope.i18n.negotiator
-
###############################################################################
#
# testing setup
@@ -31,6 +31,8 @@
def setUp(test):
test.globs = {'root': setup.placefulSetUp(True)}
+ zope.component.provideUtility(zope.i18n.negotiator.Negotiator(),
+ zope.i18n.interfaces.INegotiator)
metaconfigure.registerType('macro', z3c.macro.tales.MacroExpression)
Modified: z3c.wizard/trunk/src/z3c/wizard/wizard.pt
===================================================================
--- z3c.wizard/trunk/src/z3c/wizard/wizard.pt 2009-12-29 14:31:57 UTC (rev 107253)
+++ z3c.wizard/trunk/src/z3c/wizard/wizard.pt 2009-12-29 14:44:48 UTC (rev 107254)
@@ -40,8 +40,7 @@
<div class="required-info"
metal:define-macro="wizard-required-info"
tal:condition="view/showRequired">
- <span class="required">*</span>
- – required
+ <tal:info content="structure view/requiredInfo" />
</div>
</metal:block>
<metal:block define-slot="header">
More information about the checkins
mailing list