def METHOD_NAME(self, ev):
    src = ev.source()
    if hasattr(src, 'implements') and src.implements('dock'):
        #print "drag enter accept"
        ev.accept()
    else:
        #print "drag enter ignore"
        ev.ignore()