- Timestamp:
- 21 Nov 2014, 05:51:16 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12015 r12017 138 138 self.assertEqual( 139 139 result, 140 'document_id,history, title,customer_id\r\n'141 'd101,[],, \r\n'140 'document_id,history,state,title,customer_id\r\n' 141 'd101,[],,,\r\n' 142 142 ) 143 143 return … … 152 152 result = open(self.outfile, 'rb').read() 153 153 self.assertTrue( 154 'document_id,history, title,customer_id\r\n'154 'document_id,history,state,title,customer_id\r\n' 155 155 in result 156 156 ) 157 157 self.assertTrue( 158 'Document created by system\'], My Document,A111111\r\n'158 'Document created by system\'],created,My Document,A111111\r\n' 159 159 in result 160 160 ) … … 169 169 result = open(self.outfile, 'rb').read() 170 170 self.assertTrue( 171 'document_id,history, title,customer_id\r\n'171 'document_id,history,state,title,customer_id\r\n' 172 172 in result) 173 173 self.assertTrue( 174 ' Document created by system\'], My Document,A111111\r\n'174 ' Document created by system\'],created,My Document,A111111\r\n' 175 175 in result) 176 176 return … … 184 184 result = open(self.outfile, 'rb').read() 185 185 self.assertTrue( 186 'document_id,history, title,customer_id\r\n'186 'document_id,history,state,title,customer_id\r\n' 187 187 in result) 188 188 self.assertTrue( 189 ' Document created by system\'], My Document,A111111\r\n'189 ' Document created by system\'],created,My Document,A111111\r\n' 190 190 in result) 191 191 return -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/document.py
r12005 r12017 72 72 return history 73 73 74 @property 75 def state(self): 76 state = IWorkflowState(self).getState() 77 return state 78 74 79 Document = attrs_to_fields(Document) 75 80 -
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/interfaces.py
r12015 r12017 45 45 document_id = Attribute('Document Identifier') 46 46 history = Attribute('Object history, a list of messages') 47 state = Attribute('Returns the verification state of a document') 47 48 48 49 title = schema.TextLine(
Note: See TracChangeset for help on using the changeset viewer.