Changeset 16993 for main/kofacustom.lpng/trunk
- Timestamp:
- 6 Jul 2022, 07:49:44 (2 years ago)
- Location:
- main/kofacustom.lpng/trunk/src/kofacustom/lpng
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.lpng/trunk/src/kofacustom/lpng/browser/pages.py
r16991 r16993 24 24 from kofacustom.lpng.interfaces import ( 25 25 ICustomSessionConfiguration, ICustomSessionConfigurationAdd) 26 from waeup.kofa.browser.viewlets import FacultiesTab, ManageReports27 28 class FacultiesTab(FacultiesTab):29 """Faculties-tab in primary navigation.30 """31 grok.context(IKofaObject)32 33 @property34 def link_target(self):35 return36 37 class ManageReports(ManageReports):38 """A link to reports, placed in upper left box.39 """40 41 def render(self):42 return ''43 26 44 27 class CustomSessionConfigurationAddFormPage(SessionConfigurationAddFormPage): -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/interfaces.py
r16983 r16993 21 21 from zc.sourcefactory.basic import BasicSourceFactory 22 22 from waeup.kofa.interfaces import (SimpleKofaVocabulary, 23 ISessionConfiguration, academic_sessions_vocab) 23 ISessionConfiguration, academic_sessions_vocab, IKofaObject, 24 DisablePaymentGroupSource) 24 25 25 26 _ = MessageFactory = zope.i18nmessageid.MessageFactory('kofacustom.lpng') 26 27 27 class ICustomSessionConfiguration(I SessionConfiguration):28 class ICustomSessionConfiguration(IKofaObject): 28 29 """A session configuration object. 29 30 """ 30 31 31 # Base fees, do not remove.32 33 clearance_fee = schema.Float(34 title = _(u'Acceptance Fee'),35 default = 0.0,36 re quired = False,32 academic_session = schema.Choice( 33 title = _(u'Session'), 34 source = academic_sessions_vocab, 35 default = None, 36 required = True, 37 readonly = True, 37 38 ) 38 39 39 booking_fee = schema.Float( 40 title = _(u'Bed Booking Fee'), 41 default = 0.0, 40 payment_disabled = schema.List( 41 title = _(u'Payment disabled'), 42 value_type = schema.Choice( 43 source = DisablePaymentGroupSource(), 44 ), 42 45 required = False, 46 defaultFactory=list, 43 47 ) 44 48 45 maint_fee = schema.Float( 46 title = _(u'Rent (fallback)'), 47 default = 0.0, 48 required = False, 49 ) 50 51 late_registration_fee = schema.Float( 52 title = _(u'Late Course Reg. Fee'), 53 default = 0.0, 54 required = False, 55 ) 56 57 transcript_fee = schema.Float( 58 title = _(u'Transcript Fee'), 59 default = 0.0, 60 required = False, 61 ) 62 63 transfer_fee = schema.Float( 64 title = _(u'Transfer Fee'), 65 default = 0.0, 66 required = False, 67 ) 49 def getSessionString(): 50 """Return the session string from the vocabulary. 51 """ 68 52 69 53 interswitch_enabled = schema.Bool( -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/locales/en/LC_MESSAGES/waeup.kofa.po
r16991 r16993 19 19 20 20 msgid "Applicants Containers" 21 msgstr " "21 msgstr "Registrants Containers" 22 22 23 23 msgid "Applicants" 24 msgstr " "24 msgstr "Registrants" 25 25 26 26 msgid "Applicant" 27 msgstr " "27 msgstr "Registrant" 28 28 29 29 msgid "Applicants Section" … … 31 31 32 32 msgid "Registration Number or Applicant Id:" 33 msgstr " "33 msgstr "Registration Number or Registrant Id:" 34 34 35 35 msgid "Number of Applicants" 36 msgstr " "36 msgstr "Number of Registrants" 37 37 38 38 msgid "Application" 39 39 msgstr "Registration" 40 41 msgid "Manage applicants section" 42 msgstr "Manage registration section" 43 44 msgid "Add applicants container" 45 msgstr "Add registrants container" 46 47 msgid "Application Period" 48 msgstr "Registration Period" 49 50 msgid "Find applicants" 51 msgstr "Find registrants" 52 53 msgid "Create student" 54 msgstr "Create member" 55 56 msgid "Create students" 57 msgstr "Create members" 58 59 msgid "Applicant Id" 60 msgstr "Registrant Id" 61 62 msgid "Find applicant" 63 msgstr "Find registrant" 64 65 msgid "Edit academic session ${a} configuration" 66 msgstr "Edit session ${a} configuration" 67 68 msgid "" 69 "User Name, Student or Applicant Id, Matriculation or Registration Number" 70 msgstr "User Name, Registrant Id or Registration Number" 40 71 41 72 #. Default: "You don't have an account because you are a fresh student, or your student record has just been created? Acquire a Password Activation Code (PWD) and inititialize your student account <strong><a href=\"setpassword\"> here</a></strong>." … … 52 83 msgid "login_trouble4" 53 84 msgstr "" 54 "You forgot your user name, applicant id or password? <a href=\"changepw\" "85 "You forgot your user name, registrant id or password? <a href=\"changepw\" " 55 86 "class=\"btn btn-success btn-xs\">Request a new password.</a>" 56 87 -
main/kofacustom.lpng/trunk/src/kofacustom/lpng/utils/utils.py
r16991 r16993 28 28 'donation': 'Donation', 29 29 } 30 31 DISABLE_PAYMENT_GROUP_DICT = { 32 } 33 34 APP_CATS_DICT = { 35 'basic': 'Basic Application', 36 'no': 'no application', 37 }
Note: See TracChangeset for help on using the changeset viewer.