77459eae73350adba1060e752ec04df0f898ab89,imagekit/fields.py,,_post_save_handler,#,263

Before Change


            imgfield.storage.save(name, content)
            if not created:
                spec_file._delete()
                spec_file._create()


def _post_delete_handler(sender, instance=None, **kwargs):
    assert instance._get_pk_val() is not None, "%s object can"t be deleted because its %s attribute is set to None." % (instance._meta.object_name, instance._meta.pk.attname)

After Change


    for spec_file in spec_files:
        if not created:
            spec_file._delete()
        if spec_file.field.pre_cache:
            spec_file._create()


def _post_delete_handler(sender, instance=None, **kwargs):
    assert instance._get_pk_val() is not None, "%s object can"t be deleted because its %s attribute is set to None." % (instance._meta.object_name, instance._meta.pk.attname)
    spec_files = get_spec_files(instance)
    for spec_file in spec_files:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matthewwithanm/django-imagekit
Commit Name: 77459eae73350adba1060e752ec04df0f898ab89
Time: 2011-09-22
Author: lettertwo@gmail.com
File Name: imagekit/fields.py
Class Name:
Method Name: _post_save_handler


Project Name: matthewwithanm/django-imagekit
Commit Name: f9c4d6b500888c059dcf4547a3442e6a7a582b27
Time: 2011-09-23
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageSpecFile
Method Name: file


Project Name: matthewwithanm/django-imagekit
Commit Name: ea35379fd2a82e26f0d63acd607a6f8ea4b791d3
Time: 2011-02-10
Author: bryan@revyver.com
File Name: imagekit/specs.py
Class Name: Accessor
Method Name: url