|
|
@@ -41,12 +41,17 @@ class ClientDistUpdate:
|
|
|
# Look up the function
|
|
|
#assert(aClass.__dict__.has_key(self.name))
|
|
|
#func = aClass.__dict__[self.name]
|
|
|
- func = eval(cdc.name + "." + cdc.name + "." + self.name)
|
|
|
- print("Calling: " + cdc.name + "." + cdc.name + "." + self.name)
|
|
|
- # Get the arguments into a list
|
|
|
- args = self.extractArgs(di)
|
|
|
- # Apply the function to the object with the arguments
|
|
|
- apply(func, [do] + args)
|
|
|
+
|
|
|
+ # HACK HACK HACK HACK!!!!!
|
|
|
+ try:
|
|
|
+ do.LocalToon_initialized
|
|
|
+ except:
|
|
|
+ func = eval(cdc.name + "." + cdc.name + "." + self.name)
|
|
|
+ print("Calling: " + cdc.name + "." + cdc.name + "." + self.name)
|
|
|
+ # Get the arguments into a list
|
|
|
+ args = self.extractArgs(di)
|
|
|
+ # Apply the function to the object with the arguments
|
|
|
+ apply(func, [do] + args)
|
|
|
return None
|
|
|
|
|
|
def extractArgs(self, di):
|