Mathieu Pillard
|
b2f3bec769
|
This time it should really work in every case... I hope. This really needs some unit tests.
|
2010-02-22 16:32:00 -05:00 |
|
Mathieu Pillard
|
84aa3b84d3
|
irrelevant now
|
2010-02-22 16:31:52 -05:00 |
|
Mathieu Pillard
|
2055adb46d
|
This was needed too - basically, only enforce AVATAR_MAX_AVATARS_PER_USER in the form.
|
2010-02-22 16:31:36 -05:00 |
|
Mathieu Pillard
|
5621d867b1
|
use the user from the avatar instance
|
2010-02-22 16:31:28 -05:00 |
|
Mathieu Pillard
|
0b5674f008
|
Simplify image handling. Breaks the new AVATAR_DONT_SAVE_DUPLICATES setting but I will revisit it later in a cleaner way
|
2010-02-22 16:31:14 -05:00 |
|
Mathieu Pillard
|
8a680ecd66
|
Actually not a good idea at all :) Just don't bother updating and that's it.
|
2010-02-22 16:30:41 -05:00 |
|
Mathieu Pillard
|
b7811b3d14
|
is a boolean
|
2010-02-22 16:30:14 -05:00 |
|
Mathieu Pillard
|
763745c4cb
|
if AVATAR_DONT_SAVE_DUPLICATES is enabled don't generate a thumbnail over an existing one
|
2010-02-22 16:30:05 -05:00 |
|
Mathieu Pillard
|
5e804236a8
|
new preference allowing to re-use existing file if it exists. might have concurrency issues since
we don't ask the database if it exists, only the storage system, so it might break if it's being
deleted at the same time
|
2010-02-22 16:29:58 -05:00 |
|
Mathieu Pillard
|
dd1e3069ce
|
Make thumbnail format configurable
|
2010-02-22 16:29:39 -05:00 |
|
Mathieu Pillard
|
a686c9b900
|
Don't use only(id) now that we are deleting instead of updating
|
2010-02-22 16:29:28 -05:00 |
|
Mathieu Pillard
|
188c4dece0
|
Deleting instead of updating for now
|
2010-02-22 16:29:19 -05:00 |
|
Mathieu Pillard
|
e96db94b02
|
debugging, not needed
|
2010-02-22 16:29:08 -05:00 |
|
Mathieu Pillard
|
7a6c2e04a9
|
This method is more closer to the original and should be more robust even if you change the max number of avatars
|
2010-02-22 16:28:58 -05:00 |
|
Mathieu Pillard
|
fe2fe0c1c3
|
Oops, need to actually get the first item of the queryset
|
2010-02-22 16:27:54 -05:00 |
|
Mathieu Pillard
|
b4646e5b5f
|
More robust way of fetching the current avatar - still needs some testing
|
2010-02-22 16:27:21 -05:00 |
|
Mathieu Pillard
|
3b04839078
|
Better wording
|
2010-02-22 16:26:20 -05:00 |
|
Mathieu Pillard
|
32b5d5f55f
|
Don't use notification if the module is not present (probably broke that when refactoring notifications)
|
2010-02-22 16:26:04 -05:00 |
|
Mathieu Pillard
|
e0654c8d57
|
Implement a max size for the avatars. Defaults to 1 megabyte for now.
|
2010-02-22 16:25:09 -05:00 |
|
Mathieu Pillard
|
470b90be4a
|
Useless print
|
2010-02-22 16:24:56 -05:00 |
|
Mathieu Pillard
|
84b68d4284
|
Not needed
|
2010-02-22 16:24:46 -05:00 |
|
Mathieu Pillard
|
1aaaac1ce0
|
Fixed now
|
2010-02-22 16:24:36 -05:00 |
|
Mathieu Pillard
|
04a5a271de
|
Use our uploadform in the templates
|
2010-02-22 16:24:17 -05:00 |
|
Mathieu Pillard
|
afde1c6268
|
special case for AVATAR_MAX_AVATARS_PER_USER == 1: try to work always on the same db row, by re-using the id.
|
2010-02-22 16:23:35 -05:00 |
|
Mathieu Pillard
|
cbb8421720
|
Raise an error if trying to upload an avatar when the maximum number was already reached
|
2010-02-22 16:23:22 -05:00 |
|
Mathieu Pillard
|
811e238332
|
Forgot this in my last commit - Refactoring : Move avatar upload to its own view, form and template part 2
|
2010-02-22 16:22:01 -05:00 |
|
Mathieu Pillard
|
df05b32c30
|
Refactoring : Move avatar upload to its own view, form and template. Needs some cleanup still.
I should have done this before adding the max avatars setting... oh well.
|
2010-02-22 16:21:43 -05:00 |
|
Mathieu Pillard
|
731e580c91
|
Don't update the other avatars if the maximum is set to 1: it shouldn't happen.
|
2010-02-22 16:21:12 -05:00 |
|
Mathieu Pillard
|
a5e906e36d
|
Starting to implement new AVATAR_MAX_AVATARS_PER_USER setting to limit the maximum number of avatars for each user
|
2010-02-22 16:20:46 -05:00 |
|
Mathieu Pillard
|
853916273f
|
Don't use multiple querysets for the same list (might revisit the .get() for avatar later)
|
2010-02-22 16:19:57 -05:00 |
|
Mathieu Pillard
|
700e47cfb0
|
Ignore pyc files
|
2010-02-22 16:17:37 -05:00 |
|
Ahmad Al-Ibrahim
|
df60156e30
|
Fixed #586 - Added login_required to avatar.views.delete
|
2010-02-09 09:21:19 +08:00 |
|
Ross Poulton
|
073e9a9c10
|
Provide Gravatar default url in settings.AVATAR_GRAVATAR_DEFAULT - will be used by Gravatar if the user has no avatar for that email address.
|
2010-02-08 16:41:40 +08:00 |
|
John Debs
|
ed21e5a907
|
Fix for error in django-avatar 1.0.3 (task #524).
|
2009-11-10 05:18:52 +08:00 |
|
Jakob Torp Svendsen
|
cc158668ea
|
Check for django-friends using INSTALLED_APPS to prevent imports from happening
Reported to Pinax as http://code.pinaxproject.com/tasks/task/481/
Signed-off-by: Brian Rosner <brosner@gmail.com>
|
2009-11-07 11:15:06 -07:00 |
|
Brian Rosner
|
6b3b770ab8
|
Removed setuptools install_requires (definitely not needed)
|
2009-07-30 22:03:48 -06:00 |
|
ben.browitt@gmail.com
|
430150e2a7
|
removed new_primary from views.py delete method
Signed-off-by: Eric Florenzano <floguy@gmail.com>
|
2009-05-25 12:59:28 +08:00 |
|
ben.browitt@gmail.com
|
c900d4ee98
|
Added notification templated. Can't verify that they are being used.
new_primay wasn't being used in delete_avatar
Signed-off-by: Eric Florenzano <floguy@gmail.com>
|
2009-05-25 12:59:28 +08:00 |
|
ben.browitt@gmail.com
|
7e6a814d7b
|
Added avatar_updated and avatar_friend_updated
Signed-off-by: Eric Florenzano <floguy@gmail.com>
|
2009-05-25 12:59:27 +08:00 |
|
user
|
b0fa9031b4
|
Set a new primary avatar when deleting the primary avatar.
Signed-off-by: Eric Florenzano <floguy@gmail.com>
|
2009-05-25 12:58:22 +08:00 |
|
Jannis Leidel
|
bf25a07009
|
Added manifest template, package_data and bumped to 1.0.2
Signed-off-by: Brian Rosner <brosner@gmail.com>
|
2009-04-24 03:02:11 +08:00 |
|
Brian Rosner
|
737bf1d821
|
Removed some legacy code that is no longer used. Closes #1.
Due to catching the User post_save signal this would be fired on each login
since last_login is always updated.
|
2009-04-23 12:43:55 -06:00 |
|
Brian Rosner
|
adf694302b
|
Removed usage of hashlib to support Python 2.4.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@36 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-12-28 21:52:32 +00:00 |
|
Eric Florenzano
|
221b52a65c
|
Fixed the apparent problem with PNG and S3 that some were seeing. Thanks, msaelices and bryanveloso. Along with that fix also comes support for not resizing an image if it's already the correct size.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@35 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-12-04 08:59:40 +00:00 |
|
Eric Florenzano
|
34a5ad2671
|
Added setup.py
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@34 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-28 09:46:55 +00:00 |
|
Eric Florenzano
|
58b7fe59b2
|
Added inital pass of documentation.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@33 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-28 09:44:53 +00:00 |
|
Eric Florenzano
|
57c036ed39
|
Slightly shallower resized image paths.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@32 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-28 06:53:08 +00:00 |
|
Eric Florenzano
|
42b0361d4b
|
Thanks for the help, PyFlakes.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@31 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-28 06:43:52 +00:00 |
|
Eric Florenzano
|
c3fadc0377
|
Completely refactored this package so that it no longer references the local filesystem. The API has been simplified and it has been tested with both file system backends and S3 backends. Gearing up for the first official release.
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@30 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-28 06:39:21 +00:00 |
|
Eric Florenzano
|
ba8e3268fb
|
Made all imports relative and cleaned up the imports in general. Thanks, PyFlakes!
git-svn-id: http://django-avatar.googlecode.com/svn/trunk@29 c76b2324-5f53-0410-85ac-b1078a54aeeb
|
2008-10-20 01:11:10 +00:00 |
|