capella2polarion package¶
The capella2polarion package.
Subpackages¶
- capella2polarion.connectors package
- Submodules
- capella2polarion.connectors.polarion_repo module
DocumentRepositoryPolarionDataRepositoryPolarionDataRepository.get_capella_uuid()PolarionDataRepository.get_work_item_by_capella_uuid()PolarionDataRepository.get_work_item_by_polarion_id()PolarionDataRepository.get_work_item_id()PolarionDataRepository.items()PolarionDataRepository.remove_work_items_by_capella_uuid()PolarionDataRepository.update_work_items()
check_work_items()
- capella2polarion.connectors.polarion_worker module
CapellaPolarionWorkerCapellaPolarionWorker.check_client()CapellaPolarionWorker.compare_and_update_work_item()CapellaPolarionWorker.compare_and_update_work_items()CapellaPolarionWorker.create_documents()CapellaPolarionWorker.create_missing_work_items()CapellaPolarionWorker.delete_orphaned_work_items()CapellaPolarionWorker.get_document()CapellaPolarionWorker.get_missing_link_ids()CapellaPolarionWorker.load_polarion_documents()CapellaPolarionWorker.load_polarion_work_item_map()CapellaPolarionWorker.update_attachments()CapellaPolarionWorker.update_documents()
PolarionWorkerParamsWORK_ITEMS_IN_DOCUMENT_QUERY
- capella2polarion.data_model package
- Submodules
- capella2polarion.data_model.document_data module
- capella2polarion.data_model.work_item_attachments module
- capella2polarion.data_model.work_items module
- capella2polarion.documents package
- Submodules
- capella2polarion.documents.document_config module
BaseDocumentRenderingConfigBaseDocumentRenderingConfig.heading_numberingBaseDocumentRenderingConfig.instancesBaseDocumentRenderingConfig.model_configBaseDocumentRenderingConfig.project_idBaseDocumentRenderingConfig.status_allow_listBaseDocumentRenderingConfig.template_directoryBaseDocumentRenderingConfig.text_work_item_id_fieldBaseDocumentRenderingConfig.text_work_item_typeBaseDocumentRenderingConfig.work_item_layouts
DocumentConfigsDocumentRenderingInstanceFullAuthorityDocumentRenderingConfigMixedAuthorityDocumentRenderingConfigSectionBasedDocumentRenderingInstanceWorkItemLayoutgenerate_work_item_layouts()read_config_file()
- capella2polarion.documents.document_renderer module
- capella2polarion.documents.mass_document_renderer module
- capella2polarion.elements package
- Submodules
- capella2polarion.elements.capella_object_renderer module
- capella2polarion.elements.converter_config module
CapellaTypeConfigConverterConfigConverterConfig.add_layer()ConverterConfig.diagram_configConverterConfig.get_type_config()ConverterConfig.layers_and_types()ConverterConfig.polarion_typesConverterConfig.read_config_file()ConverterConfig.set_diagram_config()ConverterConfig.set_global_config()ConverterConfig.set_layer_config()
ConvertersTypeLinkConfigadd_prefix()config_matches()merge_converters()
- capella2polarion.elements.data_session module
- capella2polarion.elements.element_converter module
- capella2polarion.elements.link_converter module
- capella2polarion.elements.model_converter module
- capella2polarion.plugins package
load_plugins()- Submodules
- capella2polarion.plugins.plugin_config module
- capella2polarion.plugins.plugin_interfaces module
AdditionalAttributesAdditionalAttributes.document_rendering_configAdditionalAttributes.force_updateAdditionalAttributes.generate_figure_captionsAdditionalAttributes.grouped_links_custom_fieldsAdditionalAttributes.overwrite_layoutsAdditionalAttributes.overwrite_numberingAdditionalAttributes.role_prefixAdditionalAttributes.synchronize_configAdditionalAttributes.type_prefix
PluginInterface
Submodules¶
capella2polarion.cli module¶
Tool for CLI work.
- class capella2polarion.cli.Capella2PolarionCli(debug: bool, polarion_project_id: str, polarion_url: str, polarion_pat: str, polarion_delete_work_items: bool, capella_model: MelodyModel | None, force_update: bool = False)¶
Bases:
objectCall Level Interface.
capella2polarion.errors module¶
Module for Capella-Polarion errors and handling.
- capella2polarion.errors.ERROR_IMAGE = b'<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">\n <rect width="800" height="200" fill="#d32f2f"/>\n <text x="400" y="90" text-anchor="middle" fill="white" font-size="24" font-weight="bold">\n Capella2Polarion: Diagram Failed to Render\n </text>\n <text x="400" y="130" text-anchor="middle" fill="white" font-size="18">\n Please contact support for assistance\n </text>\n</svg>'¶
Static SVG image to use when diagram rendering fails.
- capella2polarion.errors.RENDER_ERROR_CHECKSUM = '__RENDER_ERROR__'¶
Marker used as checksum when diagram rendering fails.
capella2polarion.polarion_html_helper module¶
Capella2Polarion-specific Polarion HTML helpers.
- class capella2polarion.polarion_html_helper.JinjaRendererMixin¶
Bases:
objectA MixIn for converters that render Jinja templates for work items.
- capella2polarion.polarion_html_helper.TEXT_WORK_ITEM_ID_FIELD = '__C2P__id'¶
Custom ID field for text work items created by capella2polarion.
The upstream default is
__AUTO_RENDER__id; we use a distinct name so documents rendered by this tool can be distinguished.
- capella2polarion.polarion_html_helper.add_attachment_to_workitem(work_item: WorkItem, attachment: Capella2PolarionAttachment) None¶
Add the attachment to the workitem and add a PNG version if needed.