Logo Search packages:      
Sourcecode: zope-atextensions version File versions  Download package

def ATExtensions::field::records::RecordsField::getSubfieldValue (   self,
  values,
  idx,
  subfield,
  default = None 
)

return values[idx].get(key) if existing
'default' otherwise

Definition at line 59 of file records.py.

00059                                                                    :
        """
        return values[idx].get(key) if existing
        'default' otherwise
        """
        try:
            return values[idx].get(subfield, default)
        except IndexError:
            return default

    def getViewFor(self, instance, idx, subfield, joinWith=', '):


Generated by  Doxygen 1.6.0   Back to index