#NEWLINE# def add_prefix( self , prefix , type , description , tags = None , pool_id = None ) : #NEWLINE# #INDENT# if ( tags is None ) : #NEWLINE# #INDENT# tags = [ ] #NEWLINE# #UNINDENT# p = Prefix ( ) #NEWLINE# p . prefix = prefix #NEWLINE# p . type = type #NEWLINE# p . status = 'assigned' #NEWLINE# p . description = description #NEWLINE# p . tags = tags #NEWLINE# if pool_id : #NEWLINE# #INDENT# pool = Pool . get ( pool_id ) #NEWLINE# p . pool = pool #NEWLINE# #UNINDENT# p . save ( ) #NEWLINE# return p