Ignore:
Timestamp:
8 Mar 2012, 22:28:46 (13 years ago)
Author:
Henrik Bettermann
Message:

KOFA -> Kofa

Location:
main/waeup.kofa/trunk/src/waeup/kofa/utils
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py

    r7811 r7819  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """KOFA components for batch processing.
     18"""Kofa components for batch processing.
    1919
    2020Batch processors eat CSV files to add, update or remove large numbers
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/converters.txt

    r7811 r7819  
    1010
    1111.. :NOdoctest:
    12 .. :NOlayer: waeup.kofa.testing.KOFAUnitTestLayer
     12.. :NOlayer: waeup.kofa.testing.KofaUnitTestLayer
    1313
    1414
     
    672672    '1'
    673673
    674     >>> from waeup.kofa.interfaces import SimpleKOFAVocabulary
     674    >>> from waeup.kofa.interfaces import SimpleKofaVocabulary
    675675    >>> field = Choice(
    676676    ...   title = u'Favourite Dish',
    677677    ...   default = 0,
    678     ...   vocabulary = SimpleKOFAVocabulary(
     678    ...   vocabulary = SimpleKofaVocabulary(
    679679    ...        ('N/A', 0), ('Pizza', 1),
    680680    ...        ('Cake', 2), ('Muffins', 3)),
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/helpers.py

    r7811 r7819  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """General helper functions for KOFA.
     18"""General helper functions for Kofa.
    1919"""
    2020import os
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/helpers.txt

    r7811 r7819  
    1 :mod:`waeup.kofa.utils.helpers` -- Helpers for KOFA
     1:mod:`waeup.kofa.utils.helpers` -- Helpers for Kofa
    22***************************************************
    33
    44.. module:: waeup.kofa.utils.helpers
    55
    6 Helper functions for KOFA.
     6Helper functions for Kofa.
    77
    88.. :doctest:
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/importexport.py

    r7811 r7819  
    2222from cStringIO import StringIO
    2323from zope.interface import Interface
    24 from waeup.kofa.interfaces import (IKOFAObject, IKOFAExporter,
    25                                    IKOFAXMLExporter, IKOFAXMLImporter)
     24from waeup.kofa.interfaces import (IKofaObject, IKofaExporter,
     25                                   IKofaXMLExporter, IKofaXMLImporter)
    2626
    2727def readFile(f):
     
    4040
    4141class Exporter(grok.Adapter):
    42     """Export a KOFA object as pickle.
     42    """Export a Kofa object as pickle.
    4343
    4444    This all-purpose exporter exports attributes defined in schemata
    4545    and contained objects (if the exported thing is a container).
    4646    """
    47     grok.context(IKOFAObject)
    48     grok.provides(IKOFAExporter)
     47    grok.context(IKofaObject)
     48    grok.provides(IKofaExporter)
    4949
    5050    def __init__(self, context):
     
    6161
    6262class XMLExporter(grok.Adapter):
    63     """Export a KOFA object as XML.
     63    """Export a Kofa object as XML.
    6464
    6565    This all-purpose exporter exports XML representations of pickable
     
    6767    """
    6868    grok.context(Interface)
    69     grok.provides(IKOFAXMLExporter)
     69    grok.provides(IKofaXMLExporter)
    7070
    7171    def __init__(self, context):
     
    8484
    8585class XMLImporter(grok.Adapter):
    86     """Import a KOFA object from XML.
     86    """Import a Kofa object from XML.
    8787    """
    8888    grok.context(Interface)
    89     grok.provides(IKOFAXMLImporter)
     89    grok.provides(IKofaXMLImporter)
    9090
    9191    def __init__(self, context):
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/importexport.txt

    r7811 r7819  
    66
    77.. :doctest:
    8 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     8.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    99
    1010As imports and exports of data are a cruical point when doing updates
     
    6060an exporter::
    6161
    62     >>> from waeup.kofa.interfaces import IKOFAXMLExporter
    63     >>> exporter = IKOFAXMLExporter(mycave)
     62    >>> from waeup.kofa.interfaces import IKofaXMLExporter
     63    >>> exporter = IKofaXMLExporter(mycave)
    6464    >>> exporter
    6565    <waeup.kofa.utils.importexport.XMLExporter object at 0x...>
     
    101101Now we create an importer for that object:
    102102
    103     >>> from waeup.kofa.interfaces import IKOFAXMLImporter
    104     >>> importer = IKOFAXMLImporter(mycave)
     103    >>> from waeup.kofa.interfaces import IKofaXMLImporter
     104    >>> importer = IKofaXMLImporter(mycave)
    105105
    106106Importing from filenames
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_converters.py

    r7811 r7819  
    3636from waeup.kofa.utils.converters import IObjectConverter
    3737from waeup.kofa.utils.helpers import attrs_to_fields
    38 from waeup.kofa.interfaces import SimpleKOFAVocabulary
    39 
    40 colors = SimpleKOFAVocabulary(
     38from waeup.kofa.interfaces import SimpleKofaVocabulary
     39
     40colors = SimpleKofaVocabulary(
    4141    ('Red', u'red'),
    4242    ('Green', u'green'),
    4343    ('Blue', u'blue'),
    4444    )
    45 car_nums = SimpleKOFAVocabulary(
     45car_nums = SimpleKofaVocabulary(
    4646    ('None', 0),
    4747    ('One', 1),
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py

    r7811 r7819  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """General helper utilities for KOFA.
     18"""General helper utilities for Kofa.
    1919"""
    2020import os
     
    2323from zope.i18n import translate
    2424from random import SystemRandom as r
    25 from waeup.kofa.interfaces import IKOFAUtils
     25from waeup.kofa.interfaces import IKofaUtils
    2626from waeup.kofa.interfaces import MessageFactory as _
    2727from waeup.kofa.smtp import send_mail as send_mail_internally
     
    3737    return True
    3838
    39 class KOFAUtils(grok.GlobalUtility):
     39class KofaUtils(grok.GlobalUtility):
    4040    """A collection of parameters and methods subject to customization.
    4141    """
    42     grok.implements(IKOFAUtils)
     42    grok.implements(IKofaUtils)
    4343    # This the only place where we define the portal language
    4444    # which is used for the translation of system messages
     
    161161        Returns True or False to indicate successful operation.
    162162        """
    163         subject = 'Your KOFA credentials'
     163        subject = 'Your Kofa credentials'
    164164        text = _(u"""Dear ${a},
    165165
Note: See TracChangeset for help on using the changeset viewer.