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/university
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py

    r7811 r7819  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """KOFA certificates
     18"""Kofa certificates
    1919"""
    2020import grok
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.txt

    r7811 r7819  
    1 :mod:`waeup.kofa.university.certificate` -- Certificates for KOFA
     1:mod:`waeup.kofa.university.certificate` -- Certificates for Kofa
    22******************************************************************
    33
     
    77
    88.. :doctest:
    9 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     9.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    1111
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificatescontainer.txt

    r7811 r7819  
    77
    88.. :doctest:
    9 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     9.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    1111
  • main/waeup.kofa/trunk/src/waeup/kofa/university/course.txt

    r7811 r7819  
    77
    88.. :doctest:
    9 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     9.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    1111Content Classes (models and containers)
  • main/waeup.kofa/trunk/src/waeup/kofa/university/coursescontainer.txt

    r7811 r7819  
    77
    88.. :doctest:
    9 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     9.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    1111
  • main/waeup.kofa/trunk/src/waeup/kofa/university/department.py

    r7811 r7819  
    2424from waeup.kofa.university.coursescontainer import CoursesContainer
    2525from waeup.kofa.university.certificatescontainer import CertificatesContainer
    26 from waeup.kofa.interfaces import IKOFAUtils
     26from waeup.kofa.interfaces import IKofaUtils
    2727from waeup.kofa.university.interfaces import IDepartment, IDepartmentAdd
    2828
     
    7373
    7474    def longtitle(self):
    75         insttypes_dict = getUtility(IKOFAUtils).getInstTypeDict()
     75        insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
    7676        return "%s %s (%s)" % (
    7777            insttypes_dict[self.title_prefix],
  • main/waeup.kofa/trunk/src/waeup/kofa/university/department.txt

    r7811 r7819  
    77
    88.. :doctest:
    9 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     9.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    1111Content Classes (models and containers)
  • main/waeup.kofa/trunk/src/waeup/kofa/university/facultiescontainer.py

    r7811 r7819  
    1919from zope.component.interfaces import IFactory
    2020from zope.interface import implementedBy
    21 from waeup.kofa.interfaces import IKOFAPluggable
     21from waeup.kofa.interfaces import IKofaPluggable
    2222from waeup.kofa.university.interfaces import IFacultiesContainer, IFaculty
    2323
     
    5252    """A plugin that creates container for faculties inside a university.
    5353    """
    54     grok.implements(IKOFAPluggable)
     54    grok.implements(IKofaPluggable)
    5555    grok.name('faculties')
    5656
    5757    def setup(self, site, name, logger):
    5858        if 'faculties' in site.keys():
    59             logger.warn('Could not create container for faculties in KOFA.')
     59            logger.warn('Could not create container for faculties in Kofa.')
    6060            return
    6161        site['faculties'] = FacultiesContainer()
  • main/waeup.kofa/trunk/src/waeup/kofa/university/facultiescontainer.txt

    r7811 r7819  
    77
    88.. :doctest:
    9 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     9.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    1111
     
    7777.. class:: AcademicsPlugin()
    7878
    79    .. attribute:: grok.implements(IKOFAPluggable)
     79   .. attribute:: grok.implements(IKofaPluggable)
    8080
    8181   This plugin component tells under which name (``faculties``) an
    82    instance of academics stuff should be created in plain KOFA
     82   instance of academics stuff should be created in plain Kofa
    8383   instances. It also tells the factory name for FacultiesContainer
    84    instances, which serve as root object for academics stuff in KOFA apps.
     84   instances, which serve as root object for academics stuff in Kofa apps.
    8585
    8686
  • main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py

    r7811 r7819  
    2323from zope.interface import implementedBy
    2424from zope.component import getUtility
    25 from waeup.kofa.interfaces import IKOFAUtils
     25from waeup.kofa.interfaces import IKofaUtils
    2626from waeup.kofa.university.interfaces import (
    2727    IFaculty, IFacultyAdd, IDepartment)
     
    6161
    6262    def longtitle(self):
    63         insttypes_dict = getUtility(IKOFAUtils).getInstTypeDict()
     63        insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
    6464        result = "%s %s (%s)" % (
    6565            insttypes_dict[self.title_prefix],
  • main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.txt

    r7811 r7819  
    77
    88.. :doctest:
    9 .. :layer: waeup.kofa.testing.KOFAUnitTestLayer
     9.. :layer: waeup.kofa.testing.KofaUnitTestLayer
    1010
    1111
  • main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py

    r7811 r7819  
    2121from zope import schema
    2222from zope.interface import Attribute
    23 from waeup.kofa.interfaces import (IKOFAObject, IKOFAContainer)
     23from waeup.kofa.interfaces import (IKofaObject, IKofaContainer)
    2424from waeup.kofa.interfaces import MessageFactory as _
    2525from waeup.kofa.university.vocabularies import (
     
    3232    )
    3333
    34 class IFaculty(IKOFAContainer):
     34class IFaculty(IKofaContainer):
    3535    """Representation of a university faculty.
    3636    """
     
    7373IFacultyAdd['code'].order =  IFaculty['code'].order
    7474
    75 class IFacultiesContainer(IKOFAContainer):
     75class IFacultiesContainer(IKofaContainer):
    7676    """A container for faculties.
    7777    """
     
    8080
    8181        """
    82 class IDepartment(IKOFAObject):
     82class IDepartment(IKofaObject):
    8383    """Representation of a department.
    8484    """
     
    124124IDepartmentAdd['code'].order =  IDepartment['code'].order
    125125
    126 class ICoursesContainer(IKOFAContainer):
     126class ICoursesContainer(IKofaContainer):
    127127    """A container for faculties.
    128128    """
     
    133133        """
    134134
    135 class ICourse(IKOFAObject):
     135class ICourse(IKofaObject):
    136136    """Representation of a course.
    137137    """
     
    186186ICourseAdd['code'].order =  ICourse['code'].order
    187187
    188 class ICertificate(IKOFAObject):
     188class ICertificate(IKofaObject):
    189189    """Representation of a certificate.
    190190    """
     
    248248ICertificateAdd['code'].order =  ICertificate['code'].order
    249249
    250 class ICertificatesContainer(IKOFAContainer):
     250class ICertificatesContainer(IKofaContainer):
    251251    """A container for certificates.
    252252    """
     
    257257        """
    258258
    259 class ICertificateCourse(IKOFAObject):
     259class ICertificateCourse(IKofaObject):
    260260    """A certificatecourse is referring a course and provides some own
    261261       attributes.
  • main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py

    r7811 r7819  
    2323from zope.interface.verify import verifyObject, verifyClass
    2424from waeup.kofa.interfaces import ICSVExporter
    25 from waeup.kofa.testing import KOFAUnitTestLayer
     25from waeup.kofa.testing import KofaUnitTestLayer
    2626from waeup.kofa.university import (
    2727    FacultiesContainer, Faculty, Department, Course, Certificate,
     
    3434class FacultyExporterTest(unittest.TestCase):
    3535
    36     layer = KOFAUnitTestLayer
     36    layer = KofaUnitTestLayer
    3737
    3838    def setUp(self):
     
    123123    # Tests for DepartmentExporter
    124124
    125     layer = KOFAUnitTestLayer
     125    layer = KofaUnitTestLayer
    126126
    127127    def setUp(self):
     
    214214    # Tests for CourseExporter
    215215
    216     layer = KOFAUnitTestLayer
     216    layer = KofaUnitTestLayer
    217217
    218218    def setUp(self):
     
    307307    # Tests for CertificateExporter
    308308
    309     layer = KOFAUnitTestLayer
     309    layer = KofaUnitTestLayer
    310310
    311311    def setUp(self):
     
    412412    # Tests for CertificateCourseExporter
    413413
    414     layer = KOFAUnitTestLayer
     414    layer = KofaUnitTestLayer
    415415
    416416    def setUp(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_facultiescontainer.py

    r7811 r7819  
    9090        self.assertEqual(
    9191            self._logger_factory.get_messages(),
    92             'Could not create container for faculties in KOFA.\n'
     92            'Could not create container for faculties in Kofa.\n'
    9393            )
    9494
  • main/waeup.kofa/trunk/src/waeup/kofa/university/vocabularies.py

    r7811 r7819  
    2222from zope.catalog.interfaces import ICatalog
    2323from zope.component import getUtility
    24 from waeup.kofa.interfaces import SimpleKOFAVocabulary, IKOFAUtils
     24from waeup.kofa.interfaces import SimpleKofaVocabulary, IKofaUtils
    2525from waeup.kofa.interfaces import MessageFactory as _
    2626
    27 course_levels = SimpleKOFAVocabulary(
     27course_levels = SimpleKofaVocabulary(
    2828    (_('Pre-Studies'),10),
    2929    (_('100 (Year 1)'),100),
     
    4141    """
    4242    def getValues(self, context):
    43         semesters_dict = getUtility(IKOFAUtils).getSemesterDict()
     43        semesters_dict = getUtility(IKofaUtils).getSemesterDict()
    4444        return semesters_dict.keys()
    4545
     
    4848
    4949    def getTitle(self, context, value):
    50         semesters_dict = getUtility(IKOFAUtils).getSemesterDict()
     50        semesters_dict = getUtility(IKofaUtils).getSemesterDict()
    5151        return semesters_dict[value]
    5252
     
    5656    """
    5757    def getValues(self, context):
    58         insttypes_dict = getUtility(IKOFAUtils).getInstTypeDict()
     58        insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
    5959        return sorted(insttypes_dict.keys())
    6060
     
    6363
    6464    def getTitle(self, context, value):
    65         insttypes_dict = getUtility(IKOFAUtils).getInstTypeDict()
     65        insttypes_dict = getUtility(IKofaUtils).getInstTypeDict()
    6666        return insttypes_dict[value]
    6767
     
    7171    """
    7272    def getValues(self, context):
    73         appcats_dict = getUtility(IKOFAUtils).getAppCatDict()
     73        appcats_dict = getUtility(IKofaUtils).getAppCatDict()
    7474        return sorted(appcats_dict.keys())
    7575
     
    7878
    7979    def getTitle(self, context, value):
    80         appcats_dict = getUtility(IKOFAUtils).getAppCatDict()
     80        appcats_dict = getUtility(IKofaUtils).getAppCatDict()
    8181        return appcats_dict[value]
    8282
     
    8686    """
    8787    def getValues(self, context):
    88         studymodes_dict = getUtility(IKOFAUtils).getStudyModesDict()
     88        studymodes_dict = getUtility(IKofaUtils).getStudyModesDict()
    8989        return sorted(studymodes_dict.keys())
    9090
     
    9393
    9494    def getTitle(self, context, value):
    95         studymodes_dict = getUtility(IKOFAUtils).getStudyModesDict()
     95        studymodes_dict = getUtility(IKofaUtils).getStudyModesDict()
    9696        return studymodes_dict[value]
    9797
Note: See TracChangeset for help on using the changeset viewer.