Skip to content

Commit

Permalink
made 'offline' handler a little smarter, and fixed issue where zomein…
Browse files Browse the repository at this point in the history
…fo.zip wasn't in repo
  • Loading branch information
Ross M Karchner committed Apr 19, 2011
1 parent 2b250dd commit de2fdd1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var/
*.jar
*.rar
*.tar
*.zip
#*.zip

# Logs and databases #
######################
Expand Down
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "aetycoon"]
path = aetycoon
url = https://github.com/Arachnid/aetycoon.git

[submodule "aetycoon2"]
path = shared/aetycoon
url = https://github.com/Arachnid/aetycoon.git
5 changes: 4 additions & 1 deletion eventsite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def get_site(key_name=None):

def site_required(func):
def no_site(request, *args, **kwargs):
return HttpResponse("No calendar with that name exists (yet!)")
if not request.site:
return HttpResponse("No calendar with that name exists (yet!)")
else:
return HttpResponse("%s will return soon!" % request.site.name)

def replacement_view(request, *args, **kwargs):
request.site=get_site()
Expand Down
Binary file added shared/pytz/zoneinfo.zip
Binary file not shown.

0 comments on commit de2fdd1

Please sign in to comment.