<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from mezzanine import __version__ <EOL> QUERY_TYPE_USER = "<STR_LIT:user>" <EOL> QUERY_TYPE_LIST = "<STR_LIT:list>" <EOL> QUERY_TYPE_SEARCH = "<STR_LIT>" <EOL> QUERY_TYPE_CHOICES = ( <EOL> ( QUERY_TYPE_USER , _ ( "<STR_LIT>" ) ) , <EOL> ( QUERY_TYPE_LIST , _ ( "<STR_LIT>" ) ) , <EOL> ( QUERY_TYPE_SEARCH , _ ( "<STR_LIT>" ) ) , <EOL> ) <EOL> def get_auth_settings ( ) : <EOL> """<STR_LIT>""" <EOL> from mezzanine . conf import settings <EOL> try : <EOL> auth_settings = ( settings . TWITTER_CONSUMER_KEY , <EOL> settings . TWITTER_CONSUMER_SECRET , <EOL> settings . TWITTER_ACCESS_TOKEN_KEY , <EOL> settings . TWITTER_ACCESS_TOKEN_SECRET ) <EOL> except AttributeError : <EOL> return None <EOL> else : <EOL> return auth_settings if all ( auth_settings ) else None </s>
