comparison orpg/chat/chat_msg.py @ 227:81d0bfd5e800 alpha

Traipse Alpha 'OpenRPG' {100612-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 (Preparing to close updates) New Features: New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order Fixes: Fix to InterParse that was causing an Infernal Loop with Namespace Internal Fix to XML data, removed old Minidom and switched to Element Tree Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread Fix to metaservers.xml file not being created
author sirebral
date Sat, 12 Jun 2010 03:50:37 -0500
parents bf799efe7a8a
children
comparison
equal deleted inserted replaced
182:4b2884f29a72 227:81d0bfd5e800
19 # 19 #
20 # File: chat_msg.py 20 # File: chat_msg.py
21 # Author: Ted Berg 21 # Author: Ted Berg
22 # Maintainer: 22 # Maintainer:
23 # Version: 23 # Version:
24 # $Id: chat_msg.py,v 1.15 2006/11/04 21:24:19 digitalxero Exp $ 24 # $Id: chat_msg.py,v Traipse 'Ornery-Orc' prof.ebral Exp $
25 # 25 #
26 # Description: Contains class definitions for manipulating <chat/> messages 26 # Description: Contains class definitions for manipulating <chat/> messages
27 # 27 #
28 # 28 #
29 29
30 __version__ = "$Id: chat_msg.py,v 1.15 2006/11/04 21:24:19 digitalxero Exp $" 30 __version__ = "$Id: chat_msg.py,v Traipse 'Ornery-Orc' prof.ebral Exp $"
31 31
32 from orpg.orpgCore import * 32 from orpg.orpgCore import *
33 from chat_version import CHAT_VERSION 33 from chat_version import CHAT_VERSION
34 from orpg.tools.orpg_log import logger, debug 34 from orpg.tools.orpg_log import logger, debug
35 from xml.etree.ElementTree import tostring, fromstring 35 from xml.etree.ElementTree import tostring, fromstring
46 def __init__(self, xml_text="<chat type='1' version='"+CHAT_VERSION+"' alias='' ></chat>"): 46 def __init__(self, xml_text="<chat type='1' version='"+CHAT_VERSION+"' alias='' ></chat>"):
47 self.chat_dom = None 47 self.chat_dom = None
48 self.takexml(xml_text) 48 self.takexml(xml_text)
49 49
50 def __del__(self): 50 def __del__(self):
51 if self.chat_dom: 51 if self.chat_dom: self.chat_dom.unlink()
52 self.chat_dom.unlink()
53 52
54 def toxml(self): 53 def toxml(self):
55 return tostring(self.chat_dom) 54 return tostring(self.chat_dom)
56 55
57 def takexml(self,xml_text): 56 def takexml(self,xml_text):