def get_site_user(context, data_dict):
 _check_access('get_site_user', context, data_dict)
 model = context['model']
 site_id = config.get('ckan.site_id', 'ckan_site_user')
 user = model.User.get(site_id)
 if (not user):
  apikey = str(uuid.uuid4())
  user = model.User(name=site_id, password=apikey, apikey=apikey)
  user.sysadmin = True
  model.Session.add(user)
  model.Session.flush()
  if (not context.get('defer_commit')):
   model.repo.commit()
 return {'name': user.name, 'apikey': user.apikey}

def get_site_user ( context , data_dict ) : _check_access ( 'get_site_user' , context , data_dict ) model = context [ 'model' ] site_id = config . get ( 'ckan.site_id' , 'ckan_site_user' ) user = model . User . get ( site_id ) if ( not user ) : apikey = str ( uuid . uuid4 ( ) ) user = model . User ( name = site_id , password = apikey , apikey = apikey ) user . sysadmin = True model . Session . add ( user ) model . Session . flush ( ) if ( not context . get ( 'defer_commit' ) ) : model . repo . commit ( ) return { 'name' : user . name , 'apikey' : user . apikey }
return the ckan site user .