Skip to content

Addinheritance - #39

Merged
sreeder merged 9 commits into
Dev1_0from
addinheritance
Apr 11, 2016
Merged

Addinheritance#39
sreeder merged 9 commits into
Dev1_0from
addinheritance

Conversation

@sreeder

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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_0Apr 11, 2016
@sreeder
sreeder deleted the addinheritance branch April 11, 2016 17:00
Sign up for freeto 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

@sreeder@emiliom