This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import cherrypy | |
from random import randint | |
from fcntl import flock, LOCK_EX, LOCK_UN | |
__all__ = ["LockTool"] | |
class LockTool(cherrypy.Tool): | |
def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import cherrypy | |
import datetime | |
from cherrys import RedisSession | |
try: | |
import simplejson as json | |
except ImportError: | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
try: import simplejson as json | |
except ImportError: import json | |
import cherrypy | |
from mapper import Mapper | |
@cherrypy.popargs('songid') | |
class Artists(Mapper): |