Normalise actor/schema name in module
It would be nice to normalize actor/schema class name to allow to copy past a full python module without much effort.
We could use a predefined classname, and for the uniqueness use the qualified name of the module (or the qualified name of the class)
It would be ever more explicit and understandable, and easy to use than a self mangled name, because this unique name already can be used to load/reload the module.
Here is an example
# If you want to clone that module
# 1. you have to rename that class (based on the new module name, with the right uppercase)
# that's kind of tricky if the is numbers -> `Fromsomthing2Somthingelse`
class ZseriesscanSchema(ComponentActorSchema):
...
# 2. you have to rename that class
class ZseriesscanActor(ComponentActor):
# 3. you have to fix this reference
schema = ZseriesscanSchema
...
On an other hand, if we normalize the classnames, or read for every actors/schema classes, there is nothing to do.
class ActorSchema(ComponentActorSchema):
...
class Actor(ComponentActor):
schema = ActorSchema
...
Edited by Valentin Valls