示例#1
0
 class Foo(Base):
     _tag_fetcher = dependency("tag_fetcher")
示例#2
0
 class Greeter(zuice.Base):
     _name = zuice.dependency(Name)
示例#3
0
 class Greeter(zuice.Base):
     _name = zuice.dependency(Name)
     
     def hello(self):
         return "Hello {0}".format(self._name)
示例#4
0
 class Greeter(zuice.Base):
     _greeting = zuice.dependency(Greeting)
     _name = zuice.dependency(Name)
     
     def hello(self):
         return "{0} {1}".format(self._greeting, self._name)
示例#5
0
 class Foo(Base):
     _tag_fetcher = dependency("tag_fetcher")
     _blog_post_fetcher = dependency('post_fetcher')
示例#6
0
 class Child(Parent):
     _fetcher = dependency('post_fetcher')
示例#7
0
 class Parent(Base):
     _fetcher = dependency('tag_fetcher')
示例#8
0
 class View(Base):
     _tag_fetcher = dependency("tag_fetcher")