@manager.command()
@argument('domains')
def set_google_apps_domains(domains):
 organization = models.Organization.query.first()
 k = models.Organization.SETTING_GOOGLE_APPS_DOMAINS
 organization.settings[k] = domains.split(',')
 models.db.session.add(organization)
 models.db.session.commit()
 print 'Updated list of allowed domains to: {}'.format(organization.google_apps_domains)

@ manager . command ( ) @ argument ( 'domains' ) def set_google_apps_domains ( domains ) : organization = models . Organization . query . first ( ) k = models . Organization . SETTING_GOOGLE_APPS_DOMAINS organization . settings [ k ] = domains . split ( ',' ) models . db . session . add ( organization ) models . db . session . commit ( ) print 'Updated list of allowed domains to: {}' . format ( organization . google_apps_domains )
sets the allowable domains to the comma separated list domains .