def _get_current_site():
 request = crum.get_current_request()
 if (not request):
  return
 return {'id': request.site.id, 'domain': request.site.domain, 'name': request.site.name}

def _get_current_site ( ) : request = crum . get_current_request ( ) if ( not request ) : return return { 'id' : request . site . id , 'domain' : request . site . domain , 'name' : request . site . name }
returns the site for the current request if any .