/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
DybPython::Catalog::SetSelection Class Reference

List of all members.

Public Member Functions

def __init__
def __add__
def __getitem__
def __len__
def resolve
def __repr__

Public Attributes

 resolution
 content
 subset

Detailed Description

Definition at line 19 of file __init__.py.


Constructor & Destructor Documentation

def DybPython::Catalog::SetSelection::__init__ (   self,
  lhs,
  rhs 
)
Creates an selection. If the second argument in None, then
the first argument is taken to be a single selection. Otherwise
both argments are taken to be instances of this class.

Definition at line 22 of file __init__.py.

00023                                 :
00024         """
00025         Creates an selection. If the second argument in None, then
00026         the first argument is taken to be a single selection. Otherwise
00027         both argments are taken to be instances of this class.
00028         """
00029         self.resolution = None
00030         self.content = []
00031         if (None == rhs):
00032             self.content.append(lhs)
00033         else:
00034             self.content = lhs.content + rhs.content
00035         self.subset = None
    

Member Function Documentation

def DybPython::Catalog::SetSelection::__add__ (   self,
  others 
)

Definition at line 36 of file __init__.py.

00037                              :
00038         if (self.subset != others.subset):
00039             raise MismatchException
00040         result = SetSelection(self, others)
00041         result.subset = self.subset
00042         return result

def DybPython::Catalog::SetSelection::__getitem__ (   self,
  key 
)

Definition at line 43 of file __init__.py.

00044                               :
00045         self.resolve()
00046         return self.resolution[key]

def DybPython::Catalog::SetSelection::__len__ (   self)

Definition at line 47 of file __init__.py.

00048                      :
00049         self.resolve()
00050         return len(self.resolution)

def DybPython::Catalog::SetSelection::resolve (   self)

Definition at line 51 of file __init__.py.

00052                      :
00053         if self.resolution:
00054             return
00055 
00056         from dybcatalog_pkg.suds_stubs import getLocations
00057         self.resolution = getLocations(self.content,
00058                                        self.subset)
    
def DybPython::Catalog::SetSelection::__repr__ (   self)

Definition at line 59 of file __init__.py.

00060                       :
00061         try:
00062             self.resolve()
00063         except TypeError as e:
00064             if 'Response is "text/html", not "text/xml"' == e.message:
00065                 raise IOError('Failed to get correct reponse from Web Service')
00066             else:
00067                 raise e
00068         return str(self.resolution)
00069 


Member Data Documentation

Definition at line 26 of file __init__.py.

Definition at line 26 of file __init__.py.

Definition at line 26 of file __init__.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:55:40 for DybPython by doxygen 1.7.4