arelle-release 2.37.62__py3-none-any.whl → 2.37.63__py3-none-any.whl

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.

Potentially problematic release.


This version of arelle-release might be problematic. Click here for more details.

arelle/FileSource.py CHANGED
@@ -51,7 +51,10 @@ def openFileSource(
51
51
  sourceFileSource: FileSource | None = None,
52
52
  ) -> FileSource:
53
53
  if sourceZipStream:
54
- if isinstance(sourceZipStream, FileNamedBytesIO) and sourceZipStream.fileName:
54
+ if name := getattr(sourceZipStream, "name", None):
55
+ # Python IO convention is to use the name attribute
56
+ sourceZipStreamFileName: str = os.sep + str(name)
57
+ elif isinstance(sourceZipStream, FileNamedBytesIO) and sourceZipStream.fileName:
55
58
  sourceZipStreamFileName = os.sep + sourceZipStream.fileName
56
59
  else:
57
60
  sourceZipStreamFileName = os.sep + "POSTupload.zip"
arelle/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '2.37.62'
32
- __version_tuple__ = version_tuple = (2, 37, 62)
31
+ __version__ = version = '2.37.63'
32
+ __version_tuple__ = version_tuple = (2, 37, 63)
33
33
 
34
34
  __commit_id__ = commit_id = None
arelle/api/Session.py CHANGED
@@ -113,6 +113,12 @@ class Session:
113
113
  ) -> bool:
