Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
restored housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
evildmp committed Nov 14, 2011
1 parent 610c4f1 commit d40f01b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contacts_and_people/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(r'^', include('vacancies_and_studentships.urls')),

# housekeeping
# (r'^', include('housekeeping.urls')),
(r'^', include('housekeeping.urls')),


)
Expand Down
4 changes: 2 additions & 2 deletions housekeeping/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
from tidy_links import tidy_links

@login_required
def tasks(request, task, action = "dryrun"):
def tasks(request, task = None, action = "dryrun"):
report = {}

if task == "convert-placeholders":
report = convert(action)
elif task == "tidy-links":
report = tidy_links(action)
else:
# nothing matched, so just do the menue
# nothing matched, so just do the menu
return shortcuts.render_to_response(
"housekeeping/housekeeping.html", {
"base_template": settings.CMS_TEMPLATES[0][0],
Expand Down
4 changes: 2 additions & 2 deletions housekeeping/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
urlpatterns = patterns('',
# first, try to match /housekeeping/<task>/<execute>
(r"^housekeeping/(?P<task>[^/]+)/(?P<action>[^/]+)/$", "housekeeping.tasks.tasks"),
# no match?
(r"^housekeeping/", "housekeeping.housekeeping.options"),
# # no match?
(r"^housekeeping/", "housekeeping.tasks.tasks"),


# (r"^housekeeping/statistics/", "housekeeping.statistics.stats"),
Expand Down

0 comments on commit d40f01b

Please sign in to comment.