Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

flatpages installed + bugfix on closelink

git-svn-id: http://svn.albertsun.info/copress/copressmoney@364 ab9cdc8a-c177-4a5d-8397-7951b204a726
  • Loading branch information...
commit a08b13115ee9aeaf57484963e71244f893d2f57e 1 parent 454133e
admin authored
4 settings.py
View
@@ -66,6 +66,7 @@
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
#'django.contrib.messages.middleware.MessageMiddleware',
'copressmoney.middleware.LoginRequiredMiddleware',
)
@@ -84,7 +85,8 @@
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
- #'django.contrib.sites',
+ 'django.contrib.sites',
+ 'django.contrib.flatpages',
#'django.contrib.messages',
'copressmoney.ledger',
)
7 templates/flatpages/default.html
View
@@ -0,0 +1,7 @@
+{% extends "base.html" %}
+
+{% block title %}{{ flatpage.title }} | {{ block.super }}{% endblock %}
+
+{% block content %}
+{{ flatpage.content }}
+{% endblock %}
2  templates/static/copressmoney.js
View
@@ -86,7 +86,7 @@ Sheet.recordSaleClick = function() {
$("#recordsale").unbind("click").removeClass("navlink");
//bind close link
- Sheet.bindCloseLink("addsaleform", function() { $("#recordsale").bind("click",Sheet.addLineClick).addClass("navlink"); });
+ Sheet.bindCloseLink("addsaleform", function() { $("#recordsale").bind("click",Sheet.recordSaleClick).addClass("navlink"); });
//ajaxify form submission
$("#addsaleform").submit(function() {
1  urls.py
View
@@ -39,6 +39,7 @@
(r'^api/add/sale/$', add_sale),
(r'^display_meta/$', display_meta),
+ #(r'^help/$', view_help),
#(r'^ledger/import/$', importHack),
5 views.py
View
@@ -23,8 +23,11 @@ def display_meta(request):
for k, v in values:
html.append('<tr><td>%s</td><td>%s</td></tr>' % (k, v))
return HttpResponse('<table>%s</table>' % '\n'.join(html))
+"""
+def view_help(request):
-
+ return render_to_response('help.html', {})
+"""
"""
def importHack(request):
import csv
Please sign in to comment.
Something went wrong with that request. Please try again.