Ignore:
Timestamp:
22/05/07 14:37:01 (13 years ago)
Author:
spascoe
Message:

Some bug fixes to ows_common. OwsController?._load_capabilities implements
discovery of capabilities from a controller definition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_common/ows_common/operations_metadata.py

    r2475 r2502  
    1818 
    1919from ows_common.domain import Domain 
    20 from ows_common.is19115_subset import OnlineResource 
     20from ows_common.iso19115_subset import OnlineResource 
    2121 
    2222class OperationsMetadata(object): 
     
    2727    @type operationDict: dictionary mapping names to Operation objects 
    2828    @ivar constraints 
    29     @type constraints: iterable of Domain objects 
     29    @type constraints: dictionary of Domain objects 
    3030    @ivar parameters 
    31     @ivar parameters: iterable of Domain objects 
     31    @ivar parameters: dictionary of Domain objects 
    3232 
    3333    """ 
    34     def __init__(self, operationDict, constraints=[], parameters=[]): 
     34    def __init__(self, operationDict, constraints={}, parameters={}): 
    3535        self.operationDict = operationDict 
    3636        self.constraints = constraints 
     
    5454    @ivar post 
    5555    @type post: None or RequestMethod 
     56    @ivar constraints 
     57    @type constraints: dictionary of Domain objects 
     58    @ivar parameters 
     59    @type parameters: dictionary of Domain objects 
    5660 
    5761    """ 
    58     def __init__(self, get=None, post=None): 
     62    def __init__(self, get=None, post=None, constraints={}, parameters={}): 
    5963        self.get = get 
    6064        self.post = post 
     65        self.constraints = constraints 
     66        self.parameters = parameters 
    6167 
    6268class RequestMethod(OnlineResource): 
    6369    """ 
    6470    @ivar constraints 
    65     @type constraints: Iterable of Domain objects 
     71    @type constraints: dictionary of Domain objects 
    6672 
    6773    """ 
    68     def __init__(self, constraints=[], **kwargs): 
     74    def __init__(self, constraints={}, **kwargs): 
    6975        super(RequestMethod, self).__init__(**kwargs) 
    7076 
Note: See TracChangeset for help on using the changeset viewer.