Skip to content

Commit

Permalink
corrections for fields
Browse files Browse the repository at this point in the history
  • Loading branch information
raftmsohani committed Nov 15, 2023
1 parent 96634b2 commit 0be491f
Show file tree
Hide file tree
Showing 3 changed files with 286 additions and 299 deletions.
12 changes: 10 additions & 2 deletions tdrs-backend/tdpservice/parsers/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,17 @@ def parse_value(self, line):
class TransformField(Field):
"""Represents a field that requires some transformation before serializing."""

def __init__(self, transform_func, item, name, type, startIndex, endIndex, required=True,
def __init__(self, transform_func, item, name, friendly_name, type, startIndex, endIndex, required=True,
validators=[], **kwargs):
super().__init__(item, name, type, startIndex, endIndex, required, validators)
super().__init__(
item=item,
name=name,
type=type,
friendly_name=friendly_name,
startIndex=startIndex,
endIndex=endIndex,
required=required,
validators=validators)
self.transform_func = transform_func
self.kwargs = kwargs

Expand Down
Loading

0 comments on commit 0be491f

Please sign in to comment.