[Checkins] SVN: z3c.form/trunk/ All forms now have an optional
label that can be used by the UI.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Jun 27 15:29:23 EDT 2007
Log message for revision 77154:
All forms now have an optional label that can be used by the UI.
Changed:
U z3c.form/trunk/CHANGES.txt
U z3c.form/trunk/src/z3c/form/form.py
U z3c.form/trunk/src/z3c/form/group.py
U z3c.form/trunk/src/z3c/form/interfaces.py
-=-
Modified: z3c.form/trunk/CHANGES.txt
===================================================================
--- z3c.form/trunk/CHANGES.txt 2007-06-27 18:00:43 UTC (rev 77153)
+++ z3c.form/trunk/CHANGES.txt 2007-06-27 19:29:23 UTC (rev 77154)
@@ -5,6 +5,8 @@
Version 1.4.0 (??/??/2007)
-------------------------
+- Feature: All forms now have an optional label that can be used by the UI.
+
- Feature: Implemented groups within forms. Groups allow you to combine a set
of fields/widgets into a logical unit. They were designed with ease of use
in mind.
Modified: z3c.form/trunk/src/z3c/form/form.py
===================================================================
--- z3c.form/trunk/src/z3c/form/form.py 2007-06-27 18:00:43 UTC (rev 77153)
+++ z3c.form/trunk/src/z3c/form/form.py 2007-06-27 19:29:23 UTC (rev 77154)
@@ -72,6 +72,7 @@
fields = field.Fields()
+ label = None
prefix = 'form.'
status = ''
template = None
Modified: z3c.form/trunk/src/z3c/form/group.py
===================================================================
--- z3c.form/trunk/src/z3c/form/group.py 2007-06-27 18:00:43 UTC (rev 77153)
+++ z3c.form/trunk/src/z3c/form/group.py 2007-06-27 19:29:23 UTC (rev 77154)
@@ -22,8 +22,6 @@
class Group(form.BaseForm):
- label = None
-
def __init__(self, context, request, parentForm):
self.context = context
self.request = request
Modified: z3c.form/trunk/src/z3c/form/interfaces.py
===================================================================
--- z3c.form/trunk/src/z3c/form/interfaces.py 2007-06-27 18:00:43 UTC (rev 77153)
+++ z3c.form/trunk/src/z3c/form/interfaces.py 2007-06-27 19:29:23 UTC (rev 77154)
@@ -571,6 +571,12 @@
'the form.'),
schema=IWidgets)
+ label = zope.schema.TextLine(
+ title=_('Label'),
+ description=_('A human readable text desribing the form that can be '
+ 'used in the UI.'),
+ required=False)
+
prefix = zope.schema.BytesLine(
title=_('Prefix'),
description=_('The prefix of the form used to uniquely identify it.'),
@@ -691,11 +697,6 @@
class IGroup(IForm):
"""A group of fields/widgets within a form."""
- label = zope.schema.TextLine(
- title=u'Label',
- description=u'A test describing the group. Commonly used for the UI.')
-
-
class IGroupForm(object):
"""A form that supports groups."""
More information about the Checkins
mailing list