Changes between Version 2 and Version 3 of OwsFramework/OwsProtocol


Ignore:
Timestamp:
15/01/08 10:46:39 (12 years ago)
Author:
spascoe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OwsFramework/OwsProtocol

    v2 v3  
    4646 
    4747OWS operations are created by defining a {{{OwsController}}} method of 
    48 the same name wrapped in the {{{@operation}}} decorator.  See below 
     48the same name wrapped in the {{{@ows_operation}}} decorator.  See below 
    4949about decorators. 
    5050 
     
    6161    # ... 
    6262 
    63     @operation 
    64     @parameter('Format', possibleValues=['text/xml']) 
    65     @parameter('Service', possibleValues=['WMS'], required=True) 
    66     @parameter('Version', possibleValues=['1.3.0']) 
     63    @ows_operation 
     64    @ows_parameter('Format', possibleValues=['text/xml']) 
     65    @ows_parameter('Service', possibleValues=['WMS'], required=True) 
     66    @ows_parameter('Version', possibleValues=['1.3.0']) 
    6767    def GetCapabilities(self, file, service=None, version=None): 
    6868        # ... 
    6969}}} 
    7070 
    71  {{{@operation}}}:: 
     71 {{{@ows_operation}}}:: 
    7272  Should be the top-most decorator.  It wraps the method in a function that 
    7373  performs request handling and type checking on the operation's arguments. 
    74  {{{@parameter}}}:: 
     74 {{{@ows_parameter}}}:: 
    7575  Add one of these for each operation parameter.  This instructs the framework 
    7676  to perform several tasks. 
     
    8484      required and the {{{validator}}} argument allows you to provide a 
    8585      validation function. 
    86  {{{@constraint}}}:: 
     86 {{{@ows_constraint}}}:: 
    8787  OWS common 1.3.0 allows you to define constraints on operations.  This 
    8888  decorator will populate the necessary {{{ows_common}}} objects for describing