Changeset 12424 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 8 Jan 2015, 14:04:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/schoolgrades.py
r12418 r12424 27 27 KofaObjectWidget, KofaObjectDisplayWidget 28 28 ) 29 29 30 30 31 class ResultEntry(grok.Model): … … 75 76 return cls(subject, grade) 76 77 78 77 79 class ResultEntryField(Object): 78 80 """A zope.schema-like field for usage in interfaces. … … 92 94 return 93 95 96 94 97 # register KofaObjectWidgets as default widgets for IResultEntryFields 95 98 @grok.adapter(IResultEntryField, IBrowserRequest) … … 98 101 return KofaObjectWidget(obj, req, ResultEntry) 99 102 103 100 104 # register a display widget for IResultEntryFields 101 105 @grok.adapter(IResultEntryField, IBrowserRequest)
Note: See TracChangeset for help on using the changeset viewer.