[PEAK] I don't understand uponAssembly()
John Landahl
john at landahl.org
Thu Mar 24 15:39:34 EST 2005
Doug Quale wrote:
> but I don't understand how this works.
>
> >>> class k(binding.Component):
> ... def uponAssembly(self):
> ... print 'assembling %r' % self
> ...
This is not how uponAssembly works, as far as I know. It is typically
used in a property constructor, like so:
>>> class Foo(binding.Component):
... def bar(self):
... print "hello world"
... bar = binding.Make(bar, uponAssembly=True)
...
>>> f = Foo(config.makeRoot())
hello world
What is it you're trying to do?
More information about the PEAK
mailing list