5 def addResource(self, name, resource):
6 print "adding Resource", name
7 self.resourceList[name] = resource
8 print "resources:", self.resourceList
11 def getResource(self, name):
12 if not self.hasResource(name):
14 return self.resourceList[name]
16 def hasResource(self, name):
17 return self.resourceList.has_key(name)
19 def removeResource(self, name):
20 if self.hasResource(name):
21 del self.resourceList[name]
23 resourcemanager = ResourceManager()