rt 3.0.4__tar.gz → 3.0.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {rt-3.0.4 → rt-3.0.6}/CHANGELOG.md +8 -0
  2. {rt-3.0.4 → rt-3.0.6}/PKG-INFO +1 -1
  3. {rt-3.0.4 → rt-3.0.6}/rt/rest1.py +3 -3
  4. {rt-3.0.4 → rt-3.0.6}/rt/rest2.py +2 -2
  5. {rt-3.0.4 → rt-3.0.6}/rt.egg-info/PKG-INFO +1 -1
  6. {rt-3.0.4 → rt-3.0.6}/.editorconfig +0 -0
  7. {rt-3.0.4 → rt-3.0.6}/.flake8 +0 -0
  8. {rt-3.0.4 → rt-3.0.6}/.pylintrc +0 -0
  9. {rt-3.0.4 → rt-3.0.6}/AUTHORS +0 -0
  10. {rt-3.0.4 → rt-3.0.6}/LICENSE +0 -0
  11. {rt-3.0.4 → rt-3.0.6}/MANIFEST.in +0 -0
  12. {rt-3.0.4 → rt-3.0.6}/README.rst +0 -0
  13. {rt-3.0.4 → rt-3.0.6}/doc/Makefile +0 -0
  14. {rt-3.0.4 → rt-3.0.6}/doc/changelog.rst +0 -0
  15. {rt-3.0.4 → rt-3.0.6}/doc/conf.py +0 -0
  16. {rt-3.0.4 → rt-3.0.6}/doc/exceptions.rst +0 -0
  17. {rt-3.0.4 → rt-3.0.6}/doc/glossary.rst +0 -0
  18. {rt-3.0.4 → rt-3.0.6}/doc/index.rst +0 -0
  19. {rt-3.0.4 → rt-3.0.6}/doc/rest1.rst +0 -0
  20. {rt-3.0.4 → rt-3.0.6}/doc/rest2.rst +0 -0
  21. {rt-3.0.4 → rt-3.0.6}/doc/usage.rst +0 -0
  22. {rt-3.0.4 → rt-3.0.6}/pyproject.toml +0 -0
  23. {rt-3.0.4 → rt-3.0.6}/rt/__init__.py +0 -0
  24. {rt-3.0.4 → rt-3.0.6}/rt/exceptions.py +0 -0
  25. {rt-3.0.4 → rt-3.0.6}/rt/py.typed +0 -0
  26. {rt-3.0.4 → rt-3.0.6}/rt.egg-info/SOURCES.txt +0 -0
  27. {rt-3.0.4 → rt-3.0.6}/rt.egg-info/dependency_links.txt +0 -0
  28. {rt-3.0.4 → rt-3.0.6}/rt.egg-info/requires.txt +0 -0
  29. {rt-3.0.4 → rt-3.0.6}/rt.egg-info/top_level.txt +0 -0
  30. {rt-3.0.4 → rt-3.0.6}/setup.cfg +0 -0
  31. {rt-3.0.4 → rt-3.0.6}/setup.py +0 -0
  32. {rt-3.0.4 → rt-3.0.6}/tests/__init__.py +0 -0
  33. {rt-3.0.4 → rt-3.0.6}/tests/conftest.py +0 -0
  34. {rt-3.0.4 → rt-3.0.6}/tests/test_basic.py +0 -0
  35. {rt-3.0.4 → rt-3.0.6}/tests/test_rest1.py +0 -0
  36. {rt-3.0.4 → rt-3.0.6}/tests/test_tickets.py +0 -0
@@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [v3.0.6], 2023-06-21
7
+ ### Added
8
+ - Fixed bug in rest1 (#86)
9
+
10
+ ## [v3.0.5], 2023-02-02
11
+ ### Added
12
+ - Added support for specifying custom fields on user creation/edit (#82).
13
+
6
14
  ## [v3.0.4], 2022-11-08
7
15
  ### Fixes
8
16
  - Workaround for parsing issues with tickets with only 1 attachment (#80), due to probably an upstream bug.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rt
3
- Version: 3.0.4
3
+ Version: 3.0.6
4
4
  Summary: Python interface to Request Tracker API
5
5
  Author-email: Georges Toth <georges.toth@govcert.etat.lu>
6
6
  License: GNU General Public License v3 (GPLv3)
@@ -268,7 +268,7 @@ class Rt:
268
268
  if self.RE_PATTERNS['syntax_error_pattern'].match(msg[0]):
269
269
  raise APISyntaxError(msg[2][2:] if len(msg) > 2 else 'Syntax error.')
270
270
  if self.RE_PATTERNS['bad_request_pattern'].match(msg[0]):
271
- raise BadRequestError(msg[3] if len(msg) > 2 else 'Bad request.')
271
+ raise BadRequestError(msg[2] if len(msg) > 2 else 'Bad request.')
272
272
 
273
273
  @staticmethod
274
274
  def __normalize_list(msg: typing.Union[str, typing.Sequence[str]]) -> typing.Sequence[str]:
@@ -423,8 +423,8 @@ class Rt:
423
423
  # we will not raise the error but just return False to indicate
424
424
  # invalid credentials
425
425
  return False
426
- else:
427
- return bool(self.login_result)
426
+
427
+ return bool(self.login_result)
428
428
 
429
429
  def logout(self) -> bool:
430
430
  """ Logout of user.
@@ -979,7 +979,7 @@ class Rt:
979
979
  'MobilePhone', 'PagerPhone', 'ContactInfo', 'Comments',
980
980
  'Signature', 'Lang', 'EmailEncoding', 'WebEncoding',
981
981
  'ExternalContactInfoId', 'ContactInfoSystem', 'ExternalAuthId',
982
- 'AuthSystem', 'Privileged', 'Disabled'}
982
+ 'AuthSystem', 'Privileged', 'Disabled', 'CustomFields'}
983
983
  invalid_fields = []
984
984
 
985
985
  post_data = {'Name': user_name,
@@ -1057,7 +1057,7 @@ class Rt:
1057
1057
  'MobilePhone', 'PagerPhone', 'ContactInfo', 'Comments',
1058
1058
  'Signature', 'Lang', 'EmailEncoding', 'WebEncoding',
1059
1059
  'ExternalContactInfoId', 'ContactInfoSystem', 'ExternalAuthId',
1060
- 'AuthSystem', 'Privileged', 'Disabled'}
1060
+ 'AuthSystem', 'Privileged', 'Disabled', 'CustomFields'}
1061
1061
  invalid_fields = []
1062
1062
 
1063
1063
  post_data = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rt
3
- Version: 3.0.4
3
+ Version: 3.0.6
4
4
  Summary: Python interface to Request Tracker API
5
5
  Author-email: Georges Toth <georges.toth@govcert.etat.lu>
6
6
  License: GNU General Public License v3 (GPLv3)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes