@view_config(<EOL>route_name='<STR_LIT>',<EOL>request_method='<STR_LIT:POST>')<EOL>def dropbox_submission(dropbox, request):
try:<EOL><INDENT>data = dropbox_schema.deserialize(request.POST)<EOL><DEDENT>except Exception:<EOL><INDENT>return HTTPFound(location=request.route_url('<STR_LIT>'))<EOL><DEDENT>dropbox.message = data.get('<STR_LIT:message>')<EOL>if '<STR_LIT>' in dropbox.settings:<EOL><INDENT>dropbox.from_watchdog = is_equal(<EOL>unicode(dropbox.settings['<STR_LIT>']),<EOL>data.pop('<STR_LIT>', u'<STR_LIT>'))<EOL><DEDENT>if data.get('<STR_LIT>') is not None:<EOL><INDENT>dropbox.add_attachment(data['<STR_LIT>'])<EOL><DEDENT>dropbox.submit()<EOL>drop_url = request.route_url('<STR_LIT>', drop_id=dropbox.drop_id)<EOL>print("<STR_LIT>" % drop_url)<EOL>return HTTPFound(location=drop_url)<EOL>
handles the form submission, redirects to the dropbox's status page.