Changeset 7903 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 17 Mar 2012, 23:54:05 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
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.