add a 'fullid' property to get 'ID@backend'
This commit is contained in:
parent
379083d2d7
commit
f6c2edc64f
1 changed files with 6 additions and 2 deletions
|
|
@ -72,6 +72,10 @@ class CapBaseObject(object):
|
|||
self.id = id
|
||||
self.backend = backend
|
||||
|
||||
@property
|
||||
def fullid(self):
|
||||
return '%s@%s' % (self.id, self.backend)
|
||||
|
||||
def add_field(self, name, type, value=NotLoaded):
|
||||
"""
|
||||
Add a field in list, which needs to be of type @type.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue