def location(name, uri, default):
    """Create new location."""
    from .models import Location
    location = Location(name=name, uri=uri, default=default)
    db.session.add(location)
    db.session.commit()
    click.secho(str(location), fg='green')
def location ( name , uri , default ) : from . models import Location location = Location ( name = name , uri = uri , default = default ) db . session . add ( location ) db . session . commit ( ) click . secho ( str ( location ) , fg = 'green' )
Create new location.