- Timestamp:
- 14 Nov 2014, 22:32:42 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/interfaces.py
r11954 r11958 184 184 constraint=validate_email, 185 185 ) 186 187 class ICustomerNavigationBase(IIkobaObject): 188 """Objects that provide customer navigation should 189 implement this interface. 190 """ 191 customer = Attribute('''Some customer object that has a ''' 192 ''' `display_fullname` attribute.''') -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/browser/layout.py
r11954 r11958 36 36 from waeup.ikoba.utils.helpers import to_timezone 37 37 from waeup.ikoba.authentication import get_principal_role_manager 38 from waeup.ikoba.browser.interfaces import ICustomerNavigationBase 38 39 39 40 grok.templatedir('templates') … … 258 259 return self.request.principal.user_type == 'customer' 259 260 261 def getCustomerName(self): 262 """Return the customer name. 263 """ 264 if ICustomerNavigationBase.providedBy(self.context): 265 return self.context.customer.display_fullname 266 260 267 def formatDatetime(self,datetimeobj): 261 268 if isinstance(datetimeobj, datetime):
Note: See TracChangeset for help on using the changeset viewer.