Changeset 7811 for main/waeup.kofa/trunk/src/waeup/kofa/widgets
- Timestamp:
- 8 Mar 2012, 19:00:51 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/widgets
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/widgets/objectwidget.py
r7795 r7811 25 25 from zope.schema import getFieldNamesInOrder 26 26 27 class SIRPObjectWidgetView(ObjectWidgetView):27 class KOFAObjectWidgetView(ObjectWidgetView): 28 28 template = ViewPageTemplateFile('objectwidget.pt') 29 29 30 class SIRPObjectWidget(ObjectWidget):30 class KOFAObjectWidget(ObjectWidget): 31 31 32 32 def __init__(self, context, request, factory, **kw): … … 58 58 59 59 def _getView(self, request): 60 return SIRPObjectWidgetView(self, request)60 return KOFAObjectWidgetView(self, request) 61 61 62 62 63 class SIRPObjectDisplayWidget(SIRPObjectWidget):63 class KOFAObjectDisplayWidget(KOFAObjectWidget): 64 64 65 65 implementsOnly(IDisplayWidget) -
main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py
r7670 r7811 31 31 import re 32 32 import copy 33 from waeup. sirp.interfaces import MessageFactory as _33 from waeup.kofa.interfaces import MessageFactory as _ 34 34 from zope import schema 35 35 from zope.browserpage import ViewPageTemplateFile -
main/waeup.kofa/trunk/src/waeup/kofa/widgets/restwidget.py
r7705 r7811 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """A widget that renders restructured text. 18 """A widget that renders restructured text. 19 19 """ 20 20 from zope.component import getUtility 21 21 from zope.formlib.widget import renderElement, DisplayWidget 22 from waeup. sirp.utils.helpers import ReST2HTML23 from waeup. sirp.interfaces import ISIRPUtils22 from waeup.kofa.utils.helpers import ReST2HTML 23 from waeup.kofa.interfaces import IKOFAUtils 24 24 25 25 … … 36 36 language separator - usually the first part has no language 37 37 descriptor - are interpreted as texts in the portal's language. 38 The latter can be configured in waeup.srp.utils.utils. SIRPUtils.38 The latter can be configured in waeup.srp.utils.utils.KOFAUtils. 39 39 """ 40 40 if self._renderedValueSet(): … … 46 46 parts = value.split('>>') 47 47 elements = {} 48 lang = getUtility(I SIRPUtils).PORTAL_LANGUAGE48 lang = getUtility(IKOFAUtils).PORTAL_LANGUAGE 49 49 for part in parts: 50 50 if part[2:4] == u'<<': -
main/waeup.kofa/trunk/src/waeup/kofa/widgets/sequencewidget.pt
r7798 r7811 1 1 <table border="0" class="sequencewidget" 2 i18n:domain="waeup. sirp">2 i18n:domain="waeup.kofa"> 3 3 <tr tal:repeat="widget view/widgets"> 4 4 <td> -
main/waeup.kofa/trunk/src/waeup/kofa/widgets/sequencewidget.py
r7802 r7811 29 29 from zope.schema.interfaces import IField, IList 30 30 31 class SIRPSequenceWidget(ListSequenceWidget):31 class KOFASequenceWidget(ListSequenceWidget): 32 32 """A sequence widget for lists. 33 33 … … 51 51 @grok.implementer(IInputWidget) 52 52 def seq_input_widget(obj, field, req, *args, **kw): 53 return SIRPSequenceWidget(obj, field, req, *args, **kw)53 return KOFASequenceWidget(obj, field, req, *args, **kw) 54 54 55 55 @grok.adapter(IList, IField, IBrowserRequest) -
main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_datewidget.py
r7501 r7811 27 27 SimpleInputWidgetTest, BrowserWidgetTest, ) 28 28 from zope.formlib.interfaces import IInputWidget, IDisplayWidget 29 from waeup. sirp.widgets.datewidget import (29 from waeup.kofa.widgets.datewidget import ( 30 30 FormattedDateWidget, FormattedDateDisplayWidget, ) 31 31 from zope.formlib.widgets import DateI18nWidget -
main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_objectwidget.py
r7803 r7811 37 37 from zope.formlib.interfaces import IWidgetInputErrorView 38 38 39 from waeup. sirp.widgets.objectwidget import SIRPObjectWidget as ObjectWidget40 from waeup. sirp.widgets.objectwidget import (41 SIRPObjectDisplayWidget as ObjectDisplayWidget)39 from waeup.kofa.widgets.objectwidget import KOFAObjectWidget as ObjectWidget 40 from waeup.kofa.widgets.objectwidget import ( 41 KOFAObjectDisplayWidget as ObjectDisplayWidget) 42 42 43 43 class ITestContact(Interface): -
main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_phonewidget.py
r7494 r7811 36 36 from zope.publisher.interfaces.browser import IDefaultBrowserLayer 37 37 from zope.schema.interfaces import ITextLine 38 from waeup. sirp.widgets.phonewidget import PhoneWidget38 from waeup.kofa.widgets.phonewidget import PhoneWidget 39 39 40 40 # Dummy content
Note: See TracChangeset for help on using the changeset viewer.