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

KOFA -> Kofa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/app.txt

    r7811 r7819  
    1 :mod:`waeup.kofa.app` -- central components for KOFA
     1:mod:`waeup.kofa.app` -- central components for Kofa
    22****************************************************
    33
    44.. :doctest:
    5 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     5.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    66
    77.. module:: waeup.kofa.app
     
    99.. class:: University
    1010
    11   The main KOFA application object is given with
     11  The main Kofa application object is given with
    1212  :class:`University`. It provides the main containers as faculties,
    1313  hostels, etc.
     
    7676first::
    7777
    78   >>> from waeup.kofa.interfaces import IKOFAExporter
    79   >>> exporter = IKOFAExporter(myuniversity)
     78  >>> from waeup.kofa.interfaces import IKofaExporter
     79  >>> exporter = IKofaExporter(myuniversity)
    8080  >>> exporter
    8181  <waeup.kofa.utils.importexport.Exporter object at 0x...>
     
    9090memory file::
    9191
    92   >>> from waeup.kofa.interfaces import IKOFAXMLExporter
    93   >>> exporter = IKOFAXMLExporter(myuniversity)
     92  >>> from waeup.kofa.interfaces import IKofaXMLExporter
     93  >>> exporter = IKofaXMLExporter(myuniversity)
    9494  >>> f = exporter.export()
    9595  >>> f
     
    103103  </pickle>
    104104
    105 KOFA plugins
     105Kofa plugins
    106106============
    107107
    108108waeup.kofa provides an API to 'plugin' components. Things that should
    109 be setup at creation time of a KOFA application can indicate
    110 that by providing a utility providing IKOFAPlugin.
     109be setup at creation time of a Kofa application can indicate
     110that by providing a utility providing IKofaPlugin.
    111111
    112112The plugins are looked up by an created app, which then will call the
    113113``setup()`` method of each plugin.
    114114
    115    >>> from waeup.kofa.interfaces import IKOFAPluggable
     115   >>> from waeup.kofa.interfaces import IKofaPluggable
    116116   >>> from zope.component import getAdapters, getUtilitiesFor
    117    >>> sorted(list(getUtilitiesFor(IKOFAPluggable)))
     117   >>> sorted(list(getUtilitiesFor(IKofaPluggable)))
    118118   [(u'accesscodes', <waeup.kofa.accesscodes...AccessCodePlugin ...)]
    119119
     
    122122
    123123   >>> import grok
    124    >>> from waeup.kofa.interfaces import IKOFAPluggable
     124   >>> from waeup.kofa.interfaces import IKofaPluggable
    125125   >>> class MyPlugin(grok.GlobalUtility):
    126    ...   grok.implements(IKOFAPluggable)
     126   ...   grok.implements(IKofaPluggable)
    127127   ...   def setup(self, site, name, logger):
    128128   ...     print "Setup was called for"
     
    136136   True
    137137
    138 and setup a new KOFA instance, we will get a message:
     138and setup a new Kofa instance, we will get a message:
    139139
    140140   >>> from waeup.kofa.app import University
Note: See TracChangeset for help on using the changeset viewer.