(self)
return out_dict
Merge credits together into a dict with role name as key, and lists of persons
Merge credits together into a dict with role name as key, and lists of persons
Merge credits together into a dict with role name as key and lists of persons
def credits(self):
        """Merge credits together into a dict with role name as key, and lists of persons"""
        
        out_dict = {}
        # iterate over the list of credits mini dicts:
        for c in self.credits_raw:
            if c.role and c.person:
                if not out_dict.has_key(c.role.name):
                    out_dict[c.role.name] = []
                out_dict[c.role.name].append(c.person.name)
        
        return out_dict
def credits ( self ) : out_dict = { } # iterate over the list of credits mini dicts: for c in self . credits_raw : if c . role and c . person : if not out_dict . has_key ( c . role . name ) : out_dict [ c . role . name ] = [ ] out_dict [ c . role . name ] . append ( c . person . name ) return out_dict