~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/server/registry.py

  • Committer: Free Ekanayaka
  • Date: 2011-09-20 15:28:24 UTC
  • Revision ID: free.ekanayaka@canonical.com-20110920152824-is9oyvqd8aawxyb0
Add a category parameter so the scanner doesn't get confused by different types of callbacks, and playes well with other scanners [trivial] [r=ack,fcorrea]

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        """Scan the given module object for L{Method}s and register them."""
48
48
        from venusian import Scanner
49
49
        scanner = Scanner(registry=self)
50
 
        scanner.scan(module, onerror=onerror)
 
50
        scanner.scan(module, onerror=onerror, categories=["method"])