Mercurial > hg > lockedfile
changeset 1:1981f44ca250 default tip
remove unneeded files
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 18 Mar 2012 20:39:23 -0700 |
parents | c8c2d98afc98 |
children | |
files | lockedfile/main.py lockedfile/template.py lockedfile/web.py |
diffstat | 3 files changed, 0 insertions(+), 84 deletions(-) [+] |
line wrap: on
line diff
--- a/lockedfile/main.py Sun Mar 18 20:37:19 2012 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -""" -locked file implementation -""" - -import sys -import optparse - -def main(args=sys.argv[:]): - - # parse command line options - usage = '%prog [options]' - class PlainDescriptionFormatter(optparse.IndentedHelpFormatter): - """description formatter for console script entry point""" - def format_description(self, description): - if description: - return description + '\n' - else: - return '' - parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter()) - options, args = parser.parse_args(args) - -if __name__ == '__main__': - main() -
--- a/lockedfile/template.py Sun Mar 18 20:37:19 2012 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -""" -lockedfile template for makeitso -""" - -import sys -from cli import MakeItSoCLI -from optparse import OptionParser -from template import MakeItSoTemplate - -class lockedfileTemplate(MakeItSoTemplate): - """ - lockedfile template - """ - name = 'lockedfile' - templates = ['template'] - look = True - -class TemplateCLI(MakeItSoCLI): - """ - CLI driver for the lockedfile template - """ - -def main(args=sys.argv[:]): - cli = TemplateCLI() - cli(*args) - -if __name__ == '__main__': - main() - -
--- a/lockedfile/web.py Sun Mar 18 20:37:19 2012 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -""" -web handler for lockedfile -""" - -from webob import Request, Response, exc - -class Handler(object): - - def __init__(self, **kw): - pass - - def __call__(self, environ, start_response): - request = Request(environ) - response = Response(content_type='text/plain', - body="lockedfile") - return response(environ, start_response) - -if __name__ == '__main__': - from wsgiref import simple_server - app = Handler() - server = simple_server.make_server(host='0.0.0.0', port=8080, app=app) - server.serve_forever() - -