gears/environment.py
def register(self, mimetype, processor):
        """Register passed `processor` for passed `mimetype`."""
        if mimetype not in self or processor not in self[mimetype]:
            self.setdefault(mimetype, []).append(processor)
def register(self, mimetype, processor):
        if mimetype not in self or processor not in self[mimetype]:
            self.setdefault(mimetype, []).append(processor)
def register ( self , mimetype , processor ) : if mimetype not in self or processor not in self [ mimetype ] : self . setdefault ( mimetype , [ ] ) . append ( processor )
Register passed `processor` for passed `mimetype`.
Register passed processor for passed mimetype .