jezdez / django-dbtemplates (http://packages.python.org/django-dbtemplates/)

Django template loader for database stored templates with extensible cache backend

Changesets

2009-05-26
2008-12-26
commit 77: 5965315c03c1
parent 76: d62c4a1f20f6
0 7 0

Made loader and cache backends site-aware. The filesystem cache backend now saves the files under <dir>/<site_domain>/<file_name>. The Django cache backend the Site id in the cache key. Template is now saved explicitly to backend if not existent in cache (e.g. if deleted manually or invalidated). Bumped version to 0.5.4. git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@88 cfb8ba98-e953-0410-9cff-959ffddf5974 committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974> 0.5.4

dbtemplates/cache.py@r77:5965315c03c1 →

leidel — about 15 months ago
7 changed, 0 added, 0 deleted.

2008-11-16
commit 64: b191f693f527
parent 63: 619a10daf530
0 1 0

Fixed problem when django.contrib.sites' table isn't populated yet on initialization of dbtemplates. Thanks for the report, Kevin Fricovsky git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@76 cfb8ba98-e953-0410-9cff-959ffddf5974 committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

dbtemplates/cache.py@r64:b191f693f527 →

leidel — about 16 months ago
1 changed, 0 added, 0 deleted.

2008-11-02
commit 52: aab8ca2a9aa4
parent 51: af0ca9e75fa7
0 2 0

Fixed docstring in template loader. Fixed wrong return types in FileSystemBackend. git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@59 cfb8ba98-e953-0410-9cff-959ffddf5974 committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

dbtemplates/cache.py@r52:aab8ca2a9aa4 →

leidel — about 17 months ago
2 changed, 0 added, 0 deleted.

commit 51: af0ca9e75fa7
parent 50: 56be6e2c282e
0 2 1

Refactored template loader to use new backend architecture, that populates the cache by using signals. Adds a BaseCacheBackend class with a simple API (load, save, remove) to be subclassed and specified in the DBTEMPLATES_CACHE_BACKEND settings. Adds DjangoCacheBackend (uses Django's own caching mechanism) and FileSystemBackend (simple approach to filesystem saving). git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@58 cfb8ba98-e953-0410-9cff-959ffddf5974 committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>

dbtemplates/cache.py@r51:af0ca9e75fa7 →

leidel — about 17 months ago
2 changed, 1 added, 0 deleted.