Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kind delimiter #844

Merged
merged 21 commits into from
Dec 31, 2013
Merged

Kind delimiter #844

merged 21 commits into from
Dec 31, 2013

Conversation

nlake44
Copy link
Contributor

@nlake44 nlake44 commented Dec 27, 2013

No description provided.

@@ -226,8 +227,8 @@ def get_kind_key(self, prefix, key_path):
# are of set size i.e. 2 > 0003 but 0002 < 0003
key_id = str(e.id()).zfill(ID_KEY_LENGTH)
path.append("{0}:{1}".format(e.type(), key_id))
encoded_path = '!'.join(path)
encoded_path += '!'
encoded_path = '\x01'.join(path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use _KIND_SEPARATOR here, and anywhere else that \x01 is present.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll pull the _KIND_SEPARATOR out to dbconstants, since it spans beyond the one class (hence the reason I didn't use it here, it was out of scope).

shatterednirvana added a commit that referenced this pull request Dec 31, 2013
@shatterednirvana shatterednirvana merged commit a8e5e3f into AppScale:master Dec 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants