Changeset 11977 for main/waeup.ikoba/trunk/src/waeup/ikoba/browser
- Timestamp:
- 17 Nov 2014, 06:29:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/pages.py
r11975 r11977 262 262 login_button = label 263 263 264 def _comment(self, customer): 265 return getattr(customer, 'suspended_comment', None) 266 264 267 def update(self, SUBMIT=None, camefrom=None): 265 268 self.camefrom = camefrom … … 1613 1616 def _searchUser(self, identifier, email): 1614 1617 # Search customer 1615 #cat = queryUtility(ICatalog, name='customers_catalog') 1616 #results = cat.searchResults( 1617 #reg_number=(identifier, identifier), 1618 # email=(email,email)) 1619 #for result in results: 1620 # if result.customer_id == identifier or \ 1621 # result.reg_number == identifier or \ 1622 # result.matric_number == identifier: 1623 # return result 1618 cat = queryUtility(ICatalog, name='customers_catalog') 1619 results = cat.searchResults( 1620 reg_number=(identifier, identifier), 1621 email=(email,email)) 1622 for result in results: 1623 if result.customer_id == identifier \ 1624 or result.reg_number == identifier: 1625 return result 1624 1626 # Search portal user 1625 1627 user = grok.getSite()['users'].get(identifier, None)
Note: See TracChangeset for help on using the changeset viewer.