Skip to content

Persist relation#103

Open
wolfgang-302 wants to merge 4 commits into
stefanofontanelli:masterfrom
wolfgang-302:persist_relation
Open

Persist relation#103
wolfgang-302 wants to merge 4 commits into
stefanofontanelli:masterfrom
wolfgang-302:persist_relation

Conversation

@wolfgang-302
Copy link
Copy Markdown

SQLAlchemySchemaNode.objectify() can not persist related data. See comments on issue 101.

This PR redefines this method. Related data can be persisted, all tests pass.

Wolfgang

…hips

Committer: Wolfgang Meiners <wolfgang@Wolfgangs-MBP.fritz.box>

On branch persist_relation
 Changes to be committed:
	modified:   colanderalchemy/schema.py
	modified:   tests/models.py
	new file:   tests/test_persist_data.py

redefine name
changed inspect(context) to inspect(context, raiseerr=False)
inserted test_persist_data.py to tests/__init__.py
@tisdall
Copy link
Copy Markdown
Collaborator

tisdall commented Jul 10, 2017

hmm.. it seems that the tests are failing because SQLAlchemy now requires at least py2.7 . I'll have to take a look when I can find some time.

@JocelynDelalande
Copy link
Copy Markdown

I did face this bug and tested this PR ; it actually fix the bug.

The two failing runs in Travis are not related to this PR but to setuptools lifecycle (current master would fail the same way).

@tisdall Any plan to merge this PR ?

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.

3 participants