Venelin Stoykov
8a600d30b3
Use force_bytes from imagekit.lib in test_cachefiles
2013-12-15 01:58:22 +02:00
Matthew Dapena-Tretter
45f10075b6
Remove @vstoykov's note. Seems like the right place to me (:
2013-12-14 13:03:02 -05:00
Matthew Dapena-Tretter
87983c5e6d
Move force_bytes into lib module
2013-12-14 13:02:21 -05:00
Matthew Dapena-Tretter
c1e16696b1
Don't use a raw string with \u escapes
...
Apparently, Python 3.2 doesn't process these in raw strings.
See https://mail.python.org/pipermail/python-list/2012-May/624756.html
and https://mail.python.org/pipermail/python-dev/2007-May/073042.html
2013-12-14 12:54:26 -05:00
Venelin Stoykov
fb947b1937
Fix sanitizing cache key under Python 3
2013-12-14 18:56:47 +02:00
Matthew Tretter
bf1b45c943
Add module to sys.modules
2013-09-01 21:56:42 -04:00
Matthew Tretter
2e4d435f4f
Test for Python 3
2013-09-01 21:56:28 -04:00
Matthew Tretter
3732b2ee09
Insert importer at beginning of list
2013-09-01 21:55:58 -04:00
Matthew Tretter
183efabca7
Delay Django import until needed
2013-09-01 21:55:37 -04:00
Venelin Stoykov
0575011529
Add Python 3 suport and drop support for Python 2.5
2013-08-19 21:27:50 +03:00
Matthew Tretter
453efac553
Merge branch 'nex2hex/develop' into develop
...
* nex2hex/develop:
Update fields.py
2013-08-14 23:40:02 -04:00
Matthew Tretter
c78cbfc089
Discover image generators during lookup
...
Fixes GH-241
2013-08-14 23:08:40 -04:00
Sean Hayes
d647678c2e
Added global boolean to prevent autodiscover() from being called more than once.
2013-08-14 22:55:28 -04:00
nex2hex
1a33c2be51
Update fields.py
...
Don't overwrite existing image when form saved
2013-08-13 18:52:21 +06:00
Matthew Tretter
bc8fdd7ada
Run tests with Django 1.5
2013-07-27 20:50:16 -04:00
Bryan Veloso
144c388689
Merge branch 'release/3.0.3' into develop
...
* release/3.0.3:
Bump to 3.0.3.
2013-07-22 10:01:53 -07:00
Bryan Veloso
3be774bbf6
Bump to 3.0.3.
2013-07-22 10:01:20 -07:00
Bryan Veloso
532188bd51
Merge branch 'fix-pending-state' into develop
...
* fix-pending-state:
Remove PENDING state
2013-07-22 09:59:08 -07:00
Matthew Tretter
e36290b4ee
Woops. It uses the cache if DEBUG is False.
2013-07-17 16:09:02 -04:00
Bryan Veloso
8a709a845c
Merge branch 'release/3.0.2' into develop
...
* release/3.0.2:
Removing the changelog. Changelogs are hard.
Bump to 3.0.2.
2013-07-17 11:46:18 -07:00
Bryan Veloso
05ec0c1b33
Removing the changelog. Changelogs are hard.
2013-07-17 11:45:42 -07:00
Bryan Veloso
cae6677994
Bump to 3.0.2.
2013-07-17 11:44:31 -07:00
Matthew Tretter
3444626084
Remove PENDING state
...
Re: #227
2013-07-16 21:41:10 -04:00
Matthew Tretter
a0c7b3f274
Use == for comparison
2013-07-16 20:40:48 -04:00
Matthew Tretter
f684b4e4e0
Merge branch 'fix-234' into develop
2013-07-16 20:36:36 -04:00
Matthew Tretter
14939faef6
Don't mutate __dict__
2013-07-13 17:13:58 -04:00
Matthew Tretter
3c04cb852f
Don't require source in __setstate__; fixes #234
2013-07-13 17:12:55 -04:00
Matthew Tretter
db6cfcb6ce
Add (failing) test for #234
2013-07-13 16:38:49 -04:00
Matthew Tretter
637af70921
Don't include cache in serialization of backend
...
Fixes #227
2013-06-20 09:17:12 -04:00
Rich Leland
ada883c99f
Fixed name of spec id attr
2013-06-13 17:41:30 -04:00
Bryan Veloso
ef05e23b66
Merge branch 'release/3.0.1'
...
* release/3.0.1:
Bump version to 3.0.1.
Fix cache backend fallback
Fix LazyImageCacheFile.__repr__ and __str__
Test stringification of LazyImageCacheFiles
PEP 3110 compat
Remove unused imports
Update installation directions; closes #223
I, for one, welcome our new @matthewwithanm overlords.
Add import to example
2013-06-11 14:08:38 -07:00
Bryan Veloso
90e9d314a6
Bump version to 3.0.1.
2013-06-11 14:08:23 -07:00
Matthew Tretter
bb7e9e5891
Fix cache backend fallback
...
Closes #225
Closes #226
2013-06-10 18:33:22 -04:00
Matthew Tretter
01a6c555a1
Fix LazyImageCacheFile.__repr__ and __str__
...
Using SimpleLazyObject also lets us clean things up a bit.
Closes #218
2013-06-04 23:35:46 -04:00
Matthew Tretter
3001069254
Test stringification of LazyImageCacheFiles
2013-06-04 23:35:46 -04:00
Jacob Magnusson
654867c3cf
PEP 3110 compat
2013-06-04 21:42:03 -04:00
Jacob Magnusson
6582794408
Remove unused imports
2013-06-04 21:41:52 -04:00
Matthew Tretter
d3882c34b2
Update installation directions; closes #223
2013-06-04 21:37:06 -04:00
Bryan Veloso
02cd1bf7ff
I, for one, welcome our new @matthewwithanm overlords.
2013-06-03 12:50:20 -07:00
Matthew Tretter
af73a93953
Add import to example
...
Closes #224
2013-06-03 10:31:57 -03:00
Bryan Veloso
0e41675d1c
Merge branch 'release/3.0.0'
...
* release/3.0.0: (302 commits)
Bump the version number to 3.0.0.
Fixed thumbnail template tag treating provided sizes as strings, not integers
Remove source_deleted signal
Don't send source_saved when no source
Add failing test for source_save signal w/o source
Test that source_saved is dispatched for new instance
Make test less verbose
Separate source group tests; signal counting util
Combine source_created and source_changed
Define NullHandler for Python <= 2.6
Improve default cache backend handling
pass in upscale keyword to thumbnail template tag
Fix None checks
Split before_access into two signals
Reset content pointer
Reduce calls to backend
Store the file after we generate it
Store cachefile strategy on file; not generator
Add cachefile backend fallback
Use pilkit's process_image utility
...
2013-05-30 00:36:46 -07:00
Bryan Veloso
0e0240085f
Bump the version number to 3.0.0.
2013-05-30 00:33:10 -07:00
Matthew Tretter
09eea6edf6
Merge pull request #222 from IlyaSemenov/develop
...
Fixed thumbnail template tag treating provided sizes as strings, not integers
2013-05-29 18:43:04 -07:00
Matthew Tretter
33b8913031
Merge branch 'source-signal-cleanup' into develop
2013-05-29 21:41:44 -04:00
Ilya Semenov
761dcd20ae
Fixed thumbnail template tag treating provided sizes as strings, not integers
2013-05-25 16:45:40 +07:00
Matthew Tretter
f9d91c7c4d
Remove source_deleted signal
...
...for now. Eventually, we will want a signal that tells us when sources
are no longer used, however that isn't just limited to when they're
deleted! This new signal should also be dispatched, for example, when
a source image field is set to `None`. Since none of the built-in
strategies are currently using the source_deleted signal, I've decided
to remove it until we have a more complete solution.
2013-05-25 00:50:59 -04:00
Matthew Tretter
535e68aea6
Don't send source_saved when no source
...
Fixes #214 and the failing test from 404fed5
2013-05-25 00:19:14 -04:00
Matthew Tretter
404fed58ec
Add failing test for source_save signal w/o source
...
This is like the test contributed by @saulshanabrook in #214 , but
catches the bug closer to its source. (A more unit-y unit test.)
2013-05-25 00:07:58 -04:00
Matthew Tretter
c6a0a13c45
Test that source_saved is dispatched for new instance
2013-05-25 00:04:26 -04:00
Matthew Tretter
a6ef72027b
Make test less verbose
2013-05-25 00:04:26 -04:00