Changeset 7903
- Timestamp:
- 17 Mar 2012, 23:54:05 (13 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/buildout.cfg
r7808 r7903 77 77 recipe = zc.recipe.egg 78 78 eggs = waeup.kofa [beaker] 79 grokcore.startup 80 zope.app.appsetup 79 81 arguments = "${buildout:parts-directory}/etc/zdaemon.conf" 80 82 scripts = kofactl=kofactl -
main/waeup.kofa/trunk/etc/site.zcml.in
r7808 r7903 3 3 i18n_domain="waeup.kofa"> 4 4 5 <include package="waeup.kofa" />5 <include package="waeup.kofa" file="configure.zcml" /> 6 6 <include package="waeup.kofa" file="mail.zcml" /> 7 7 -
main/waeup.kofa/trunk/setup.py
r7808 r7903 24 24 'reportlab', 25 25 'PIL', 26 'zope.app.appsetup', 26 27 'zope.app.authentication', # BBB: During switch to grok 1.1 27 28 'zope.app.file', 28 29 'zope.app.testing', # XXX: test_permissions needs this 29 30 'zope.app.undo', 31 'zope.app.wsgi', 30 32 'zope.file', 31 33 'zope.interface >= 3.6.0', -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r7868 r7903 24 24 from datetime import datetime, date 25 25 from zope.component import getUtility, createObject, getAdapter 26 from zope.formlib.form import setUpEditWidgets27 26 from zope.i18n import translate 28 27 from hurry.workflow.interfaces import ( … … 150 149 151 150 form_fields = grok.AutoFields( 152 IApplicantsContainerAdd).omit('code').omit('title' , 'description_dict')151 IApplicantsContainerAdd).omit('code').omit('title') 153 152 form_fields['startdate'].custom_widget = FriendlyDateWidget('le') 154 153 form_fields['enddate'].custom_widget = FriendlyDateWidget('le') … … 224 223 pnav = 3 225 224 226 form_fields = grok.AutoFields(IApplicantsContainer).omit( 227 'title', 'description_dict') 225 form_fields = grok.AutoFields(IApplicantsContainer).omit('title') 228 226 form_fields['startdate'].custom_widget = FriendlyDateDisplayWidget('le') 229 227 form_fields['enddate'].custom_widget = FriendlyDateDisplayWidget('le') … … 251 249 grok.name('manage') 252 250 grok.template('applicantscontainermanagepage') 253 form_fields = grok.AutoFields(IApplicantsContainer).omit( 254 'title', 'description_dict') 251 form_fields = grok.AutoFields(IApplicantsContainer).omit('title') 255 252 taboneactions = [_('Save'),_('Cancel')] 256 253 tabtwoactions = [_('Add applicant'), _('Remove selected'),_('Cancel')] -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py
r7847 r7903 59 59 #: to create proper applicant objects. 60 60 factory_name = 'waeup.Applicant' 61 #: A dictionary to hold per language translations of description string. 62 description_dict = {} 61 63 62 64 @property -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py
r7865 r7903 31 31 fields = ('code', 'title', 'prefix', 'entry_level', 'year', 32 32 'provider', 'application_category', 'description', 33 ' description_dict', 'startdate', 'enddate', 'strict_deadline')33 'startdate', 'enddate', 'strict_deadline') 34 34 35 35 def export(self, containers, filepath=None): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r7867 r7903 265 265 ) 266 266 267 description_dict = schema.Dict( 268 title = u'Content as language dictionary with values in html format', 269 required = False, 270 default = {}, 271 ) 267 description_dict = Attribute( 268 """Content as language dictionary with values in HTML format.""") 272 269 273 270 startdate = schema.Date( -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r7864 r7903 48 48 result, 49 49 'code,title,prefix,entry_level,year,provider,application_category,' 50 'description, description_dict,startdate,enddate,strict_deadline\r\n'51 'dp2012,-,,100,,,,"This text can been seen by anonymous users.\nHere we put mult-lingual information about the study courses provided, the application procedure and deadlines.\n>>de<<\nDieser Text kann von anonymen Benutzern gelesen werden.\nHier koennen mehrsprachige Informationen fuer Antragsteller hinterlegt werden.", {},2012-01-01,,1\r\n'50 'description,startdate,enddate,strict_deadline\r\n' 51 'dp2012,-,,100,,,,"This text can been seen by anonymous users.\nHere we put mult-lingual information about the study courses provided, the application procedure and deadlines.\n>>de<<\nDieser Text kann von anonymen Benutzern gelesen werden.\nHier koennen mehrsprachige Informationen fuer Antragsteller hinterlegt werden.",2012-01-01,,1\r\n' 52 52 ) 53 53 return
Note: See TracChangeset for help on using the changeset viewer.