Changeset 7769 for main/waeup.sirp/branches/ulif-schoolgrades
- Timestamp:
- 7 Mar 2012, 08:27:35 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/widgets/objectwidget.py
r7321 r7769 60 60 return SIRPObjectWidgetView(self, request) 61 61 62 62 63 class SIRPObjectDisplayWidget(SIRPObjectWidget): 63 64 … … 72 73 def _setUpWidgets(self): 73 74 return self._setUpDisplayWidgets() 75 76 import grok 77 from zope.schema.interfaces import IObject 78 from zope.formlib.interfaces import IInputWidget 79 from zope.publisher.interfaces.browser import IBrowserRequest 80 from waeup.sirp.applicants.applicant import ResultEntry 81 from waeup.sirp.schema.interfaces import IMultiValObject 82 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.