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
7645b803
Commit
7645b803
authored
Sep 14, 2016
by
Dharam Gollapudi
Committed by
GitHub
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in README.mkd
Fix typos
parent
84d88b79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.mkd
+3
-3
No files found.
README.mkd
View file @
7645b803
...
@@ -104,7 +104,7 @@ register your access credentials. You can do so by calling
...
@@ -104,7 +104,7 @@ register your access credentials. You can do so by calling
`parse_rest.connection.register`
.
`parse_rest.connection.register`
.
Before getting to code, a word of caution. You need to consider how your application is
Before getting to code, a word of caution. You need to consider how your application is
meant to be deployed. Parse identifies your application though
meant to be deployed. Parse identifies your application th
r
ough
different keys (available from your Parse dashboard) that are used in
different keys (available from your Parse dashboard) that are used in
every request done to their servers.
every request done to their servers.
...
@@ -310,7 +310,7 @@ encountered. For example:
...
@@ -310,7 +310,7 @@ encountered. For example:
dupe_object = list(MyClass.Query.all().limit(2))[0]
dupe_object = list(MyClass.Query.all().limit(2))[0]
dupe_object2 = list(MyClass.Query.all().limit(2))[1]
dupe_object2 = list(MyClass.Query.all().limit(2))[1]
new_object = MyClass(some_column=11111)
new_object = MyClass(some_column=11111)
objects = [dupe_object
+
new_object]
objects = [dupe_object
, dupe_object2,
new_object]
batcher = ParseBatcher()
batcher = ParseBatcher()
batcher.batch_save(objects)
batcher.batch_save(objects)
...
@@ -334,7 +334,7 @@ And `CRUCIALLY`, the objectId field of the NON-duplicate object will be correctl
...
@@ -334,7 +334,7 @@ And `CRUCIALLY`, the objectId field of the NON-duplicate object will be correctl
~~~
~~ {python}
~~~
~~ {python}
>>> #batch_save as above...
>>> #batch_save as above...
>>> print objects
>>> print objects
[<MyClass:
gOHuhPbGZJ>, <MyClass:None>, <MyClass:None
>]
[<MyClass:
None>, <MyClass:None>, <MyClass:gOHuhPbGZJ
>]
~~~
~~
~~~
~~
Therefore, one way to tell which objects saved successfully after a batch save operation
Therefore, one way to tell which objects saved successfully after a batch save operation
...
...
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