mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
moved NullSearchException to sphinx.websupport.errors
This commit is contained in:
parent
c5e43ca3c9
commit
3f29ff6204
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user