<s> class CommentsDefaultHookSet ( object ) : <EOL> def load_can_delete ( self , user , comment ) : <EOL> if user . is_superuser : <EOL> return True <EOL> return user == comment . author <EOL> def load_can_edit ( self , user , comment ) : <EOL> return user == comment . author <EOL> class HookProxy ( object ) : <EOL> def __getattr__ ( self , attr ) : <EOL> from . conf import settings <EOL> return getattr ( settings . COMMENTS_HOOKSET , attr ) <EOL> hookset = HookProxy ( ) </s>
