~cr3/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpx/results/management/commands/apidoc.py

  • Committer: Marc Tardif
  • Date: 2010-12-20 18:07:34 UTC
  • Revision ID: marc.tardif@canonical.com-20101220180734-3nbc82mr7d84idx0
Renamed lp.results to lpx.results and other naming changes to prevent conflicts with Launchpad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    Request,
30
30
    )
31
31
 
32
 
from lp.results.wsgi import WSGIHandler
 
32
from lpx.results.wsgi import WSGIHandler
33
33
 
34
34
 
35
35
DEFAULT_FORMAT = os.path.join(settings.APIDOC_ROOT, "wadl-%(version)s.xml")
56
56
 
57
57
    requires_model_validation = False
58
58
 
59
 
    def handle(self, **kwargs):
 
59
    def handle(self, **options):
60
60
        WSGIHandler()
61
61
        config = getUtility(IWebServiceConfiguration)
62
62
 
63
 
        format = kwargs.get("format", DEFAULT_FORMAT)
64
 
        stylesheet = kwargs.get("stylesheet", DEFAULT_STYLESHEET)
 
63
        format = options.get("format", DEFAULT_FORMAT)
 
64
        stylesheet = options.get("stylesheet", DEFAULT_STYLESHEET)
65
65
 
66
66
        # First, create an index.html with links to all the HTML
67
67
        # documentation files we're about to generate.