Changeset 12146


Ignore:
Timestamp:
4 Dec 2014, 18:11:46 (10 years ago)
Author:
Henrik Bettermann
Message:

Do not export is_editable and is_approvable.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/export.py

    r12143 r12146  
    189189            omit=['translated_state',
    190190                  'formatted_transition_date',
    191                   'translated_class_name'])))
     191                  'translated_class_name',
     192                  'is_editable',
     193                  'is_approvable'])))
    192194
    193195    #: The title under which this exporter will be displayed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py

    r12143 r12146  
    254254            result,
    255255            'class_name,contract_category,contract_id,document_object,'
    256             'history,is_editable,last_product_id,last_transition_date,'
     256            'history,last_product_id,last_transition_date,'
    257257            'product_object,state,title\r\n'
    258258
    259             'SampleContract,sample,c101,,[],1,,,,,\r\n'
     259            'SampleContract,sample,c101,,[],,,,,\r\n'
    260260            )
    261261        return
     
    270270        self.assertMatches(
    271271            'class_name,contract_category,contract_id,document_object,'
    272             'history,is_editable,last_product_id,last_transition_date,'
     272            'history,last_product_id,last_transition_date,'
    273273            'product_object,state,title\r\n'
    274274
    275275            'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - '
    276             'Contract record created by system\'],0,,'
     276            'Contract record created by system\'],,'
    277277            '2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',
    278278            result
     
    289289        self.assertMatches(
    290290            'class_name,contract_category,contract_id,document_object,'
    291             'history,is_editable,last_product_id,last_transition_date,'
     291            'history,last_product_id,last_transition_date,'
    292292            'product_object,state,title\r\n'
    293293
    294294            'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - '
    295             'Contract record created by system\'],0,,'
     295            'Contract record created by system\'],,'
    296296            '2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',
    297297            result
     
    308308        self.assertMatches(
    309309            'class_name,contract_category,contract_id,document_object,'
    310             'history,is_editable,last_product_id,last_transition_date,'
     310            'history,last_product_id,last_transition_date,'
    311311            'product_object,state,title\r\n'
    312312
    313313            'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - '
    314             'Contract record created by system\'],0,,'
     314            'Contract record created by system\'],,'
    315315            '2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',
    316316            result
Note: See TracChangeset for help on using the changeset viewer.