Package django :: Package contrib :: Package comments :: Package views :: Module comments :: Class PublicCommentManipulator
[hide private]
[frames] | no frames]

Class PublicCommentManipulator

source code

               object --+        
                        |        
     oldforms.Manipulator --+    
                            |    
auth.forms.AuthenticationForm --+
                                |
                               PublicCommentManipulator

Manipulator that handles public registered comments

Instance Methods [hide private]
 
__init__(self, user, ratings_required, ratings_range, num_rating_choices)
If request is passed in, the manipulator will validate that cookies are enabled.
source code
 
hasNoProfanities(self, field_data, all_data) source code
 
get_comment(self, new_data)
Helper function
source code
 
save(self, new_data)
Saves the changes and returns the new object
source code

Inherited from auth.forms.AuthenticationForm: get_user, get_user_id, hasCookiesEnabled, isValidUser

Inherited from oldforms.Manipulator: __delitem__, __getitem__, check_permissions, do_html2python, get_validation_errors, prepare

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from oldforms.Manipulator: required_permission

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, user, ratings_required, ratings_range, num_rating_choices)
(Constructor)

source code 

If request is passed in, the manipulator will validate that cookies are enabled. Note that the request (a HttpRequest object) must have set a cookie with the key TEST_COOKIE_NAME and value TEST_COOKIE_VALUE before running this validator.

Overrides: object.__init__
(inherited documentation)

save(self, new_data)

source code 

Saves the changes and returns the new object

Overrides: oldforms.Manipulator.save
(inherited documentation)