Author: dmeyer
Date: Fri Feb 29 13:52:32 2008
New Revision: 3136
Log:
update test
Modified:
trunk/base/test/interface.py
Modified: trunk/base/test/interface.py
==============================================================================
--- trunk/base/test/interface.py (original)
+++ trunk/base/test/interface.py Fri Feb 29 13:52:32 2008
@@ -26,14 +26,14 @@
def x(self):
print 2
-kaa.add_interface(FooInterface, 'test.Foo')
+kaa.utils.add_interface(FooInterface, 'test.Foo')
class BarInterface(object):
def is_also_foo(self):
print isinstance(self, FooInterface)
-kaa.add_interface(BarInterface, 'bar')
+kaa.utils.add_interface(BarInterface, 'bar')
#
@@ -41,7 +41,10 @@
#
class MyObject(object):
- __metaclass__ = kaa.implements('test.Foo', 'bar')
+
+ # Note: the interfaces MUST be added up to this point or it
+ # will crash even if MyObject is not created!
+ __metaclass__ = kaa.utils.implements('test.Foo', 'bar')
def __init__(self):
print 'Init MyObject'
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog