Closed henhuy closed 3 months ago
I like the approach of integrating the Mapper into the Adapter looking good and feeling smooth, thank you!
I am afraid that the adapters.py is getting to big and the module has now a mixed task, doing mapping and adapters work while also handling Facade Adapter specific tasks. I would like to separate the Facade specific classes maybe to another module?
I am afraid that the adapters.py is getting to big and the module has now a mixed task, doing mapping and adapters work while also handling Facade Adapter specific tasks. I would like to separate the Facade specific classes maybe to another module?
I thought the same. But then we have to think how to set up lookup parameter FACADE_ADAPTERS. maybe we should do this in another branch.
Why dont you want to leave it seperate classes and just let the facade-adapter inherit from both or let Adapter
inherit from Mapper
?
Why dont you want to leave it seperate classes and just let the facade-adapter inherit from both or let
Adapter
inherit fromMapper
?
You mean making Mapper
like a Mixin class? I think there would be multiple approaches to divide it. Making Adapter
class inherit from Mapper
class feels not right, though. For now, I just want to to get on and also think that Adapter
class isn't too overloaded yet...
Closes #70 Depends on #66 #67
Refactored
Mapper
class directly intoAdapter
class. All functions stay the same, but most parameters could be removed and instead are read from class attributes viaself
.