projects
/
zzz-spline-forum.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show access levels and context everywhere!
[zzz-spline-forum.git]
/
splinext
/
forum
/
__init__.py
diff --git
a/splinext/forum/__init__.py
b/splinext/forum/__init__.py
index
e234c14
..
07db391
100644
(file)
--- a/
splinext/forum/__init__.py
+++ b/
splinext/forum/__init__.py
@@
-26,6
+26,16
@@
class ForumPlugin(PluginBase):
)
def hooks(self):
)
def hooks(self):
-
return
[
+
hooks =
[
('routes_mapping', Priority.NORMAL, add_routes_hook),
]
('routes_mapping', Priority.NORMAL, add_routes_hook),
]
+
+ # frontpage plugin may or may not be installed
+ try:
+ from splinext.forum.frontpage_sources import ForumSource
+ hooks.append(
+ ('frontpage_updates_forum', Priority.NORMAL, ForumSource))
+ except ImportError:
+ pass
+
+ return hooks