comparison src/memory/memory.py @ 643:262d9d9ad27a

plugin XEP-0085: renamed category and parameter
author souliane <souliane@mailoo.org>
date Sat, 07 Sep 2013 19:50:12 +0200
parents e07a03d52321
children 17bd09cd1001
comparison
equal deleted inserted replaced
642:e07a03d52321 643:262d9d9ad27a
488 return "" 488 return ""
489 489
490 def returnXML(prof_xml): 490 def returnXML(prof_xml):
491 return_xml = prof_xml.toxml() 491 return_xml = prof_xml.toxml()
492 prof_xml.unlink() 492 prof_xml.unlink()
493 return '\n'.join([line for line in return_xml.split('\n')]) 493 return '\n'.join((line for line in return_xml.split('\n') if line))
494 494
495 return self.__constructProfileXml(security_limit, profile).addCallback(returnXML) 495 return self.__constructProfileXml(security_limit, profile).addCallback(returnXML)
496 496
497 def getParamsForCategory(self, category, security_limit, profile_key): 497 def getParamsForCategory(self, category, security_limit, profile_key):
498 """Return node's xml for selected category""" 498 """Return node's xml for selected category"""