human
Solve the following python programming problem given the following code:
@ action (route = '/radiovis/gallery/edit/<id>', template = 'radiovis/gallery/edit.html', methods = ['POST', 'GET']) 
@ only_orga_admin_user () 
def radiovis_gallery_edit(request, id) : 
    'Edit a channel.' 
    object = None 
    errors = [] 
    if (id != '-') : 
        object = Picture.query.filter_by (orga = int ((request.args.get ('ebuio_orgapk') or request.form.get ('ebuio_orgapk'))), id = int (id)).first () 
if (request.method == 'POST') : 
        if (not object) : 
            object = Picture (int (request.form.get ('ebuio_orgapk'))) 
object.name = request.form.get ('name') 
        object.radiotext = request.form.get ('radiotext') 
        object.radiolink = request.form.get ('radiolink') 
        def add_unique_postfix(fn) : 
            "__source__ = 'http://code.activestate.com/recipes/577200-make-unique-file-name/'" 
            if (not os.path.exists (fn)) : 
                return fn 
(path, name) = os.path.split (fn) 
            (name, ext) = os.path.splitext (name) 
            make_fn = (lambda i : os.path.join (path, ('%s(%d)%s' % (name, i, ext)))) 
            for i in xrange (2, sys.maxint) : 
                uni_fn = make_fn (i) 
                if (not os.path.exists (uni_fn)) : 
                    return uni_fn 
return None 
file = request.files ['file'] 
        if file : 
            filename = secure_filename (file.filename) 
            full_path = add_unique_postfix (('media/uploads/radiovis/gallery/' + filename)) 
            file.save (full_path) 
            if object.filename : 
                try : 
                    os.unlink (object.filename) 
except : 
                    pass 
object.filename = full_path 
if (object.name == '') : 
            errors.append ('Please set a name') 
if (object.radiotext == '') : 
            errors.append ('Please set a text') 
if (object.radiolink == '') : 
            errors.append ('Please set a link') 
if ((object.filename == '') or (object.filename is None)) : 
            errors.append ('Please upload an image') 
else : 
    ...

    
    

    Fix the buggy line: pieces = urlparse.urlparse (request.radiolink)
assistant
#Here is Python program to fix the buggy line: pieces = urlparse.

pieces = urlparse.urlparse (object.radiolink)