Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 210 Bytes
global gclasses
gclasses = {}
def gregister(className, classe):
gclasses[className] = classe
def ggetObject(className, *args, **kargs):
classe = gclasses[className]
return classe(*args, **kargs)