@requires(conf.ALLOW_SUBSCRIPTIONS)<EOL>def verify_subscription(request, ident):
try:<EOL><INDENT>unverified = UnverifiedSubscription.objects.get(ident=ident)<EOL><DEDENT>except UnverifiedSubscription.DoesNotExist:<EOL><INDENT>return respond('<STR_LIT>', {}, request)<EOL><DEDENT>subscription = Subscription.objects.get_or_create(email=unverified.email, defaults={<EOL>'<STR_LIT>': unverified.ident,<EOL>})[<NUM_LIT:0>]<EOL>subscription.services = unverified.services.all()<EOL>unverified.delete()<EOL>return respond('<STR_LIT>', {<EOL>'<STR_LIT>': subscription,<EOL>}, request)<EOL>
Verifies an unverified subscription and create or appends
to an existing subscription.