diff orpg/orpgCore.py @ 10:73d9286c22cf traipse_dev

Adds some superb CherryPy features! Components can be deleted now too!
author sirebral
date Fri, 17 Jul 2009 08:13:50 -0500
parents 4385a7d0efd1
children c54768cffbd4
line wrap: on
line diff
--- a/orpg/orpgCore.py	Fri Jul 17 01:27:26 2009 -0500
+++ b/orpg/orpgCore.py	Fri Jul 17 08:13:50 2009 -0500
@@ -69,6 +69,12 @@
         else:
             return None
 
+    def del_component(self, key):
+        if self.__components.has_key(key):
+            del self.__components[key]
+        else:
+            return
+
 def singleton(cls):
     instances = {}
     def getinstance():