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

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

Remove the selectedItems class from stubB and put into its own separate class
+ add additional documentation to viewItems and selectedItems 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        self.entryID = entryID
19        self.title = title
20        self.kmlURL = kmlURL
21        self.wmcURL = wmcURL
22        self.kmlList = Utilities.recreateListFromUnicode(kmlURL)
23        self.wmcList = Utilities.recreateListFromUnicode(wmcURL)
24           
Note: See TracBrowser for help on using the repository browser.