def get_srpath():
 name = get_site()
 action = None
 if (c.render_style in ('mobile', 'compact')):
  action = c.render_style
 else:
  action = request.environ['pylons.routes_dict'].get('action')
 if (not action):
  return name
 return '-'.join((name, action))

def get_srpath ( ) : name = get_site ( ) action = None if ( c . render_style in ( 'mobile' , 'compact' ) ) : action = c . render_style else : action = request . environ [ 'pylons.routes_dict' ] . get ( 'action' ) if ( not action ) : return name return '-' . join ( ( name , action ) )
return the srpath of the current request .