Ejemplo n.º 1
0
 def configure(self, binder):
     binder.bind(ch.Person, to=ch.EvilPerson)
Ejemplo n.º 2
0
 def configure(self, binder):
     binder.bind(ch.Person, annotated_with='good', to=ch.GoodPerson)
Ejemplo n.º 3
0
 def configure(self, binder):
     binder.bind(ch.Person, annotated_with="good", to=ch.GoodPerson)
Ejemplo n.º 4
0
 def configure(self, binder):
     binder.bind(ch.Person, to=ch.EvilPerson)
Ejemplo n.º 5
0
 def configure(self, binder):
     binder.bind_scope(this.CustomScope, this.CustomScope())
     binder.bind(ch.Person, to=ch.EvilPerson)