Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

        def log(msg):
    print 'Server Log: ' + msg
    return
        


src/m/e/mephisto_ii-HEAD/gplayer.py   mephisto_ii(Download)
                    mpc.telnetCmd('play')    
            time.sleep(3)
        mpc.log('Stopping Update Thread')
 
 
 
        index+=1            
        mpc.log('Calculated next track index: ' + str(index) + ' of ' + str(len(Player.playlist)))
        if index < len(Player.playlist):
            Player.current = Player.playlist[index].get('id')
 
        index-=1
        mpc.log('Calculated previous track index: ' + str(index) + ' of ' + str(len(Player.playlist)))
        if index >= 0:
            Player.current = Player.playlist[index].get('id')

src/m/e/mephisto_ii-HEAD/gmusic_rest.py   mephisto_ii(Download)
def loadGoogleData():
    mpc.log('Google login successful')
    songDict = api.get_all_songs()
    mpc.log('Loaded ' + str(len(songDict)) + ' songs')
 
    convertDictToSortedList(artistStore, artistList)
 
    mpc.log('Finished Google API initalization')
    return True
 
    if(result):
        loggedIn = True
        mpc.log('Google login successful')
        loadGoogleData()
        config.set('Google', 'login', login)
        config.set('Google', 'password', password)
    else:
        mpc.log('Google login failed')