<s> from __future__ import absolute_import <EOL> from django import forms <EOL> import vobject <EOL> from contacts_import . backends . importers . base import Importer <EOL> class vCardImportForm ( forms . Form ) : <EOL> file = forms . FileField ( ) <EOL> class vCardImporter ( Importer ) : <EOL> name = "<STR_LIT>" <EOL> form_class = vCardImportForm <EOL> def handle ( self , form ) : <EOL> for entry in vobject . readComponents ( form . cleaned_data [ "<STR_LIT:file>" ] ) : <EOL> yield { <EOL> "<STR_LIT:email>" : entry . email . value , <EOL> "<STR_LIT:name>" : entry . fn . value <EOL> } </s>
