Coding indexing and protecting middleware

Have some difficulties now with protecting backend being a subclass of MutableBackend: some functions (like store_branches and store_userheads) should be defined as 1) abstract and 2) they don't have to know anything about items or backends it is written into. So it is defined in storage/backends/__init__.py:MutableBackend

   1 @abstractmethod
   2 def store_branch(self, branchid, branch):

But in the routing middleware it is required to know the backend to store the branch in. But store_branch is already defined as abstract, and well, I dunno what to do with that

MoinMoin: GoogleSoc2012/BranchMergeSync/2012-06-29 (last edited 2012-06-30 20:32:19 by ThomasWaldmann)