Ignore:
Timestamp:
13 Nov 2014, 14:40:27 (10 years ago)
Author:
Henrik Bettermann
Message:

Change of name.

Location:
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
Files:
42 edited
1 moved

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/__init__.py

    r9928 r11949  
    11import os
    22
    3 #from waeup.kofa.browser.layout import (
    4 #    KofaPage, KofaForm, KofaLayout, KofaDisplayFormPage, KofaEditFormPage,
    5 #    KofaAddFormPage, NullValidator)
    6 #from waeup.kofa.browser.pages import ContactAdminForm
     3#from waeup.ikoba.browser.layout import (
     4#    IkobaPage, IkobaForm, IkobaLayout, IkobaDisplayFormPage, IkobaEditFormPage,
     5#    IkobaAddFormPage, NullValidator)
     6#from waeup.ikoba.browser.pages import ContactAdminForm
    77
    88IMAGE_PATH = os.path.join(
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/async.py

    r11254 r11949  
    22from zc.async.interfaces import COMPLETED, NEW
    33from zope.interface import Interface
    4 from waeup.kofa.async import IJob, IJobManager
    5 from waeup.kofa.browser.layout import KofaPage
    6 from waeup.kofa.interfaces import IKofaObject, IDataCenter
    7 from waeup.kofa.interfaces import MessageFactory as _
     4from waeup.ikoba.async import IJob, IJobManager
     5from waeup.ikoba.browser.layout import IkobaPage
     6from waeup.ikoba.interfaces import IIkobaObject, IDataCenter
     7from waeup.ikoba.interfaces import MessageFactory as _
    88
    99grok.templatedir('templates')
    10 grok.context(IKofaObject)
     10grok.context(IIkobaObject)
    1111
    1212loadingbar_template = '''
     
    9797
    9898
    99 class JobManagerView(KofaPage):
     99class JobManagerView(IkobaPage):
    100100    """The main view for the job container.
    101101    """
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/batchprocessing.txt

    r11947 r11949  
    2121Create a site:
    2222
    23     >>> from waeup.kofa.app import University
     23    >>> from waeup.ikoba.app import University
    2424    >>> getRootFolder()['app'] = University()
    2525    >>> from zope.component.hooks import setSite
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/breadcrumbs.py

    r11947 r11949  
    2323from zope.publisher.browser import TestRequest
    2424
    25 from waeup.kofa.interfaces import (
     25from waeup.ikoba.interfaces import (
    2626    IConfigurationContainer, ISessionConfiguration, IExportJobContainer)
    27 from waeup.kofa.interfaces import MessageFactory as _
    28 from waeup.kofa.browser.interfaces import (
    29     IBreadcrumb, IBreadcrumbIgnorable, IBreadcrumbContainer, IKofaObject,
     27from waeup.ikoba.interfaces import MessageFactory as _
     28from waeup.ikoba.browser.interfaces import (
     29    IBreadcrumb, IBreadcrumbIgnorable, IBreadcrumbContainer, IIkobaObject,
    3030    IUniversity, IUsersContainer, IDataCenter,
    3131    )
    32 from waeup.kofa.reports import IReportsContainer
     32from waeup.ikoba.reports import IReportsContainer
    3333
    3434class Breadcrumb(grok.Adapter):
     
    3636    """
    3737    grok.provides(IBreadcrumb)
    38     grok.context(IKofaObject)
     38    grok.context(IIkobaObject)
    3939    grok.name('index')
    4040
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/breadcrumbs.txt

    r7811 r11949  
    1111We create a university to check the breadcrumb functionality.
    1212
    13     >>> from waeup.kofa.app import University
     13    >>> from waeup.ikoba.app import University
    1414    >>> root = getRootFolder()
    1515    >>> root['app'] = University()
     
    2222viewname:
    2323
    24     >>> from waeup.kofa.browser.breadcrumbs import getBreadcrumbList
     24    >>> from waeup.ikoba.browser.breadcrumbs import getBreadcrumbList
    2525    >>> blist1 = getBreadcrumbList(app, 'index')
    2626    >>> blist1
    27     [<waeup.kofa.browser.breadcrumbs.UniversityBreadcrumb object at 0x...>]
     27    [<waeup.ikoba.browser.breadcrumbs.UniversityBreadcrumb object at 0x...>]
    2828
    2929A slightly more extensive list for the datacenter:
     
    3232    >>> from pprint import pprint
    3333    >>> pprint(blist2)
    34     [<waeup.kofa.browser.breadcrumbs.UniversityBreadcrumb object at 0x...>,
    35      <waeup.kofa.browser.breadcrumbs.AdministrationBreadcrumb object at 0x...>,
    36      <waeup.kofa.browser.breadcrumbs.DataCenterBreadcrumb object at 0x...>]
     34    [<waeup.ikoba.browser.breadcrumbs.UniversityBreadcrumb object at 0x...>,
     35     <waeup.ikoba.browser.breadcrumbs.AdministrationBreadcrumb object at 0x...>,
     36     <waeup.ikoba.browser.breadcrumbs.DataCenterBreadcrumb object at 0x...>]
    3737
    3838We get a breadcrumb for university, administration area and data
     
    4747
    4848     >>> pprint([(x.context, x.viewname) for x in blist2])
    49      [(<waeup.kofa.app.University object at 0x...>, 'index'),
    50       (<waeup.kofa.app.University object at 0x...>, 'administration'),
    51       (<waeup.kofa.datacenter.DataCenter object at 0x...>, 'index')]
     49     [(<waeup.ikoba.app.University object at 0x...>, 'index'),
     50      (<waeup.ikoba.app.University object at 0x...>, 'administration'),
     51      (<waeup.ikoba.datacenter.DataCenter object at 0x...>, 'index')]
    5252
    5353The administration area breadcrumb might be a surprise, as there is no
     
    8989Now we can get the breadcrumbs for this view:
    9090
    91     >>> from waeup.kofa.browser.breadcrumbs import getBreadcrumbListForView
     91    >>> from waeup.ikoba.browser.breadcrumbs import getBreadcrumbListForView
    9292    >>> blist3 = getBreadcrumbListForView(page)
    9393    >>> [x.title for x in blist3]
     
    109109The returned breadcrumb container supports iteration:
    110110
    111     >>> from waeup.kofa.browser.interfaces import IBreadcrumbContainer
     111    >>> from waeup.ikoba.browser.interfaces import IBreadcrumbContainer
    112112    >>> mybccontainer = IBreadcrumbContainer(page)
    113113    >>> [x.title for x in mybccontainer]
     
    131131
    132132    >>> from zope.component import getAdapter
    133     >>> from waeup.kofa.browser.interfaces import IBreadcrumb
     133    >>> from waeup.ikoba.browser.interfaces import IBreadcrumb
    134134    >>> b1 = getAdapter(app, IBreadcrumb, 'index')
    135135    >>> b1
    136     <waeup.kofa.browser.breadcrumbs.UniversityBreadcrumb object at 0x...>
     136    <waeup.ikoba.browser.breadcrumbs.UniversityBreadcrumb object at 0x...>
    137137
    138138Breadcrumb objects provide a title:
     
    156156    >>> b2 = getAdapter(app['datacenter'], IBreadcrumb, 'index')
    157157    >>> b2
    158     <waeup.kofa.browser.breadcrumbs.DataCenterBreadcrumb object at 0x...>
     158    <waeup.ikoba.browser.breadcrumbs.DataCenterBreadcrumb object at 0x...>
    159159
    160160    >>> b2.title
     
    168168
    169169    >>> b2.parent
    170     (<waeup.kofa.app.University object at 0x...>, 'administration')
     170    (<waeup.ikoba.app.University object at 0x...>, 'administration')
    171171
    172172This result denotes a new context object (the University instance we
     
    184184    >>> b3 = getAdapter(context, IBreadcrumb, viewname)
    185185    >>> b3
    186     <waeup.kofa...breadcrumbs.AdministrationBreadcrumb object at 0x...>
     186    <waeup.ikoba...breadcrumbs.AdministrationBreadcrumb object at 0x...>
    187187
    188188As you can see, we get an AdministrationBreadcrumb, although the
     
    197197    >>> context, viewname = b3.parent
    198198    >>> context, viewname
    199     (<waeup.kofa.app.University object at 0x...>, 'index')
     199    (<waeup.ikoba.app.University object at 0x...>, 'index')
    200200
    201201We create last breadcrumb:
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/browser.txt

    r11947 r11949  
    1 Browsing Kofa
     1Browsing Ikoba
    22*************
    33
    4 Here we visit all parts of a Kofa portal using a browser.
     4Here we visit all parts of a Ikoba portal using a browser.
    55
    66University
     
    1515  []
    1616
    17   >>> from waeup.kofa.app import University
     17  >>> from waeup.ikoba.app import University
    1818  >>> u = University()
    1919  >>> root['myuniversity'] = u
     
    3535  >>> print browser.contents
    3636  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    37   ...Welcome to WAeUP.Kofa...
     37  ...Welcome to WAeUP.Ikoba...
    3838  ...
    3939
     
    123123  >>> print browser.contents
    124124  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    125   ...<h1>Welcome to WAeUP.Kofa...</h1>
     125  ...<h1>Welcome to WAeUP.Ikoba...</h1>
    126126  ...
    127127
     
    137137  >>> print browser.contents
    138138  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
    139   ...<h1>Willkommen auf WAeUP.Kofa...</h1>
     139  ...<h1>Willkommen auf WAeUP.Ikoba...</h1>
    140140  ...
    141141
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/captcha.py

    r11254 r11949  
    2828from zope.interface import Interface
    2929from zope.publisher.interfaces.http import IHTTPRequest
    30 from waeup.kofa.browser.layout import KofaPage
    31 from waeup.kofa.browser.interfaces import (
     30from waeup.ikoba.browser.layout import IkobaPage
     31from waeup.ikoba.browser.interfaces import (
    3232    ICaptchaRequest, ICaptchaResponse, ICaptcha, ICaptchaConfig,
    3333    ICaptchaManager)
    34 from waeup.kofa.interfaces import IUniversity
     34from waeup.ikoba.interfaces import IUniversity
    3535
    3636#
     
    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 Ikoba 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 Ikoba",
    269269                }
    270270            )
     
    319319
    320320
    321 class CaptchaTestPage(KofaPage):
     321class CaptchaTestPage(IkobaPage):
    322322    # A test page to see a captcha in action
    323323    grok.name('captcha')
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/exceptions.py

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

    r11947 r11949  
    2020from zope import schema
    2121from zope.interface import Interface, Attribute
    22 from waeup.kofa.interfaces import (
    23     IKofaObject, IUniversity, IUsersContainer, IDataCenter, validate_email)
    24 from waeup.kofa.interfaces import MessageFactory as _
     22from waeup.ikoba.interfaces import (
     23    IIkobaObject, IUniversity, IUsersContainer, IDataCenter, validate_email)
     24from waeup.ikoba.interfaces import MessageFactory as _
    2525
    2626class IBreadcrumb(Interface):
     
    166166        """
    167167
    168 class IChangePassword(IKofaObject):
     168class IChangePassword(IIkobaObject):
    169169    """Interface needed for change pasword page.
    170170
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/layout.py

    r11947 r11949  
    3232from zope.interface import Interface
    3333from zope.site.hooks import getSite
    34 from waeup.kofa.interfaces import IKofaObject, IUserAccount, IKofaUtils
    35 from waeup.kofa.interfaces import MessageFactory as _
    36 from waeup.kofa.utils.helpers import to_timezone
    37 from waeup.kofa.authentication import get_principal_role_manager
     34from waeup.ikoba.interfaces import IIkobaObject, IUserAccount, IIkobaUtils
     35from waeup.ikoba.interfaces import MessageFactory as _
     36from waeup.ikoba.utils.helpers import to_timezone
     37from waeup.ikoba.authentication import get_principal_role_manager
    3838
    3939grok.templatedir('templates')
     
    6161
    6262    def __call__(self, success):
    63         action = KofaAction(self.label, success=success, **self.options)
     63        action = IkobaAction(self.label, success=success, **self.options)
    6464        self.actions.append(action)
    6565        return action
    6666
    67 class KofaAction(Action):
     67class IkobaAction(Action):
    6868
    6969    def __init__(self, label, style='', tooltip='', warning='', **options):
    70         super(KofaAction, self).__init__(label, **options)
     70        super(IkobaAction, self).__init__(label, **options)
    7171        self.style = style
    7272        self.tooltip = tooltip
     
    102102
    103103    def __call__(self, success):
    104         action = KofaAction(self.label,
     104        action = IkobaAction(self.label,
    105105                            success=success, warning=self.msg,
    106106                            **self.options)
     
    160160        return True
    161161
    162 class KofaLayout(UtilityView,Layout):
     162class IkobaLayout(UtilityView,Layout):
    163163    """A megrok.layout.Layout with additional methods.
    164164    """
    165165    grok.baseclass()
    166166
    167 class KofaForm(UtilityView,Form):
     167class IkobaForm(UtilityView,Form):
    168168    """A megrok.layout.Form with additional methods.
    169169    """
     
    171171
    172172    def setUpWidgets(self,ignore_request=False):
    173         super(KofaForm,self).setUpWidgets(ignore_request)
     173        super(IkobaForm,self).setUpWidgets(ignore_request)
    174174        # Width parameters will be overridden by Bootstrap
    175175        # so we have to set the css class
     
    177177            self.widgets['body'].height = 10
    178178
    179 class KofaPage(UtilityView,Page):
     179class IkobaPage(UtilityView,Page):
    180180    """A megrok.layout page with additional methods.
    181181    """
    182182    grok.baseclass()
    183183
    184 class KofaDisplayFormPage(UtilityView,DisplayForm):
     184class IkobaDisplayFormPage(UtilityView,DisplayForm):
    185185    """A megrok.layout.DisplayForm with additional methods.
    186186    """
     
    189189    hide_hint = True
    190190
    191 class KofaEditFormPage(UtilityView,EditForm):
     191class IkobaEditFormPage(UtilityView,EditForm):
    192192    """A megrok.layout.EditForm with additional methods.
    193193    """
     
    196196
    197197    def setUpWidgets(self,ignore_request=False):
    198         super(KofaEditFormPage,self).setUpWidgets(ignore_request)
     198        super(IkobaEditFormPage,self).setUpWidgets(ignore_request)
    199199        for widget in self.widgets:
    200200            if 'address' in widget.name or \
     
    207207            self.widgets['jamb_subjects'].height = 6
    208208
    209 class KofaAddFormPage(UtilityView,AddForm):
     209class IkobaAddFormPage(UtilityView,AddForm):
    210210    """A megrok.layout.AddForm with additional methods.
    211211    """
     
    213213    template = default_waeup_edit_template
    214214
    215 class SiteLayout(KofaLayout):
     215class SiteLayout(IkobaLayout):
    216216    """ The general site layout.
    217217    """
    218     grok.context(IKofaObject)
     218    grok.context(IIkobaObject)
    219219
    220220    #: An instance of the default theme to use for the site layout
     
    260260    def formatDatetime(self,datetimeobj):
    261261        if isinstance(datetimeobj, datetime):
    262             tz = getUtility(IKofaUtils).tzinfo
     262            tz = getUtility(IIkobaUtils).tzinfo
    263263            try:
    264264                timestamp = to_timezone(
     
    278278    def formatTZDate(self,datetimeobj):
    279279        if isinstance(datetimeobj, datetime):
    280             tz = getUtility(IKofaUtils).tzinfo
     280            tz = getUtility(IIkobaUtils).tzinfo
    281281            date = to_timezone(
    282282                datetimeobj, tz).strftime("%d/%m/%Y")
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/pages.py

    r11947 r11949  
    1616## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    1717##
    18 """ Viewing components for Kofa objects.
     18""" Viewing components for Ikoba objects.
    1919"""
    2020# XXX: All csv ops should move to a dedicated module soon
     
    4242from zope.session.interfaces import ISession
    4343from zope.password.interfaces import IPasswordManager
    44 from waeup.kofa.browser.layout import (
    45     KofaPage, KofaForm, KofaEditFormPage, KofaAddFormPage,
    46     KofaDisplayFormPage, NullValidator)
    47 from waeup.kofa.browser.interfaces import (
     44from waeup.ikoba.browser.layout import (
     45    IkobaPage, IkobaForm, IkobaEditFormPage, IkobaAddFormPage,
     46    IkobaDisplayFormPage, NullValidator)
     47from waeup.ikoba.browser.interfaces import (
    4848    IUniversity, ICaptchaManager, IChangePassword)
    49 from waeup.kofa.browser.layout import jsaction, action, UtilityView
    50 from waeup.kofa.interfaces import MessageFactory as _
    51 from waeup.kofa.interfaces import(
    52     IKofaObject, IUsersContainer, IUserAccount, IDataCenter,
    53     IKofaXMLImporter, IKofaXMLExporter, IBatchProcessor,
     49from waeup.ikoba.browser.layout import jsaction, action, UtilityView
     50from waeup.ikoba.interfaces import MessageFactory as _
     51from waeup.ikoba.interfaces import(
     52    IIkobaObject, IUsersContainer, IUserAccount, IDataCenter,
     53    IIkobaXMLImporter, IIkobaXMLExporter, IBatchProcessor,
    5454    ILocalRolesAssignable, DuplicationError, IConfigurationContainer,
    5555    ISessionConfiguration, ISessionConfigurationAdd, IJobManager,
    56     IPasswordValidator, IContactForm, IKofaUtils, ICSVExporter,
     56    IPasswordValidator, IContactForm, IIkobaUtils, ICSVExporter,
    5757    application_sessions_vocab)
    58 from waeup.kofa.permissions import (
     58from waeup.ikoba.permissions import (
    5959    get_users_with_local_roles, get_all_roles, get_all_users,
    6060    get_users_with_role)
    6161
    62 from waeup.kofa.authentication import LocalRoleSetEvent
    63 from waeup.kofa.widgets.htmlwidget import HTMLDisplayWidget
    64 from waeup.kofa.utils.helpers import get_user_account, check_csv_charset
    65 from waeup.kofa.mandates.mandate import PasswordMandate
    66 from waeup.kofa.datacenter import DataCenterFile
     62from waeup.ikoba.authentication import LocalRoleSetEvent
     63from waeup.ikoba.widgets.htmlwidget import HTMLDisplayWidget
     64from waeup.ikoba.utils.helpers import get_user_account, check_csv_charset
     65from waeup.ikoba.mandates.mandate import PasswordMandate
     66from waeup.ikoba.datacenter import DataCenterFile
    6767
    6868FORBIDDEN_CHARACTERS = (160,)
    6969
    70 grok.context(IKofaObject)
     70grok.context(IIkobaObject)
    7171grok.templatedir('templates')
    7272
     
    8181    role_manager.assignRoleToPrincipal(localrole, user)
    8282    notify(LocalRoleSetEvent(view.context, localrole, user, granted=True))
    83     ob_class = view.__implemented__.__name__.replace('waeup.kofa.','')
     83    ob_class = view.__implemented__.__name__.replace('waeup.ikoba.','')
    8484    grok.getSite().logger.info(
    8585        '%s - added: %s|%s' % (ob_class, user, localrole))
     
    113113            _('Local role successfully removed: ${a}',
    114114            mapping = {'a':', '.join(deleted)}))
    115         ob_class = view.__implemented__.__name__.replace('waeup.kofa.','')
     115        ob_class = view.__implemented__.__name__.replace('waeup.ikoba.','')
    116116        grok.getSite().logger.info(
    117117            '%s - removed: %s' % (ob_class, ', '.join(deleted)))
     
    147147        view.flash(_('Successfully removed: ${a}',
    148148            mapping = {'a': ', '.join(deleted)}))
    149         ob_class = view.__implemented__.__name__.replace('waeup.kofa.','')
     149        ob_class = view.__implemented__.__name__.replace('waeup.ikoba.','')
    150150        grok.getSite().logger.info(
    151151            '%s - removed: %s' % (ob_class, ', '.join(deleted)))
     
    188188    fields_string = ' + '.join(changed_fields)
    189189    view.flash(_('Form has been saved.'))
    190     ob_class = view.__implemented__.__name__.replace('waeup.kofa.','')
     190    ob_class = view.__implemented__.__name__.replace('waeup.ikoba.','')
    191191    if fields_string:
    192192        grok.getSite().logger.info('%s - %s - saved: %s' % (ob_class, view.context.__name__, fields_string))
     
    210210        time_delta = None
    211211        if start_time:
    212             tz = getUtility(IKofaUtils).tzinfo
     212            tz = getUtility(IIkobaUtils).tzinfo
    213213            time_delta = datetime.now(tz) - start_time
    214214            start_time = start_time.astimezone(tz).strftime(
     
    252252#
    253253
    254 class LoginPage(KofaPage):
     254class LoginPage(IkobaPage):
    255255    """A login page, available for all objects.
    256256    """
    257257    grok.name('login')
    258     grok.context(IKofaObject)
     258    grok.context(IIkobaObject)
    259259    grok.require('waeup.Public')
    260260    label = _(u'Login')
     
    288288
    289289
    290 class LogoutPage(KofaPage):
     290class LogoutPage(IkobaPage):
    291291    """A logout page. Calling this page will log the current user out.
    292292    """
    293     grok.context(IKofaObject)
     293    grok.context(IIkobaObject)
    294294    grok.require('waeup.Public')
    295295    grok.name('logout')
     
    299299            auth = getUtility(IAuthentication)
    300300            ILogout(auth).logout(self.request)
    301             self.flash(_("You have been logged out. Thanks for using WAeUP Kofa!"))
     301            self.flash(_("You have been logged out. Thanks for using WAeUP Ikoba!"))
    302302        self.redirect(self.application_url() + '/index')
    303303        return
    304304
    305305
    306 class LanguageChangePage(KofaPage):
     306class LanguageChangePage(IkobaPage):
    307307    """ Language switch
    308308    """
    309     grok.context(IKofaObject)
     309    grok.context(IIkobaObject)
    310310    grok.name('change_language')
    311311    grok.require('waeup.Public')
    312312
    313313    def update(self, lang='en', view_name='@@index'):
    314         self.response.setCookie('kofa.language', lang, path='/')
     314        self.response.setCookie('ikoba.language', lang, path='/')
    315315        self.redirect(self.url(self.context, view_name))
    316316        return
     
    323323#
    324324
    325 class ContactAdminForm(KofaForm):
     325class ContactAdminForm(IkobaForm):
    326326    grok.name('contactadmin')
    327327    #grok.context(IUniversity)
     
    357357        usertype = getattr(self.request.principal,
    358358                           'user_type', 'system').title()
    359         kofa_utils = getUtility(IKofaUtils)
    360         success = kofa_utils.sendContactForm(
     359        ikoba_utils = getUtility(IIkobaUtils)
     360        success = ikoba_utils.sendContactForm(
    361361                fullname,email,
    362362                self.config.name_admin,self.config.email_admin,
     
    392392            # No need to flash something.
    393393            return
    394         kofa_utils = getUtility(IKofaUtils)
    395         success = kofa_utils.sendContactForm(
     394        ikoba_utils = getUtility(IIkobaUtils)
     395        success = ikoba_utils.sendContactForm(
    396396                data['fullname'],data['email_from'],
    397397                self.config.name_admin,self.config.email_admin,
     
    408408#
    409409
    410 class UniversityPage(KofaDisplayFormPage):
     410class UniversityPage(IkobaDisplayFormPage):
    411411    """ The main university page.
    412412    """
     
    419419    @property
    420420    def frontpage(self):
    421         lang = self.request.cookies.get('kofa.language')
     421        lang = self.request.cookies.get('ikoba.language')
    422422        html = self.context['configuration'].frontpage_dict.get(lang,'')
    423423        if html =='':
    424             portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
     424            portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE
    425425            html = self.context[
    426426                'configuration'].frontpage_dict.get(portal_language,'')
    427427        if html =='':
    428             return _(u'<h1>Welcome to WAeUP.Kofa</h1>')
     428            return _(u'<h1>Welcome to WAeUP.Ikoba</h1>')
    429429        else:
    430430            return html
    431431
    432 class AdministrationPage(KofaPage):
     432class AdministrationPage(IkobaPage):
    433433    """ The administration overview page.
    434434    """
     
    448448
    449449    name = 'General news feed'
    450     description = 'waeup.kofa now supports RSS 2.0 feeds :-)'
     450    description = 'waeup.ikoba now supports RSS 2.0 feeds :-)'
    451451    language = None
    452452    date = None
     
    477477#
    478478
    479 class UsersContainerPage(KofaPage):
     479class UsersContainerPage(IkobaPage):
    480480    """Overview page for all local users.
    481481    """
     
    494494            self.flash(_('User account ${a} successfully deleted.',
    495495                mapping = {'a':  userid}))
    496             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     496            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    497497            self.context.__parent__.logger.info(
    498498                '%s - removed: %s' % (ob_class, userid))
     
    521521        return site_roles_string
    522522
    523 class AddUserFormPage(KofaAddFormPage):
     523class AddUserFormPage(IkobaAddFormPage):
    524524    """Add a user account.
    525525    """
     
    555555            self.flash(_('User account ${a} successfully added.',
    556556                mapping = {'a': name}))
    557             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     557            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    558558            self.context.__parent__.logger.info(
    559559                '%s - added: %s' % (ob_class, name))
     
    564564        self.redirect(self.url(self.context))
    565565
    566 class UserManageFormPage(KofaEditFormPage):
     566class UserManageFormPage(IkobaEditFormPage):
    567567    """Manage a user account.
    568568    """
     
    604604        fields_string = ' + '.join(changed_fields)
    605605        if fields_string:
    606             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     606            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    607607            self.context.__parent__.logger.info(
    608608                '%s - %s edited: %s' % (
     
    635635        usertype = getattr(self.request.principal,
    636636                           'user_type', 'system').title()
    637         kofa_utils = getUtility(IKofaUtils)
    638         success = kofa_utils.sendContactForm(
     637        ikoba_utils = getUtility(IIkobaUtils)
     638        success = ikoba_utils.sendContactForm(
    639639                self.request.principal.title,email,
    640640                self.context.title,self.context.email,
     
    660660        self.widgets['title'].displayWidth = 30
    661661
    662 class MyRolesPage(KofaPage):
     662class MyRolesPage(IkobaPage):
    663663    """Display site roles and local roles assigned to officers.
    664664    """
     
    691691#
    692692
    693 class ConfigurationContainerDisplayFormPage(KofaDisplayFormPage):
     693class ConfigurationContainerDisplayFormPage(IkobaDisplayFormPage):
    694694    """View page of the configuration container.
    695695    """
     
    703703
    704704
    705 class ConfigurationContainerManageFormPage(KofaEditFormPage):
     705class ConfigurationContainerManageFormPage(IkobaEditFormPage):
    706706    """Manage page of the configuration container. We always use the
    707707    manage page in the UI not the view page, thus we use the index name here.
     
    763763        return
    764764
    765 class SessionConfigurationAddFormPage(KofaAddFormPage):
     765class SessionConfigurationAddFormPage(IkobaAddFormPage):
    766766    """Add a session configuration object to configuration container.
    767767    """
     
    779779        try:
    780780            self.context.addSessionConfiguration(sessionconfiguration)
    781             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     781            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    782782            self.context.__parent__.logger.info(
    783783                '%s - added: %s' % (
     
    794794        return
    795795
    796 class SessionConfigurationManageFormPage(KofaEditFormPage):
     796class SessionConfigurationManageFormPage(IkobaEditFormPage):
    797797    """Manage session configuration object.
    798798    """
     
    824824#
    825825
    826 class DatacenterPage(KofaEditFormPage):
     826class DatacenterPage(IkobaEditFormPage):
    827827    grok.context(IDataCenter)
    828828    grok.name('index')
     
    854854            self.flash(_('Successfully deleted: ${a}',
    855855                mapping = {'a': ', '.join(deleted)}))
    856             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     856            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    857857            self.context.logger.info(
    858858                '%s - deleted: %s' % (ob_class, ', '.join(deleted)))
    859859        return
    860860
    861 class DatacenterFinishedPage(KofaEditFormPage):
     861class DatacenterFinishedPage(IkobaEditFormPage):
    862862    grok.context(IDataCenter)
    863863    grok.name('processed')
     
    873873        return super(DatacenterFinishedPage, self).update()
    874874
    875 class DatacenterUploadPage(KofaPage):
     875class DatacenterUploadPage(IkobaPage):
    876876    grok.context(IDataCenter)
    877877    grok.name('upload')
     
    904904            mail_table += '%s: %s ...\n' % (line[0], data)
    905905        # Collect all recipient addresses
    906         kofa_utils = getUtility(IKofaUtils)
     906        ikoba_utils = getUtility(IIkobaUtils)
    907907        import_managers = get_users_with_role(
    908908            'waeup.ImportManager', grok.getSite())
     
    924924                      _('${a}: ${b} uploaded',
    925925                      mapping = {'a':config.acronym, 'b':filename}),
    926                       'waeup.kofa',
    927                       target_language=kofa_utils.PORTAL_LANGUAGE)
     926                      'waeup.ikoba',
     927                      target_language=ikoba_utils.PORTAL_LANGUAGE)
    928928            text = _("""File: ${a}
    929929Importer: ${b}
     
    938938                'd':uploadfile.lines - 1,
    939939                'e':mail_table})
    940             success = kofa_utils.sendContactForm(
     940            success = ikoba_utils.sendContactForm(
    941941                    fullname,email,
    942942                    rcpt_name,rcpt_addrs,
     
    983983            target = os.path.join(self.context.storage, normalized_filename)
    984984            filecontent = uploadfile.read()
    985             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     985            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    986986            logger = self.context.logger
    987987
     
    10601060
    10611061    def render(self):
    1062         ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     1062        ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    10631063        self.context.logger.info(
    10641064            '%s - downloaded: %s' % (ob_class, self.filename))
     
    10831083
    10841084    def render(self):
    1085         #ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     1085        #ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    10861086        #self.context.logger.info(
    10871087        #    '%s - skeleton downloaded: %s' % (ob_class, self.filename))
     
    10941094        return csv_data
    10951095
    1096 class DatacenterImportStep1(KofaPage):
     1096class DatacenterImportStep1(IkobaPage):
    10971097    """Manual import step 1: choose file
    10981098    """
     
    11191119        if select is not None:
    11201120            # A filename was selected
    1121             session = ISession(self.request)['waeup.kofa']
     1121            session = ISession(self.request)['waeup.ikoba']
    11221122            session['import_filename'] = select
    11231123            self.redirect(self.url(self.context, '@@import2'))
    11241124
    1125 class DatacenterImportStep2(KofaPage):
     1125class DatacenterImportStep2(IkobaPage):
    11261126    """Manual import step 2: choose processor
    11271127    """
     
    11911191    def update(self, mode=None, importer=None,
    11921192               back1=None, cancel=None, proceed=None):
    1193         session = ISession(self.request)['waeup.kofa']
     1193        session = ISession(self.request)['waeup.ikoba']
    11941194        self.filename = session.get('import_filename', None)
    11951195
     
    12261226            self.flash(warnings, type='warning')
    12271227
    1228 class DatacenterImportStep3(KofaPage):
     1228class DatacenterImportStep3(IkobaPage):
    12291229    """Manual import step 3: modify header
    12301230    """
     
    13091309
    13101310    def update(self, headerfield=None, back2=None, cancel=None, proceed=None):
    1311         session = ISession(self.request)['waeup.kofa']
     1311        session = ISession(self.request)['waeup.ikoba']
    13121312        self.filename = session.get('import_filename', None)
    13131313        self.mode = session.get('import_mode', None)
     
    13381338            self.flash(warnings, type='warning')
    13391339
    1340 class DatacenterImportStep4(KofaPage):
     1340class DatacenterImportStep4(IkobaPage):
    13411341    """Manual import step 4: do actual import
    13421342    """
     
    13591359            self.redirect(self.url(self.context, '@@import1'))
    13601360            return
    1361         session = ISession(self.request)['waeup.kofa']
     1361        session = ISession(self.request)['waeup.ikoba']
    13621362        self.filename = session.get('import_filename', None)
    13631363        self.mode = session.get('import_mode', None)
     
    14021402            mapping = {'a':linenum - self.warn_num}))
    14031403
    1404 class DatacenterLogsOverview(KofaPage):
     1404class DatacenterLogsOverview(IkobaPage):
    14051405    grok.context(IDataCenter)
    14061406    grok.name('logs')
     
    14181418        self.files = self.context.getLogFiles()
    14191419
    1420 class DatacenterLogsFileview(KofaPage):
     1420class DatacenterLogsFileview(IkobaPage):
    14211421    grok.context(IDataCenter)
    14221422    grok.name('show')
     
    14561456        return
    14571457
    1458 class DatacenterSettings(KofaPage):
     1458class DatacenterSettings(IkobaPage):
    14591459    grok.context(IDataCenter)
    14601460    grok.name('manage')
     
    14891489        if newpath:
    14901490            self.flash(_('New storage path succefully set.'))
    1491             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     1491            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    14921492            self.context.logger.info(
    14931493                '%s - storage path set: %s' % (ob_class, newpath))
     
    14951495        return
    14961496
    1497 class ExportCSVPage(KofaPage):
     1497class ExportCSVPage(IkobaPage):
    14981498    grok.context(IDataCenter)
    14991499    grok.name('export')
     
    15191519            job_id = self.context.start_export_job(
    15201520                exporter, self.request.principal.id)
    1521             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     1521            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    15221522            self.context.logger.info(
    15231523                '%s - exported: %s, job_id=%s' % (ob_class, exporter, job_id))
     
    15251525            entry = self.context.entry_from_job_id(job_id)
    15261526            self.context.delete_export_entry(entry)
    1527             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     1527            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    15281528            self.context.logger.info(
    15291529                '%s - discarded: job_id=%s' % (ob_class, job_id))
     
    15601560        #self.context.delete_export_entry(
    15611561        #    self.context.entry_from_job_id(job_id))
    1562         ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     1562        ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    15631563        self.context.logger.info(
    15641564            '%s - downloaded: %s, job_id=%s' % (ob_class, filename, job_id))
    15651565        return result
    15661566
    1567 class ChangePasswordRequestPage(KofaForm):
     1567class ChangePasswordRequestPage(IkobaForm):
    15681568    """Captcha'd page for all kind of users to request a password change.
    15691569    """
     
    16131613            return
    16141614        # Change password
    1615         kofa_utils = getUtility(IKofaUtils)
    1616         password = kofa_utils.genPassword()
     1615        ikoba_utils = getUtility(IIkobaUtils)
     1616        password = ikoba_utils.genPassword()
    16171617        mandate = PasswordMandate()
    16181618        mandate.params['password'] = password
     
    16251625        url_info = u'Confirmation link: %s' % mandate_url
    16261626        msg = _('You have successfully requested a password for the')
    1627         success = kofa_utils.sendCredentials(
     1627        success = ikoba_utils.sendCredentials(
    16281628            IUserAccount(user),password,url_info,msg)
    16291629        if success:
     
    16321632        else:
    16331633            self.flash(_('An smtp server error occurred.'), type='danger')
    1634         ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     1634        ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    16351635        self.context.logger.info(
    16361636            '%s - %s - %s' % (ob_class, data['identifier'], data['email']))
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/pdf.py

    r11947 r11949  
    3737from zope.publisher.browser import TestRequest
    3838from zope.component import getUtility, queryUtility
    39 from waeup.kofa.browser.interfaces import IPDFCreator
    40 from waeup.kofa.utils.helpers import now
    41 from waeup.kofa.interfaces import IKofaUtils
    42 from waeup.kofa.interfaces import MessageFactory as _
     39from waeup.ikoba.browser.interfaces import IPDFCreator
     40from waeup.ikoba.utils.helpers import now
     41from waeup.ikoba.interfaces import IIkobaUtils
     42from waeup.ikoba.interfaces import MessageFactory as _
    4343
    4444
     
    523523
    524524        Location of the string is determined by canvas attributes
    525         `kofa_footer_x_pos` and `kofa_footer_y_pos` that have to be
     525        `ikoba_footer_x_pos` and `ikoba_footer_y_pos` that have to be
    526526        set manually.
    527527
    528         If this canvas also provides an attribute `kofa_footer_text`,
     528        If this canvas also provides an attribute `ikoba_footer_text`,
    529529        the contained text is rendered left of the ``page x of y``
    530530        string.
     
    533533        right_footer_text = _(
    534534            '${footer_text} Page ${num1} of ${num2}',
    535             mapping = {'footer_text': self.kofa_footer_text,
     535            mapping = {'footer_text': self.ikoba_footer_text,
    536536                       'num1':self._pageNumber, 'num2':page_count})
    537537        self.drawRightString(
    538             self.kofa_footer_x_pos, self.kofa_footer_y_pos,
     538            self.ikoba_footer_x_pos, self.ikoba_footer_y_pos,
    539539             translate(right_footer_text))
    540540        return
     
    627627
    628628    def getWidgetsTable(self, form_fields, context, view, lang='en',
    629                         domain='waeup.kofa', separators=None,
     629                        domain='waeup.ikoba', separators=None,
    630630                        colWidths=None, twoDataCols=False):
    631631        """Return a reportlab `Table` instance, created from widgets
     
    684684        or similar object.
    685685
    686         Text of headerline is extracted from doc.kofa_headtitle, the
    687         document title (under the head) from doc.kofa_title.
     686        Text of headerline is extracted from doc.ikoba_headtitle, the
     687        document title (under the head) from doc.ikoba_title.
    688688
    689689        This is a callback method that will be called from reportlab
     
    708708            site_config = site.get('configuration', None)
    709709        head_title = getattr(
    710             doc, 'kofa_headtitle', getattr(
     710            doc, 'ikoba_headtitle', getattr(
    711711                site_config, 'name',
    712712                u'Sample University'))
     
    730730        canvas.saveState()
    731731        canvas.setFont("Helvetica-Bold", 14)
    732         title = getattr(doc, 'kofa_title', '')
     732        title = getattr(doc, 'ikoba_title', '')
    733733        if '\n' in title:
    734734            title_lines = title.split('\n')
     
    747747        canvas.line(2.2*cm, 0.62*inch, width-2.2*cm, 0.62*inch)
    748748        canvas.setFont("Helvetica", 9)
    749         if not getattr(doc, 'kofa_nodate', False):
    750             tz = getattr(queryUtility(IKofaUtils), 'tzinfo', pytz.utc)
    751             #tz = getUtility(IKofaUtils).tzinfo
     749        if not getattr(doc, 'ikoba_nodate', False):
     750            tz = getattr(queryUtility(IIkobaUtils), 'tzinfo', pytz.utc)
     751            #tz = getUtility(IIkobaUtils).tzinfo
    752752            today = now(tz).strftime('%d/%m/%Y %H:%M:%S %Z')
    753753            canvas.drawString(2.2*cm, 0.5 * inch,
    754754                translate(_(u'Date: ${a}', mapping = {'a': today})))
    755755        # set canves attributes needed to render `page x of y`
    756         canvas.kofa_footer_x_pos = width-2.2*cm
    757         canvas.kofa_footer_y_pos = 0.5 * inch
    758         canvas.kofa_footer_text =  doc.kofa_footer
     756        canvas.ikoba_footer_x_pos = width-2.2*cm
     757        canvas.ikoba_footer_y_pos = 0.5 * inch
     758        canvas.ikoba_footer_text =  doc.ikoba_footer
    759759        canvas.restoreState()
    760760        canvas.restoreState()
    761761
    762762        # Metadata
    763         canvas.setAuthor(getattr(doc, 'kofa_author', 'Unknown'))
     763        canvas.setAuthor(getattr(doc, 'ikoba_author', 'Unknown'))
    764764        canvas.setSubject(title)
    765         canvas.setCreator(u'WAeUP Kofa')
     765        canvas.setCreator(u'WAeUP Ikoba')
    766766        return
    767767
     
    782782        # Set some attributes that are needed when rendering the background.
    783783        if headerline is not None:
    784             doc.kofa_headtitle = headerline
    785         doc.kofa_title = title
    786         doc.kofa_author = author
    787         doc.kofa_footer = footer
     784            doc.ikoba_headtitle = headerline
     785        doc.ikoba_title = title
     786        doc.ikoba_author = author
     787        doc.ikoba_footer = footer
    788788        doc.sigs_in_footer = sigs_in_footer
    789789        if note is not None:
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/reports.py

    r9680 r11949  
    2121from zope.component import getUtility, queryUtility
    2222from zope.location.location import located
    23 from waeup.kofa.interfaces import IJobManager, IKofaUtils
    24 from waeup.kofa.interfaces import MessageFactory as _
    25 from waeup.kofa.browser.layout import KofaPage
    26 from waeup.kofa.reports import IReportsContainer, IReportGenerator
    27 from waeup.kofa.reports import get_generators
     23from waeup.ikoba.interfaces import IJobManager, IIkobaUtils
     24from waeup.ikoba.interfaces import MessageFactory as _
     25from waeup.ikoba.browser.layout import IkobaPage
     26from waeup.ikoba.reports import IReportsContainer, IReportGenerator
     27from waeup.ikoba.reports import get_generators
    2828
    2929grok.templatedir('templates')
    3030
    31 class ReportsContainerPage(KofaPage):
     31class ReportsContainerPage(IkobaPage):
    3232    """A view on a reports container.
    3333    """
     
    4848            self.context.delete_report_entry(entry)
    4949            self.flash('Report discarded: %s' % job_id)
    50             ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
     50            ob_class = self.__implemented__.__name__.replace('waeup.ikoba.','')
    5151            grok.getSite().logger.info(
    5252                '%s - report %s discarded' % (ob_class, job_id))
     
    7272                starttime = starttime.astimezone(
    7373                    getUtility(
    74                         IKofaUtils).tzinfo).strftime("%Y-%m-%d %H:%M:%S %Z")
     74                        IIkobaUtils).tzinfo).strftime("%Y-%m-%d %H:%M:%S %Z")
    7575            new_entry = (job_id, descr, status, job.finished, job.finished \
    7676                and not job.failed, not job.finished, starttime, user)
     
    104104        return None
    105105
    106 class ReportsContainerCreate(KofaPage):
     106class ReportsContainerCreate(IkobaPage):
    107107    """Create a new report.
    108108    """
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/changepw.pt

    r8777 r11949  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       i18n:domain="waeup.kofa" enctype="multipart/form-data">
     2      i18n:domain="waeup.ikoba" enctype="multipart/form-data">
    33
    44  <table class="form-table">
     
    1818
    1919  <p i18n:translate="email_address_problem">
    20     Enter the email address stored in Kofa.
     20    Enter the email address stored in Ikoba.
    2121    You can't change your email address here.
    2222    If you've forgotten your email address or the email
    23     address stored in Kofa is wrong or no longer valid,
     23    address stored in Ikoba is wrong or no longer valid,
    2424    use the enquiries form to request a change
    2525    of address.
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/configurationmanagepage.pt

    r11254 r11949  
    11<form action="." tal:attributes="action request/URL" method="POST"
    2       enctype="multipart/form-data" i18n:domain="waeup.kofa">
     2      enctype="multipart/form-data" i18n:domain="waeup.ikoba">
    33  <ul class="tabs nav nav-tabs" data-tabs="tabs">
    44    <li class="active">
     
    2727    <div id="tab2" class="tab-pane">
    2828      <br />
    29       <table class="kofa-data-table dataTableManage">
     29      <table class="ikoba-data-table dataTableManage">
    3030        <thead>
    3131          <tr>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterexportpage.pt

    r11947 r11949  
    3737<br /><br />
    3838
    39 <table i18n:domain="waeup.kofa" class="table table-condensed table-hover">
     39<table i18n:domain="waeup.ikoba" class="table table-condensed table-hover">
    4040  <thead>
    4141    <tr>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterfinishedpage.pt

    r11460 r11949  
    44  imports. The files contain the imported datasets.
    55</p>
    6 <table i18n:domain="waeup.kofa" class="kofa-data-table dataTableFiles">
     6<table i18n:domain="waeup.ikoba" class="ikoba-data-table dataTableFiles">
    77  <thead>
    88    <tr>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterimport1page.pt

    r11254 r11949  
    1 <h3 i18n:domain="waeup.kofa" i18n:translate="">Step 1</h3>
    2 <p i18n:domain="waeup.kofa" i18n:translate="">
     1<h3 i18n:domain="waeup.ikoba" i18n:translate="">Step 1</h3>
     2<p i18n:domain="waeup.ikoba" i18n:translate="">
    33  Using batch processing you can mass-create, mass-update, or
    44  mass-remove datasets from the database using CSV files.
    55</p>
    6 <p i18n:domain="waeup.kofa" i18n:translate="">
     6<p i18n:domain="waeup.ikoba" i18n:translate="">
    77  Please select a file for processing from the list below.
    88</p>
    9 <form i18n:domain="waeup.kofa" method="POST">
     9<form i18n:domain="waeup.ikoba" method="POST">
    1010  <table class="table">
    1111    <thead>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterimport2page.pt

    r11254 r11949  
    1 <h3 i18n:domain="waeup.kofa" i18n:translate="">Step 2</h3>
    2 <form i18n:domain="waeup.kofa" method="POST">
     1<h3 i18n:domain="waeup.ikoba" i18n:translate="">Step 2</h3>
     2<form i18n:domain="waeup.ikoba" method="POST">
    33  <p>
    44    <b i18n:translate="">File:</b>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterimport3page.pt

    r11254 r11949  
    1 <div i18n:domain="waeup.kofa" i18n:translate=""
     1<div i18n:domain="waeup.ikoba" i18n:translate=""
    22  class="alert alert-success" tal:condition="not: view/getWarnings">
    33  Header fields OK
    44</div>
    55
    6 <h3 i18n:domain="waeup.kofa" i18n:translate="">Step 3</h3>
    7 <form i18n:domain="waeup.kofa">
     6<h3 i18n:domain="waeup.ikoba" i18n:translate="">Step 3</h3>
     7<form i18n:domain="waeup.ikoba">
    88  <p i18n:translate="">
    99    Eventually modify headerfields of import file below.
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterimport4page.pt

    r11254 r11949  
    1 <h3 i18n:domain="waeup.kofa" i18n:translate="">Step 4</h3>
    2 <p i18n:domain="waeup.kofa" i18n:translate="">
     1<h3 i18n:domain="waeup.ikoba" i18n:translate="">Step 4</h3>
     2<p i18n:domain="waeup.ikoba" i18n:translate="">
    33  Batch processing finished.
    44</p>
    5 <p i18n:domain="waeup.kofa">
     5<p i18n:domain="waeup.ikoba">
    66  <b i18n:translate="">File:</b> <span tal:content="view/filename">Filename.csv</span>
    77</p>
    8 <p i18n:domain="waeup.kofa">
     8<p i18n:domain="waeup.ikoba">
    99  <b i18n:translate="">Processor:</b>
    1010  <span tal:content="view/importer/name">Importer Name</span>
    1111</p>
    12 <p i18n:domain="waeup.kofa">
     12<p i18n:domain="waeup.ikoba">
    1313  <b i18n:translate="">Processing mode: </b>
    1414  <span tal:content="view/mode">mode</span>
    1515</p>
    16 <form method="POST" i18n:domain="waeup.kofa">
     16<form method="POST" i18n:domain="waeup.ikoba">
    1717  <input class="btn btn-primary" type="submit" name="finish"
    1818    tal:attributes="value view/back_button" />
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterlogspage.pt

    r11863 r11949  
    1 <div i18n:domain="waeup.kofa" tal:define="files view/files">
     1<div i18n:domain="waeup.ikoba" tal:define="files view/files">
    22  <p i18n:translate="" tal:condition="not: files">
    33  Currently no log files are available.
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacentermanagepage.pt

    r11254 r11949  
    1 <form  i18n:domain="waeup.kofa" method="POST">
     1<form  i18n:domain="waeup.ikoba" method="POST">
    22
    33  <br />
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenterpage.pt

    r11460 r11949  
    1 <p  i18n:domain="waeup.kofa" i18n:translate="">
     1<p  i18n:domain="waeup.ikoba" i18n:translate="">
    22The data center helps you to manage portal data. You can upload CSV
    33files here, which will be available for import afterwards.
    44</p>
    55
    6 <p i18n:domain="waeup.kofa">
     6<p i18n:domain="waeup.ikoba">
    77  <b i18n:translate="">Storage path:</b>
    88  <span tal:content="context/storage">/foo/bar</span>
     
    1010
    1111<form action="." tal:attributes="action request/URL" method="post"
    12       i18n:domain="waeup.kofa" enctype="multipart/form-data">
    13     <table i18n:domain="waeup.kofa" class="kofa-data-table dataTableManageFiles">
     12      i18n:domain="waeup.ikoba" enctype="multipart/form-data">
     13    <table i18n:domain="waeup.ikoba" class="ikoba-data-table dataTableManageFiles">
    1414      <thead>
    1515        <tr>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/datacenteruploadpage.pt

    r11558 r11949  
    7070<h2 i18n:translate="">Available Processors (Importers)</h2>
    7171
    72 <table i18n:domain="waeup.kofa" class="table table-condensed">
     72<table i18n:domain="waeup.ikoba" class="table table-condensed">
    7373  <thead>
    7474    <tr>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/default_waeup_display_form.pt

    r8114 r11949  
    1 <table class="form-table" i18n:domain="waeup.kofa"
     1<table class="form-table" i18n:domain="waeup.ikoba"
    22  tal:define="files provider:files">
    33  <tbody>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/fileupload.pt

    r11569 r11949  
    1 <tr i18n:domain="waeup.kofa" tal:condition = "viewlet/show_viewlet">
     1<tr i18n:domain="waeup.ikoba" tal:condition = "viewlet/show_viewlet">
    22  <td class="fieldname">
    33    <span tal:replace="viewlet/label">FILENAME</span>:
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/loginpage.pt

    r11254 r11949  
    1 <form i18n:domain="waeup.kofa" method="post" class="form-horizontal">
     1<form i18n:domain="waeup.ikoba" method="post" class="form-horizontal">
    22  <br />
    33  <div class="form-group">
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/myrolespage.pt

    r7811 r11949  
    1 <h3 i18n:domain="waeup.kofa"
     1<h3 i18n:domain="waeup.ikoba"
    22    i18n:translate="">My Portal Roles:</h3>
    3 <table i18n:domain="waeup.kofa" class="form-table">
     3<table i18n:domain="waeup.ikoba" class="form-table">
    44<tr tal:repeat="role view/getSiteRoles">
    55    <td>
     
    99</table>
    1010
    11 <h3 i18n:domain="waeup.kofa"
     11<h3 i18n:domain="waeup.ikoba"
    1212    i18n:translate="">My Local Roles:</h3>
    1313<table class="form-table">
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/notfound.pt

    r7811 r11949  
    1 <h2 i18n:domain="waeup.kofa" i18n:translate="">
     1<h2 i18n:domain="waeup.ikoba" i18n:translate="">
    22  The page you are trying to access is not available.
    33</h2>
    44
    5 <div i18n:domain="waeup.kofa">
     5<div i18n:domain="waeup.ikoba">
    66  <b i18n:translate="">Please note the following:</b></div>
    7 <div i18n:domain="waeup.kofa">
     7<div i18n:domain="waeup.ikoba">
    88  <ol class="list">
    99    <li i18n:translate="">
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/reportscontainercreate.pt

    r11254 r11949  
    1 <form  i18n:domain="waeup.kofa"  method="POST">
     1<form  i18n:domain="waeup.ikoba"  method="POST">
    22  <p i18n:translate="">
    33    Here you can create reports representing portal data.  Please pick
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/reportscontainerpage.pt

    r11254 r11949  
    1 <table i18n:domain="waeup.kofa" class="table">
     1<table i18n:domain="waeup.ikoba" class="table">
    22  <thead>
    33    <tr>
     
    4747  </tbody>
    4848</table>
    49 <form method="POST" i18n:domain="waeup.kofa">
     49<form method="POST" i18n:domain="waeup.ikoba">
    5050  <a tal:attributes="href python:view.url(context, 'create')"
    5151     class="btn btn-primary" i18n:translate="">
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/staffsitelayout.pt

    r11947 r11949  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" i18n:domain="waeup.kofa">
     2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" i18n:domain="waeup.ikoba">
    33  <head>
    44
    55    <!-- Diazo element-->
    66    <title i18n:translate="">
    7       WAeUP.Kofa - Student Management System
     7      WAeUP.Ikoba - Student Management System
    88    </title> 
    99    <!-- /Diazo element-->
     
    2020
    2121  <!-- Diazo element-->
    22   <body class="kofa-body">
     22  <body class="ikoba-body">
    2323
    2424    <!-- Diazo element-->
    25     <a class="kofa-brand-link" href="#"
     25    <a class="ikoba-brand-link" href="#"
    2626        tal:attributes="href python: view.url(layout.site)"
    2727        tal:content="layout/getAppAcronym">ACRONYM
     
    3030
    3131    <!-- Diazo element-->
    32     <ul class="nav kofa-navbar-left">
     32    <ul class="nav ikoba-navbar-left">
    3333      <tal:primary_nav content="structure provider:primary_nav" />
    3434    </ul>
     
    3636
    3737    <!-- Diazo element-->
    38     <ul class="nav secondary-nav kofa-navbar-right">
     38    <ul class="nav secondary-nav ikoba-navbar-right">
    3939      <li tal:condition="not: layout/isAuthenticated">
    4040      <a href="#" i18n:translate=""
     
    7575    <div class="sidebar well">
    7676        <div tal:condition="layout/isAuthenticated">
    77           <div class="kofa-sidebar-title" tal:content="layout/getUserTitle">USERNAME</div>
     77          <div class="ikoba-sidebar-title" tal:content="layout/getUserTitle">USERNAME</div>
    7878          <ul class="nav">
    7979            <tal:left content="structure provider:left_manage" />
     
    8484
    8585    <!-- Diazo element-->
    86     <div class="kofa-content">
     86    <div class="ikoba-content">
    8787      <div class="actionbar" tal:condition="provider:actionbar">
    8888        <tal:actionbar content="structure provider:actionbar" />&nbsp;
     
    106106        </ul>
    107107      </div>
    108       <h1 class="kofa-content-label"
     108      <h1 class="ikoba-content-label"
    109109          tal:condition="view/label|nothing"
    110110          tal:content="structure view/label">LABEL</h1>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/studentsitelayout.pt

    r11947 r11949  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2 <html xmlns="http://www.w3.org/1999/xhtml" i18n:domain="waeup.kofa">
     2<html xmlns="http://www.w3.org/1999/xhtml" i18n:domain="waeup.ikoba">
    33  <head>
    44    <title i18n:translate="">
    5       WAeUP.Kofa - Student Management System
     5      WAeUP.Ikoba - Student Management System
    66    </title>
    77    <!--base href="http://localhost:8080/app/@@page"
     
    1010    <meta name="robots" content="index, follow" />
    1111    <link rel="stylesheet" media="only screen and (max-device-width: 480px)"
    12         tal:attributes="href python: view.url(layout.site, '@@/waeup.kofa.browser/mobile.css')"
     12        tal:attributes="href python: view.url(layout.site, '@@/waeup.ikoba.browser/mobile.css')"
    1313        type="text/css" />
    1414    <link rel="alternate" type="application/rss+xml" title="RSS"
     
    1919
    2020  <!-- Diazo element-->
    21   <body class="kofa-body">
     21  <body class="ikoba-body">
    2222
    2323    <!-- Diazo element-->
    24     <a class="kofa-brand-link" href="#"
     24    <a class="ikoba-brand-link" href="#"
    2525        tal:attributes="href python: view.url(layout.site)"
    2626        tal:content="layout/getAppAcronym">ACRONYM</a>
     
    2828
    2929    <!-- Diazo element-->
    30     <ul class="nav kofa-navbar-left">
     30    <ul class="nav ikoba-navbar-left">
    3131        <tal:primary_nav content="structure provider:primary_nav" />
    3232    </ul>
     
    3434
    3535    <!-- Diazo element-->
    36     <ul class="nav secondary-nav kofa-navbar-right">
     36    <ul class="nav secondary-nav ikoba-navbar-right">
    3737      <li tal:condition="not: layout/isAuthenticated">
    3838      <a href="#" i18n:translate=""
     
    7171
    7272    <!-- Diazo element-->
    73     <div class="kofa-content">
     73    <div class="ikoba-content">
    7474      <div class="actionbar" tal:condition="provider:actionbar">
    7575        <tal:actionbar content="structure provider:actionbar" />&nbsp;
     
    9292        </ul>
    9393      </div>
    94       <h1 class="kofa-content-label"
     94      <h1 class="ikoba-content-label"
    9595          tal:condition="view/label|nothing"
    9696          tal:content="structure view/label">Label</h1>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/usereditformpage.pt

    r11947 r11949  
    11<form action="." tal:attributes="action request/URL" method="post"
    2       i18n:domain="waeup.kofa" enctype="multipart/form-data"
     2      i18n:domain="waeup.ikoba" enctype="multipart/form-data"
    33      autocomplete="off">
    44
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/templates/userscontainerpage.pt

    r11254 r11949  
    1 <table i18n:domain="waeup.kofa" class="kofa-data-table dataTable">
     1<table i18n:domain="waeup.ikoba" class="ikoba-data-table dataTable">
    22  <thead>
    33    <tr>
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/tests/test_async.py

    r9217 r11949  
    88from zope.security.interfaces import Unauthorized
    99from zope.testbrowser.testing import Browser
    10 from waeup.kofa.app import University
    11 from waeup.kofa.async import AsyncJob, get_job_id
    12 from waeup.kofa.interfaces import IJobManager
    13 from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer
    14 from waeup.kofa.tests.test_async import FunctionalAsyncTestCase
     10from waeup.ikoba.app import University
     11from waeup.ikoba.async import AsyncJob, get_job_id
     12from waeup.ikoba.interfaces import IJobManager
     13from waeup.ikoba.testing import FunctionalTestCase, FunctionalLayer
     14from waeup.ikoba.tests.test_async import FunctionalAsyncTestCase
    1515
    1616def fake_get_export_jobs_status(user_id=None):
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/tests/test_captcha.py

    r7811 r11949  
    2121from zope.interface import verify
    2222from zope.publisher.browser import TestRequest
    23 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    24 from waeup.kofa.browser.captcha import (
     23from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase
     24from waeup.ikoba.browser.captcha import (
    2525    CaptchaResponse, CaptchaRequest, NullCaptcha, StaticCaptcha, ReCaptcha,
    2626    CaptchaManager)
    27 from waeup.kofa.browser.interfaces import (
     27from waeup.ikoba.browser.interfaces import (
    2828    ICaptchaRequest, ICaptchaResponse, ICaptcha, ICaptchaConfig,
    2929    ICaptchaManager)
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/tests/test_doctests.py

    r7811 r11949  
    1818"""Setup doctests for browser module.
    1919"""
    20 from waeup.kofa.testing import get_doctest_suite
     20from waeup.ikoba.testing import get_doctest_suite
    2121
    2222def test_suite():
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/tests/test_pdf.py

    r10556 r11949  
    44from reportlab.lib import colors
    55from reportlab.platypus.flowables import PageBreak
    6 from waeup.kofa.browser.pdf import (
     6from waeup.ikoba.browser.pdf import (
    77    format_html, normalize_signature, format_signatures,
    88    vert_signature_cell, horiz_signature_cell, signature_row, get_sig_tables,
     
    311311    # and return its path.
    312312    tmp_dir = os.path.join(
    313         tempfile.gettempdir(), 'waeup.kofa.pdf-samples')
     313        tempfile.gettempdir(), 'waeup.ikoba.pdf-samples')
    314314    if not os.path.exists(tmp_dir):
    315315        os.mkdir(tmp_dir)
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/tests/test_permissions.py

    r11947 r11949  
    3131from zope.security.interfaces import Unauthorized
    3232from zope.testbrowser.testing import Browser
    33 from waeup.kofa.app import University
    34 from waeup.kofa.testing import (
     33from waeup.ikoba.app import University
     34from waeup.ikoba.testing import (
    3535    FunctionalLayer, FunctionalTestCase, get_all_loggers, remove_new_loggers,
    3636    remove_logger)
  • main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/viewlets.py

    r11947 r11949  
    2323from zope.location.interfaces import ISite
    2424from zope.traversing.browser import absoluteURL
    25 from waeup.kofa.browser.pages import (
     25from waeup.ikoba.browser.pages import (
    2626    UniversityPage, DatacenterPage,
    2727    UsersContainerPage, UserManageFormPage)
    28 from waeup.kofa.browser.interfaces import (
     28from waeup.ikoba.browser.interfaces import (
    2929    IBreadcrumbContainer, IUniversity, IUsersContainer)
    30 from waeup.kofa.interfaces import (
    31     IKofaUtils, IKofaObject, IKofaXMLExporter,
    32     IKofaXMLImporter, IDataCenter, IUserAccount)
    33 from waeup.kofa.browser.layout import KofaPage, default_primary_nav_template
    34 from waeup.kofa.utils.helpers import get_user_account
    35 
    36 from waeup.kofa.interfaces import MessageFactory as _
     30from waeup.ikoba.interfaces import (
     31    IIkobaUtils, IIkobaObject, IIkobaXMLExporter,
     32    IIkobaXMLImporter, IDataCenter, IUserAccount)
     33from waeup.ikoba.browser.layout import IkobaPage, default_primary_nav_template
     34from waeup.ikoba.utils.helpers import get_user_account
     35
     36from waeup.ikoba.interfaces import MessageFactory as _
    3737
    3838grok.templatedir('templates')
    39 grok.context(IKofaObject) # Make IKofaObject the default context
     39grok.context(IIkobaObject) # Make IIkobaObject the default context
    4040
    4141class ManageSidebar(grok.ViewletManager):
     
    8787    """
    8888    grok.baseclass()
    89     grok.context(IKofaObject)
     89    grok.context(IIkobaObject)
    9090    grok.viewletmanager(ActionBar)
    9191    icon = 'actionicon_modify.png' # File must exist in static/
     
    191191
    192192class BreadCrumbs(grok.Viewlet):
    193     grok.context(IKofaObject)
     193    grok.context(IIkobaObject)
    194194    grok.viewletmanager(BreadCrumbManager)
    195195    grok.order(1)
     
    216216    """
    217217    grok.viewletmanager(LanguageManager)
    218     grok.context(IKofaObject)
     218    grok.context(IIkobaObject)
    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(IIkobaUtils).PREFERRED_LANGUAGES_DICT
    224224        html = u''
    225225        for key, value in sorted(
     
    260260    """
    261261    grok.viewletmanager(ManageSidebar)
    262     grok.context(IKofaObject)
     262    grok.context(IIkobaObject)
    263263    grok.view(Interface)
    264264    grok.order(2)
     
    295295    grok.baseclass()
    296296    grok.viewletmanager(ManageSidebar)
    297     grok.context(IKofaObject)
     297    grok.context(IIkobaObject)
    298298    grok.view(Interface)
    299299    grok.order(1)
     
    573573    target_viewname = 'reports'
    574574
    575 # The SubobjectLister and its viewlets below are not used in Kofa.
     575# The SubobjectLister and its viewlets below are not used in Ikoba.
    576576
    577577class SubobjectLister(grok.ViewletManager):
Note: See TracChangeset for help on using the changeset viewer.