git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'flexible_attributes'
[philo.git]
/
exceptions.py
diff --git
a/exceptions.py
b/exceptions.py
index
b40f08a
..
4759bae
100644
(file)
--- a/
exceptions.py
+++ b/
exceptions.py
@@
-2,6
+2,12
@@
class ViewDoesNotProvideSubpaths(Exception):
""" Raised by get_subpath when the View does not provide subpaths (the default). """
silent_variable_failure = True
""" Raised by get_subpath when the View does not provide subpaths (the default). """
silent_variable_failure = True
+
class ViewCanNotProvideSubpath(Exception):
""" Raised by get_subpath when the View can not provide a subpath for the supplied object. """
class ViewCanNotProvideSubpath(Exception):
""" Raised by get_subpath when the View can not provide a subpath for the supplied object. """
- silent_variable_failure = True
\ No newline at end of file
+ silent_variable_failure = True
+
+
+class AncestorDoesNotExist(Exception):
+ """ Raised by get_path if the root model is not an ancestor of the current model """
+ pass
\ No newline at end of file