def do_get_relationship(parser, token):
 bits = token.contents.split()
 if (len(bits) == 3):
  return GetRelationship(bits[1], bits[2])
 if (len(bits) == 5):
  return GetRelationship(bits[1], bits[2], bits[4])
 if (len(bits) == 4):
  raise template.TemplateSyntaxError, ("The tag '%s' needs an 'as' as its third argument." % bits[0])
 if (len(bits) < 3):
  raise template.TemplateSyntaxError, ("The tag '%s' takes two arguments" % bits[0])

def do_get_relationship ( parser , token ) : bits = token . contents . split ( ) if ( len ( bits ) == 3 ) : return GetRelationship ( bits [ 1 ] , bits [ 2 ] ) if ( len ( bits ) == 5 ) : return GetRelationship ( bits [ 1 ] , bits [ 2 ] , bits [ 4 ] ) if ( len ( bits ) == 4 ) : raise template . TemplateSyntaxError , ( "The tag '%s' needs an 'as' as its third argument." % bits [ 0 ] ) if ( len ( bits ) < 3 ) : raise template . TemplateSyntaxError , ( "The tag '%s' takes two arguments" % bits [ 0 ] )
get relationship between two users .