diff --git a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.py b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.py index a977df89c3b966770b5f7c907ee8edc63f1bb0e7..dccc55f23157a32748dae83e1f103fe740f8cbda 100644 --- a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.py +++ b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_createDelivery.py @@ -15,8 +15,6 @@ destination_node_id = "erp5_pdm_ui_test_destination_node" resource_id = "erp5_pdm_ui_test_product" business_process_id = 'erp5_default_business_process' -quantity = 1 - business_process_module = portal.getDefaultModule("Business Process") business_process = getattr(business_process_module, business_process_id, None) if business_process is None: @@ -40,7 +38,7 @@ if state in ['planned', 'ordered']: specialise_value=business_process, start_date=DateTime(), ) - order_line = order.newContent( + order.newContent( portal_type=order_line_portal_type, resource='product_module/%s' % resource_id, quantity=1, @@ -63,7 +61,7 @@ else: specialise_value=business_process, start_date=DateTime(), ) - delivery_line = delivery.newContent( + delivery.newContent( portal_type=delivery_line_portal_type, resource='product_module/%s' % resource_id, quantity=1, @@ -87,8 +85,6 @@ else: break if delivery.getSimulationState() != state: - raise ImplementationError, 'Delivery state is %s and not %s' % (delivery.getSimulationState(), state) + raise NotImplementedError('Delivery state is %s and not %s' % (delivery.getSimulationState(), state)) return "Delivery Created." - -# vim: syntax=python diff --git a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_deleteData.py b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_deleteData.py index c6f866066ceea1f64afa9c6da47f5056f7379a70..d152b48cb6a77a4c697be9a550640bab48bdf11e 100644 --- a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_deleteData.py +++ b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_deleteData.py @@ -2,8 +2,6 @@ portal = context.getPortalObject() resource_portal_type = "Product" node_portal_type = "Organisation" -site_portal_type = "Category" - resource_id = "erp5_pdm_ui_test_product" source_node_id = "erp5_pdm_ui_test_source_node" diff --git a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_reset.py b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_reset.py index aade9d91d9b8c6ffd7fbcf58078b028af6e7ef0d..3265f338b7a9c5ca9a5f86bc71cc463c73fa7c05 100644 --- a/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_reset.py +++ b/bt5/erp5_pdm_ui_test/SkinTemplateItem/portal_skins/erp5_pdm_ui_test/PdmZuite_reset.py @@ -1,5 +1,4 @@ portal = context.getPortalObject() -self = context resource_portal_type = "Product" node_portal_type = "Organisation" @@ -42,7 +41,7 @@ resource.validate() base_category = portal.restrictedTraverse('portal_categories/site') for site_id, site_title in ((source_site_id, source_site_title), (destination_site_id, destination_site_title)): - site = base_category.newContent( + base_category.newContent( portal_type=site_portal_type, id=site_id, title=site_title @@ -52,7 +51,7 @@ for site_id, site_title in ((source_site_id, source_site_title), for node_id, node_title, site_url in ((source_node_id, source_node_title, source_site_id), (destination_node_id, destination_node_title, destination_site_id)): module = portal.getDefaultModule(node_portal_type) - node = module.newContent( + module.newContent( portal_type=node_portal_type, id=node_id, title=node_title, diff --git a/bt5/erp5_pdm_ui_test/bt/skip_coding_style_test b/bt5/erp5_pdm_ui_test/bt/skip_coding_style_test deleted file mode 100644 index 56a6051ca2b02b04ef92d5150c9ef600403cb1de..0000000000000000000000000000000000000000 --- a/bt5/erp5_pdm_ui_test/bt/skip_coding_style_test +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file