# HG changeset patch
# User sirebral
# Date 1251353083 18000
# Node ID 97265586402b059bac9a001bcbfdae43b7c0f0d2
# Parent 265b987cce4fcc8ec434d929719d0189fc7013d5
Traipse 'OpenRPG' {090827-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:
Update Manager is now in version 0.8. While not every button works, users can now browse the different revisions and their different changesets. The code has been refined some with feature from Core added to it. A Crash report is now created if the users software crashes. Update Manager has been moved to the Traipse Suite menu item, and a Debug Console as been added as well.
diff -r 265b987cce4f -r 97265586402b data/SWd20/SWd20classes.xml
diff -r 265b987cce4f -r 97265586402b data/SWd20/d20armor.xml
diff -r 265b987cce4f -r 97265586402b data/SWd20/d20feats.xml
diff -r 265b987cce4f -r 97265586402b data/SWd20/d20weapons.xml
diff -r 265b987cce4f -r 97265586402b data/d20/d20armor.xml
diff -r 265b987cce4f -r 97265586402b data/d20/d20classes.xml
diff -r 265b987cce4f -r 97265586402b data/d20/d20divine.xml
diff -r 265b987cce4f -r 97265586402b data/d20/d20feats.xml
diff -r 265b987cce4f -r 97265586402b data/d20/d20powers.xml
diff -r 265b987cce4f -r 97265586402b data/d20/d20spells.xml
diff -r 265b987cce4f -r 97265586402b data/d20/d20weapons.xml
diff -r 265b987cce4f -r 97265586402b data/dnd35/books.txt
diff -r 265b987cce4f -r 97265586402b data/dnd35/classes.txt
diff -r 265b987cce4f -r 97265586402b data/dnd35/dnd35armor.xml
diff -r 265b987cce4f -r 97265586402b data/dnd35/dnd35character.xml
diff -r 265b987cce4f -r 97265586402b data/dnd35/dnd35classes.xml
diff -r 265b987cce4f -r 97265586402b data/dnd35/dnd35feats.xml
diff -r 265b987cce4f -r 97265586402b data/dnd35/dnd35weapons.xml
diff -r 265b987cce4f -r 97265586402b data/dnd35/feats.txt
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3earmor.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3echaracter.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3eclasses.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3edivine.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3efeats.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3epowers.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3espells.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/dnd3eweapons.xml
diff -r 265b987cce4f -r 97265586402b data/dnd3e/feats.txt
diff -r 265b987cce4f -r 97265586402b data/dnd3e/skills.txt
diff -r 265b987cce4f -r 97265586402b images/b_d10.gif
Binary file images/b_d10.gif has changed
diff -r 265b987cce4f -r 97265586402b images/b_d100.gif
Binary file images/b_d100.gif has changed
diff -r 265b987cce4f -r 97265586402b images/b_d12.gif
Binary file images/b_d12.gif has changed
diff -r 265b987cce4f -r 97265586402b images/b_d20.gif
Binary file images/b_d20.gif has changed
diff -r 265b987cce4f -r 97265586402b images/b_d4.gif
Binary file images/b_d4.gif has changed
diff -r 265b987cce4f -r 97265586402b images/b_d6.gif
Binary file images/b_d6.gif has changed
diff -r 265b987cce4f -r 97265586402b images/b_d8.gif
Binary file images/b_d8.gif has changed
diff -r 265b987cce4f -r 97265586402b orpg/chat/__init__.py
--- a/orpg/chat/__init__.py Thu Aug 13 13:14:10 2009 -0500
+++ b/orpg/chat/__init__.py Thu Aug 27 01:04:43 2009 -0500
@@ -0,0 +1,1 @@
+
diff -r 265b987cce4f -r 97265586402b orpg/chat/chat_msg.py
--- a/orpg/chat/chat_msg.py Thu Aug 13 13:14:10 2009 -0500
+++ b/orpg/chat/chat_msg.py Thu Aug 27 01:04:43 2009 -0500
@@ -29,8 +29,10 @@
__version__ = "$Id: chat_msg.py,v 1.15 2006/11/04 21:24:19 digitalxero Exp $"
-import orpg.orpg_xml
-from chat_version import CHAT_VERSION
+from orpg.orpgCore import *
+from chat_version import CHAT_VERSION
+from orpg.tools.orpg_log import logger
+from orpg.tools.decorators import debugging
CHAT_MESSAGE = 1
WHISPER_MESSAGE = 2
@@ -39,20 +41,24 @@
SYSTEM_MESSAGE = 5
WHISPER_EMOTE_MESSAGE = 6
-class chat_msg:
- def __init__(self,xml_text=""):
+class chat_msg:
+ @debugging
+ def __init__(self,xml_text=""):
self.chat_dom = None
- self.takexml(xml_text)
-
+ self.takexml(xml_text)
+
+ @debugging
def __del__(self):
if self.chat_dom:
self.chat_dom.unlink()
-
+
+ @debugging
def toxml(self):
- return orpg.orpg_xml.toxml(self.chat_dom)
-
- def takexml(self,xml_text):
- xml_dom = orpg.orpg_xml.parseXml(xml_text)
+ return component.get('xml').toxml(self.chat_dom)
+
+ @debugging
+ def takexml(self,xml_text):
+ xml_dom = component.get('xml').parseXml(xml_text)
node_list = xml_dom.getElementsByTagName("chat")
if len(node_list) < 1:
print "Warning: no elements found in DOM."
@@ -60,32 +66,40 @@
if len(node_list) > 1:
print "Found more than one instance of <" + self.tagname + "/>. Taking first one"
self.takedom(node_list[0])
-
+
+ @debugging
def takedom(self,xml_dom):
if self.chat_dom:
self.text_node = None
self.chat_dom.unlink()
self.chat_dom = xml_dom
- self.text_node = orpg.orpg_xml.safe_get_text_node(self.chat_dom)
-
+ self.text_node = component.get('xml').safe_get_text_node(self.chat_dom)
+
+ @debugging
def set_text(self,text):
- text = orpg.orpg_xml.strip_text(text)
+ text = component.get('xml').strip_text(text)
self.text_node._set_nodeValue(text)
-
+
+ @debugging
def set_type(self,type):
self.chat_dom.setAttribute("type",str(type))
-
+
+ @debugging
def get_type(self):
return int(self.chat_dom.getAttribute("type"))
-
+
+ @debugging
def set_alias(self,alias):
self.chat_dom.setAttribute("alias",alias)
-
+
+ @debugging
def get_alias(self):
return self.chat_dom.getAttribute("alias")
-
+
+ @debugging
def get_text(self):
return self.text_node._get_nodeValue()
-
+
+ @debugging
def get_version(self):
return self.chat_dom.getAttribute("version")
diff -r 265b987cce4f -r 97265586402b orpg/chat/chat_util.py
--- a/orpg/chat/chat_util.py Thu Aug 13 13:14:10 2009 -0500
+++ b/orpg/chat/chat_util.py Thu Aug 27 01:04:43 2009 -0500
@@ -1,7 +1,10 @@
# utility function; see Post() in chatwnd.py
import re
-import string
+import string
+from orpg.orpgCore import *
+from orpg.tools.orpg_log import logger
+from orpg.tools.decorators import debugging
#============================================
# simple_html_repair(string)
@@ -15,8 +18,9 @@
# to cause issues with the chat display
#
# Created 04-25-2005 by Snowdog
-#=============================================
-def simple_html_repair(string):
+#=============================================
+@debugging
+def simple_html_repair(string):
"Returns string with extra > symbols to isolate badly formated HTML"
#walk though string checking positions of < and > tags.
first_instance = string.find('<')
@@ -67,24 +71,26 @@
if diff > 0:
for d in range(1,diff):
string = string+">"
+ return string
- return string
-
-def strip_unicode(txt):
+""" Depricated! Might as well use the already made component.get('xml')
+def strip_unicode(txt):
for i in xrange(len(txt)):
if txt[i] not in string.printable:
try:
txt = txt.replace(txt[i], '' + str(ord(txt[i])) + ';')
except:
txt = txt.replace(txt[i], '{?}')
- return txt
+ return txt
+"""
#================================================
# strip_script_tags(string)
#
# removes all script tags (start and end)
# 04-26-2005 Snowdog
-#================================================
+#================================================
+@debugging
def strip_script_tags(string):
#kill the