Exemple #1
0
 def get_attributes(self):
     """Returns item attributes (dictionary)."""
     attrs = self.item_props_iface.Get(ITEM_IFACE,
                                       'Attributes',
                                       signature='ss')
     return dict([(to_unicode(key), to_unicode(value))
                  for key, value in attrs.items()])
Exemple #2
0
 def get_label(self):
     """Returns item label (unicode string)."""
     label = self.item_props_iface.Get(ITEM_IFACE, 'Label', signature='ss')
     return to_unicode(label)
Exemple #3
0
	def get_label(self):
		"""Returns item label (unicode string)."""
		label = self.item_props_iface.Get(ITEM_IFACE, 'Label',
			signature='ss')
		return to_unicode(label)
Exemple #4
0
	def get_attributes(self):
		"""Returns item attributes (dictionary)."""
		attrs = self.item_props_iface.Get(ITEM_IFACE, 'Attributes',
			signature='ss')
		return dict([(to_unicode(key), to_unicode(value))
			for key, value in attrs.items()])
Exemple #5
0
	def get_label(self):
		"""Returns the collection label."""
		label = self.collection_props_iface.Get(COLLECTION_IFACE,
			'Label', signature='ss')
		return to_unicode(label)
Exemple #6
0
 def get_attributes(self):
     """Returns item attributes (dictionary)."""
     attrs = self.item_props_iface.Get(ITEM_IFACE, "Attributes", signature="ss")
     return {to_unicode(key): to_unicode(value) for key, value in attrs.items()}