Re: [Django] #9545: FileField: height_field and width_field are not working

2009-02-26 Thread Django
#9545: FileField: height_field and width_field are not working
---+
  Reporter:  julian24  | Owner:  nobody
Status:  closed| Milestone:  1.1   
 Component:  File uploads/storage  |   Version:  1.0   
Resolution:  worksforme|  Keywords:
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by Alex):

  * status:  new => closed
  * resolution:  => worksforme

Comment:

 There are now several tests for this, I'm going to mark as worksforme, if
 you can show case where it doesn't work please reopen with a testcase.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9545: FileField: height_field and width_field are not working

2009-02-26 Thread Django
#9545: FileField: height_field and width_field are not working
---+
  Reporter:  julian24  | Owner:  nobody
Status:  new   | Milestone:  1.1   
 Component:  File uploads/storage  |   Version:  1.0   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by jacob):

  * stage:  Unreviewed => Accepted
  * milestone:  => 1.1

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9545: FileField: height_field and width_field are not working

2008-11-07 Thread Django
#9545: FileField: height_field and width_field are not working
---+
  Reporter:  julian24  | Owner:  nobody
Status:  new   | Milestone:
 Component:  File uploads/storage  |   Version:  1.0   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Comment (by julian24):

 It means that the fields are empty.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #9545: FileField: height_field and width_field are not working

2008-11-07 Thread Django
#9545: FileField: height_field and width_field are not working
---+
  Reporter:  julian24  | Owner:  nobody
Status:  new   | Milestone:
 Component:  File uploads/storage  |   Version:  1.0   
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by kmtracey):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 What does "aren't working" mean?  Is this possibly the same as #8208?

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



[Django] #9545: FileField: height_field and width_field are not working

2008-11-07 Thread Django
#9545: FileField: height_field and width_field are not working
--+-
 Reporter:  julian24  |   Owner:  nobody
   Status:  new   |   Milestone:
Component:  File uploads/storage  | Version:  1.0   
 Keywords:|   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 With this model `height_field` and `width_field` aren't working:

 {{{
 #!python
 class Wallpaper(models.Model):
 title = models.CharField(_('Title'), max_length=80)
 wallpaper = models.ImageField(_('Wallpaper'),
   upload_to = 'wallpapers/',
   height_field = 'wallpaper_height',
   width_field = 'wallpaper_width')
 wallpaper_height = models.IntegerField(_('Wallpaper height'),
 blank=True, null=True)
 wallpaper_width = models.IntegerField(_('Wallpaper width'),
 blank=True, null=True)

 def __unicode__(self):
 return unicode(self.title)
 }}}

 But if I add the following `save` method, it works fine:

 {{{
 #!python
 def save(self):
 if self.wallpaper.field.width_field:
 setattr(self.wallpaper.instance,
 self.wallpaper.field.width_field, self.wallpaper.width)
 if self.wallpaper.field.height_field:
 setattr(self.wallpaper.instance,
 self.wallpaper.field.height_field, self.wallpaper.height)
 super(Wallpaper, self).save()
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---