comparison orpg/gametree/nodehandlers/minilib.py @ 25:baee049045be ornery-orc

Traipse '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 log problem in Fog. Fixes Mini Lib loading problem. Fixes problem with whispers in Alias Lib.
author sirebral
date Wed, 09 Sep 2009 16:59:20 -0500
parents 97265586402b
children ff154cf3350c
comparison
equal deleted inserted replaced
24:07ebe8916b7e 25:baee049045be
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: