예제 #1
0
 def resolve_submitalbums(self,**kw):
     mbrainz_resolver = gordon.db.mbrainz_resolver.GordonResolver()
     st=''
     for k in kw :
         (id,mb_id)=k.split('SEP')
         mb_id=mb_id.replace('H','-')
         mbrainz_resolver.update_album(id=id,mb_id=mb_id,use_recommended_track_order=True,doit=True)
         st="%s\nUpdated %s" % (st,id)
     flash(st)
     redirect("/resolve_viewalbums")
예제 #2
0
 def resolve_submitalbums(self, **kw):
     mbrainz_resolver = gordon.db.mbrainz_resolver.GordonResolver()
     st = ''
     for k in kw:
         (id, mb_id) = k.split('SEP')
         mb_id = mb_id.replace('H', '-')
         mbrainz_resolver.update_album(id=id,
                                       mb_id=mb_id,
                                       use_recommended_track_order=True,
                                       doit=True)
         st = "%s\nUpdated %s" % (st, id)
     flash(st)
     redirect("/resolve_viewalbums")
예제 #3
0
    def resolve_submitalbum(self,id=0,mb_id='') :
        mbrainz_resolver = gordon.db.mbrainz_resolver.GordonResolver()
        if  mb_id=='' :
            st= 'Recieved no mb_id'
        elif id==0 :
            st= 'Recieved invalid id'
        else :
            mbrainz_resolver.update_album(id=id,mb_id=mb_id,use_recommended_track_order=True,doit=True)
            st= 'Resolved musicbrainz album id %s against internal album id %s' % (mb_id,id)

        flash(st)


        #now go back to our review page
        redirect("/resolve_viewalbums")
예제 #4
0
    def resolve_submitalbum(self, id=0, mb_id=''):
        mbrainz_resolver = gordon.db.mbrainz_resolver.GordonResolver()
        if mb_id == '':
            st = 'Recieved no mb_id'
        elif id == 0:
            st = 'Recieved invalid id'
        else:
            mbrainz_resolver.update_album(id=id,
                                          mb_id=mb_id,
                                          use_recommended_track_order=True,
                                          doit=True)
            st = 'Resolved musicbrainz album id %s against internal album id %s' % (
                mb_id, id)

        flash(st)

        #now go back to our review page
        redirect("/resolve_viewalbums")