Ignore:
Timestamp:
8 Mar 2012, 19:00:51 (13 years ago)
Author:
uli
Message:

Rename all non-locales stuff from sirp to kofa.

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  
    2525from zope.schema import getFieldNamesInOrder
    2626
    27 class SIRPObjectWidgetView(ObjectWidgetView):
     27class KOFAObjectWidgetView(ObjectWidgetView):
    2828    template = ViewPageTemplateFile('objectwidget.pt')
    2929
    30 class SIRPObjectWidget(ObjectWidget):
     30class KOFAObjectWidget(ObjectWidget):
    3131
    3232    def __init__(self, context, request, factory, **kw):
     
    5858
    5959    def _getView(self, request):
    60         return SIRPObjectWidgetView(self, request)
     60        return KOFAObjectWidgetView(self, request)
    6161
    6262
    63 class SIRPObjectDisplayWidget(SIRPObjectWidget):
     63class KOFAObjectDisplayWidget(KOFAObjectWidget):
    6464
    6565    implementsOnly(IDisplayWidget)
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/phonewidget.py

    r7670 r7811  
    3131import re
    3232import copy
    33 from waeup.sirp.interfaces import MessageFactory as _
     33from waeup.kofa.interfaces import MessageFactory as _
    3434from zope import schema
    3535from zope.browserpage import ViewPageTemplateFile
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/restwidget.py

    r7705 r7811  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """A widget that renders restructured text. 
     18"""A widget that renders restructured text.
    1919"""
    2020from zope.component import getUtility
    2121from zope.formlib.widget import renderElement, DisplayWidget
    22 from waeup.sirp.utils.helpers import ReST2HTML
    23 from waeup.sirp.interfaces import ISIRPUtils
     22from waeup.kofa.utils.helpers import ReST2HTML
     23from waeup.kofa.interfaces import IKOFAUtils
    2424
    2525
     
    3636        language separator - usually the first part has no language
    3737        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.
    3939        """
    4040        if self._renderedValueSet():
     
    4646        parts = value.split('>>')
    4747        elements = {}
    48         lang = getUtility(ISIRPUtils).PORTAL_LANGUAGE
     48        lang = getUtility(IKOFAUtils).PORTAL_LANGUAGE
    4949        for part in parts:
    5050            if part[2:4] == u'<<':
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/sequencewidget.pt

    r7798 r7811  
    11<table border="0" class="sequencewidget"
    2   i18n:domain="waeup.sirp">
     2  i18n:domain="waeup.kofa">
    33  <tr tal:repeat="widget view/widgets">
    44    <td>
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/sequencewidget.py

    r7802 r7811  
    2929from zope.schema.interfaces import IField, IList
    3030
    31 class SIRPSequenceWidget(ListSequenceWidget):
     31class KOFASequenceWidget(ListSequenceWidget):
    3232    """A sequence widget for lists.
    3333
     
    5151@grok.implementer(IInputWidget)
    5252def seq_input_widget(obj, field, req, *args, **kw):
    53     return SIRPSequenceWidget(obj, field, req, *args, **kw)
     53    return KOFASequenceWidget(obj, field, req, *args, **kw)
    5454
    5555@grok.adapter(IList, IField, IBrowserRequest)
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_datewidget.py

    r7501 r7811  
    2727    SimpleInputWidgetTest, BrowserWidgetTest, )
    2828from zope.formlib.interfaces import IInputWidget, IDisplayWidget
    29 from waeup.sirp.widgets.datewidget import (
     29from waeup.kofa.widgets.datewidget import (
    3030    FormattedDateWidget, FormattedDateDisplayWidget, )
    3131from zope.formlib.widgets import DateI18nWidget
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_objectwidget.py

    r7803 r7811  
    3737from zope.formlib.interfaces import IWidgetInputErrorView
    3838
    39 from waeup.sirp.widgets.objectwidget import SIRPObjectWidget as ObjectWidget
    40 from waeup.sirp.widgets.objectwidget import (
    41     SIRPObjectDisplayWidget as ObjectDisplayWidget)
     39from waeup.kofa.widgets.objectwidget import KOFAObjectWidget as ObjectWidget
     40from waeup.kofa.widgets.objectwidget import (
     41    KOFAObjectDisplayWidget as ObjectDisplayWidget)
    4242
    4343class ITestContact(Interface):
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_phonewidget.py

    r7494 r7811  
    3636from zope.publisher.interfaces.browser import IDefaultBrowserLayer
    3737from zope.schema.interfaces import ITextLine
    38 from waeup.sirp.widgets.phonewidget import PhoneWidget
     38from waeup.kofa.widgets.phonewidget import PhoneWidget
    3939
    4040# Dummy content
Note: See TracChangeset for help on using the changeset viewer.