예제 #1
0
파일: runners.py 프로젝트: Natim/redbarrel
    def __directory(globs, request, **kw):
        match = request.match
        if match is None:
            raise IOError(path)
        name = match.get('name')
        if name is None or name.startswith('.'):
            raise IOError(path)

        filename = os.path.join(path, name)
        return response(filename)
    def __directory(globs, request, **kw):
        match = request.match
        if match is None:
            raise IOError(path)
        name = match.get('name')
        if name is None or name.startswith('.'):
            raise IOError(path)

        filename = os.path.join(path, name)
        return response(filename)
예제 #3
0
파일: runners.py 프로젝트: Natim/redbarrel
 def __file(*args, **kw):
     return response(name)
 def __file(*args, **kw):
     return response(name)