def s_GECOS(self, value):
    if isinstance(value, list):
        value = value[0]
    if value:
        attrs = (value.split(',') if (value and (',' in value)) else [])
        attrs.extend(([None] * (4 - len(attrs))))
        (common_name, building, phone_office, phone_home) = attrs
        if (common_name is not None):
            self.data[COMMONNAME] = common_name
    else:
        return None
def s_GECOS(self, value):
    if isinstance(value, list):
        value = value[0]
    if value:
        attrs = (value.split(',') if (value and (',' in value)) else [])
        attrs.extend(([None] * (4 - len(attrs))))
        (common_name, building, phone_office, phone_home) = attrs
        if (common_name is not None):
            self.data[COMMONNAME] = common_name
    else:
        return None