Module ImportFrom alias ImportFrom alias alias Import alias alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias alias alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad BoolOpOr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str ListLoad Str Str Str Str Str body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad CompareNotIn SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad If NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd Call NameLoad NameLoad Str Call NameLoad AttributeLoad Call NameLoad NameLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad keyword Str orelse Return Call NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv Call NameLoad BinOpMult NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Num NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If NameLoad body Assign NameStore BinOpMult NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad NameLoad If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Dict If CompareNotEq NameLoad Str body For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad For NameStore Call NameLoad NameLoad body Pass If Call AttributeLoad NameLoad attr Str body Pass orelse If CompareIn NameLoad NameLoad body Pass orelse If CompareIn NameLoad ListLoad Str Str Str body Pass orelse Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad Return NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad ListComp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr BoolOpOr CompareEq NameLoad Str BoolOpAnd UnaryOpNot Call NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad orelse If Call NameLoad NameLoad Str body Return Call NameLoad Call AttributeLoad NameLoad attr orelse If CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Return ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad ListComp TupleLoad NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpAnd UnaryOpNot Call NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIsNot NameLoad NameLoad Call NameLoad NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad orelse Return NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Str Str Assign NameStore Call NameLoad ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad BinOpSub NameLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad ExceptHandler type NameLoad body Return NameLoad If CompareNotEq BinOpFloorDiv BinOpMod NameLoad Num Num Num body If CompareEq BinOpMod NameLoad Num Num body Assign NameStore BinOpMod Str TupleLoad NameLoad Str orelse If CompareEq BinOpMod NameLoad Num Num body Assign NameStore BinOpMod Str TupleLoad NameLoad Str orelse If CompareEq BinOpMod NameLoad Num Num body Assign NameStore BinOpMod Str TupleLoad NameLoad Str orelse Assign NameStore BinOpMod Str TupleLoad NameLoad Str orelse Assign NameStore BinOpMod Str TupleLoad NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Dict ExceptHandler type NameLoad body Pass Assign NameStore SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad Return NameLoad decorator_list Call NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults Num body Return Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr Str comprehension NameStore Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd Str Call NameLoad Print Str NameLoad Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword NameLoad Print Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Num keyword Str keyword Num keyword NameLoad keyword Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpMult NameLoad Num keyword Str keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword Dict Str NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword Dict Str Str NameLoad NameLoad decorator_list
N/A functools wraps flask request current_app N/A random math N/A re N/A jinja2 time sleep N/A datetime N/A stripe N/A emailer unicode_helpers to_unicode_or_bust N/A unicodedata sqlalchemy.exc IntegrityError DataError InvalidRequestError sqlalchemy.orm.exc FlushError N/A logging N/A logger N/A N/A logging getLogger ti.util slow N/A N/A f N/A N/A N/A N/A f slow True N/A f N/A remove_punctuation N/A N/A input_string N/A N/A N/A no_punc input_string N/A input_string N/A N/A no_punc N/A N/A join N/A e N/A e input_string N/A N/A N/A e isalnum N/A N/A e isspace N/A no_punc N/A remove_unneeded_characters N/A N/A input_string encoding char_classes_to_remove N/A utf-8 N/A C M P S Z N/A N/A input_was_unicode True N/A N/A isinstance input_string basestring N/A N/A N/A N/A isinstance input_string unicode N/A N/A input_was_unicode False N/A unicode_input N/A to_unicode_or_bust input_string N/A response N/A N/A join N/A c N/A c unicode_input N/A N/A N/A N/A unicodedata category c N/A 0 char_classes_to_remove N/A N/A input_was_unicode N/A N/A response N/A N/A response encode encoding N/A response N/A jsonp N/A N/A f N/A N/A N/A Wraps JSONified output for JSONP decorated_function N/A N/A N/A args kwargs N/A N/A callback N/A N/A N/A request args get callback False N/A callback N/A N/A content N/A N/A N/A N/A str callback ( N/A str N/A N/A f args kwargs data ) N/A N/A N/A current_app response_class content mimetype application/javascript N/A N/A N/A f args kwargs N/A N/A wraps f N/A decorated_function N/A jinja_render N/A N/A template_name context N/A N/A N/A templateLoader N/A N/A jinja2 FileSystemLoader searchpath totalimpactwebapp/templates N/A templateEnv N/A N/A jinja2 Environment loader templateLoader N/A html_template N/A N/A templateEnv get_template template_name N/A N/A N/A html_template render context N/A pickWosItems N/A N/A num_total_results num_subset_results N/A N/A N/A num_in_final_sample 100 N/A num_results_per_page 50 N/A num_to_sample N/A int N/A N/A math ceil N/A N/A float N/A num_subset_results num_in_final_sample N/A float num_total_results N/A subset_result_ids N/A range 1 num_subset_results N/A ids_to_sample N/A sorted N/A N/A random sample subset_result_ids num_to_sample N/A pages_and_ids N/A N/A result_id ids_to_sample N/A N/A page N/A N/A int N/A N/A math floor N/A result_id num_results_per_page 1 N/A N/A N/A pages_and_ids append N/A page result_id N/A pages_and_ids N/A N/A _underscorer1 N/A N/A re compile (.)([A-Z][a-z]+) N/A _underscorer2 N/A N/A re compile ([a-z0-9])([A-Z]) camel_to_snake_case N/A N/A s N/A N/A N/A 
    from http://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-camel-case
    and https://gist.github.com/jaytaylor/3660565
     N/A subbed N/A N/A _underscorer1 sub \1_\2 s N/A N/A N/A N/A N/A _underscorer2 sub \1_\2 subbed lower N/A local_sleep N/A N/A interval fuzz_proportion N/A 0.2 N/A N/A 
    Add some sleep to simulate running on a server.
     N/A fuzz_proportion N/A N/A max_fuzz_distance N/A interval fuzz_proportion N/A interval N/A N/A random uniform N/A max_fuzz_distance max_fuzz_distance N/A N/A localhost:5000 N/A request url_root N/A N/A N/A N/A logger debug N/A N/A sleeping on local for {second} seconds format second interval N/A N/A sleep interval N/A as_int_or_float_if_possible N/A N/A input_value N/A N/A N/A value input_value N/A N/A N/A value N/A int input_value N/A N/A N/A N/A ValueError TypeError N/A N/A N/A N/A value N/A float input_value N/A N/A N/A N/A ValueError TypeError N/A N/A N/A value N/A dict_from_dir N/A N/A obj keys_to_ignore keys_to_show N/A None all N/A N/A N/A keys_to_ignore None N/A N/A keys_to_ignore N/A N/A N/A N/A isinstance keys_to_ignore basestring N/A N/A keys_to_ignore N/A keys_to_ignore N/A ret N/A N/A N/A keys_to_show all N/A N/A key keys_to_show N/A N/A N/A ret N/A key N/A getattr obj key N/A ret N/A k N/A dir obj N/A N/A N/A N/A N/A k startswith _ N/A N/A N/A N/A N/A k keys_to_ignore N/A N/A N/A N/A N/A k N/A query query_class metadata N/A N/A N/A N/A value N/A getattr obj k N/A N/A N/A callable value N/A N/A N/A ret N/A k value N/A ret N/A todict N/A N/A obj classkey N/A None N/A N/A N/A isinstance obj dict N/A N/A data N/A N/A N/A k v N/A N/A obj items N/A N/A N/A data N/A k N/A todict v classkey N/A data N/A N/A N/A hasattr obj to_dict N/A N/A data N/A dict N/A N/A key N/A todict value classkey N/A N/A key value N/A N/A N/A N/A obj to_dict iteritems N/A N/A key _tiid N/A N/A N/A callable value N/A N/A N/A key startswith _ N/A N/A N/A classkey None N/A hasattr obj __class__ N/A N/A N/A data N/A classkey N/A N/A obj __class__ __name__ N/A data N/A N/A N/A hasattr obj _ast N/A N/A N/A todict N/A N/A obj _ast N/A N/A N/A N/A type obj N/A datetime datetime N/A N/A N/A N/A obj isoformat N/A N/A N/A hasattr obj __iter__ N/A N/A N/A N/A todict v classkey N/A v obj N/A N/A N/A hasattr obj __dict__ N/A N/A data N/A dict N/A N/A key N/A todict value classkey N/A N/A key value N/A N/A N/A obj __dict__ iteritems N/A N/A N/A callable value N/A N/A N/A key startswith _ N/A N/A N/A classkey None N/A hasattr obj __class__ N/A N/A N/A data N/A classkey N/A N/A obj __class__ __name__ N/A data N/A N/A obj N/A HTTPMethodOverrideMiddleware N/A object N/A N/A allowed_methods N/A frozenset N/A GET HEAD POST DELETE PUT PATCH OPTIONS N/A bodyless_methods N/A frozenset N/A GET HEAD OPTIONS DELETE __init__ N/A N/A self app N/A N/A N/A N/A self app app N/A __call__ N/A N/A self environ start_response N/A N/A N/A method N/A N/A N/A N/A environ get HTTP_X_HTTP_METHOD_OVERRIDE upper N/A N/A method N/A self allowed_methods N/A N/A method N/A N/A method encode ascii replace N/A N/A environ N/A REQUEST_METHOD method N/A N/A method N/A self bodyless_methods N/A N/A N/A environ N/A CONTENT_LENGTH 0 N/A N/A N/A self app environ start_response N/A N/A Timer N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self start N/A N/A N/A datetime datetime now N/A N/A self last_check N/A self start N/A since_last_check N/A N/A self N/A N/A N/A N/A N/A self elapsed since_last_check True N/A elapsed N/A N/A self since_last_check N/A False N/A N/A since_last_check N/A N/A window_start N/A self last_check N/A N/A window_start N/A self start N/A current_datetime N/A N/A N/A datetime datetime now N/A N/A self last_check current_datetime N/A elapsed_seconds N/A N/A N/A current_datetime window_start total_seconds N/A elapsed_seconds N/A N/A ordinal N/A N/A value N/A N/A N/A 
    Converts zero or a *postive* integer (or their string
    representations) to an ordinal value.

    >>> for i in range(1,13):
    ...     ordinal(i)
    ...
    u'1st'
    u'2nd'
    u'3rd'
    u'4th'
    u'5th'
    u'6th'
    u'7th'
    u'8th'
    u'9th'
    u'10th'
    u'11th'
    u'12th'

    >>> for i in (100, '111', '112',1011):
    ...     ordinal(i)
    ...
    u'100th'
    u'111th'
    u'112th'
    u'1011th'

     N/A N/A N/A value N/A int value N/A N/A N/A ValueError N/A N/A value N/A N/A TypeError N/A N/A value N/A N/A N/A N/A value 100 10 1 N/A N/A N/A N/A value 10 1 N/A N/A ordval N/A %d%s N/A value st N/A N/A N/A N/A value 10 2 N/A N/A ordval N/A %d%s N/A value nd N/A N/A N/A N/A value 10 3 N/A N/A ordval N/A %d%s N/A value rd N/A N/A ordval N/A %d%s N/A value th N/A N/A ordval N/A %d%s N/A value th N/A ordval N/A cached_property N/A N/A property_name N/A N/A N/A A memoize decorator for class properties. cached_propery_get N/A N/A self N/A N/A N/A N/A N/A N/A N/A self _cache N/A property_name N/A N/A N/A AttributeError N/A N/A N/A self _cache N/A N/A N/A KeyError N/A N/A N/A ret N/A N/A self _cache N/A property_name N/A property_name self N/A ret N/A N/A wraps property_name N/A N/A property cached_propery_get N/A commit N/A N/A db N/A N/A N/A N/A N/A N/A N/A N/A db session commit N/A N/A N/A N/A IntegrityError FlushError N/A e N/A N/A N/A N/A N/A db session rollback N/A N/A N/A logger warning N/A N/A Error on commit, rolling back.  Message: {message} format message N/A e message N/A random_alpha_str N/A N/A length N/A 5 N/A N/A N/A N/A join N/A N/A N/A random choice ABCDEFGHJKLMNOPQRSTUVWXYZ N/A i N/A range length N/A mint_stripe_coupon N/A N/A stripe_token email cost num_subscriptions N/A N/A N/A coupon_code N/A MS_ N/A random_alpha_str N/A making a stripe coupon with this code:  coupon_code N/A descr N/A N/A Coupon {coupon_code}: {num_subscriptions} Impactstory subscriptions for ${cost} format coupon_code coupon_code num_subscriptions num_subscriptions cost cost N/A making a stripe coupon with this code:  coupon_code N/A coupon_resp N/A N/A N/A stripe Coupon create id coupon_code percent_off 100 duration repeating duration_in_months 12 max_redemptions num_subscriptions metadata N/A email email N/A charge_resp N/A N/A N/A stripe Charge create amount N/A cost 100 currency USD card stripe_token description descr statement_description Impactstory receipt_email email metadata N/A coupon coupon_code N/A N/A N/A emailer send address email subject Your code for Impactstory subscriptions template_name multi-subscribe context N/A num_subscriptions coupon_code num_subscriptions coupon_code N/A