Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias identifier ImportFrom alias Assign NameStore Call NameLoad NameLoad Str Num Assign NameStore Call NameLoad NameLoad Str BinOpMult BinOpMult Num Num Num ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore ListLoad Str Str Str body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad Str NameLoad Call NameLoad NameLoad Str NameLoad body Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareIn NameLoad Call AttributeLoad NameLoad attr If NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Str Call NameLoad NameLoad Call NameLoad ListComp BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num BinOpMult Str BinOpSub Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Call NameLoad Str Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If NameLoad body Raise Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Return NameLoad decorator_list decorator_list
N/A N/A time django forms django.conf settings django.contrib.contenttypes.models ContentType django.forms.utils ErrorDict django.utils.crypto salted_hmac constant_time_compare django.utils.encoding force_text django.utils.text get_text_list django.utils timezone django.utils.translation pgettext_lazy ungettext ugettext ugettext_lazy _ N/A get_model N/A COMMENT_MAX_LENGTH N/A getattr settings COMMENT_MAX_LENGTH 3000 N/A DEFAULT_COMMENTS_TIMEOUT N/A getattr settings COMMENTS_TIMEOUT N/A N/A 2 60 60 CommentSecurityForm N/A N/A forms Form N/A N/A 
    Handles the security aspects (anti-spoofing) for comment forms.
     N/A content_type N/A N/A forms CharField widget N/A forms HiddenInput N/A object_pk N/A N/A forms CharField widget N/A forms HiddenInput N/A timestamp N/A N/A forms IntegerField widget N/A forms HiddenInput N/A security_hash N/A N/A forms CharField min_length 40 max_length 40 widget N/A forms HiddenInput __init__ N/A N/A self target_object data initial N/A None None kwargs N/A N/A N/A self target_object target_object N/A N/A initial None N/A N/A initial N/A N/A N/A N/A initial update N/A N/A self generate_security_data N/A N/A N/A N/A super CommentSecurityForm self __init__ data data initial initial kwargs N/A security_errors N/A N/A self N/A N/A N/A Return just those errors associated with security N/A errors N/A ErrorDict N/A f N/A honeypot timestamp security_hash N/A N/A N/A f N/A self errors N/A N/A N/A errors N/A f N/A N/A self errors N/A f N/A errors N/A clean_security_hash N/A N/A self N/A N/A N/A Check the security hash. N/A security_hash_dict N/A content_type object_pk timestamp N/A N/A N/A self data get content_type N/A N/A N/A self data get object_pk N/A N/A N/A self data get timestamp N/A expected_hash N/A N/A self generate_security_hash security_hash_dict N/A actual_hash N/A N/A self cleaned_data N/A security_hash N/A N/A N/A constant_time_compare expected_hash actual_hash N/A N/A N/A N/A forms ValidationError Security hash check failed. N/A actual_hash N/A clean_timestamp N/A N/A self N/A N/A N/A Make sure the timestamp isn't too far (default is > 2 hours) in the past. N/A ts N/A N/A self cleaned_data N/A timestamp N/A N/A N/A N/A N/A time time ts DEFAULT_COMMENTS_TIMEOUT N/A N/A N/A N/A forms ValidationError Timestamp check failed N/A ts N/A generate_security_data N/A N/A self N/A N/A N/A Generate a dict of security data for "initial" data. N/A timestamp N/A int N/A N/A time time N/A security_dict N/A content_type object_pk timestamp security_hash N/A str N/A N/A self target_object _meta N/A str N/A N/A N/A self target_object _get_pk_val N/A str timestamp N/A N/A self initial_security_hash timestamp N/A security_dict N/A initial_security_hash N/A N/A self timestamp N/A N/A N/A 
        Generate the initial security hash from self.content_object
        and a (unix) timestamp.
         N/A initial_security_dict N/A content_type object_pk timestamp N/A str N/A N/A self target_object _meta N/A str N/A N/A N/A self target_object _get_pk_val N/A str timestamp N/A N/A N/A self generate_security_hash initial_security_dict N/A generate_security_hash N/A N/A self content_type object_pk timestamp N/A N/A N/A 
        Generate a HMAC security hash from the provided info.
         N/A info N/A content_type object_pk timestamp N/A key_salt django.contrib.forms.CommentSecurityForm N/A value N/A N/A - join info N/A N/A N/A N/A salted_hmac key_salt value hexdigest N/A N/A CommentDetailsForm N/A CommentSecurityForm N/A N/A 
    Handles the specific details of the comment (name, comment, etc.).
     N/A name N/A N/A forms CharField label N/A pgettext_lazy Person name Name max_length 50 N/A email N/A N/A forms EmailField label N/A _ Email address N/A url N/A N/A forms URLField label N/A _ URL required False N/A comment N/A N/A forms CharField label N/A _ Comment widget N/A forms Textarea max_length COMMENT_MAX_LENGTH get_comment_object N/A N/A self N/A N/A N/A 
        Return a new (unsaved) comment object based on the information in this
        form. Assumes that the form is already validated and will throw a
        ValueError if not.

        Does not set any of the fields that would come from a Request object
        (i.e. ``user`` or ``ip_address``).
         N/A N/A N/A N/A self is_valid N/A N/A N/A ValueError get_comment_object may only be called on valid forms N/A CommentModel N/A N/A self get_comment_model N/A new N/A CommentModel N/A N/A self get_comment_create_data N/A new N/A N/A self check_for_duplicate_comment new N/A new N/A get_comment_model N/A N/A self N/A N/A N/A 
        Get the comment model to create with this form. Subclasses in custom
        comment apps should override this, get_comment_create_data, and perhaps
        check_for_duplicate_comment to provide custom comment models.
         N/A N/A get_model N/A get_comment_create_data N/A N/A self N/A N/A N/A 
        Returns the dict of data to be used to create a comment. Subclasses in
        custom comment apps that override get_comment_model can override this
        method to add extra fields onto a custom comment model.
         N/A N/A dict content_type N/A N/A N/A ContentType objects get_for_model N/A self target_object object_pk N/A force_text N/A N/A N/A self target_object _get_pk_val user_name N/A N/A self cleaned_data N/A name user_email N/A N/A self cleaned_data N/A email user_url N/A N/A self cleaned_data N/A url comment N/A N/A self cleaned_data N/A comment submit_date N/A N/A timezone now site_id N/A settings SITE_ID is_public True is_removed False N/A check_for_duplicate_comment N/A N/A self new N/A N/A N/A 
        Check that a submitted comment isn't a duplicate. This might be caused
        by someone posting a comment twice. If it is a dup, silently return the *previous* comment.
         N/A possible_duplicates N/A N/A N/A N/A N/A N/A N/A self get_comment_model _default_manager using N/A N/A N/A self target_object _state db filter content_type N/A new content_type object_pk N/A new object_pk user_name N/A new user_name user_email N/A new user_email user_url N/A new user_url N/A old possible_duplicates N/A N/A N/A N/A N/A N/A N/A old submit_date date N/A N/A N/A new submit_date date N/A N/A old comment N/A new comment N/A N/A old N/A new N/A clean_comment N/A N/A self N/A N/A N/A 
        If COMMENTS_ALLOW_PROFANITIES is False, check that the comment doesn't
        contain anything in PROFANITIES_LIST.
         N/A comment N/A N/A self cleaned_data N/A comment N/A N/A N/A N/A getattr settings COMMENTS_ALLOW_PROFANITIES False N/A getattr settings PROFANITIES_LIST False N/A N/A bad_words N/A w N/A w N/A settings PROFANITIES_LIST N/A w N/A N/A comment lower N/A bad_words N/A N/A N/A N/A forms ValidationError N/A N/A ungettext Watch your mouth! The word %s is not allowed here. Watch your mouth! The words %s are not allowed here. N/A len bad_words N/A get_text_list N/A N/A "%s%s%s" N/A N/A i N/A 0 N/A - N/A N/A len i 2 N/A i N/A -1 N/A i bad_words N/A ugettext and N/A comment N/A N/A CommentForm N/A CommentDetailsForm N/A N/A honeypot N/A N/A forms CharField required False label N/A _ If you enter anything in this field your comment will be treated as spam clean_honeypot N/A N/A self N/A N/A N/A Check that nothing's been entered into the honeypot. N/A value N/A N/A self cleaned_data N/A honeypot N/A value N/A N/A N/A N/A forms ValidationError N/A N/A N/A self fields N/A honeypot label N/A value N/A N/A