Jannis Leidel
46d1f8b21b
Added class based template loader for Django >= 1.2.
2010-06-24 11:46:51 +02:00
leidel
50bc53488b
Removed superfluous imports
...
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@93 cfb8ba98-e953-0410-9cff-959ffddf5974
committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>
--HG--
extra : convert_revision : 8fb9234f876ad589d244a6d082b7c40e4bf5e8c1
2009-01-21 10:45:39 +00:00
leidel
b7011dce7e
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>
--HG--
extra : convert_revision : 564571948adb06cdda915b665aa61d00b3118ed0
2008-12-26 17:39:48 +00:00
leidel
9f0d7a2564
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>
--HG--
extra : convert_revision : 7ea05e043c43c23fbf846bc9ddd80400519631e2
2008-11-02 00:05:48 +00:00
leidel
41ff350628
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>
--HG--
extra : convert_revision : fde60d8ab2e834d898d9f662cf013d5546370eeb
2008-11-02 00:05:38 +00:00
leidel
bf711587aa
Updated signals code due to backwards incompatible change in Django r8223
...
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@36 cfb8ba98-e953-0410-9cff-959ffddf5974
committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>
--HG--
extra : convert_revision : b4d45fbcdf3e92e7e14ad18f8791af611b479fee
2008-08-06 21:15:06 +00:00
arne@rcs4u.de
b0e61f5ba6
fix for templates which have (multiple) directories in their name
...
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@25 cfb8ba98-e953-0410-9cff-959ffddf5974
committer: arne@rcs4u.de <arne@rcs4u.de@cfb8ba98-e953-0410-9cff-959ffddf5974>
--HG--
extra : convert_revision : 71ab553013820fadcb623a2039d0c51a7ff7f271
2008-04-17 12:52:57 +00:00
arne@rcs4u.de
06dfbb4402
added some docstrings, fixed operation for the case, that settings.DBTEMPLATE_CACHE_DIR is not set. code-cleanup needed ...
...
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@23 cfb8ba98-e953-0410-9cff-959ffddf5974
committer: arne@rcs4u.de <arne@rcs4u.de@cfb8ba98-e953-0410-9cff-959ffddf5974>
--HG--
extra : convert_revision : a20626f69228166f0dac31a250f00efbaca378db
2008-04-17 10:44:20 +00:00
arne@rcs4u.de
dae109748b
added filesystem-based caching of dbtemplates (configured via settings.DBTEMPLATES_CACHE_DIR). docs and tests still missing.
...
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@22 cfb8ba98-e953-0410-9cff-959ffddf5974
committer: arne@rcs4u.de <arne@rcs4u.de@cfb8ba98-e953-0410-9cff-959ffddf5974>
--HG--
extra : convert_revision : 633aadf3de216f42398f8c57a93d68c28946da3a
2008-04-17 10:20:09 +00:00
leidel
e59bb89f6c
again: refactoring as a standalone application
...
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@13 cfb8ba98-e953-0410-9cff-959ffddf5974
committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>
--HG--
extra : convert_revision : 7974964ff8ace563a81a23cd6308934a2461e5fb
2007-07-20 14:52:00 +00:00
leidel
bbc00a779b
again: refactoring as a standalone application
...
git-svn-id: https://django-dbtemplates.googlecode.com/svn/trunk@12 cfb8ba98-e953-0410-9cff-959ffddf5974
committer: leidel <leidel@cfb8ba98-e953-0410-9cff-959ffddf5974>
--HG--
extra : convert_revision : 5fc12102108671ddb3b9890c9091bd39cb446728
2007-07-20 14:30:48 +00:00