Rename class_exists to stream_exists.

(imported from commit 416bd1f4c513216d45913e306f6c8eaa542f3539)
This commit is contained in:
Tim Abbott 2012-10-10 17:00:15 -04:00
parent 39cde772eb
commit 4006e4b1ea
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ urlpatterns = patterns('',
url(r'^json/subscriptions/add$', 'zephyr.views.json_add_subscription', name='add_subscription'),
url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': os.path.join(settings.SITE_ROOT, '..', 'zephyr', 'static/')}),
url(r'^subscriptions/exists/(?P<stream>.*)$', 'zephyr.views.class_exists', name='class_exists'),
url(r'^subscriptions/exists/(?P<stream>.*)$', 'zephyr.views.stream_exists', name='stream_exists'),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

View File

@ -560,7 +560,7 @@ def change_settings(request):
return json_success(result)
@login_required
def class_exists(request, stream):
def stream_exists(request, stream):
if not valid_stream_name(stream):
return json_error("Invalid characters in class name")
return HttpResponse(