Last change
on this file was
826,
checked in by mylan, 17 years ago
|
Fix i18n:attributes deprecation warning for Plone-2.5 (#337)
|
-
Property svn:eol-style set to
native
|
File size:
573 bytes
|
Line | |
---|
1 | from Products.Archetypes.Widget import StringWidget |
---|
2 | from Products.Archetypes.Registry import registerWidget |
---|
3 | |
---|
4 | |
---|
5 | class ReadonlyStringWidget(StringWidget): |
---|
6 | _properties = StringWidget._properties.copy() |
---|
7 | _properties.update({ |
---|
8 | 'macro' : "readonlystring", |
---|
9 | }) |
---|
10 | |
---|
11 | registerWidget(ReadonlyStringWidget, |
---|
12 | title='ReadonlyString', |
---|
13 | description=('Renders a HTML readonly text input box which ' |
---|
14 | 'accepts a single line of text'), |
---|
15 | used_for=('Products.Archetypes.Field.StringField',) |
---|
16 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.