Mercurial > traipse_dev
comparison orpg/networking/mplay_client.py @ 236:9230a33defd9 beta
Traipse Beta 'OpenRPG' {100616-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 (Closing/Closed)
New Features:
New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order
New to Server GUI, can now clear log
Updates:
Update to Warhammer PC Sheet. Rollers set as macros. Should work with little maintanence.
Update to Browser Server window. Display rooms with ' " & cleaner
Update to Server. Handles ' " & cleaner.
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
Fix to Single and Double quotes in Whiteboard text
Fix to Background images not showing when using the Image Server
Fix to Duplicate chat names appearing
Fix to Server GUI's logging output
Fix to FNB.COLORFUL_TABS bug.
author | sirebral |
---|---|
date | Wed, 16 Jun 2010 03:06:20 -0500 |
parents | dcae32e219f1 |
children | 1df5912db00c |
comparison
equal
deleted
inserted
replaced
226:b29454610f36 | 236:9230a33defd9 |
---|---|
36 from struct import pack, unpack, calcsize | 36 from struct import pack, unpack, calcsize |
37 from string import * | 37 from string import * |
38 from orpg.orpg_version import CLIENT_STRING, PROTOCOL_VERSION, VERSION | 38 from orpg.orpg_version import CLIENT_STRING, PROTOCOL_VERSION, VERSION |
39 | 39 |
40 from orpg.orpgCore import component | 40 from orpg.orpgCore import component |
41 from orpg.orpg_xml import xml | 41 #from orpg.orpg_xml import xml |
42 from orpg.tools.orpg_log import debug | 42 from orpg.tools.orpg_log import debug |
43 from orpg.tools.settings import settings | 43 from orpg.tools.settings import settings |
44 | 44 |
45 from xml.etree.ElementTree import ElementTree, Element, iselement | 45 from xml.etree.ElementTree import ElementTree, Element, iselement |
46 from xml.etree.ElementTree import fromstring, tostring | 46 from xml.etree.ElementTree import fromstring, tostring |
79 GROUP_DEL = 3 | 79 GROUP_DEL = 3 |
80 GROUP_UPDATE = 4 | 80 GROUP_UPDATE = 4 |
81 STATUS_SET_URL = 1 | 81 STATUS_SET_URL = 1 |
82 | 82 |
83 def parseXml(data): | 83 def parseXml(data): |
84 debug(('Developers note. Deprecated call to parseXml!!'), parents=True) | |
84 "parse and return doc" | 85 "parse and return doc" |
85 doc = xml.parseXml(data) | 86 doc = fromstring(data) |
86 doc.normalize() | |
87 return doc | 87 return doc |
88 | 88 |
89 def myescape(data): | 89 def myescape(data): |
90 return escape(data,{"\"":""}) | 90 return escape(data,{"\"":""}) |
91 | 91 |
385 class mplay_client(client_base): | 385 class mplay_client(client_base): |
386 "mplay client" | 386 "mplay client" |
387 def __init__(self,name,callbacks): | 387 def __init__(self,name,callbacks): |
388 client_base.__init__(self) | 388 client_base.__init__(self) |
389 component.add('mp_client', self) | 389 component.add('mp_client', self) |
390 self.xml = component.get('xml') | |
391 self.set_name(name) | 390 self.set_name(name) |
392 self.on_receive = callbacks['on_receive'] | 391 self.on_receive = callbacks['on_receive'] |
393 self.on_mplay_event = callbacks['on_mplay_event'] | 392 self.on_mplay_event = callbacks['on_mplay_event'] |
394 self.on_group_event = callbacks['on_group_event'] | 393 self.on_group_event = callbacks['on_group_event'] |
395 self.on_player_event = callbacks['on_player_event'] | 394 self.on_player_event = callbacks['on_player_event'] |