~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/lazr/xml.py

  • Committer: Curtis Hovey
  • Date: 2011-12-29 05:29:36 UTC
  • mto: This revision was merged to the branch mainline in revision 14606.
  • Revision ID: curtis.hovey@canonical.com-20111229052936-c261pibg1p6ze6m4
Moved canonical.config to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
import os
13
13
from tempfile import NamedTemporaryFile
14
 
 
15
14
from lp.services.helpers import simple_popen2
16
15
 
17
 
 
18
16
class XMLValidator:
19
17
    """A validator for XML files against a schema."""
20
18
 
56
54
                   '--%s' % self.SCHEMA_ARGUMENT,
57
55
                   self.schema_filename, xml_file.name]
58
56
        local_catalog_path = os.path.abspath(
59
 
            os.path.join(os.path.dirname(__file__), "tests", "testfiles",
 
57
            os.path.join(os.path.dirname(__file__), "tests",
60
58
                         "catalog", "catalog"))
61
59
        catalogs = " ".join(
62
60
            [local_catalog_path, "/etc/xml/catalog"])