comparison orpg/mapper/base_msg.py @ 195:b633f4c64aae alpha

Traipse Alpha 'OpenRPG' {100219-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 (Patch-2) New Features: New Namespace method with two new syntaxes Fixes: Fix to Server GUI startup errors Fix to Server GUI Rooms tab updating Fix to Chat and Settings if non existant die roller is picked Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated Fix to Alias Lib's Export to Tree, Open, Save features Fix to alias node, now works properly Fix to Splitter node, minor GUI cleanup
author sirebral
date Sat, 24 Apr 2010 08:37:20 -0500
parents 06f10429eedc
children 24769389a7ba
comparison
equal deleted inserted replaced
182:4b2884f29a72 195:b633f4c64aae
19 # 19 #
20 # File: mapper/base_msg.py 20 # File: mapper/base_msg.py
21 # Author: Chris Davis 21 # Author: Chris Davis
22 # Maintainer: 22 # Maintainer:
23 # Version: 23 # Version:
24 # $Id: base_msg.py,v 1.9 2007/03/09 14:11:55 digitalxero Exp $ 24 # $Id: base_msg.py,v Traipse 'Ornery-Orc' prof.ebral Exp $
25 # 25 #
26 # Description: 26 # Description:
27 # 27 #
28 __version__ = "$Id: base_msg.py,v 1.9 2007/03/09 14:11:55 digitalxero Exp $" 28 __version__ = "$Id: base_msg.py,v Traipse 'Ornery-Orc' prof.ebral Exp $"
29 29
30 from threading import RLock 30 from threading import RLock
31 from orpg.networking.mplay_client import * 31 from orpg.networking.mplay_client import *
32 from xml.etree.ElementTree import ElementTree, Element 32 from xml.etree.ElementTree import ElementTree, Element
33 33
36 36
37 def __init__(self,reentrant_lock_object = None): 37 def __init__(self,reentrant_lock_object = None):
38 38
39 if not hasattr(self,"tagname"): 39 if not hasattr(self,"tagname"):
40 raise Exception, "This is a virtual class that cannot be directly instantiated. Set self.tagname in derived class." 40 raise Exception, "This is a virtual class that cannot be directly instantiated. Set self.tagname in derived class."
41
42 self._props = {} 41 self._props = {}
43 # This is a dictionary that holds (value,changed) 2-tuples, indexed by attribute 42 # This is a dictionary that holds (value,changed) 2-tuples, indexed by attribute
44 # Avoid manipulating these values directly. Instead, use the provided accessor methods. 43 # Avoid manipulating these values directly. Instead, use the provided accessor methods.
45 # If there is not one that suits your needs, please add one to this class and 44 # If there is not one that suits your needs, please add one to this class and
46 # use it instead. 45 # use it instead.