Skip to content
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

Easier access to factory component attributes after building #139

Open
timdebruin opened this issue Apr 29, 2020 · 0 comments
Open

Easier access to factory component attributes after building #139

timdebruin opened this issue Apr 29, 2020 · 0 comments

Comments

@timdebruin
Copy link
Contributor

Feature motivation

Sometimes factory components have Fields that we need to access from the code. However once the factory component has already built what it should build these attributes are hard to access. The current way to do this would be for instance:

student = self.__base_getattribute__("model").student_model

Feature description

It would be nice to have some syntactic sugar for the above, for example:

student = self._model.student_model

Where the _name notation would be the way to access the factory component that created whatever the factory is tasked with producing (which would be self.model)

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

No branches or pull requests

1 participant