Routines to handle the string class registry used by declarative.
This system allows specification of classes and expressions used in
_orm.relationship
using strings.
Class | _class_resolver |
Undocumented |
Class | _GetColumns |
Undocumented |
Class | _GetTable |
Undocumented |
Class | _ModNS |
Undocumented |
Class | _ModuleMarker |
Refers to a module name within _decl_class_registry. |
Class | _MultipleClassMarker |
refers to multiple classes of the same name within _decl_class_registry. |
Function | _determine_container |
Undocumented |
Function | _key_is_empty |
test if a key is empty of a certain object. |
Function | _resolver |
Undocumented |
Function | add_class |
Add a class to the _decl_class_registry associated with the given declarative class. |
Function | remove_class |
Undocumented |
Variable | _fallback_dict |
Undocumented |
Variable | _registries |
Undocumented |
test if a key is empty of a certain object.
used for unit tests against the registry to see if garbage collection is working.
"test" is a callable that will be passed an object should return True if the given object is the one we were looking for.
We can't pass the actual object itself b.c. this is for testing garbage collection; the caller will have to have removed references to the object itself.