Comment 2 for bug 702007

Revision history for this message
Eric Casteleijn (thisfred) wrote :

# demo of weirdness
dic = {
    'spouse_name': '',
    'last_name': 'Smith',
    'middle_name': '',
    'suffix': '',
    'application_annotations': {
        'Funambol Exchange': {
            'private_application_annotations': {
                'created_timestamp': 1282566126030L,
                'exchange_hash': '3a670a52a2a43466fe1c71e50e4ed617',
                'email': '84aa15b7-f8e2-41e7-ba8f-60b25e302022'
            },
            'application_fields': {
                'photo': '',
                'state': 'N',
                'urlWork': '',
                'children': '',
                'urlHome': ''
            }
        }
    },
    'title': '',
    'nick_name': '',
    '_rev': '3-4ac012ecab57171fc22aab4853054f8f',
    'first_name': 'Minh',
    '_attachments': {
        'photo': {
            'stub': True,
            'length': 4631,
            'revpos': 3,
            'content_type': 'image/png'
        }
    },
    'record_type': 'http://www.freedesktop.org/wiki/Specifications/desktopcouch/contact',
    'department': '',
    '_id': '0167decee3fd4193b551231f12033033',
    'company': '',
    'notes': '',
    'email_addresses': {
        '84aa15b7-f8e2-41e7-ba8f-60b25e302022': {
            'description': 'other',
            'address': '<email address hidden>'
        },
        '_order': ['84aa15b7-f8e2-41e7-ba8f-60b25e302022']
    },
    'job_title': ''
}

r = Record(dic)
print r._attachments