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

Support dynamic creation of Syrup models #29

Open
pettazz opened this issue Apr 27, 2015 · 1 comment
Open

Support dynamic creation of Syrup models #29

pettazz opened this issue Apr 27, 2015 · 1 comment
Assignees
Labels

Comments

@pettazz
Copy link
Owner

pettazz commented Apr 27, 2015

Right now, the only way to register a model instance with Syrup is to just start using it and trigger lazy loading, which looks for the model's class file on the filesystem and instantiates it. Syrup needs to be able to also support programmatically creating a model instance and requesting that it be registered. This will most commonly follow a pattern like creating a new instance of BaseModel, then setting its magic members and field instances, then attaching it to Syrup with some special name that doesn't necessarily match a module.

@pettazz
Copy link
Owner Author

pettazz commented Jun 17, 2015

Data'sBeard grew into a totally different module with a similar purpose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant