Mercurial > traipse_dev
comparison orpg/mapper/base_msg.py @ 19:78407d627cba traipse_dev
Beginning of Code Clean-up. Some code untested, may break!
author | sirebral |
---|---|
date | Sat, 25 Jul 2009 17:24:40 -0500 |
parents | 4385a7d0efd1 |
children | 072ffc1d466f |
comparison
equal
deleted
inserted
replaced
18:67b900deb35c | 19:78407d627cba |
---|---|
34 # This is a base class | 34 # This is a base class |
35 | 35 |
36 def __init__(self,reentrant_lock_object = None): | 36 def __init__(self,reentrant_lock_object = None): |
37 | 37 |
38 if not hasattr(self,"tagname"): | 38 if not hasattr(self,"tagname"): |
39 raise Exception, "This is a virtual class that cannot be directly instantiated. Set self.tagname in derived class." | 39 raise Exception, |
40 "This is a virtual class that cannot be directly instantiated. Set self.tagname in derived class." | |
40 | 41 |
41 self._props = {} | 42 self._props = {} |
42 # This is a dictionary that holds (value,changed) 2-tuples, indexed by attribute | 43 # This is a dictionary that holds (value,changed) 2-tuples, indexed by attribute |
43 # Avoid manipulating these values directly. Instead, use the provided accessor methods. | 44 # Avoid manipulating these values directly. Instead, use the provided accessor methods. |
44 # If there is not one that suits your needs, please add one to this class and | 45 # If there is not one that suits your needs, please add one to this class and |