Skip to content

Commit

Permalink
Added support for Andy's new reusable_table. Added custom pagination …
Browse files Browse the repository at this point in the history
…sizing.
  • Loading branch information
mberg committed May 17, 2009
1 parent 21fb312 commit cabbca8
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 291 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.pyc
*.sqlite3
rubygsm*
logs
Empty file removed apps/reusable_tables/__init__.py
Empty file.
214 changes: 0 additions & 214 deletions apps/reusable_tables/table.py

This file was deleted.

1 change: 0 additions & 1 deletion apps/reusable_tables/templates/html_first_column.html

This file was deleted.

1 change: 0 additions & 1 deletion apps/reusable_tables/templates/html_second_column.html

This file was deleted.

56 changes: 0 additions & 56 deletions apps/reusable_tables/templates/table_wrapper.html

This file was deleted.

14 changes: 0 additions & 14 deletions apps/reusable_tables/tests.py

This file was deleted.

8 changes: 4 additions & 4 deletions apps/webui/views/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from apps.reusable_tables.table import register
from apps.reusable_table.table import register
from apps.mctc.models.general import Case

from apps.mctc.models.logs import MessageLog, EventLog
Expand All @@ -12,15 +12,15 @@
["Age", "age", "{{ object.age }}"],
["Provider", "provider", "{{ object.provider.get_name_display }}"],
["Zone", "zone", "{{ object.zone }}"],
])
],20)

register("message", MessageLog, [
["About", "mobile", "{{ object.mobile }}"],
["Message", "text", "{{ object.text }}"],
["Sent by", "sent_by", "{{ object.sent_by }}"],
["Created", "created_at", '{{ object.created_at|date:"d/m/Y" }}'],
["Handled", "handled", "{{ object.get_handled_display }}"]
])
],5)

register("event", EventLog, [
["About", "content_object", "{{ object.content_object }}"],
Expand Down Expand Up @@ -63,4 +63,4 @@
["Active", "active", "{{ object.get_active_display }}"],
["Alerts", "alerts", '{{ object.alerts }}'],
["Clinic", "clinic", '{{ object.clinic }}']
])
], 20)
2 changes: 1 addition & 1 deletion apps/webui/views/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import time

from urllib import quote, urlopen
from apps.reusable_tables.table import get
from apps.reusable_table.table import get

# some webui defaults
app = {}
Expand Down

0 comments on commit cabbca8

Please sign in to comment.