adewes / blitzdb

Blitz is a document-oriented database for Python that is backend-agnostic. It comes with a flat-file database for JSON documents and provides MongoDB-like querying capabilities.
http://blitzdb.readthedocs.org
MIT License
330 stars 37 forks source link

Autogenerate global list of all Object-derived classes #1

Closed adewes closed 10 years ago

adewes commented 10 years ago

Autogenerate a global list of all classes that are derived from the "Object" base class, so that a backend can load these on demand without the need to register them. This facilitates e.g. the loading of nested objects without having to register the corresponding class first.

adewes commented 10 years ago

Done, a list of all classes derived from the Document base class is now contained in backends.base.document_classes and is used by the autodiscover_classes function.