def add_prefix(self, id):
if '<STR_LIT>' not in request.params:<EOL><INDENT>abort(<NUM_LIT>, '<STR_LIT>')<EOL><DEDENT>pool = Pool.get(int(id))<EOL>prefix = Prefix.get(int(request.params['<STR_LIT>']))<EOL>prefix.pool = pool<EOL>prefix.save()<EOL>redirect(url(controller = '<STR_LIT>', action = '<STR_LIT>', id = id))<EOL>
Add a prefix to pool 'id'