(sProperty, arDefaultType, arForceType=None)
| 2275 | arLines.append(self.vcardFold(sProperty.upper() + sEncoding + sContentType + sValueKey + ':' + sValue)) |
| 2276 | |
| 2277 | def processTypeValue(sProperty, arDefaultType, arForceType=None): |
| 2278 | arResults = self.getPropertyValue(elmCard, sProperty, bAllowMultiple=1) |
| 2279 | for elmResult in arResults: |
| 2280 | arType = self.getPropertyValue(elmResult, 'type', self.STRING, 1, 1) |
| 2281 | if arForceType: |
| 2282 | arType = self.unique(arForceType + arType) |
| 2283 | if not arType: |
| 2284 | arType = arDefaultType |
| 2285 | sValue = self.getPropertyValue(elmResult, 'value', self.EMAIL, 0) |
| 2286 | if sValue: |
| 2287 | arLines.append(self.vcardFold(sProperty.upper() + ';TYPE=' + ','.join(arType) + ':' + sValue)) |
| 2288 | |
| 2289 | # AGENT |
| 2290 | # must do this before all other properties because it is destructive |
nothing calls this directly
no test coverage detected