app/soc/logic/key_name.py
changeset 404 44223e50e1fc
parent 377 d94ec6f104cc
child 445 31927f21970d
equal deleted inserted replaced
403:d3e545a8bd26 404:44223e50e1fc
   164   if not link_name:
   164   if not link_name:
   165     raise Error('"link_name" must be non-False: "%s"' % link_name)
   165     raise Error('"link_name" must be non-False: "%s"' % link_name)
   166 
   166 
   167   return 'Work:%s' % link_name
   167   return 'Work:%s' % link_name
   168 
   168 
       
   169 
       
   170 def nameHost(sponsor_ln, user_ln):
       
   171   """Placeholder for host namer"""
       
   172 
       
   173   if not sponsor_ln:
       
   174     raise Error('"sponsor_ln" must be non-False: "%s"' % sponsor_ln)
       
   175 
       
   176   if not user_ln:
       
   177     raise Error('"user_ln" must be non-False: "%s"' % user_ln)
       
   178 
       
   179   return 'Host:%s:%s' % (sponsor_ln, user_ln)