114
114
  """
115
115
  Perform a run using the given options.
116
+ When using a sourceZipStream, the name attribute on it will be checked
117
+ and, if present, assumed to be the effective name of the zip file the
118
+ stream represents. When validating '.xbri' files, via a sourceZipStream,
119
+ it is important to set this name attribute to avoid
120
+ rpe:documentTypeFileExtensionMismatch errors.
121
+
116
122
  :param options: Options to use for the run.
117
123
  :param sourceZipStream: Optional stream to read source data from.
118
124
  :param responseZipStream: Options stream to write response data to.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arelle-release
3
- Version: 2.37.62
3
+ Version: 2.37.63
4
4
  Summary: An open source XBRL platform.
5
5
  Author-email: "arelle.org" <support@arelle.org>
6
6
  License-Expression: Apache-2.0
@@ -22,7 +22,7 @@ arelle/DialogURL.py,sha256=JH88OPFf588E8RW90uMaieok7A_4kOAURQ8kHWVhnao,4354
22
22
  arelle/DialogUserPassword.py,sha256=kWPlCCihhwvsykDjanME9qBDtv6cxZlsrJyoMqiRep4,13769
23
23
  arelle/DisclosureSystem.py,sha256=BawcjExpC7tfTuWbN4DRVHbitu87mS16q2q6LPbAWJU,25163
24
24
  arelle/ErrorManager.py,sha256=5BrpD9Ej8b-2JFR-GgWL32Oc2qItYnLbZApaToDKt0o,16972
25
- arelle/FileSource.py,sha256=asaX2wM47T7S6kELwmXm-YjGIoV6poWz_YdYThY0lpk,47983
25
+ arelle/FileSource.py,sha256=3OsWhyCiPzek72XNWvxmfVCCIYADzUGNRNt8Jh2rCu4,48170
26
26
  arelle/FunctionCustom.py,sha256=d1FsBG14eykvpLpgaXpN8IdxnlG54dfGcsXPYfdpA9Q,5880
27
27
  arelle/FunctionFn.py,sha256=BcZKah1rpfquSVPwjvknM1pgFXOnK4Hr1e_ArG_mcJY,38058
28
28
  arelle/FunctionIxt.py,sha256=8JELGh1l4o8Ul4_G7JgwX8Ebch9it2DblI6OkfL33Cw,80082
@@ -125,9 +125,9 @@ arelle/XmlValidateConst.py,sha256=U_wN0Q-nWKwf6dKJtcu_83FXPn9c6P8JjzGA5b0w7P0,33
125
125
  arelle/XmlValidateParticles.py,sha256=Mn6vhFl0ZKC_vag1mBwn1rH_x2jmlusJYqOOuxFPO2k,9231
126
126
  arelle/XmlValidateSchema.py,sha256=6frtZOc1Yrx_5yYF6V6oHbScnglWrVbWr6xW4EHtLQI,7428
127
127
  arelle/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
128
- arelle/_version.py,sha256=i1kzqW6re5DMD7NBQE_tq-psWifvX1EvLRy8SU-QUGA,708
128
+ arelle/_version.py,sha256=NlCNeygn2_HXMOIXO9pyOcwbkHyOOFvVYnSaoHMOIV4,708
129
129
  arelle/typing.py,sha256=PRe-Fxwr2SBqYYUVPCJ3E7ddDX0_oOISNdT5Q97EbRM,1246
130
- arelle/api/Session.py,sha256=kgSxS7VckA1sQ7xp0pJiK7IK-vRxAdAZKUo8gEx27s8,7549
130
+ arelle/api/Session.py,sha256=a71ML4FOkWxeqxQBRu6WUqkUoI4C5R6znzAQcbGR5jg,7902
131
131
  arelle/config/creationSoftwareNames.json,sha256=5MK7XUjfDJ9OpRCCHXeOErJ1SlTBZji4WEcEOdOacx0,3128
132
132
  arelle/config/disclosuresystems.xml,sha256=8lBSGCOuVsVxttmpqkPlURBzaiGpPm8b8aYtxKRsKnk,16617
133
133
  arelle/config/disclosuresystems.xsd,sha256=O15JhA66T-FcPkLBEOYzqlW0LLi3YS3L8ZT5zn4obRI,4279
@@ -687,9 +687,9 @@ arelle/utils/validate/ValidationUtil.py,sha256=hghMQoNuC3ocs6kkNtIQPhh8QwzubwHGt
687
687
  arelle/utils/validate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
688
688
  arelle/webserver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
689
689
  arelle/webserver/bottle.py,sha256=P-JECd9MCTNcxCnKoDUvGcoi03ezYVOgoWgv2_uH-6M,362
690
- arelle_release-2.37.62.dist-info/licenses/LICENSE.md,sha256=Q0tn6q0VUbr-NM8916513NCIG8MNzo24Ev-sxMUBRZc,3959
691
- arelle_release-2.37.62.dist-info/METADATA,sha256=6DYGg8dgFhLavpOlLxZs2pGIuK3diFeDrMIGZ9bZKpU,9355
692
- arelle_release-2.37.62.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
693
- arelle_release-2.37.62.dist-info/entry_points.txt,sha256=Uj5niwfwVsx3vaQ3fYj8hrZ1xpfCJyTUA09tYKWbzpo,111
694
- arelle_release-2.37.62.dist-info/top_level.txt,sha256=fwU7SYawL4_r-sUMRg7r1nYVGjFMSDvRWx8VGAXEw7w,7
695
- arelle_release-2.37.62.dist-info/RECORD,,
690
+ arelle_release-2.37.63.dist-info/licenses/LICENSE.md,sha256=Q0tn6q0VUbr-NM8916513NCIG8MNzo24Ev-sxMUBRZc,3959
691
+ arelle_release-2.37.63.dist-info/METADATA,sha256=FNFdBc1TppTeVTAIgwBO1GEKVs9J0AowuZaPk7hHcQg,9355
692
+ arelle_release-2.37.63.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
693
+ arelle_release-2.37.63.dist-info/entry_points.txt,sha256=Uj5niwfwVsx3vaQ3fYj8hrZ1xpfCJyTUA09tYKWbzpo,111
694
+ arelle_release-2.37.63.dist-info/top_level.txt,sha256=fwU7SYawL4_r-sUMRg7r1nYVGjFMSDvRWx8VGAXEw7w,7
695
+ arelle_release-2.37.63.dist-info/RECORD,,