Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
pyramid-linkaja
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b35816ed
authored
Mar 16, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Log saat data memuat karakter titik dua
1 parent
a3afff11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
CHANGES.txt
pyramid_linkaja/responses.py
CHANGES.txt
View file @
b35816e
0.1.3 16-3-2021
---------------
- Tambah log bila data memuat karakter titik dua
0.1.2 26-11-2020
0.1.2 26-11-2020
----------------
----------------
- Tambah includeme() agar bisa dipasang di file konfigurasi
- Tambah includeme() agar bisa dipasang di file konfigurasi
...
...
pyramid_linkaja/responses.py
View file @
b35816e
import
logging
from
opensipkd.string
import
(
from
opensipkd.string
import
(
FixLength
,
FixLength
,
FullDateTimeVar
,
FullDateTimeVar
,
...
@@ -12,6 +13,9 @@ from .structure import (
...
@@ -12,6 +13,9 @@ from .structure import (
from
.exceptions
import
InternalError
from
.exceptions
import
InternalError
log
=
logging
.
getLogger
(
__name__
)
class
InquiryResponse
(
Row
):
class
InquiryResponse
(
Row
):
def
__init__
(
self
):
def
__init__
(
self
):
super
()
.
__init__
(
INQUIRY_RESP_FIELDS
)
super
()
.
__init__
(
INQUIRY_RESP_FIELDS
)
...
@@ -19,6 +23,7 @@ class InquiryResponse(Row):
...
@@ -19,6 +23,7 @@ class InquiryResponse(Row):
def
__setitem__
(
self
,
name
,
value
):
def
__setitem__
(
self
,
name
,
value
):
if
value
.
find
(
':'
)
>
-
1
:
if
value
.
find
(
':'
)
>
-
1
:
msg
=
f
'Ada titik dua pada {name} yaitu {value}'
msg
=
f
'Ada titik dua pada {name} yaitu {value}'
log
.
error
(
msg
)
raise
InternalError
(
msg
)
raise
InternalError
(
msg
)
Row
.
__setitem__
(
self
,
name
,
value
)
Row
.
__setitem__
(
self
,
name
,
value
)
...
@@ -30,7 +35,8 @@ class InquiryResponse(Row):
...
@@ -30,7 +35,8 @@ class InquiryResponse(Row):
def
from_err
(
self
,
err
):
def
from_err
(
self
,
err
):
self
.
values
[
'Response Code'
]
=
err
.
code
self
.
values
[
'Response Code'
]
=
err
.
code
self
.
values
[
'Notification Message'
]
=
err
.
message
self
.
values
[
'Notification Message'
]
=
\
self
.
values
[
'Biller Name'
]
=
err
.
message
def
from_raw
(
self
,
raw
):
def
from_raw
(
self
,
raw
):
t
=
raw
.
split
(
':'
)
t
=
raw
.
split
(
':'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment