comparison orpg/orpgCore.py @ 92:68c7bd272f27 beta

Traipse Beta 'OpenRPG' {090919-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user. Update Summary: Adds menu changes to draw attention to important updates, errors, or other events. (image info coming soon) Traipse URL is not included in the repos tab and is set as default. Fixes Copy for Windows and Linux (finally!!) users. Fixes incomplete update to Grid and List nodes. Fixes incomplete update to Chat Commands. Fixes problems with Remote Image Upload. Fixes Drop and Drag of Minis to Map. CherryPy can now use any image in the webfiles/ folder and sub-folders. CherryPy can now Drop and Drag Minis to the Map. Minor changes to Update Manager's GUI. Expert recommendation warning added to Revision Update. Step down compatibility with open_rpg & component added to orpgCore. Using majority of 'Grumpy' network folder to correct server lag.
author sirebral
date Sat, 19 Sep 2009 06:50:43 -0500
parents c54768cffbd4
children 0d9b746b5751
comparison
equal deleted inserted replaced
84:5c12918d6bb2 92:68c7bd272f27
69 69
70 def delete(self, key): 70 def delete(self, key):
71 if self.__components.has_key(key): del self.__components[key] 71 if self.__components.has_key(key): del self.__components[key]
72 else: return 72 else: return
73 73
74 ###Grumpy to Ornery###
75 def add_component(self, key, com):
76 return self.add(key, com)
77
78 def get_component(self, key):
79 return self.get(key)
80
74 def singleton(cls): 81 def singleton(cls):
75 instances = {} 82 instances = {}
76 def getinstance(): 83 def getinstance():
77 if cls not in instances: 84 if cls not in instances:
78 instances[cls] = cls() 85 instances[cls] = cls()
79 return instances[cls] 86 return instances[cls]
80 return getinstance 87 return getinstance
81 88
82 ORPGStorage = singleton(ORPGStorage) 89 ORPGStorage = singleton(ORPGStorage)
83 component = ORPGStorage() 90 component = ORPGStorage()
91
92 ###Grumpy to Ornery###
93 open_rpg = ORPGStorage()