Changeset 557

Show
Ignore:
Timestamp:
06/12/03 15:34:15 (5 years ago)
Author:
sholloway
Message:

added default index for RelationBag? add calls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBFoundation/RBFoundation/Objects/Relations.py

    r556 r557  
    170170class RelationsBag(RelationsCollection): 
    171171    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     172    #~ Constants / Variables / Etc.  
     173    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     174 
     175    _addDefIndex = None 
     176 
     177    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    172178    #~ Public Methods  
    173179    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    212218 
    213219    def add(self, *relations, **kw):  
    214         atIndex = kw.get('atIndex', None
     220        atIndex = kw.get('atIndex', self._addDefIndex
    215221        relations = _flattenlist(relations) 
    216222        self.OnModifying(self, relations)