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/browser
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/__init__.py

    r7811 r7819  
    22
    33from waeup.kofa.browser.layout import (
    4     KOFAPage, KOFAForm, KOFALayout, KOFADisplayFormPage, KOFAEditFormPage,
    5     KOFAAddFormPage, NullValidator)
     4    KofaPage, KofaForm, KofaLayout, KofaDisplayFormPage, KofaEditFormPage,
     5    KofaAddFormPage, NullValidator)
    66from waeup.kofa.browser.pages import ContactAdminForm
    77
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/breadcrumbs.py

    r7811 r7819  
    3434    """
    3535    grok.provides(IBreadcrumb)
    36     grok.context(interfaces.IKOFAObject)
     36    grok.context(interfaces.IKofaObject)
    3737    grok.name('index')
    3838
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/browser.txt

    r7811 r7819  
    1 Browsing KOFA
     1Browsing Kofa
    22*************
    33
    4 Here we visit all parts of a KOFA portal using a browser.
     4Here we visit all parts of a Kofa portal using a browser.
    55
    66University
     
    3535  >>> print browser.contents
    3636  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    37   ...Welcome to WAeUP.KOFA...
     37  ...Welcome to WAeUP.Kofa...
    3838  ...
    3939
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/captcha.py

    r7811 r7819  
    2828from zope.interface import Interface
    2929from zope.publisher.interfaces.http import IHTTPRequest
    30 from waeup.kofa.browser import KOFAPage
     30from waeup.kofa.browser import KofaPage
    3131from waeup.kofa.browser.interfaces import (
    3232    ICaptchaRequest, ICaptchaResponse, ICaptcha, ICaptchaConfig,
     
    171171    """ReCaptcha - strong captchas with images, sound, etc.
    172172
    173     This is the KOFA implementation to support captchas as provided by
     173    This is the Kofa implementation to support captchas as provided by
    174174    http://www.google.com/recaptcha.
    175175
     
    266266            headers = {
    267267                "Content-type": "application/x-www-form-urlencoded",
    268                 "User-agent": "reCAPTCHA Python KOFA",
     268                "User-agent": "reCAPTCHA Python Kofa",
    269269                }
    270270            )
     
    319319
    320320
    321 class CaptchaTestPage(KOFAPage):
     321class CaptchaTestPage(KofaPage):
    322322    # A test page to see a captcha in action
    323323    grok.name('captcha')
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/exceptions.py

    r7817 r7819  
    2222from zope.publisher.interfaces import INotFound
    2323from zope.security.interfaces import IUnauthorized
    24 from waeup.kofa.browser.layout import KOFAPage
     24from waeup.kofa.browser.layout import KofaPage
    2525
    2626grok.templatedir('templates')
     
    6161
    6262
    63 class NotFoundPage(KOFAPage):
     63class NotFoundPage(KofaPage):
    6464    """A page rendered when an object cannot be found.
    6565
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py

    r7811 r7819  
    2121from zope.interface import Interface, Attribute
    2222from waeup.kofa.interfaces import (
    23     IKOFAObject, IUniversity, IUsersContainer, IDataCenter)
     23    IKofaObject, IUniversity, IUsersContainer, IDataCenter)
    2424from waeup.kofa.university.interfaces import (
    2525    IFacultiesContainer, IFaculty, IFacultyAdd, IDepartment, IDepartmentAdd,
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r7811 r7819  
    3333from zope.interface import Interface
    3434from zope.site.hooks import getSite
    35 from waeup.kofa.interfaces import IKOFAObject, IUserAccount
     35from waeup.kofa.interfaces import IKofaObject, IUserAccount
    3636from waeup.kofa.browser.interfaces import ITheme
    37 from waeup.kofa.browser.theming import get_all_themes, KOFAThemeBase
     37from waeup.kofa.browser.theming import get_all_themes, KofaThemeBase
    3838from waeup.kofa.students.interfaces import IStudentNavigation
    3939from waeup.kofa.applicants.interfaces import IApplicant
     
    5656
    5757    def __call__(self, success):
    58         action = KOFAAction(self.label, success=success, **self.options)
     58        action = KofaAction(self.label, success=success, **self.options)
    5959        self.actions.append(action)
    6060        return action
    6161
    62 class KOFAAction(Action):
     62class KofaAction(Action):
    6363
    6464    def __init__(self, label, style='', **options):
    65         super(KOFAAction, self).__init__(label, **options)
     65        super(KofaAction, self).__init__(label, **options)
    6666        self.style = style
    6767
     
    150150        return True
    151151
    152 class KOFALayout(UtilityView,Layout):
     152class KofaLayout(UtilityView,Layout):
    153153    """A megrok.layout.Layout with additional methods.
    154154    """
    155155    grok.baseclass()
    156156
    157 class KOFAForm(UtilityView,Form):
     157class KofaForm(UtilityView,Form):
    158158    """A megrok.layout.Form with additional methods.
    159159    """
     
    161161
    162162    def setUpWidgets(self,ignore_request=False):
    163         super(KOFAForm,self).setUpWidgets(ignore_request)
     163        super(KofaForm,self).setUpWidgets(ignore_request)
    164164        # Width parameters will be overridden by Bootstrap
    165165        # so we have to set the css class
     
    171171            self.widgets['body'].cssClass = 'span9'
    172172
    173 class KOFAPage(UtilityView,Page):
     173class KofaPage(UtilityView,Page):
    174174    """A megrok.layout page with additional methods.
    175175    """
    176176    grok.baseclass()
    177177
    178 class KOFADisplayFormPage(UtilityView,DisplayForm):
     178class KofaDisplayFormPage(UtilityView,DisplayForm):
    179179    """A megrok.layout.DisplayForm with additional methods.
    180180    """
     
    182182    template = default_waeup_display_template
    183183
    184 class KOFAEditFormPage(UtilityView,EditForm):
     184class KofaEditFormPage(UtilityView,EditForm):
    185185    """A megrok.layout.EditForm with additional methods.
    186186    """
     
    189189
    190190    def setUpWidgets(self,ignore_request=False):
    191         super(KOFAEditFormPage,self).setUpWidgets(ignore_request)
     191        super(KofaEditFormPage,self).setUpWidgets(ignore_request)
    192192        for widget in self.widgets:
    193193            if widget.__class__.__name__ == 'TextWidget':
     
    207207            self.widgets['perm_address'].height = 10
    208208
    209 class KOFAAddFormPage(UtilityView,AddForm):
     209class KofaAddFormPage(UtilityView,AddForm):
    210210    """A megrok.layout.AddForm with additional methods.
    211211    """
     
    213213    template = default_waeup_edit_template
    214214
    215 class SiteLayout(KOFALayout):
     215class SiteLayout(KofaLayout):
    216216    """ The general site layout.
    217217    """
    218     grok.context(IKOFAObject)
     218    grok.context(IKofaObject)
    219219
    220220    #: An instance of the default theme to use for the site layout
    221     default_theme = KOFAThemeBase()
     221    default_theme = KofaThemeBase()
    222222    stafftemp = grok.PageTemplateFile('templates/staffsitelayout.pt')
    223223    studenttemp = grok.PageTemplateFile('templates/studentsitelayout.pt')
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r7811 r7819  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """ Viewing components for KOFA objects.
     18""" Viewing components for Kofa objects.
    1919"""
    2020import copy
     
    3838from zope.session.interfaces import ISession
    3939from waeup.kofa.browser import (
    40     KOFAPage, KOFAForm, KOFAEditFormPage, KOFAAddFormPage,
    41     KOFADisplayFormPage, NullValidator)
     40    KofaPage, KofaForm, KofaEditFormPage, KofaAddFormPage,
     41    KofaDisplayFormPage, NullValidator)
    4242from waeup.kofa.browser.interfaces import (
    4343    IUniversity, IFacultiesContainer, IFaculty, IFacultyAdd,
     
    4747from waeup.kofa.browser.resources import warning, datepicker, tabs, datatable
    4848from waeup.kofa.interfaces import(
    49     IKOFAObject, IUsersContainer, IUserAccount, IDataCenter,
    50     IKOFAXMLImporter, IKOFAXMLExporter, IBatchProcessor,
     49    IKofaObject, IUsersContainer, IUserAccount, IDataCenter,
     50    IKofaXMLImporter, IKofaXMLExporter, IBatchProcessor,
    5151    ILocalRolesAssignable, DuplicationError, IConfigurationContainer,
    5252    ISessionConfiguration, ISessionConfigurationAdd,
    53     IPasswordValidator, IContactForm, IKOFAUtils)
     53    IPasswordValidator, IContactForm, IKofaUtils)
    5454from waeup.kofa.permissions import get_users_with_local_roles, get_all_roles
    5555from waeup.kofa.students.catalog import search as searchstudents
     
    6262from waeup.kofa.browser.layout import jsaction, action, UtilityView
    6363
    64 grok.context(IKOFAObject)
     64grok.context(IKofaObject)
    6565grok.templatedir('templates')
    6666
     
    144144#
    145145
    146 class LoginPage(KOFAPage):
     146class LoginPage(KofaPage):
    147147    """A login page, available for all objects.
    148148    """
    149149    grok.name('login')
    150     grok.context(IKOFAObject)
     150    grok.context(IKofaObject)
    151151    grok.require('waeup.Public')
    152152    label = _(u'Login')
     
    179179
    180180
    181 class LogoutPage(KOFAPage):
     181class LogoutPage(KofaPage):
    182182    """A logout page. Calling this page will log the current user out.
    183183    """
    184     grok.context(IKOFAObject)
     184    grok.context(IKofaObject)
    185185    grok.require('waeup.Public')
    186186    grok.name('logout')
     
    190190            auth = getUtility(IAuthentication)
    191191            ILogout(auth).logout(self.request)
    192             self.flash(_("You have been logged out. Thanks for using WAeUP KOFA!"))
     192            self.flash(_("You have been logged out. Thanks for using WAeUP Kofa!"))
    193193        self.redirect(self.application_url())
    194194
    195195
    196 class LanguageChangePage(KOFAPage):
     196class LanguageChangePage(KofaPage):
    197197    """ Language switch
    198198    """
    199     grok.context(IKOFAObject)
     199    grok.context(IKofaObject)
    200200    grok.name('change_language')
    201201    grok.require('waeup.Public')
     
    213213#
    214214
    215 class ContactAdminForm(KOFAForm):
     215class ContactAdminForm(KofaForm):
    216216    grok.name('contactadmin')
    217217    #grok.context(IUniversity)
     
    242242        usertype = getattr(self.request.principal,
    243243                           'user_type', 'system').title()
    244         kofa_utils = getUtility(IKOFAUtils)
     244        kofa_utils = getUtility(IKofaUtils)
    245245        success = kofa_utils.sendContactForm(
    246246                fullname,email,
     
    263263    @action(_('Send now'), style='primary')
    264264    def send(self, *args, **data):
    265         kofa_utils = getUtility(IKOFAUtils)
     265        kofa_utils = getUtility(IKofaUtils)
    266266        success = kofa_utils.sendContactForm(
    267267                data['fullname'],data['email_from'],
     
    279279#
    280280
    281 class UniversityPage(KOFADisplayFormPage):
     281class UniversityPage(KofaDisplayFormPage):
    282282    """ The main university page.
    283283    """
     
    290290    @property
    291291    def frontpage(self):
    292         portal_language = getUtility(IKOFAUtils).PORTAL_LANGUAGE
     292        portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    293293        lang = self.request.cookies.get('kofa.language', portal_language)
    294294        html = self.context['configuration'].frontpage_dict.get(lang,'')
     
    297297                'configuration'].frontpage_dict.get(portal_language,'')
    298298        if html =='':
    299             return _(u'<h1>Welcome to WAeUP.KOFA</h1>')
     299            return _(u'<h1>Welcome to WAeUP.Kofa</h1>')
    300300        else:
    301301            return html
    302302
    303 class AdministrationPage(KOFAPage):
     303class AdministrationPage(KofaPage):
    304304    """ The administration overview page.
    305305    """
     
    378378#
    379379
    380 class UsersContainerPage(KOFAPage):
     380class UsersContainerPage(KofaPage):
    381381    """Overview page for all local users.
    382382    """
     
    418418        return site_roles_string
    419419
    420 class AddUserFormPage(KOFAAddFormPage):
     420class AddUserFormPage(KofaAddFormPage):
    421421    grok.require('waeup.manageUsers')
    422422    grok.context(IUsersContainer)
     
    456456        self.redirect(self.url(self.context))
    457457
    458 class UserManageFormPage(KOFAEditFormPage):
     458class UserManageFormPage(KofaEditFormPage):
    459459    """Manage a user account.
    460460    """
     
    525525        usertype = getattr(self.request.principal,
    526526                           'user_type', 'system').title()
    527         kofa_utils = getUtility(IKOFAUtils)
     527        kofa_utils = getUtility(IKofaUtils)
    528528        success = kofa_utils.sendContactForm(
    529529                self.request.principal.title,email,
     
    550550        self.widgets['title'].displayWidth = 30
    551551
    552 class MyRolesPage(KOFAPage):
     552class MyRolesPage(KofaPage):
    553553    """Display site roles and local roles assigned to officers.
    554554    """
     
    581581#
    582582
    583 class SearchPage(KOFAPage):
     583class SearchPage(KofaPage):
    584584    """General search page for the academics section.
    585585    """
     
    608608#
    609609
    610 class ConfigurationContainerDisplayFormPage(KOFADisplayFormPage):
     610class ConfigurationContainerDisplayFormPage(KofaDisplayFormPage):
    611611    """View page of the configuration container.
    612612    """
     
    619619    form_fields['frontpage'].custom_widget = ReSTDisplayWidget
    620620
    621 class ConfigurationContainerManageFormPage(KOFAEditFormPage):
     621class ConfigurationContainerManageFormPage(KofaEditFormPage):
    622622    """Manage page of the configuration container. We always use the
    623623    manage page in the UI not the view page, thus we use the index name here.
     
    684684        return
    685685
    686 class SessionConfigurationAddFormPage(KOFAAddFormPage):
     686class SessionConfigurationAddFormPage(KofaAddFormPage):
    687687    """Add a session configuration object to configuration container.
    688688    """
     
    711711        return
    712712
    713 class SessionConfigurationManageFormPage(KOFAEditFormPage):
     713class SessionConfigurationManageFormPage(KofaEditFormPage):
    714714    """Manage session configuration object.
    715715    """
     
    742742#
    743743
    744 class DatacenterPage(KOFAPage):
     744class DatacenterPage(KofaPage):
    745745    grok.context(IDataCenter)
    746746    grok.name('index')
     
    749749    pnav = 0
    750750
    751 class DatacenterUploadPage(KOFAPage):
     751class DatacenterUploadPage(KofaPage):
    752752    grok.context(IDataCenter)
    753753    grok.name('upload')
     
    794794        return '%s_%s%s' % (base, filtered_username, ext.lower())
    795795
    796 class DatacenterImportStep1(KOFAPage):
     796class DatacenterImportStep1(KofaPage):
    797797    """Manual import step 1: choose file
    798798    """
     
    824824            self.redirect(self.url(self.context, '@@import2'))
    825825
    826 class DatacenterImportStep2(KOFAPage):
     826class DatacenterImportStep2(KofaPage):
    827827    """Manual import step 2: choose importer
    828828    """
     
    944944            self.flash(warnings)
    945945
    946 class DatacenterImportStep3(KOFAPage):
     946class DatacenterImportStep3(KofaPage):
    947947    """Manual import step 3: modify header
    948948    """
     
    10521052            self.flash(warnings)
    10531053
    1054 class DatacenterImportStep4(KOFAPage):
     1054class DatacenterImportStep4(KofaPage):
    10551055    """Manual import step 4: do actual import
    10561056    """
     
    11111111            mapping = {'a':linenum - self.warn_num}))
    11121112
    1113 class DatacenterLogsOverview(KOFAPage):
     1113class DatacenterLogsOverview(KofaPage):
    11141114    grok.context(IDataCenter)
    11151115    grok.name('logs')
     
    11331133        self.files = self.context.getLogFiles()
    11341134
    1135 class DatacenterLogsFileview(KOFAPage):
     1135class DatacenterLogsFileview(KofaPage):
    11361136    grok.context(IDataCenter)
    11371137    grok.name('show')
     
    11721172        popen.close()
    11731173
    1174 class DatacenterSettings(KOFAPage):
     1174class DatacenterSettings(KofaPage):
    11751175    grok.context(IDataCenter)
    11761176    grok.name('manage')
     
    12151215
    12161216    def render(self):
    1217         exporter = IKOFAXMLExporter(self.context)
     1217        exporter = IKofaXMLExporter(self.context)
    12181218        xml = exporter.export().read()
    12191219        self.response.setHeader(
     
    12211221        return xml
    12221222
    1223 class ImportXMLPage(KOFAPage):
     1223class ImportXMLPage(KofaPage):
    12241224    """Replace the context object by an object created from an XML
    12251225       representation.
     
    12371237        if not xmlfile:
    12381238            return
    1239         importer = IKOFAXMLImporter(self.context)
     1239        importer = IKofaXMLImporter(self.context)
    12401240        obj = importer.doImport(xmlfile)
    12411241        if type(obj) != type(self.context):
     
    12571257#
    12581258
    1259 class FacultiesContainerPage(KOFAPage):
     1259class FacultiesContainerPage(KofaPage):
    12601260    """ Index page for faculty containers.
    12611261    """
     
    12671267    grok.template('facultypage')
    12681268
    1269 class FacultiesContainerManageFormPage(KOFAEditFormPage):
     1269class FacultiesContainerManageFormPage(KofaEditFormPage):
    12701270    """Manage the basic properties of a `Faculty` instance.
    12711271    """
     
    13021302
    13031303
    1304 class FacultyAddFormPage(KOFAAddFormPage):
     1304class FacultyAddFormPage(KofaAddFormPage):
    13051305    """ Page form to add a new faculty to a faculty container.
    13061306    """
     
    13301330# Faculty pages
    13311331#
    1332 class FacultyPage(KOFAPage):
     1332class FacultyPage(KofaPage):
    13331333    """Index page of faculties.
    13341334    """
     
    13421342        return _('Departments')
    13431343
    1344 class FacultyManageFormPage(KOFAEditFormPage):
     1344class FacultyManageFormPage(KofaEditFormPage):
    13451345    """Manage the basic properties of a `Faculty` instance.
    13461346    """
     
    14161416        return del_local_roles(self,3,**data)
    14171417
    1418 class DepartmentAddFormPage(KOFAAddFormPage):
     1418class DepartmentAddFormPage(KofaAddFormPage):
    14191419    """Add a department to a faculty.
    14201420    """
     
    14461446# Department pages
    14471447#
    1448 class DepartmentPage(KOFAPage):
     1448class DepartmentPage(KofaPage):
    14491449    """Department index page.
    14501450    """
     
    14751475            yield(dict(url=url, name=key, container=val))
    14761476
    1477 class ShowStudentsInDepartmentPage(KOFAPage):
     1477class ShowStudentsInDepartmentPage(KofaPage):
    14781478    """Page that lists all students in the department.
    14791479    """
     
    15101510        return hitlist
    15111511
    1512 class DepartmentManageFormPage(KOFAEditFormPage):
     1512class DepartmentManageFormPage(KofaEditFormPage):
    15131513    """Manage the basic properties of a `Department` instance.
    15141514    """
     
    16121612        return del_local_roles(self,4,**data)
    16131613
    1614 class CourseAddFormPage(KOFAAddFormPage):
     1614class CourseAddFormPage(KofaAddFormPage):
    16151615    """Add-form to add course to a department.
    16161616    """
     
    16491649        return
    16501650
    1651 class CertificateAddFormPage(KOFAAddFormPage):
     1651class CertificateAddFormPage(KofaAddFormPage):
    16521652    """Add-form to add certificate to a department.
    16531653    """
     
    16901690# Courses pages
    16911691#
    1692 class CoursePage(KOFADisplayFormPage):
     1692class CoursePage(KofaDisplayFormPage):
    16931693    """Course index page.
    16941694    """
     
    17031703        return '%s (%s)' % (self.context.title, self.context.code)
    17041704
    1705 class CourseManageFormPage(KOFAEditFormPage):
     1705class CourseManageFormPage(KofaEditFormPage):
    17061706    """Edit form page for courses.
    17071707    """
     
    17341734# Certificate pages
    17351735#
    1736 class CertificatePage(KOFADisplayFormPage):
     1736class CertificatePage(KofaDisplayFormPage):
    17371737    """Index page for certificates.
    17381738    """
     
    17521752        return super(CertificatePage, self).update()
    17531753
    1754 class CertificateManageFormPage(KOFAEditFormPage):
     1754class CertificateManageFormPage(KofaEditFormPage):
    17551755    """Manage the properties of a `Certificate` instance.
    17561756    """
     
    18301830
    18311831
    1832 class CertificateCourseAddFormPage(KOFAAddFormPage):
     1832class CertificateCourseAddFormPage(KofaAddFormPage):
    18331833    """Add-page to add a course ref to a certificate
    18341834    """
     
    18621862# Certificate course pages...
    18631863#
    1864 class CertificateCoursePage(KOFAPage):
     1864class CertificateCoursePage(KofaPage):
    18651865    """CertificateCourse index page.
    18661866    """
     
    18791879        return course_levels.getTerm(self.context.level).title
    18801880
    1881 class CertificateCourseManageFormPage(KOFAEditFormPage):
     1881class CertificateCourseManageFormPage(KofaEditFormPage):
    18821882    """Manage the basic properties of a `CertificateCourse` instance.
    18831883    """
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/resources.py

    r7811 r7819  
    262262    depends=[jquery])
    263263
    264 #: Register basic KOFA CSS (which is based on ``bootstrap.min-1.4.0.css``
     264#: Register basic Kofa CSS (which is based on ``bootstrap.min-1.4.0.css``
    265265#: and ``base`` as a resource.
    266266waeup_base_css = ResourceInclusion(
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/theming.py

    r7811 r7819  
    2323from zope.interface import Interface
    2424from zope.schema.interfaces import IVocabularyFactory
    25 from waeup.kofa.interfaces import SimpleKOFAVocabulary
     25from waeup.kofa.interfaces import SimpleKofaVocabulary
    2626from waeup.kofa.browser.interfaces import ITheme
    2727from waeup.kofa.browser.resources import (
     
    2929    )
    3030
    31 class KOFAThemeBase(grok.GlobalUtility):
     31class KofaThemeBase(grok.GlobalUtility):
    3232    grok.implements(ITheme)
    3333    grok.name('base waeup theme')
     
    3838        return [waeup_base_css]
    3939
    40 #class KOFAThemeRed1(grok.GlobalUtility):
     40#class KofaThemeRed1(grok.GlobalUtility):
    4141#    grok.implements(ITheme)
    4242#    grok.name('red waeup theme')
     
    4747#        return [waeuptheme_red1]
    4848
    49 #class KOFAThemeGray1(grok.GlobalUtility):
     49#class KofaThemeGray1(grok.GlobalUtility):
    5050#    grok.implements(ITheme)
    5151#    grok.name('gray waeup theme')
     
    5656#        return [waeuptheme_gray1]
    5757
    58 class KOFAThemeEmpty(grok.GlobalUtility):
     58class KofaThemeEmpty(grok.GlobalUtility):
    5959    """A theme based on jQuery only.
    6060
     
    112112        terms = [(theme.description, name)
    113113                 for name, theme in get_all_themes()]
    114         vocab = SimpleKOFAVocabulary(*terms)
     114        vocab = SimpleKofaVocabulary(*terms)
    115115        return vocab
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py

    r7817 r7819  
    3131    ICertificateCourse, IBreadcrumbContainer, IUniversity, IUsersContainer)
    3232from waeup.kofa.interfaces import (
    33     IKOFAUtils, IKOFAObject, IKOFAXMLExporter,
    34     IKOFAXMLImporter, IDataCenter, IUserAccount)
    35 from waeup.kofa.browser.layout import KOFAPage, default_primary_nav_template
     33    IKofaUtils, IKofaObject, IKofaXMLExporter,
     34    IKofaXMLImporter, IDataCenter, IUserAccount)
     35from waeup.kofa.browser.layout import KofaPage, default_primary_nav_template
    3636from waeup.kofa.utils.helpers import get_user_account
    3737
     
    3939
    4040grok.templatedir('templates')
    41 grok.context(IKOFAObject) # Make IKOFAObject the default context
     41grok.context(IKofaObject) # Make IKofaObject the default context
    4242
    4343class LeftSidebar(grok.ViewletManager):
     
    8585    """
    8686    grok.baseclass()
    87     grok.context(IKOFAObject)
     87    grok.context(IKofaObject)
    8888    grok.viewletmanager(ActionBar)
    8989    icon = 'actionicon_modify.png' # File must exist in static/
     
    196196
    197197class BreadCrumbs(grok.Viewlet):
    198     grok.context(IKOFAObject)
     198    grok.context(IKofaObject)
    199199    grok.viewletmanager(BreadCrumbManager)
    200200    grok.order(1)
     
    216216    """
    217217    grok.viewletmanager(LanguageManager)
    218     grok.context(IKOFAObject)
     218    grok.context(IKofaObject)
    219219    grok.require('waeup.Public')
    220220    title = u'Languages'
    221221
    222222    def render(self):
    223         preferred_languages = getUtility(IKOFAUtils).PREFERRED_LANGUAGES_DICT
     223        preferred_languages = getUtility(IKofaUtils).PREFERRED_LANGUAGES_DICT
    224224        html = u''
    225225        for key, value in sorted(
     
    257257    grok.baseclass()
    258258    grok.viewletmanager(LeftSidebar)
    259     grok.context(IKOFAObject)
     259    grok.context(IKofaObject)
    260260    grok.order(5)
    261261    grok.require('waeup.manageUniversity')
     
    316316    """
    317317    grok.viewletmanager(LeftSidebar)
    318     grok.context(IKOFAObject)
     318    grok.context(IKofaObject)
    319319    grok.view(Interface)
    320320    grok.order(2)
     
    350350    """
    351351    grok.viewletmanager(LeftSidebar)
    352     grok.context(IKOFAObject)
     352    grok.context(IKofaObject)
    353353    grok.view(Interface)
    354354    grok.order(5)
     
    520520class BrowseActionButton(ActionButton):
    521521    grok.baseclass()
    522     grok.context(IKOFAObject)
     522    grok.context(IKofaObject)
    523523    grok.template('actionbutton')
    524524    grok.viewletmanager(ActionBar)
     
    686686    target_viewname = 'datacenter'
    687687
    688 # The SubobjectLister and its viewlets below are not used in KOFA.
     688# The SubobjectLister and its viewlets below are not used in Kofa.
    689689
    690690class SubobjectLister(grok.ViewletManager):
Note: See TracChangeset for help on using the changeset viewer.