CMS 3D CMS Logo

List of all members | Public Member Functions | Properties | Private Member Functions
Config.FilteredStream Class Reference
Inheritance diagram for Config.FilteredStream:

Public Member Functions

def __getattr__ (self, attr)
 
def __init__ (self, args, kw)
 
def __new__ (cls, args, kw)
 
def __repr__ (self)
 

Properties

 _blocked_attribute = property(_blocked_attribute)
 

Private Member Functions

def _blocked_attribute (obj)
 

Detailed Description

a dictionary with fixed keys

Definition at line 1213 of file Config.py.

Constructor & Destructor Documentation

def Config.FilteredStream.__init__ (   self,
  args,
  kw 
)

Definition at line 1237 of file Config.py.

1237  def __init__(self, *args, **kw):
1238  pass
def __init__(self, args, kw)
Definition: Config.py:1237

Member Function Documentation

def Config.FilteredStream.__getattr__ (   self,
  attr 
)

Definition at line 1241 of file Config.py.

Referenced by VarParsing.VarParsing.setType().

1241  def __getattr__(self,attr):
1242  return self[attr]
1243 
def __getattr__(self, attr)
Definition: Config.py:1241
def Config.FilteredStream.__new__ (   cls,
  args,
  kw 
)

Definition at line 1220 of file Config.py.

Referenced by SequenceTypes._ModuleSequenceType.copyAndExclude().

1220  def __new__(cls, *args, **kw):
1221  new = dict.__new__(cls)
1222  dict.__init__(new, *args, **kw)
1223  keys = sorted(kw.keys())
1224  if keys != ['content', 'dataTier', 'name', 'paths', 'responsible', 'selectEvents']:
1225  raise ValueError("The needed parameters are: content, dataTier, name, paths, responsible, selectEvents")
1226  if not isinstance(kw['name'],str):
1227  raise ValueError("name must be of type string")
1228  if not isinstance(kw['content'], vstring) and not isinstance(kw['content'],str):
1229  raise ValueError("content must be of type vstring or string")
1230  if not isinstance(kw['dataTier'], string):
1231  raise ValueError("dataTier must be of type string")
1232  if not isinstance(kw['selectEvents'], PSet):
1233  raise ValueError("selectEvents must be of type PSet")
1234  if not isinstance(kw['paths'],(tuple, Path)):
1235  raise ValueError("'paths' must be a tuple of paths")
1236  return new
def __new__(cls, args, kw)
Definition: Config.py:1220
def Config.FilteredStream.__repr__ (   self)

Definition at line 1239 of file Config.py.

1239  def __repr__(self):
1240  return "FilteredStream object: %s" %self["name"]
def __repr__(self)
Definition: Config.py:1239
def Config.FilteredStream._blocked_attribute (   obj)
private

Definition at line 1215 of file Config.py.

References Config.FilteredStream._blocked_attribute.

1216  raise AttributeError("An FilteredStream defintion cannot be modified after creation.")

Property Documentation

Config.FilteredStream._blocked_attribute = property(_blocked_attribute)
staticprivate

Definition at line 1217 of file Config.py.

Referenced by Config.FilteredStream._blocked_attribute().