# Python 2.7/3.8 module to manage the SomConnexio's ERP integration with OTRS
This library manages all the business logic between the Som Connexio's systems and the ticketing tool OTRS.
## [Processes](https://gitlab.com/coopdevs/otrs-somconnexio/-/wikis/processes/README)
## OTRS Configuration
Configure the web services in OTRS:
#### Ticket Connector (Provider)
* Usage:
It exposes the Ticket, Article and DynamicFields object and allows to get, create, update and remove tickets. We use the PyOTRS to interact with it. Look in the [PyOTRS](https://gitlab.com/rhab/PyOTRS/-/blob/master/README.rst) docs for more info.
* Configuration:
Use the template provided by the PyOTRS client: https://gitlab.com/rhab/PyOTRS/-/blob/master/webservices_templates/GenericTicketConnectorREST.yml
#### CustomerUser Connector (Provider)
* Usage:
It's a RPCConnector. It interacts with the OTRS objects directly calling the class methods.
* Configuration:
You need admin permissions to manage it.
Contact with your OTRS provider.
#### MMCaller Connector (Requester)
* Usage:
It calls MMProxy when an event is raised.
* Configuration:
https://gitlab.com/coopdevs/somconnexio-documentation/-/blob/master/integracions/masmovil.md#webservice-dotrs
## Environment configuration
### OTRSClient
The client to interact with OTRS. You need to define the next environment variables to use the client:
```
OTRS_URL= # Baseurl of the OTRS instance
OTRS_USER= # Creadencials of user with write acces to OTRS
OTRS_PASSW=
```
## Python version
We are using [Pyenv](https://github.com/pyenv/pyenv) to fix the Python version and the virtualenv to test the package.
You need:
* Intall and configure [`pyenv`](https://github.com/pyenv/pyenv)
* Install and configure [`pyenv-virtualenvwrapper`](https://github.com/pyenv/pyenv-virtualenvwrapper)
* Intall locally the version of python needed:
```
$ pyenv install 3.8.2
```
* Create the virtualenv to use:
```
$ pyenv virtualenv 3.8.2 otrs_somconnexio
```
## Python packages requirements
Install the Python packages in the virtual environment:
```
$ pyenv exec pip install -r requirements.txt
```
## Run tests
To run the test you can run:
```
$ tox
```
Also you can run only the tests running:
```
$ python setup.py test
```
If running the tests with tox, they will be tested with both python3.8 and python2.7. This is because OTRS-SomConnexio works with an ERP which uses python2, as well as with other packages that use python3.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共98个文件
py:89个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:otrs_somconnexio-0.4.1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
otrs_somconnexio-0.4.1.tar.gz (98个子文件)
otrs_somconnexio-0.4.1
PKG-INFO 4KB
tests
user_management_client
test_user_management_response.py 2KB
__init__.py 0B
test_client.py 4KB
data
otrs_raw_responses.py 1KB
__init__.py 0B
responses
test_ticket_creation.py 1KB
__init__.py 0B
integration
test_ticket_factory.py 5KB
test_change_customer_language.py 1KB
__init__.py 0B
test_update_ticket_with_coverage_data.py 2KB
services
test_mappint_services.py 844B
test_update_ticket_with_provider_info.py 2KB
test_update_process_ticket_with_VF_provisioning.py 1KB
__init__.py 0B
test_mapping_mobile_minutes.py 794B
test_update_process_ticket_with_coverage_tickets_info_service.py 1KB
otrs_models
process_ticket
__init__.py 0B
test_mobile_process_ticket.py 4KB
test_internet_process_ticket.py 8KB
test_adsl_ticket.py 4KB
test_fiber_dynamic_fields.py 15KB
test_fiber_ticket.py 4KB
test_ticket_factory.py 2KB
test_adsl_dynamic_fields.py 15KB
test_telecom_company.py 1KB
__init__.py 0B
test_mobile_ticket.py 5KB
test_customer_user.py 2KB
test_service.py 5KB
test_vf_provisioning_article.py 855B
test_coverage_article.py 1KB
test_mobile_dynamic_fields.py 11KB
configuration
test_adsl_ticket.py 1KB
test_fiber_ticket.py 1KB
__init__.py 0B
test_mobile_ticket.py 1KB
test_coverage_ticket.py 995B
test_abstract_article.py 820B
otrs_somconnexio.egg-info
PKG-INFO 4KB
requires.txt 22B
not-zip-safe 1B
SOURCES.txt 4KB
top_level.txt 23B
dependency_links.txt 1B
setup.cfg 38B
setup.py 1KB
README.md 2KB
otrs_somconnexio
user_management_client
client.py 2KB
__init__.py 0B
user_management_response.py 817B
client.py 6KB
__init__.py 0B
responses
__init__.py 0B
ticket_creation.py 736B
services
mapping_mobile_minutes.py 257B
mapping_services.py 298B
__init__.py 0B
update_process_ticket_with_coverage_tickets_info_service.py 851B
update_process_ticket_with_VF_provisioning.py 877B
update_ticket_with_provider_info.py 812B
otrs_models
process_ticket
mobile.py 2KB
internet.py 5KB
__init__.py 0B
customer_data.py 414B
fiber_ticket.py 827B
internet_dynamic_fields.py 4KB
abstract_article.py 325B
fiber_data.py 2KB
provision_dynamic_fields.py 2KB
coverage_article.py 862B
mobile_ticket.py 834B
telecom_company.py 3KB
adsl_data.py 2KB
providers.py 137B
provision_article.py 290B
adsl_dynamic_fields.py 614B
configurations
fiber_ticket.py 846B
mobile_ticket.py 762B
__init__.py 0B
adsl_ticket.py 838B
service.py 1KB
__init__.py 0B
provision_ticket.py 2KB
fiber_dynamic_fields.py 414B
mobile_data.py 682B
ticket_factory.py 1KB
mobile_dynamic_fields.py 2KB
customer_user.py 981B
coverage_ticket.py 690B
vf_provisioning_article.py 578B
coverage
adsl.py 475B
mm_fibre.py 208B
vdf_fibre.py 238B
__init__.py 0B
adsl_ticket.py 819B
exceptions.py 2KB
共 98 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功