Skip to content

Commit

Permalink
removed logo feature, fixed a bad import in tasks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Karchner committed Nov 16, 2011
1 parent a9987ef commit 3f43829
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 48 deletions.
3 changes: 2 additions & 1 deletion app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ handlers:
script: main.application

builtins:
- datastore_admin: on
- datastore_admin: on
- remote_api: on
10 changes: 7 additions & 3 deletions appengine_config.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import sys
import os
import os, os.path
from logging import error



sys.path= [os.path.join(os.path.dirname(__file__), 'shared'), os.path.join(os.path.dirname(__file__), '.')]+sys.path





def namespace_manager_default_namespace_for_request():
import os
if os.environ.get('PATH_INFO', '').startswith('/_ah') and not os.environ.get('PATH_INFO', '').startswith('/_ah/login_required') or os.environ.get('PATH_INFO', '').startswith('/_ah/upload'): return ''
if os.environ.get('HTTP_HOST'):
return os.environ.get('HTTP_HOST').split(':')[0]
else:
return ''
return ''

remoteapi_CUSTOM_ENVIRONMENT_AUTHENTICATION = (
'HTTP_X_APPENGINE_INBOUND_APPID', ['techevents'])
25 changes: 0 additions & 25 deletions appengine_console.py

This file was deleted.

1 change: 1 addition & 0 deletions sources/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def process_gdata(source):


def fetch_icals(request):
from models import ICalendarSource
try:
if request.method == 'POST':
cursor=request.POST.get('cursor')
Expand Down
8 changes: 3 additions & 5 deletions templates/admin-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@
</div>
<div class="row"><h1>
<a href="{% url front-page %}">
{% if site.logo_asset_href %}
<img src="{% versioned site.logo_asset_href site.original_logo_version %}" alt="{{ site.name }}">
{% else %}

{{ site.name }}
{% endif %}

</a>
</h1></div>

Expand All @@ -76,7 +74,7 @@
{% endblock %}
<div class="row" id="footer">
<div class="row">
<p> {{ site.name }} is made with <a href="http://eventgrinder.com/">EVENTGRINDER</a>.</p>
<p> {{ site.name }} is made with:<a href="https://github.com/rosskarchner/eventgrinder">eventgrinder</a></p>
</div>
</div>
</BODY>
Expand Down
8 changes: 3 additions & 5 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@
<div class="cell position-0 width-10">
<h1 id="title">
<a href="{% url front-page %}">
{% if site.logo_asset_href %}
<img src="{{site.logo_asset_href }}" alt="{{ site.name }}">
{% else %}

{{ site.name }}
{% endif %}

</a> </h1>
{% if site.twitter %}
<div>Get events as soon as we do, follow @{{site.twitter}}!</div> {% endif %}
Expand Down Expand Up @@ -153,7 +151,7 @@ <h1 id="title">
<div class="row">

<div id="footer" class="cell position-0 width-4">
<p> {{ site.name }} is made with: <br/><a href="http://eventgrinder.com/"><img src="{% versioned "/static/eventgrinder.png" %}" alt="EVENTGRINDER"/></a></p>
<p> {{ site.name }} is made with:<a href="https://github.com/rosskarchner/eventgrinder">eventgrinder</a></p>
</div>
</div>
{% block endcode %}
Expand Down
10 changes: 1 addition & 9 deletions templates/eventsite/newsletter.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,7 @@

</head>
<body>


{% if site.logo_asset_href %}
<img src="{{site.logo_asset_href }}" alt="{{ site.name }}">
{% else %}
{{ site.name }}
{% endif %}



<h1> <a href="http://{{site.host}}{% url front-page %}">{{ site.name }} for the week of {{ start|date:"F j, Y"}}</a></h1>


Expand Down

0 comments on commit 3f43829

Please sign in to comment.