[Stoq-devel] [Bug 2712] - Make current branch & current branch
station utilities
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Mon Jul 31 10:38:14 BRT 2006
http://bugs.async.com.br/show_bug.cgi?id=2712
--- Comment #5 from Johan Dahlin <jdahlin at async.com.br> 2006-07-31 10:38 BRT ---
> > > >Index: stoqlib/stoqlib/lib/interfaces.py
> >
> > > >+class ICurrentBranch(Interface):
> > > >+ """
> > > >+ This is a mainly a marker for the current branch.
> > > >+ It's mainly used by get_current_branch()
> > > >+ """
> > >
> > > it is not supposed to be IBranch?
> >
> > There is already another interface called IBranch, so it'd be confusing to have
> > two with the same name.
> >
>
> sure, make this interface a subclass then?
That'll add a dependency of stoqlib.domain.interfaces in
stoqlib.lib.interfaces, which I rather avoided. I can add a comment explaining
that utilities providing this interface are expected to implement IBranch, is
that good enough?
More information about the Stoq-devel
mailing list