Ignore:
Timestamp:
7 Mar 2012, 23:11:45 (13 years ago)
Author:
uli
Message:

Remove widget registrations. Result entry registrations are now done
in schoolgrades.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-schoolgrades/src/waeup/sirp/widgets/objectwidget.py

    r7778 r7786  
    7373    def _setUpWidgets(self):
    7474        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.schoolgrades 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.