(cls, namespace)
Registers all L{ShapeDrawer} classes in the given namespace

        @param namespace: a Python dict mapping names to Python objects.
Registers all L{ShapeDrawer} classes in the given namespace
Registers all L { ShapeDrawer } classes in the given namespace
def register_namespace(cls, namespace):
        """Registers all L{ShapeDrawer} classes in the given namespace

        @param namespace: a Python dict mapping names to Python objects."""
        for name, value in namespace.items():
            if name.startswith("__"):
                continue
            if isinstance(value, type):
                if issubclass(value, ShapeDrawer) and value != ShapeDrawer:
                    cls.register(value)
def register_namespace ( cls , namespace ) : for name , value in namespace . items ( ) : if name . startswith ( "__" ) : continue if isinstance ( value , type ) : if issubclass ( value , ShapeDrawer ) and value != ShapeDrawer : cls . register ( value )