Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ParsePy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ParsePy
Commits
67a7042a
Commit
67a7042a
authored
Jan 09, 2017
by
Miles Richardson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue #155
parent
5a86ba0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
parse_rest/datatypes.py
+4
-0
No files found.
parse_rest/datatypes.py
View file @
67a7042a
...
@@ -439,7 +439,11 @@ class ParseResource(ParseBase):
...
@@ -439,7 +439,11 @@ class ParseResource(ParseBase):
def
_init_attrs
(
self
,
args
):
def
_init_attrs
(
self
,
args
):
for
key
,
value
in
six
.
iteritems
(
args
):
for
key
,
value
in
six
.
iteritems
(
args
):
# https://github.com/milesrichardson/ParsePy/issues/155
try
:
setattr
(
self
,
key
,
ParseType
.
convert_from_parse
(
key
,
value
))
setattr
(
self
,
key
,
ParseType
.
convert_from_parse
(
key
,
value
))
except
AttributeError
:
continue
def
_to_native
(
self
):
def
_to_native
(
self
):
return
ParseType
.
convert_to_parse
(
self
)
return
ParseType
.
convert_to_parse
(
self
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment