changeset 39:ed322725b928 ornery-orc tip

Traipse 'OpenRPG' {110114-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 (Closed) New Features: New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order New to Server GUI, can now clear log New Earthdawn Dieroller New IronClaw roller, sheet, and image New ShapeShifter PC Sheet 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 Update to Dieroller. Cleaner, more effecient expression system Update to Hidden Die plugin, allows for non standard dice rolls Update to location.py, allows for more portable references when starting Traipse Update to the Features node 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 Server, removing wxPython dependencies where not needed 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 Fix to Gametree for XSLT Sheets Fix to Gametree for locating gametree files Fix to Send to Chat from Gametree Fix to Gametree, renaming and remapping operates correctly Fix to aliaslib, prevents error caused when SafeHTML is sent None
author sirebral
date Fri, 14 Jan 2011 05:24:52 -0600
parents 2b2d8f65e01f
children
files orpg/gametree/nodehandlers/minilib.py orpg/orpg_version.py upmana/updatemana.py
diffstat 3 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/orpg/gametree/nodehandlers/minilib.py	Thu Dec 23 01:15:54 2010 -0600
+++ b/orpg/gametree/nodehandlers/minilib.py	Fri Jan 14 05:24:52 2011 -0600
@@ -182,11 +182,9 @@
             # translate our attributes to map attributes
             key = FROM_MINILIB_MAP.get( k, k )
             if key != None:
-                if not addName and k == 'name': pass
+                if not addName and k == 'name': msg.init_prop( key, mini_xml.get( '' ) )
                 else: msg.init_prop( key, mini_xml.get( k ) )
         unique = self.is_unique( mini_xml )
-        if addName: label = mini_xml.get( 'name' )
-        else: label = ''
         return msg.get_all_xml()
 
     def is_unique( self, mini ):
--- a/orpg/orpg_version.py	Thu Dec 23 01:15:54 2010 -0600
+++ b/orpg/orpg_version.py	Fri Jan 14 05:24:52 2011 -0600
@@ -4,7 +4,7 @@
 #BUILD NUMBER FORMAT: "YYMMDD-##" where ## is the incremental daily build index (if needed)
 DISTRO = "Traipse"
 DIS_VER = "Ornery Orc"
-BUILD = "101223-00"
+BUILD = "110114-00"
 
 # This version is for network capability.
 PROTOCOL_VERSION = "1.2"
--- a/upmana/updatemana.py	Thu Dec 23 01:15:54 2010 -0600
+++ b/upmana/updatemana.py	Fri Jan 14 05:24:52 2011 -0600
@@ -130,7 +130,10 @@
         else: manifest.SetString("updatemana", "no_update", "off")
 
     def Update(self, evt=None):
-        with open(sys.path[1]+os.sep+'location.py', 'rb') as f: old_location = f.read()
+        top_folder = dir_struct['home'].split(str(os.sep))
+        top_folder.pop(); top_folder.pop(); top_folder = str(os.sep).join(top_folder)+os.sep
+
+        with open(top_folder+'location.py', 'rb') as f: old_location = f.read()
         ## This new location file update allows for a more portable way to start Traipse. It's aimed at Linux users.
         new_location = """import sys
 import os
@@ -143,7 +146,7 @@
 except: print 'Failed to find ' + _userbase_dir + '\\nHopefuly you are running setup.py which would make this error normal.'"""
 
         if new_location != old_location:
-            with open(sys.path[1]+os.sep+'location.py', 'w') as f: f.write(new_location)
+            with open(top_folder+'location.py', 'w') as f: f.write(new_location)
 
         self.ui = ui.ui()
         self.repo = hg.repository(self.ui, ".")