def create(cls, bucket, key, value):
        """Create a new tag for bucket."""
        with db.session.begin_nested():
            obj = cls(
                bucket_id=as_bucket_id(bucket),
                key=key,
                value=value
            )
            db.session.add(obj)
        return obj
def create ( cls , bucket , key , value ) : with db . session . begin_nested ( ) : obj = cls ( bucket_id = as_bucket_id ( bucket ) , key = key , value = value ) db . session . add ( obj ) return obj
Create a new tag for bucket.