def decompose_fullname(fullname):
 from r2.lib.db.thing import Thing, Relation
 if (fullname[0] == 't'):
  type_class = Thing
 elif (fullname[0] == 'r'):
  type_class = Relation
 (type_id36, thing_id36) = fullname[1:].split('_')
 type_id = int(type_id36, 36)
 id = int(thing_id36, 36)
 return (type_class, type_id, id)

def decompose_fullname ( fullname ) : from r2 . lib . db . thing import Thing , Relation if ( fullname [ 0 ] == 't' ) : type_class = Thing elif ( fullname [ 0 ] == 'r' ) : type_class = Relation ( type_id36 , thing_id36 ) = fullname [ 1 : ] . split ( '_' ) type_id = int ( type_id36 , 36 ) id = int ( thing_id36 , 36 ) return ( type_class , type_id , id )
decompose_fullname -> .