- Timestamp:
- 14 May 2012, 10:04:25 (13 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 41 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/README.txt
r8020 r8444 1 The waeup. unibenpackage1 The waeup.aaue package 2 2 ************************ 3 3 -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/applicant.py
r8204 r8444 21 21 from waeup.kofa.applicants.applicant import Applicant, ApplicantFactory 22 22 from waeup.kofa.utils.helpers import attrs_to_fields 23 from waeup. uniben.applicants.interfaces import(23 from waeup.aaue.applicants.interfaces import( 24 24 ICustomApplicant, IUGApplicantEdit, IPGApplicantEdit) 25 25 -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/batching.py
r8378 r8444 21 21 from waeup.kofa.utils.batching import BatchProcessor 22 22 from waeup.kofa.applicants.batching import ApplicantProcessor 23 from waeup. uniben.applicants.interfaces import ICustomApplicant23 from waeup.aaue.applicants.interfaces import ICustomApplicant 24 24 25 25 class CustomApplicantProcessor(ApplicantProcessor): -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r8421 r8444 35 35 PaymentReceiptActionButton) 36 36 from waeup.kofa.applicants.pdf import PDFApplicationSlip 37 from waeup. uniben.applicants.interfaces import (37 from waeup.aaue.applicants.interfaces import ( 38 38 IPGApplicant, IUGApplicant, IPGApplicantEdit, IUGApplicantEdit, 39 39 ICustomApplicantOnlinePayment) 40 from waeup. uniben.interfaces import MessageFactory as _40 from waeup.aaue.interfaces import MessageFactory as _ 41 41 42 42 #class RequestCallbackActionButton(RequestCallbackActionButton): -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/export.py
r8441 r8444 21 21 from waeup.kofa.applicants.interfaces import IApplicantBaseData 22 22 from waeup.kofa.applicants.export import ApplicantsExporter 23 from waeup. uniben.applicants.interfaces import IUGApplicant, IPGApplicant23 from waeup.aaue.applicants.interfaces import IUGApplicant, IPGApplicant 24 24 25 25 class CustomApplicantsExporter(ApplicantsExporter): -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py
r8430 r8444 27 27 from waeup.kofa.schema import FormattedDate 28 28 from waeup.kofa.students.vocabularies import nats_vocab 29 from waeup. uniben.interfaces import (29 from waeup.aaue.interfaces import ( 30 30 lgas_vocab, high_qual, high_grade, exam_types) 31 from waeup. uniben.interfaces import MessageFactory as _32 from waeup. uniben.payments.interfaces import ICustomOnlinePayment31 from waeup.aaue.interfaces import MessageFactory as _ 32 from waeup.aaue.payments.interfaces import ICustomOnlinePayment 33 33 34 34 class IUGApplicant(IApplicantBaseData): -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/payment.py
r8421 r8444 24 24 from waeup.kofa.applicants.payment import ApplicantOnlinePayment 25 25 from waeup.kofa.utils.helpers import attrs_to_fields 26 from waeup. uniben.applicants.interfaces import ICustomApplicantOnlinePayment26 from waeup.aaue.applicants.interfaces import ICustomApplicantOnlinePayment 27 27 28 28 class CustomApplicantOnlinePayment(ApplicantOnlinePayment): -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests.py
r8196 r8444 33 33 from waeup.kofa.applicants.tests.test_batching import ApplicantImportExportSetup 34 34 from waeup.kofa.interfaces import IBatchProcessor 35 from waeup. uniben.testing import FunctionalLayer36 from waeup. uniben.applicants.export import CustomApplicantsExporter35 from waeup.aaue.testing import FunctionalLayer 36 from waeup.aaue.applicants.export import CustomApplicantsExporter 37 37 38 38 -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py
r8430 r8444 23 23 from hurry.workflow.interfaces import IWorkflowInfo, InvalidTransitionError 24 24 from waeup.kofa.applicants.utils import ApplicantsUtils 25 from waeup. uniben.interfaces import MessageFactory as _25 from waeup.aaue.interfaces import MessageFactory as _ 26 26 27 27 -
main/waeup.aaue/trunk/src/waeup/aaue/browser/pages.py
r8247 r8444 19 19 from waeup.kofa.browser.pages import ( 20 20 SessionConfigurationAddFormPage, SessionConfigurationManageFormPage) 21 from waeup. uniben.interfaces import (21 from waeup.aaue.interfaces import ( 22 22 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) 23 23 -
main/waeup.aaue/trunk/src/waeup/aaue/browser/resources.py
r8441 r8444 21 21 ) 22 22 23 #: All local resources are registered under the name ``waeup_ uniben``.24 waeup_ uniben = Library('waeup_uniben', 'static')23 #: All local resources are registered under the name ``waeup_custom``. 24 waeup_custom = Library('waeup_custom', 'static') 25 25 26 26 custom_theme = ResourceInclusion( 27 waeup_ uniben, 'custom_theme.css',27 waeup_custom, 'custom_theme.css', 28 28 depends = [waeup_base_css]) 29 29 30 favicon = ResourceInclusion(waeup_ uniben, 'favicon.ico')30 favicon = ResourceInclusion(waeup_custom, 'favicon.ico') -
main/waeup.aaue/trunk/src/waeup/aaue/browser/static/custom_theme.css
r8441 r8444 44 44 45 45 body { 46 background-color: #f3eff2;47 46 } 48 47 -
main/waeup.aaue/trunk/src/waeup/aaue/browser/tests.py
r8441 r8444 22 22 from zope.security.interfaces import Unauthorized 23 23 from waeup.kofa.testing import FunctionalTestCase 24 from waeup. uniben.testing import FunctionalLayer24 from waeup.aaue.testing import FunctionalLayer 25 25 from waeup.kofa.app import University 26 26 … … 52 52 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 53 53 self.browser.open('http://localhost/app/configuration') 54 self.assertMatches('... UnibenTheme...', self.browser.contents)54 self.assertMatches('...AAUE Theme...', self.browser.contents) 55 55 self.browser.getControl(name="form.skin").value = ['custom theme'] 56 56 self.browser.getControl("Save").click() … … 58 58 return 59 59 60 def test_access_live_url(self):61 # We can't access the system with basic authentication62 self.browser.addHeader('Authorization', 'Basic grok:grok')63 self.assertRaises(64 Unauthorized, self.browser.open, 'https://uniben-kofa.waeup.org')65 return60 #def test_access_live_url(self): 61 # # We can't access the system with basic authentication 62 # self.browser.addHeader('Authorization', 'Basic grok:grok') 63 # self.assertRaises( 64 # Unauthorized, self.browser.open, 'https://aaue.waeup.org') 65 # return -
main/waeup.aaue/trunk/src/waeup/aaue/browser/theming.py
r8441 r8444 18 18 import grok 19 19 from waeup.kofa.browser.interfaces import ITheme 20 from waeup. uniben.browser.resources import custom_theme, favicon20 from waeup.aaue.browser.resources import custom_theme, favicon 21 21 22 from waeup. uniben.interfaces import MessageFactory as _22 from waeup.aaue.interfaces import MessageFactory as _ 23 23 24 24 class CustomTheme(grok.GlobalUtility): … … 28 28 grok.name('custom theme') 29 29 30 description = _(u' UnibenTheme')30 description = _(u'AAUE Theme') 31 31 32 32 def getResources(self): -
main/waeup.aaue/trunk/src/waeup/aaue/configuration.py
r8204 r8444 24 24 from waeup.kofa.configuration import ( 25 25 SessionConfigurationFactory, SessionConfiguration) 26 from waeup. uniben.interfaces import (26 from waeup.aaue.interfaces import ( 27 27 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) 28 28 -
main/waeup.aaue/trunk/src/waeup/aaue/configure.zcml
r8035 r8444 1 1 <configure xmlns="http://namespaces.zope.org/zope"> 2 2 3 <include package="waeup. uniben" file="locales.zcml" />3 <include package="waeup.aaue" file="locales.zcml" /> 4 4 <include package="grok" /> 5 <includeOverrides package="waeup. uniben" file="overrides.zcml" />5 <includeOverrides package="waeup.aaue" file="overrides.zcml" /> 6 6 7 7 </configure> -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r8433 r8444 24 24 from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent 25 25 from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant 26 from waeup. uniben.interfaces import MessageFactory as _27 from waeup. uniben.students.interfaces import ICustomStudentOnlinePayment28 from waeup. uniben.applicants.interfaces import ICustomApplicantOnlinePayment26 from waeup.aaue.interfaces import MessageFactory as _ 27 from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment 28 from waeup.aaue.applicants.interfaces import ICustomApplicantOnlinePayment 29 29 30 30 #TERMINAL_ID = '0500000003' -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r8430 r8444 20 20 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 21 21 from waeup.kofa.configuration import SessionConfiguration 22 from waeup. uniben.testing import FunctionalLayer22 from waeup.aaue.testing import FunctionalLayer 23 23 24 24 -
main/waeup.aaue/trunk/src/waeup/aaue/ftesting.zcml
r8441 r8444 3 3 xmlns:kofa="http://namespaces.waeup.org/kofa" 4 4 i18n_domain="waeup.custom" 5 package="waeup. uniben"5 package="waeup.aaue" 6 6 > 7 7 8 8 <include package="grok" /> 9 <includeOverrides package="waeup. uniben" />10 <includeOverrides package="waeup. uniben" file="mail.zcml"/>9 <includeOverrides package="waeup.aaue" /> 10 <includeOverrides package="waeup.aaue" file="mail.zcml"/> 11 11 12 12 <!-- Where should the datacenter reside by default? --> -
main/waeup.aaue/trunk/src/waeup/aaue/interfaces.py
r8441 r8444 21 21 from waeup.kofa.interfaces import (SimpleKofaVocabulary, 22 22 ISessionConfiguration, academic_sessions_vocab) 23 from waeup. uniben.utils.lgas import LGAS23 from waeup.aaue.utils.lgas import LGAS 24 24 25 25 _ = MessageFactory = zope.i18nmessageid.MessageFactory('waeup.custom') -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r8433 r8444 30 30 from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant 31 31 from waeup.kofa.payments.interfaces import payment_categories 32 from waeup. uniben.students.interfaces import ICustomStudentOnlinePayment33 from waeup. uniben.applicants.interfaces import ICustomApplicantOnlinePayment34 from waeup. uniben.interfaces import MessageFactory as _32 from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment 33 from waeup.aaue.applicants.interfaces import ICustomApplicantOnlinePayment 34 from waeup.aaue.interfaces import MessageFactory as _ 35 35 36 36 PRODUCT_ID = '57' 37 SITE_NAME = ' uniben-kofa.waeup.org'37 SITE_NAME = 'aaue.waeup.org' 38 38 PROVIDER_ACCT = '1010764827' 39 39 PROVIDER_BANK_ID = '117' 40 40 PROVIDER_ITEM_NAME = 'BT Education' 41 INSTITUTION_NAME = ' Uniben'41 INSTITUTION_NAME = 'AAUE' 42 42 CURRENCY = '566' 43 43 #QUERY_URL = 'https://webpay.interswitchng.com/paydirect/services/TransactionQueryURL.aspx' -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r8281 r8444 20 20 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 21 21 from waeup.kofa.configuration import SessionConfiguration 22 from waeup. uniben.testing import FunctionalLayer22 from waeup.aaue.testing import FunctionalLayer 23 23 24 24 # Also run tests that send requests to external servers? -
main/waeup.aaue/trunk/src/waeup/aaue/overrides.zcml
r8204 r8444 9 9 zope.publisher.interfaces.browser.IBrowserRequest" 10 10 provides="zope.formlib.interfaces.ISimpleInputWidget" 11 factory="waeup. uniben.widgets.phonewidget.CustomPhoneWidget"11 factory="waeup.aaue.widgets.phonewidget.CustomPhoneWidget" 12 12 permission="zope.Public" 13 13 /> -
main/waeup.aaue/trunk/src/waeup/aaue/permissions.py
r8441 r8444 20 20 21 21 class CRPUOfficer(grok.Role): 22 """ Permissions of Uniben CRPU members.22 """ Permissions of AAUE staff. 23 23 24 24 """ 25 25 26 26 grok.name('waeup.CRPUOfficer') 27 grok.title(u' Uniben CRPUOfficer')27 grok.title(u'AAUE Officer') 28 28 grok.permissions('waeup.managePortal', 'waeup.manageUsers', 29 29 'waeup.viewAcademics', 'waeup.manageAcademics', -
main/waeup.aaue/trunk/src/waeup/aaue/students/batching.py
r8204 r8444 24 24 students, studycourses, payment tickets and accommodation tickets. 25 25 """ 26 from waeup. uniben.students.interfaces import (26 from waeup.aaue.students.interfaces import ( 27 27 ICustomStudent, 28 28 ) -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r8421 r8444 33 33 from waeup.kofa.students.viewlets import ( 34 34 PaymentReceiptActionButton) 35 from waeup. uniben.students.interfaces import (35 from waeup.aaue.students.interfaces import ( 36 36 ICustomStudentBase, ICustomStudent, ICustomStudentPersonal, 37 37 ICustomUGStudentClearance,ICustomPGStudentClearance, 38 38 ICustomStudentOnlinePayment, 39 39 ) 40 from waeup. uniben.interfaces import MessageFactory as _40 from waeup.aaue.interfaces import MessageFactory as _ 41 41 42 42 #class RequestCallbackActionButton(RequestCallbackActionButton): -
main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py
r8441 r8444 29 29 from waeup.kofa.students.vocabularies import ( 30 30 nats_vocab, contextual_reg_num_source) 31 from waeup. uniben.interfaces import (31 from waeup.aaue.interfaces import ( 32 32 lgas_vocab, high_qual, high_grade, exam_types) 33 from waeup. uniben.interfaces import MessageFactory as _34 from waeup. uniben.payments.interfaces import ICustomOnlinePayment33 from waeup.aaue.interfaces import MessageFactory as _ 34 from waeup.aaue.payments.interfaces import ICustomOnlinePayment 35 35 36 36 class ICustomStudentBase(IStudentBase): -
main/waeup.aaue/trunk/src/waeup/aaue/students/payments.py
r8421 r8444 25 25 from waeup.kofa.students.payments import StudentOnlinePayment 26 26 from waeup.kofa.utils.helpers import attrs_to_fields 27 from waeup. uniben.students.interfaces import ICustomStudentOnlinePayment27 from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment 28 28 29 29 class CustomStudentOnlinePayment(StudentOnlinePayment): -
main/waeup.aaue/trunk/src/waeup/aaue/students/student.py
r8204 r8444 23 23 from waeup.kofa.utils.helpers import attrs_to_fields 24 24 from waeup.kofa.students.student import Student, StudentFactory 25 from waeup. uniben.students.interfaces import ICustomStudent, IStudentNavigation25 from waeup.aaue.students.interfaces import ICustomStudent, IStudentNavigation 26 26 27 27 -
main/waeup.aaue/trunk/src/waeup/aaue/students/studycourse.py
r8328 r8444 23 23 from waeup.kofa.students.studycourse import ( 24 24 StudentStudyCourse, StudentStudyCourseFactory) 25 from waeup. uniben.students.interfaces import (25 from waeup.aaue.students.interfaces import ( 26 26 ICustomStudentStudyCourse, IStudentNavigation) 27 27 from zope.interface import implementedBy -
main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py
r8326 r8444 27 27 StudentStudyLevel, CourseTicket, 28 28 CourseTicketFactory, StudentStudyLevelFactory) 29 from waeup. uniben.students.interfaces import (29 from waeup.aaue.students.interfaces import ( 30 30 ICustomStudentStudyLevel, IStudentNavigation, ICustomCourseTicket) 31 31 -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r8328 r8444 28 28 from waeup.kofa.students.batching import StudentProcessor 29 29 from waeup.kofa.students.interfaces import IStudentsUtils 30 from waeup. uniben.students.batching import CustomStudentProcessor31 from waeup. uniben.testing import FunctionalLayer32 from waeup. uniben.students.utils import get_school_fee33 from waeup. uniben.students.interfaces import (30 from waeup.aaue.students.batching import CustomStudentProcessor 31 from waeup.aaue.testing import FunctionalLayer 32 from waeup.aaue.students.utils import get_school_fee 33 from waeup.aaue.students.interfaces import ( 34 34 ICustomStudentStudyCourse, ICustomStudent, 35 35 ICustomStudentStudyLevel, ICustomCourseTicket) -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_student.py
r8326 r8444 22 22 from zope.interface import verify 23 23 from waeup.kofa.testing import FunctionalTestCase 24 from waeup. uniben.students.student import CustomStudent, CustomStudentFactory25 from waeup. uniben.students.studycourse import (24 from waeup.aaue.students.student import CustomStudent, CustomStudentFactory 25 from waeup.aaue.students.studycourse import ( 26 26 CustomStudentStudyCourse, CustomStudentStudyCourseFactory) 27 from waeup. uniben.students.studylevel import (27 from waeup.aaue.students.studylevel import ( 28 28 CustomStudentStudyLevel, CustomCourseTicket, 29 29 CustomStudentStudyLevelFactory, 30 30 CustomCourseTicketFactory) 31 from waeup. uniben.students.interfaces import (31 from waeup.aaue.students.interfaces import ( 32 32 ICustomStudent, ICustomStudentStudyCourse, 33 33 ICustomStudentStudyLevel, ICustomCourseTicket) 34 from waeup. uniben.testing import FunctionalLayer34 from waeup.aaue.testing import FunctionalLayer 35 35 36 36 -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r8441 r8444 21 21 from waeup.kofa.students.interfaces import IStudentsUtils 22 22 from waeup.kofa.accesscodes import create_accesscode 23 from waeup. uniben.interfaces import MessageFactory as _23 from waeup.aaue.interfaces import MessageFactory as _ 24 24 25 25 def get_school_fee(student): … … 130 130 } 131 131 132 # Unibenseparators132 # AAUE separators 133 133 SEPARATORS_DICT = { 134 134 'form.fst_sit_fname': _(u'First Sitting Record'), … … 139 139 'form.nysc_year': _(u'NYSC Information'), 140 140 'form.employer': _(u'Employment History'), 141 'form.former_matric': _(u'Former UnibenStudent'),141 'form.former_matric': _(u'Former AAUE Student'), 142 142 } 143 143 144 # Unibenprefix145 STUDENT_ID_PREFIX = u' B'144 # AAUE prefix 145 STUDENT_ID_PREFIX = u'E' -
main/waeup.aaue/trunk/src/waeup/aaue/students/viewlets.py
r8136 r8444 22 22 from waeup.kofa.students.browser import ExportPDFClearanceSlipPage 23 23 24 from waeup. uniben.interfaces import MessageFactory as _24 from waeup.aaue.interfaces import MessageFactory as _ 25 25 26 26 # LGA Identification -
main/waeup.aaue/trunk/src/waeup/aaue/testing.py
r8441 r8444 19 19 """ 20 20 import os.path 21 import waeup. uniben21 import waeup.aaue 22 22 from zope.app.testing.functional import ZCMLLayer 23 23 24 24 ftesting_zcml = os.path.join( 25 os.path.dirname(waeup. uniben.__file__), 'ftesting.zcml')25 os.path.dirname(waeup.aaue.__file__), 'ftesting.zcml') 26 26 FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer', 27 27 allow_teardown=True) -
main/waeup.aaue/trunk/src/waeup/aaue/tests/test_configuration.py
r8204 r8444 25 25 from waeup.kofa.tests.test_configuration import ( 26 26 ConfigurationTest, SessionConfigurationFactoryTest) 27 from waeup. uniben.configuration import (27 from waeup.aaue.configuration import ( 28 28 CustomSessionConfiguration, CustomSessionConfigurationFactory) 29 from waeup. uniben.interfaces import(29 from waeup.aaue.interfaces import( 30 30 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) 31 from waeup. uniben.testing import FunctionalLayer31 from waeup.aaue.testing import FunctionalLayer 32 32 33 33 class ConfigurationTest(ConfigurationTest): -
main/waeup.aaue/trunk/src/waeup/aaue/tests/test_datacenter.py
r8020 r8444 18 18 from waeup.kofa.datacenter import DataCenter 19 19 from waeup.kofa.testing import FunctionalTestCase 20 from waeup. uniben.testing import FunctionalLayer20 from waeup.aaue.testing import FunctionalLayer 21 21 22 22 -
main/waeup.aaue/trunk/src/waeup/aaue/tests/test_smtp.py
r8020 r8444 33 33 send_mail) 34 34 from waeup.kofa.testing import FunctionalTestCase 35 from waeup. uniben.testing import FunctionalLayer35 from waeup.aaue.testing import FunctionalLayer 36 36 37 37 # -
main/waeup.aaue/trunk/src/waeup/aaue/utils/tests.py
r8020 r8444 17 17 ## 18 18 from waeup.kofa.testing import FunctionalTestCase 19 from waeup. uniben.testing import FunctionalLayer19 from waeup.aaue.testing import FunctionalLayer 20 20 21 21 -
main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py
r8386 r8444 21 21 import pytz 22 22 from waeup.kofa.utils.utils import KofaUtils, sorted_phone_prefixes 23 from waeup. uniben.interfaces import MessageFactory as _23 from waeup.aaue.interfaces import MessageFactory as _ 24 24 25 25 INT_PHONE_PREFIXES = [
Note: See TracChangeset for help on using the changeset viewer.