<s> from django import forms <EOL> from django . contrib . auth . models import User <EOL> from friends . models import * <EOL> from friends . importer import import_vcards <EOL> class ImportVCardForm ( forms . Form ) : <EOL> vcard_file = forms . FileField ( label = "<STR_LIT>" ) <EOL> def save ( self , user ) : <EOL> imported , total = import_vcards ( self . cleaned_data [ "<STR_LIT>" ] . content , user ) <EOL> return imported , total </s>
