source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/selectedItem.py @ 3701

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/selectedItem.py@3701
Revision 3701, 1.1 KB checked in by cbyrom, 12 years ago (diff)

Add docs for python scripts.

Line 
1# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
2# This software may be distributed under the terms of the
3# Q Public License, version 1.0 or later.
4# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5#
6"""
7 Simple data class to store basic info on selected items - for use with the selections + view tabs
8
9 @author C Byrom Feb 08
10"""
11
12from ows_server.models import Utilities
13
14           
15class SelectedItem:
16    ''' A simple object representing key info on selected items '''
17    def __init__(self,entryID,title,kmlURL,wmcURL):
18        """
19        Constructor to initialise the selected item object
20        @param entryID: Entry ID of related DIF record
21        @param title: Title of selected item
22        @param kmlURL: Endpoint of KML doc relating to selected item, if it exists
23        @param wmcURL: WMC Endpoint of selected item, if it exists   
24        """
25        self.entryID = entryID
26        self.title = title
27        self.kmlURL = kmlURL
28        self.wmcURL = wmcURL
29        self.kmlList = Utilities.recreateListFromUnicode(kmlURL)
30        self.wmcList = Utilities.recreateListFromUnicode(wmcURL)
31           
Note: See TracBrowser for help on using the repository browser.