- Timestamp:
- 30 Dec 2014, 17:47:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/viewlets.py
r12337 r12346 20 20 from zope.i18n import translate 21 21 from zope.interface import Interface 22 from zope.component import getUtility 22 23 from waeup.ikoba.interfaces import IIkobaObject 23 24 from waeup.ikoba.interfaces import MessageFactory as _ … … 28 29 ICustomer, ICustomersContainer, 29 30 ICustomerDocumentsContainer, ICustomerDocument, 30 IContractsContainer, IContract )31 IContractsContainer, IContract, ICustomersUtils) 31 32 from waeup.ikoba.customers.browser import ( 32 33 CustomersContainerPage, CustomersContainerManagePage, … … 297 298 target = 'change_portrait' 298 299 300 @property 301 def target_url(self): 302 CUSTMANAGE_STATES = getUtility( 303 ICustomersUtils).CUSTMANAGE_CUSTOMER_STATES 304 if self.context.state not in CUSTMANAGE_STATES: 305 return '' 306 return self.view.url(self.view.context, self.target) 307 299 308 300 309 # Viewlets for customer documents
Note: See TracChangeset for help on using the changeset viewer.