Exemple #1
0
def HasTagValue(tags, key, value):
    """ returns true if given key has given value """
    tval = giv.StructTagVal(key, tags)
    return tval == value
Exemple #2
0
 def FieldTagVal(self, field, key):
     """ returns the value for given key in tags for given field, empty string if none """
     return giv.StructTagVal(key, self.FieldTags(field))
Exemple #3
0
def TagValue(tags, key):
    """ returns tag value for given key """
    return giv.StructTagVal(key, tags)