source: cows/trunk/cows/service/imps/csmlbackend/wfs_csmlstoredqueries.py @ 4400

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/service/imps/csmlbackend/wfs_csmlstoredqueries.py@4400
Revision 4400, 590 bytes checked in by domlowe, 11 years ago (diff)

More code to support StoredQuery? handling

Line 
1""" This module contains CSML WFS 2.0 stored query implementations.
2To add a new stored query, write the functional code here, then describe the functionality as
3a new query in:
4
5wfs_csmllayer.CSMLStoredQueries.queries
6"""
7
8class dummyfeaturefortesting(object):
9    def __init__(self, x):
10        self.x=x
11    def toGML(self):
12        return '<someGML>%s</someGML>'%self.x
13
14def query_one_func(arg1=None, arg2=None):
15    result = [dummyfeaturefortesting('blah1')]
16    return result
17
18def query_two_func(arg1=None, arg2=None):
19    result = [dummyfeaturefortesting('blah2')]
20    return result
Note: See TracBrowser for help on using the repository browser.