Example #1
0
def get_default_drilldown():
    """
    :return: Drilldown object
    """
#    if settings.VEHICLE_DRILLDOWN_STORAGE == 'dynamodb':
#        drilldown = get_dynamodb_drilldown()
    if os.environ.get('DJANGO_ENV', 'dev' ) == 'production':
        drilldown = get_memcache_drilldown()
    else:
        drilldown = get_dict_drilldown()
    AsyncDispatcher.get_instance().spawn(drilldown.load_items, tuple(), {})
    return drilldown
Example #2
0
 def send_validation_link(self, user_profile):
     
     title = 'Email de validation'
     text = user_profile.get_url()
     html = '<a href=>'+text+'</a>'
     
     async_dispatcher = AsyncDispatcher.get_instance()
     async_dispatcher.spawn(send_validation_email, [title,text,html], {})