~leonardr/lazr.restful/multiversion-collection

« back to all changes in this revision

Viewing changes to src/lazr/restful/metazcml.py

  • Committer: Leonard Richardson
  • Date: 2010-01-12 17:44:41 UTC
  • mfrom: (93.1.46 entry-traverse)
  • Revision ID: leonard.richardson@canonical.com-20100112174441-jq2a2ovya8b4hj6y
[r=flacoste] It's now possible to define two distinct web services based on the same data model.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        context.action(
83
83
            discriminator=('adapter', interface, provides, ''),
84
84
            callable=handler,
 
85
            # XXX leonardr bug=503948 Register the adapter against a
 
86
            # generic IWebServiceClientRequest.  It will be picked up
 
87
            # for all versions of the web service. Later on, this will
 
88
            # be changed to register different adapters for different
 
89
            # versions.
85
90
            args=('registerAdapter',
86
 
                  factory, (interface, ), provides, '', context.info),
 
91
                  factory, (interface, IWebServiceClientRequest),
 
92
                            provides, '', context.info),
87
93
            )
88
94
        register_webservice_operations(context, interface)
89
95