automatically populate namespace with existing tables on creation of dj.schema#188
Conversation
Use class properties for table_name and full_table_name. Fix ERD for part table. Fix datajoint#178
There was a problem hiding this comment.
The table name prefixes should be looked up in the corresponding classes.
There was a problem hiding this comment.
yes, each UserRelation should return its table name regular expression. This feature will have other uses.
|
Is there a good reason why this pull request is not onto the |
There was a problem hiding this comment.
I agree. That came from the development branch.
There was a problem hiding this comment.
That is a copy-paste duplicate from schema.py. Fixed it there as well.
There was a problem hiding this comment.
We should add a tag ?P<master> so we can easily extract this part later.
There was a problem hiding this comment.
Good idea. I thought about that, but then forgot. I added it.
The just instantiating the
schemadecorator populates the local namespace with class objects for all tables available in the database. So fardefinitionis set to....