Changeset 7786
- Timestamp:
- 7 Mar 2012, 23:11:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/widgets/objectwidget.py
r7778 r7786 73 73 def _setUpWidgets(self): 74 74 return self._setUpDisplayWidgets() 75 76 import grok77 from zope.schema.interfaces import IObject78 from zope.formlib.interfaces import IInputWidget79 from zope.publisher.interfaces.browser import IBrowserRequest80 from waeup.sirp.schoolgrades import ResultEntry81 from waeup.sirp.schema.interfaces import IMultiValObject82 83 #@grok.adapter(IObject, IBrowserRequest)84 @grok.adapter(IMultiValObject, IBrowserRequest)85 @grok.implementer(IInputWidget)86 def obj_input_widget(obj, req):87 return SIRPObjectWidget(obj, req, ResultEntry)88 89 #@grok.adapter(IObject, IBrowserRequest)90 @grok.adapter(IMultiValObject, IBrowserRequest)91 @grok.implementer(IDisplayWidget)92 def obj_display_widget(obj, req):93 return SIRPObjectDisplayWidget(obj, req, ResultEntry)94 #grok.adapts(IObject, IBrowserRequest)
Note: See TracChangeset for help on using the changeset viewer.