Ignore:
Timestamp:
25 Dec 2014, 08:27:45 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename and dedicate the new display widget to product options only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/widgets/objectwidget.py

    r12314 r12316  
    2828    template = ViewPageTemplateFile('objectwidget.pt')
    2929
    30 class IkobaObjectWidgetDisplayView(ObjectWidgetView):
    31     template = ViewPageTemplateFile('objectdisplaywidget.pt')
     30class IProductOptionWidgetDisplayView(ObjectWidgetView):
     31    template = ViewPageTemplateFile('productoptiondisplaywidget.pt')
    3232
    3333class IkobaObjectWidget(ObjectWidget):
     
    8282
    8383    def _getView(self, request):
    84         return IkobaObjectWidgetDisplayView(self, request)
     84        if self.context.schema.__name__ == 'IProductOptionEntry':
     85            return IProductOptionWidgetDisplayView(self, request)
     86        return IkobaObjectWidgetView(self, request)
Note: See TracChangeset for help on using the changeset viewer.