/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::EntrySelection 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 131 of file __init__.py.


Constructor & Destructor Documentation

def DybPython::Catalog::EntrySelection::__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 134 of file __init__.py.

00135                                 :
00136         """
00137         Creates an selection. If the second argument in None, then
00138         the first argument is taken to be a single selection. Otherwise
00139         both argments are taken to be instances of this class.
00140         """
00141         self.resolution = None
00142         self.content = []
00143         if (None == rhs):
00144             self.content.append(lhs)
00145         else:
00146             self.content = lhs.content + rhs.content
00147         self.subset = None
    

Member Function Documentation

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

Definition at line 148 of file __init__.py.

00149                              :
00150         if (self.subset != others.subset):
00151             raise MismatchException
00152         result = EntrySelection(self, others)
00153         result.subset = self.subset
00154         return result

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

Definition at line 155 of file __init__.py.

00156                               :
00157         self.resolve()
00158         return self.resolution[key]

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

Definition at line 159 of file __init__.py.

00160                      :
00161         self.resolve()
00162         return len(self.resolution)

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

Definition at line 163 of file __init__.py.

00164                      :
00165         if self.resolution:
00166             return
00167 
00168         from dybcatalog_pkg.suds_stubs import getLocations
00169         self.resolution = getLocations(self.content,
00170                                        self.subset)

def DybPython::Catalog::EntrySelection::__repr__ (   self)

Definition at line 171 of file __init__.py.

00172                       :
00173         try:
00174             self.resolve()
00175         except TypeError as e:
00176             if 'Response is "text/html", not "text/xml"' == e.message:
00177                 raise IOError('Failed to get correct reponse from Web Service')
00178             else:
00179                 raise e
00180         return str(self.resolution)
00181 


Member Data Documentation

Definition at line 138 of file __init__.py.

Definition at line 138 of file __init__.py.

Definition at line 138 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