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
3e3d2571
Commit
3e3d2571
authored
Mar 25, 2015
by
Dan Krause
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #104 from dankrause/master
Set an ACL on ParseResource by default
parents
fc8a5345
eb437d98
Hide 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 @
3e3d2571
...
...
@@ -255,6 +255,8 @@ class ACL(ParseType):
def
__init__
(
self
,
acl
=
None
):
self
.
_acl
=
acl
or
{}
if
acl
is
None
:
self
.
set_default
(
read
=
True
,
write
=
True
)
def
_to_native
(
self
):
return
self
.
_acl
...
...
@@ -317,6 +319,8 @@ class ParseResource(ParseBase):
def
__init__
(
self
,
**
kw
):
self
.
objectId
=
None
self
.
_init_attrs
(
kw
)
if
'ACL'
not
in
kw
:
self
.
ACL
=
ACL
()
def
__getattr__
(
self
,
attr
):
# if object is not loaded and attribute is missing, try to load it
...
...
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