Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jedie/PyLucid-djangobb-plugin
base: 061816e9a5
...
head fork: jedie/PyLucid-djangobb-plugin
compare: 51f552715c
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 2 deletions.
  1. +7 −2 djangobb_plugin/search.py
  2. +1 −0  djangobb_plugin/urls.py
View
9 djangobb_plugin/search.py
@@ -8,16 +8,21 @@
:license: GNU GPL v3 or above, see LICENSE for more details
"""
-
+from django.core.urlresolvers import NoReverseMatch
from django.db.models import Q
from djangobb_forum.models import Post
from pylucid_project.apps.pylucid.models.pluginpage import PluginPage
-
+from pylucid_project.system.pylucid_plugins import PluginNotOnSite
class Search(object):
+ def __init__(self):
+ queryset = PluginPage.objects.queryset_by_plugin_name("djangobb_plugin")
+ if not queryset.exists():
+ raise PluginNotOnSite("DjangoBB not used on current site!")
+
def get_queryset(self, request, search_languages, search_strings):
groups = request.user.groups.all() or []
View
1  djangobb_plugin/urls.py
@@ -22,6 +22,7 @@
(r'^', include('djangobb_forum.urls', namespace='djangobb')),
)
+
if djangobb_code_comments:
urlpatterns += patterns('',
(r'^', include('djangobb_code_comments.urls')),

No commit comments for this range

Something went wrong with that request. Please try again.