moved NullSearchException to sphinx.websupport.errors

This commit is contained in:
Jacob Mason 2010-08-09 14:47:18 -05:00
parent c5e43ca3c9
commit 3f29ff6204
2 changed files with 10 additions and 4 deletions

View File

@ -10,7 +10,8 @@
""" """
__all__ = ['DocumentNotFoundError', 'SrcdirNotSpecifiedError', __all__ = ['DocumentNotFoundError', 'SrcdirNotSpecifiedError',
'UserNotAuthorizedError', 'CommentNotAllowedError'] 'UserNotAuthorizedError', 'CommentNotAllowedError',
'NullSearchException']
class DocumentNotFoundError(Exception): class DocumentNotFoundError(Exception):
pass pass
@ -26,3 +27,7 @@ class UserNotAuthorizedError(Exception):
class CommentNotAllowedError(Exception): class CommentNotAllowedError(Exception):
pass pass
class NullSearchException(Exception):
pass

View File

@ -10,11 +10,12 @@
""" """
from sphinx.websupport.search import BaseSearch from sphinx.websupport.search import BaseSearch
from sphinx.websupport.errors import *
class NullSearchException(Exception):
pass
class NullSearch(BaseSearch): class NullSearch(BaseSearch):
"""A search adapter that does nothing. Used when no search adapter
is specified.
"""
def feed(self, pagename, title, doctree): def feed(self, pagename, title, doctree):
pass pass