comparison orpg/gametree/nodehandlers/minilib.py @ 83:f38df4bf9715 alpha

Traipse Alpha 'OpenRPG' {090909-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: Fixes problems with Text nodes. Fixes log problem in Fog. Fixes Mini Lib loading problem. Fixes problem with whispers in Alias Lib. Creates new Alpha Branch.
author sirebral
date Wed, 09 Sep 2009 17:11:39 -0500
parents 449a8900f9ac
children 217fb049bd00
comparison
equal deleted inserted replaced
82:2fa8bd6785a5 83:f38df4bf9715
34 from core import * 34 from core import *
35 from orpg.dirpath import dir_struct 35 from orpg.dirpath import dir_struct
36 import string 36 import string
37 import map_miniature_nodehandler 37 import map_miniature_nodehandler
38 import orpg.mapper.map_msg 38 import orpg.mapper.map_msg
39 import orpg.minidom as minidom
39 # import scriptkit 40 # import scriptkit
40 41
41 # Constants 42 # Constants
42 TO_MINILIB_MAP = {'path':'url', 'label':'name', 'id':None, 'action':None} 43 TO_MINILIB_MAP = {'path':'url', 'label':'name', 'id':None, 'action':None}
43 FROM_MINILIB_MAP = {'url':'path', 'name':'label', 'unique':None} 44 FROM_MINILIB_MAP = {'url':'path', 'name':'label', 'unique':None}
216 unique = self.is_unique( mini ) 217 unique = self.is_unique( mini )
217 if addName: 218 if addName:
218 label = mini.getAttribute( ATTRIBUTE_NAME ) 219 label = mini.getAttribute( ATTRIBUTE_NAME )
219 else: 220 else:
220 label = '' 221 label = ''
221 return msg().get_all_xml() 222 return msg.get_all_xml()
222 223
223 def is_unique( self, mini ): 224 def is_unique( self, mini ):
224 unique = mini.getAttribute( ATTRIBUTE_UNIQUE ) 225 unique = mini.getAttribute( ATTRIBUTE_UNIQUE )
225 val = 0 226 val = 0
226 try: 227 try: