source: products/quintagroup.ploneformgen.readonlystringfield/trunk/quintagroup/ploneformgen/readonlystringfield/widget.py @ 826

Last change on this file since 826 was 826, checked in by mylan, 15 years ago

Fix i18n:attributes deprecation warning for Plone-2.5 (#337)

  • Property svn:eol-style set to native
File size: 573 bytes
Line 
1from Products.Archetypes.Widget import StringWidget
2from Products.Archetypes.Registry import registerWidget
3
4
5class ReadonlyStringWidget(StringWidget):
6    _properties = StringWidget._properties.copy()
7    _properties.update({
8        'macro' : "readonlystring",
9        })
10
11registerWidget(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.