Changeset 6696 for main/waeup.sirp/trunk
- Timestamp:
- 9 Sep 2011, 07:11:53 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r6695 r6696 477 477 grok.name('bedit') 478 478 grok.require('waeup.handleStudent') 479 form_fields = grok.AutoFields(IStudentBaseEdit).omit('student_id') 479 form_fields = grok.AutoFields(IStudentBaseEdit).omit( 480 'student_id', 'reg_number') 480 481 grok.template('baseeditpage') 481 482 label = 'Change password' -
main/waeup.sirp/trunk/src/waeup/sirp/students/catalog.py
r6630 r6696 18 18 student_id = index.Field(attribute='student_id') 19 19 name = index.Text(attribute='name') 20 #history = index.Text(attribute='history')21 #state = index.Field(attribute='state')20 reg_number = index.Field(attribute='reg_number') 21 state = index.Field(attribute='state') 22 22 23 23 class StudentQueryResultItem(object): … … 32 32 self.student_id = context.student_id 33 33 self.name = context.name 34 #self.history = context.history35 #self.state = context.state34 self.reg_number = context.reg_number 35 self.state = context.state 36 36 37 37 def search(query=None, searchtype=None, view=None): … … 40 40 # view.flash('Empty search string.') 41 41 # return 42 if searchtype in (' history','name'):42 if searchtype in ('name',): 43 43 results = Query().searchResults( 44 44 Text(('students_catalog', searchtype), query)) -
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r6695 r6696 80 80 password = schema.Password( 81 81 title = u'Password', 82 required = False, 83 ) 84 85 reg_number = schema.TextLine( 86 title = u'Registration Number', 87 default = u'', 88 required = True, 89 readonly = False, 82 90 ) 83 91 … … 144 152 ) 145 153 154 password = schema.Password( 155 title = u'Password', 156 required = True, 157 ) 158 146 159 IStudentBaseEdit['name'].order = IStudentBase['name'].order 147 160
Note: See TracChangeset for help on using the changeset viewer.