- Timestamp:
- 22/05/07 14:37:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/ows_framework/trunk/ows_common/ows_common/operations_metadata.py
r2475 r2502 18 18 19 19 from ows_common.domain import Domain 20 from ows_common.is 19115_subset import OnlineResource20 from ows_common.iso19115_subset import OnlineResource 21 21 22 22 class OperationsMetadata(object): … … 27 27 @type operationDict: dictionary mapping names to Operation objects 28 28 @ivar constraints 29 @type constraints: iterableof Domain objects29 @type constraints: dictionary of Domain objects 30 30 @ivar parameters 31 @ivar parameters: iterableof Domain objects31 @ivar parameters: dictionary of Domain objects 32 32 33 33 """ 34 def __init__(self, operationDict, constraints= [], parameters=[]):34 def __init__(self, operationDict, constraints={}, parameters={}): 35 35 self.operationDict = operationDict 36 36 self.constraints = constraints … … 54 54 @ivar post 55 55 @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 56 60 57 61 """ 58 def __init__(self, get=None, post=None ):62 def __init__(self, get=None, post=None, constraints={}, parameters={}): 59 63 self.get = get 60 64 self.post = post 65 self.constraints = constraints 66 self.parameters = parameters 61 67 62 68 class RequestMethod(OnlineResource): 63 69 """ 64 70 @ivar constraints 65 @type constraints: Iterableof Domain objects71 @type constraints: dictionary of Domain objects 66 72 67 73 """ 68 def __init__(self, constraints= [], **kwargs):74 def __init__(self, constraints={}, **kwargs): 69 75 super(RequestMethod, self).__init__(**kwargs) 70 76
Note: See TracChangeset
for help on using the changeset viewer.