Changeset 12087
- Timestamp:
- 28 Nov 2014, 16:17:38 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/customer.py
r12035 r12087 124 124 def translated_state(self): 125 125 try: 126 TRANSLATED_STATES = getUtility(ICustomersUtils).TRANSLATED_STATES 126 TRANSLATED_STATES = getUtility( 127 ICustomersUtils).TRANSLATED_CUSTOMER_STATES 127 128 ts = TRANSLATED_STATES[self.state] 128 129 return ts -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12062 r12087 281 281 SKIP_UPLOAD_VIEWLETS = () 282 282 283 TRANSLATED_ STATES = {283 TRANSLATED_CUSTOMER_STATES = { 284 284 CREATED: _('created'), 285 285 STARTED: _('started'), -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/document.py
r12063 r12087 64 64 def translated_state(self): 65 65 try: 66 TRANSLATED_STATES = getUtility(IDocumentsUtils).TRANSLATED_STATES 66 TRANSLATED_STATES = getUtility( 67 IDocumentsUtils).TRANSLATED_DOCUMENT_STATES 67 68 return TRANSLATED_STATES[self.state] 68 69 except KeyError: -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/utils.py
r12033 r12087 39 39 DOCMANAGE_STATES = (CREATED,) 40 40 41 TRANSLATED_ STATES = {41 TRANSLATED_DOCUMENT_STATES = { 42 42 CREATED: _('created'), 43 43 SUBMITTED: _('submitted for verification'), -
main/waeup.ikoba/trunk/src/waeup/ikoba/userscontainer.py
r11954 r12087 66 66 67 67 68 class User sExporter(grok.GlobalUtility, ExporterBase):68 class UserExporter(grok.GlobalUtility, ExporterBase): 69 69 """Exporter for user accounts. 70 70 """ … … 98 98 value[role] = object_list 99 99 return super( 100 User sExporter, self).mangle_value(100 UserExporter, self).mangle_value( 101 101 value, name, context=context) 102 102 -
main/waeup.ikoba/trunk/src/waeup/ikoba/userscontainer.txt
r11952 r12087 50 50 We can export user accounts: 51 51 52 >>> from waeup.ikoba.userscontainer import User sExporter52 >>> from waeup.ikoba.userscontainer import UserExporter 53 53 >>> import os 54 54 >>> import tempfile 55 55 >>> workdir = tempfile.mkdtemp() 56 56 >>> outfile = os.path.join(workdir, 'myoutput.csv') 57 >>> exporter = User sExporter()57 >>> exporter = UserExporter() 58 58 >>> site = {'users':myusers} 59 59 >>> exporter.export_all(site, outfile)
Note: See TracChangeset for help on using the changeset viewer.