improved az list presentation
authorSergio Fernandez <sergio.fernandez@fundacionctic.org>
Thu, 20 Oct 2011 12:32:11 +0200
changeset 183 c54341c6f890
parent 182 0aab4e545a04
child 184 271899970981
improved az list presentation
ontologies/specgen/libvocab.py
--- a/ontologies/specgen/libvocab.py	Thu Oct 20 12:22:11 2011 +0200
+++ b/ontologies/specgen/libvocab.py	Thu Oct 20 12:32:11 2011 +0200
@@ -544,26 +544,25 @@
   		c_ids, p_ids, d_ids = self.vocab.azlist()
   		# print c_ids, p_ids, d_ids
 
-		az = """<div class="azlist">"""
+		az = ""
 		
 		azs = []
   		for c in c_ids:
   			azs.append("""<a href="#%s">%s</a>""" % (str(c).strip(), c))
-  		az = "%s\n<p>Classes: %s </p> \n" % (az, " | ".join(azs))
+  		az = """%s\n<p><span style="font-weight: bold;">Classes:</span> %s </p> \n""" % (az, " | ".join(azs))
 
   		azs = []
   		for p in p_ids:
   			azs.append("""<a href="#%s">%s</a>""" % (str(p).strip(), p))
-  		az = "%s\n<p>Properties: %s </p> \n" % (az, " | ".join(azs))
+  		az = """%s\n<p><span style="font-weight: bold;">Properties:</span> %s </p> \n""" % (az, " | ".join(azs))
 
 		if (len(d_ids)>0):
 			azs = []
 	  		for d in d_ids:
 	  			azs.append("""<a href="#%s">%s</a>""" % (str(d).strip(), d))
-			az = "%s\n<p>Datatypes: %s </p>\n" % (az, " | ".join(azs))
+			az = """%s\n<p><span style="font-weight: bold;">Datatypes:</span> %s </p>\n""" % (az, " | ".join(azs))
 
-  		az = "%s\n</div>" % az
-  		return(az)
+  		return """<div class="azlist">%s\n</div>""" % az
 
   	def termlist(self):
   		"""Term List for html doc"""