'Returns the strict hierarchy value from the current config.
@param: location - the location_id of the record to check'

def get_strict_hierarchy(self, location=None):

    s3db = current.s3db
    table = s3db.gis_hierarchy
    query = (table.uuid == 'SITE_DEFAULT')
    if location:
        query = (query | (table.location_id == self.get_parent_country(location)))
    rows = current.db(query).select(table.uuid, table.strict_hierarchy, cache=s3db.cache)
    if (len(rows) > 1):
        _filter = (lambda row: (row.uuid == 'SITE_DEFAULT'))
        rows.exclude(_filter)
    row = rows.first()
    if row:
        strict = row.strict_hierarchy
    else:
        return False
    return strict
