Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56352408
report.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
877 B
Referenced Files
None
Subscribers
None
report.py
View Options
# -------------------------------------------------------------
# Nasqueron Reports :: Reports
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Underlying types to represent a report
# License: BSD-2-Clause
# -------------------------------------------------------------
from
typing
import
List
,
Any
class
RawReport
:
"""The report fetched from the datasource"""
def
__init__
(
self
,
headers
:
Any
=
None
,
rows
:
List
[
Any
]
=
None
):
self
.
headers
=
headers
self
.
rows
=
rows
class
Report
:
"""The report with access to raw report and formatted version"""
def
__init__
(
self
,
raw
:
RawReport
|
None
=
None
,
formatted
:
str
=
None
):
if
raw
is
None
:
self
.
raw
=
RawReport
()
else
:
self
.
raw
=
raw
self
.
formatted
=
formatted
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Sat, Nov 7, 08:16 (1 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4244086
Default Alt Text
report.py (877 B)
Attached To
Mode
rRPRT Nasqueron internal reports
Attached
Detach File
Event Timeline
Log In to Comment