add a 'fullid' property to get 'ID@backend'

This commit is contained in:
Romain Bignon 2012-02-18 12:27:18 +01:00
commit f6c2edc64f

View file

@ -72,6 +72,10 @@ class CapBaseObject(object):
self.id = id self.id = id
self.backend = backend self.backend = backend
@property
def fullid(self):
return '%s@%s' % (self.id, self.backend)
def add_field(self, name, type, value=NotLoaded): def add_field(self, name, type, value=NotLoaded):
""" """
Add a field in list, which needs to be of type @type. Add a field in list, which needs to be of type @type.