def register_factory(self, factory, filter):
        self._factory_map.setdefault(factory, []).append(filter)
Initialize a collection attribute and return the collection adapter.
dataset/ETHPy150Open enthought/pyface/pyface/tasks/i_editor_area_pane.py/MEditorAreaPane.register_factory--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/orm/attributes.py/init_collection