Skip to content

Addinheritance #39

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

Merged
merged 9 commits into from
Apr 11, 2016
Merged

Addinheritance #39

merged 9 commits into from
Apr 11, 2016

Conversation

sreeder
Copy link
Contributor

@sreeder sreeder commented Apr 4, 2016

I have added inheritance, for results and sampling features, and I have tested it for both creation and reading. I was also able to add an init function to the base inherited class

@sreeder
Copy link
Contributor Author

sreeder commented Apr 4, 2016

If there is no feedback I will merge the branch on April 7th.
@cdesyoun @emiliom @valentinedwv @horsburgh

SamplingFeatures.FeatureGeometry won't be used by default; FeatureGeometryWKT will be used instead. So, the __repr__ method should return FeatureGeometryWKT, not FeatureGeometry
SamplingFeatureObj = relationship(SamplingFeatures)
# SamplingFeatureObj = relationship(SamplingFeatures)
__mapper_args__ = {
'polymorphic_identity':'Specimen',
Copy link
Member

Choose a reason for hiding this comment

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

Should it be 'polymorphic_identity':'specimens', (lowercase and plural)? I don't know myself, but that seems more consistent with what you're doing in Results

@sreeder sreeder merged commit b1cc22b into Dev1_0 Apr 11, 2016
@sreeder sreeder deleted the addinheritance branch April 11, 2016 17:00
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