Changeset 11291 for main/waeup.aaue/trunk
- Timestamp:
- 22 Feb 2014, 20:41:35 (11 years ago)
- Location:
- main/waeup.aaue/trunk
- Files:
-
- 6 deleted
- 15 edited
- 15 copied
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk
- Property svn:ignore
-
old new 5 5 develop-eggs 6 6 parts 7 sources 7 8 var
-
- Property svn:mergeinfo changed
/main/waeup.aaue/branches/henrik-diazo-themed (added) merged: 11100-11101,11110,11127,11133,11151,11250
- Property svn:ignore
-
main/waeup.aaue/trunk/CHANGES.txt
r11219 r11291 2 2 ******* 3 3 4 0.1.1dev (unreleased)5 =================== ==4 1.0dev (unreleased) 5 =================== 6 6 7 * No changes yet7 * Diazofied whole package. 8 8 9 9 -
main/waeup.aaue/trunk/buildout-zeo.cfg
r9887 r11291 13 13 site_zcml 14 14 zdaemon_conf 15 deploy_ini 16 debug_ini 15 raw_deploy_ini 16 raw_debug_ini 17 themed_deploy_ini 18 themed_debug_ini 17 19 profile_ini 18 20 zeo1_ini … … 23 25 # kofactl creation must be _after_ app! 24 26 kofactl 27 lxml 28 diazo 25 29 # For backward compatibility, telling buildout not to throw away 26 30 # the data and log subdirectories from the parts directory. … … 93 97 [zeo1_ini] 94 98 recipe = collective.recipe.template 95 input = etc/ zeo1.ini.in96 output = ${buildout:parts-directory}/etc/ zeo1.ini99 input = etc/themed/zeo1.ini.in 100 output = ${buildout:parts-directory}/etc/themed-zeo1.ini 97 101 98 102 [zeo2_ini] 99 103 recipe = collective.recipe.template 100 input = etc/ zeo2.ini.in101 output = ${buildout:parts-directory}/etc/ zeo2.ini104 input = etc/themed/zeo2.ini.in 105 output = ${buildout:parts-directory}/etc/themed-zeo2.ini 102 106 103 107 [zeo1_conf] … … 115 119 # See http://pypi.python.org/pypi/zc.recipe.egg for details... 116 120 recipe = zc.recipe.egg 117 eggs = waeup.aaue [beaker ]121 eggs = waeup.aaue [beaker, diazo] 118 122 arguments = "${buildout:parts-directory}/etc/zeo1.conf" 119 123 scripts = kofactl=zeo_client1 … … 122 126 # See http://pypi.python.org/pypi/zc.recipe.egg for details... 123 127 recipe = zc.recipe.egg 124 eggs = waeup.aaue [beaker ]128 eggs = waeup.aaue [beaker, diazo] 125 129 arguments = "${buildout:parts-directory}/etc/zeo2.conf" 126 130 scripts = kofactl=zeo_client2 -
main/waeup.aaue/trunk/buildout.cfg
r11205 r11291 18 18 site_zcml 19 19 zdaemon_conf 20 deploy_ini 21 debug_ini 20 raw_deploy_ini 21 raw_debug_ini 22 themed_deploy_ini 23 themed_debug_ini 22 24 profile_ini 23 25 waeupdocs … … 26 28 # kofactl creation must be _after_ app! 27 29 kofactl 30 lxml 31 diazo 28 32 # For backward compatibility, telling buildout not to throw away 29 33 # the data and log subdirectories from the parts directory. … … 41 45 42 46 [sources] 43 waeup.kofa = svn https://svn.waeup.org/repos/main/waeup.kofa/ tags/0.2.144 kofacustom.nigeria = svn https://svn.waeup.org/repos/main/kofacustom.nigeria/t ags/0.147 waeup.kofa = svn https://svn.waeup.org/repos/main/waeup.kofa/branches/uli-diazo-themed 48 kofacustom.nigeria = svn https://svn.waeup.org/repos/main/kofacustom.nigeria/trunk 45 49 46 50 [kofa_params] … … 52 56 zeo1_port = 7021 53 57 zeo2_port = 7022 54 zeo3_port = 702358 # zeo3_port = 7023 55 59 server_port = 7020 56 60 # default 7. Number of pre-opened ZODB threads/client … … 62 66 # number of preopened paster threads, default 10 63 67 threadpool_workers = 10 68 devel_pkg = waeup.aaue 64 69 65 70 [app] 66 71 # This creates all scripts in bin/. The kofactl created here is 'faulty'. 67 72 recipe = zc.recipe.egg 68 eggs = waeup.aaue [beaker ]73 eggs = waeup.aaue [beaker, diazo] 69 74 z3c.evalexception>=2.0 70 75 Paste … … 80 85 # fixed path to zdaemon.conf as argument. 81 86 recipe = zc.recipe.egg 82 eggs = waeup.aaue [beaker ]87 eggs = waeup.aaue [beaker, diazo] 83 88 arguments = "${buildout:parts-directory}/etc/zdaemon.conf" 84 89 scripts = kofactl=kofactl … … 146 151 output = ${buildout:parts-directory}/etc/zdaemon.conf 147 152 148 [deploy_ini] 149 recipe = collective.recipe.template 150 input = etc/deploy.ini.in 151 output = ${buildout:parts-directory}/etc/deploy.ini 152 153 [debug_ini] 154 recipe = collective.recipe.template 155 input = etc/debug.ini.in 156 output = ${buildout:parts-directory}/etc/debug.ini 153 [raw_debug_ini] 154 recipe = collective.recipe.template 155 input = etc/raw/debug.ini.in 156 output = ${buildout:parts-directory}/etc/raw-debug.ini 157 158 [raw_deploy_ini] 159 recipe = collective.recipe.template 160 input = etc/raw/deploy.ini.in 161 output = ${buildout:parts-directory}/etc/raw-deploy.ini 162 163 [themed_debug_ini] 164 recipe = collective.recipe.template 165 input = etc/themed/debug.ini.in 166 output = ${buildout:parts-directory}/etc/themed-debug.ini 167 168 [themed_deploy_ini] 169 recipe = collective.recipe.template 170 input = etc/themed/deploy.ini.in 171 output = ${buildout:parts-directory}/etc/themed-deploy.ini 157 172 158 173 [profile_ini] … … 186 201 scripts = coveragereport 187 202 arguments = ('${buildout:parts-directory}/coverage-detect/working-directory/coverage', '${buildout:directory}/coverage-report') 203 204 [lxml] 205 recipe = z3c.recipe.staticlxml 206 egg = lxml 207 208 [diazo] 209 recipe = zc.recipe.egg 210 eggs = 211 diazo [wsgi] 212 PasteScript 213 waeup.aaue [beaker, diazo] -
main/waeup.aaue/trunk/etc/zdaemon.conf.in
r5502 r11291 1 1 <runner> 2 program ${buildout:directory}/bin/paster serve ${buildout:directory}/parts/etc/ deploy.ini2 program ${buildout:directory}/bin/paster serve ${buildout:directory}/parts/etc/themed-deploy.ini 3 3 daemon on 4 4 transcript ${zope_conf:logfiles}/zdaemon.log -
main/waeup.aaue/trunk/etc/zeo1.conf.in
r8508 r11291 1 1 <runner> 2 program ${buildout:directory}/bin/paster serve --pid-file ${buildout:directory}/var/zeo1.pid ${buildout:directory}/parts/etc/ zeo1.ini2 program ${buildout:directory}/bin/paster serve --pid-file ${buildout:directory}/var/zeo1.pid ${buildout:directory}/parts/etc/themed-zeo1.ini 3 3 daemon on 4 4 transcript ${zope_conf:logfiles}/zdaemon-zeo1.log 5 5 socket-name ${zope_conf:logfiles}/zeo1.sock 6 6 # Enable this to run the child process as a different user 7 user kofa7 # user kofa 8 8 </runner> -
main/waeup.aaue/trunk/etc/zeo2.conf.in
r8508 r11291 1 1 <runner> 2 program ${buildout:directory}/bin/paster serve --pid-file ${buildout:directory}/var/zeo2.pid ${buildout:directory}/parts/etc/ zeo2.ini2 program ${buildout:directory}/bin/paster serve --pid-file ${buildout:directory}/var/zeo2.pid ${buildout:directory}/parts/etc/themed-zeo2.ini 3 3 daemon on 4 4 transcript ${zope_conf:logfiles}/zdaemon-zeo2.log 5 5 socket-name ${zope_conf:logfiles}/zeo2.sock 6 6 # Enable this to run the child process as a different user 7 user kofa7 # user kofa 8 8 </runner> -
main/waeup.aaue/trunk/setup.py
r11219 r11291 2 2 from setuptools import setup, find_packages 3 3 4 version = ' 0.1.1dev'4 version = '1.0dev' 5 5 6 6 install_requires =[ … … 9 9 'grokui.admin', 10 10 'grokcore.startup', 11 'waeup.kofa ',12 'kofacustom.nigeria ',11 'waeup.kofa >= 1.0', 12 'kofacustom.nigeria >= 1.0', 13 13 ], 14 14 … … 21 21 'dolmen.beaker', 22 22 ] 23 24 diazo_require = [ 25 'diazo', 26 'webob', 27 ] 23 28 24 29 tests_require = [ … … 86 91 docs = docs_require, 87 92 beaker = beaker_require, 93 diazo = diazo_require, 88 94 ), 89 95 entry_points=""" 90 # Add entry points here91 [hurry.resource.libraries]92 waeup_custom = waeup.aaue.browser.resources:waeup_custom93 96 [console_scripts] 94 97 kofa-debug = grokcore.startup:interactive_debug_prompt -
main/waeup.aaue/trunk/src/waeup/aaue
- Property svn:mergeinfo changed
/main/waeup.aaue/branches/henrik-diazo-themed/src/waeup/aaue (added) merged: 11100,11250
- Property svn:mergeinfo changed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r10929 r11291 35 35 UG_OMIT_PDF_FIELDS, 36 36 UG_OMIT_MANAGE_FIELDS, 37 UG_OMIT_EDIT_FIELDS, 38 PG_OMIT_DISPLAY_FIELDS, 39 PG_OMIT_PDF_FIELDS, 40 PG_OMIT_MANAGE_FIELDS, 41 PG_OMIT_EDIT_FIELDS) 37 UG_OMIT_EDIT_FIELDS) 42 38 from waeup.aaue.applicants.interfaces import ( 43 39 ICustomApplicant, 44 40 ICustomUGApplicant, 45 ICustomPGApplicant, 46 ICustomPGApplicantEdit, 47 ICustomUGApplicantEdit) 41 ICustomUGApplicantEdit 42 ) 48 43 49 UG_OMIT_PDF_FIELDS = [50 element for element in UG_OMIT_PDF_FIELDS if not element == 'phone'] 44 UG_OMIT_PDF_FIELDS = tuple([ 45 element for element in UG_OMIT_PDF_FIELDS if not element == 'phone']) 51 46 UG_OMIT_PDF_FIELDS += ('reg_number','alr_fname', 'alr_no', 'alr_date', 52 47 'alr_results', 'notice') 48 49 FP_OMIT_FIELDS = ('hq_type', 'hq_fname', 'hq_matric_no', 50 'hq_degree', 'hq_school', 'hq_session', 'hq_disc') 51 FP_OMIT_DISPLAY_FIELDS = UG_OMIT_DISPLAY_FIELDS + FP_OMIT_FIELDS 52 FP_OMIT_PDF_FIELDS = UG_OMIT_PDF_FIELDS + FP_OMIT_FIELDS 53 FP_OMIT_MANAGE_FIELDS = UG_OMIT_MANAGE_FIELDS + FP_OMIT_FIELDS 54 FP_OMIT_EDIT_FIELDS = UG_OMIT_EDIT_FIELDS + FP_OMIT_FIELDS 53 55 54 56 class CustomApplicantDisplayFormPage(NigeriaApplicantDisplayFormPage): … … 58 60 @property 59 61 def form_fields(self): 60 if self.target is not None and self.target.startswith('pg'):61 form_fields = grok.AutoFields(ICustomPGApplicant)62 for field in PG_OMIT_DISPLAY_FIELDS:62 form_fields = grok.AutoFields(ICustomUGApplicant) 63 if self.target is not None and self.target.startswith('fp'): 64 for field in FP_OMIT_DISPLAY_FIELDS: 63 65 form_fields = form_fields.omit(field) 64 66 else: 65 form_fields = grok.AutoFields(ICustomUGApplicant)66 67 for field in UG_OMIT_DISPLAY_FIELDS: 67 68 form_fields = form_fields.omit(field) … … 104 105 @property 105 106 def form_fields(self): 106 if self.target is not None and self.target.startswith('pg'):107 form_fields = grok.AutoFields(ICustomPGApplicant)108 for field in PG_OMIT_PDF_FIELDS:107 form_fields = grok.AutoFields(ICustomUGApplicant) 108 if self.target is not None and self.target.startswith('fp'): 109 for field in FP_OMIT_PDF_FIELDS: 109 110 form_fields = form_fields.omit(field) 110 111 else: 111 form_fields = grok.AutoFields(ICustomUGApplicant)112 112 for field in UG_OMIT_PDF_FIELDS: 113 113 form_fields = form_fields.omit(field) … … 128 128 @property 129 129 def form_fields(self): 130 if self.target is not None and self.target.startswith('pg'):131 form_fields = grok.AutoFields(ICustomPGApplicant)132 for field in PG_OMIT_MANAGE_FIELDS:130 form_fields = grok.AutoFields(ICustomUGApplicant) 131 if self.target is not None and self.target.startswith('fp'): 132 for field in FP_OMIT_MANAGE_FIELDS: 133 133 form_fields = form_fields.omit(field) 134 134 else: 135 form_fields = grok.AutoFields(ICustomUGApplicant)136 135 for field in UG_OMIT_MANAGE_FIELDS: 137 136 form_fields = form_fields.omit(field) … … 146 145 @property 147 146 def form_fields(self): 148 if self.target is not None and self.target.startswith('pg'):149 form_fields = grok.AutoFields(ICustomPGApplicantEdit)150 for field in PG_OMIT_EDIT_FIELDS:147 form_fields = grok.AutoFields(ICustomUGApplicantEdit) 148 if self.target is not None and self.target.startswith('fp'): 149 for field in FP_OMIT_EDIT_FIELDS: 151 150 form_fields = form_fields.omit(field) 152 151 else: 153 form_fields = grok.AutoFields(ICustomUGApplicantEdit)154 152 for field in UG_OMIT_EDIT_FIELDS: 155 153 form_fields = form_fields.omit(field) -
main/waeup.aaue/trunk/src/waeup/aaue/browser/tests.py
r8444 r11291 49 49 shutil.rmtree(self.dc_root) 50 50 51 def test_custom_theme(self):52 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')53 self.browser.open('http://localhost/app/configuration')54 self.assertMatches('...AAUE Theme...', self.browser.contents)55 self.browser.getControl(name="form.skin").value = ['custom theme']56 self.browser.getControl("Save").click()57 self.browser.open('http://localhost/app/configuration')58 return59 60 51 #def test_access_live_url(self): 61 52 # # We can't access the system with basic authentication -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r10983 r11291 271 271 label = _('Requery eTranzact History') 272 272 action = 'query_history' 273 placeholder = _('Confirmation Number (PIN)') 273 274 274 275 class EtranzactEnterPinPageApplicant(EtranzactEnterPinPageStudent): -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser_templates/enterpin.pt
r9853 r11291 1 <form tal:attributes="action view/action" 2 method="POST" i18n:domain="waeup.aaue"> 3 <table class="form-table"> 4 <tbody> 5 <tr> 6 <td i18n:translate=""> 7 Confirmation Number (PIN): 8 </td> 9 <td> 10 <input name="confirmation_number" type="text" class="span5" maxlength="" 11 value="" /> 12 </td> 13 </tr> 14 <tr> 15 <td colspan="2"> 16 <input type="submit" name="SUBMIT" class="btn primary" 17 tal:attributes="value view/buttonname" /> 18 </td> 19 </tr> 20 </tbody> 21 </table> 1 <form method="POST" class="form-inline" tal:attributes="action view/action"> 2 <br /> 3 <div class="form-group half"> 4 <input name="confirmation_number" type="text" class="form-control" maxlength="" 5 value="" tal:attributes="placeholder view/placeholder"/> 6 </div> 7 <div class="form-group"> 8 <input type="submit" name="SUBMIT" class="btn btn-primary" 9 tal:attributes="value view/buttonname" /> 10 </div> 22 11 </form> -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r10978 r11291 71 71 self.browser.getLink("Query eTranzact History").click() 72 72 self.assertMatches( 73 '...Confirmation Number (PIN) :...',73 '...Confirmation Number (PIN)...', 74 74 self.browser.contents) 75 75 -
main/waeup.aaue/trunk/versions.cfg
r11205 r11291 130 130 zope.testrunner = 4.3.3 131 131 132 # Added by buildout at 2014-02-22 14:04:04.735203 132 # Added by buildout at 2014-02-14 13:34:56.813338 133 WebOb = 1.3.1 134 diazo = 1.0.5 135 repoze.xmliter = 0.5 136 z3c.recipe.staticlxml = 0.10 133 137 134 138 # Required by: 135 # waeup.kofa==0.2dev136 PIL = 1.1.7 139 # diazo==1.0.5 140 experimental.cssselect = 0.3 137 141 138 # Added by buildout at 2014-02-22 14:08:06.131262 142 # Required by: 143 # diazo==1.0.5 144 # experimental.cssselect==0.3 145 lxml = 3.3.1 146 147 # Required by: 148 # z3c.recipe.staticlxml==0.10 149 zc.recipe.cmmi = 1.3.5 150 151 # Added by buildout at 2014-02-21 09:22:50.503061 139 152 zc.zodbrecipes = 2.0.0
Note: See TracChangeset for help on using the changeset viewer.