Update datatypes to check for circular pointer references. Change circul... #29

Merged
merged 1 commit into from Jan 10, 2014

Conversation

Projects
None yet
2 participants
Contributor

jonmorehouse commented Jan 8, 2014

Fixed Pointer Object to check for circular references. ParseResource now passes class name (the Parse class name once resolved) to the ParseType.convert_from_parse method.

In turn, when a pointer is come across, the "parent class name" is now passed to the Pointer object which checks for circular references. If a pointer object comes back and has an attribute that is a pointer to the parent class, then we replace this element with a string id.

This may not be the best solution for long term, but it works fine for my application where I'm using many circular references. Let me know any feedback you may have.

dgrtwo#28

Update datatypes to check for circular pointer references. Change cir…
…cular pointer references so that they return a string instead of pointer object for the secondary reference

dgrtwo pushed a commit that referenced this pull request Jan 10, 2014

David Robinson
Merge pull request #29 from jumper/master
Update datatypes to check for circular pointer references. Change circul...

@dgrtwo dgrtwo merged commit 9e9bbd2 into milesrichardson:master Jan 10, 2014

Collaborator

dgrtwo commented Jan 10, 2014

Nice, thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment