Code

Opened 8 years ago

Closed 7 years ago

#2233 closed enhancement (invalid)

[patch] Model save method should have acces to file fields details during save

Reported by: arnihr@… Owned by: nobody
Component: Core (Other) Version: master
Severity: minor Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I think you should be able to manipulate file fields by overriding save method on a model. If you override the save method you cannot get file field information such as file size or dimensions.

Attachments (1)

manipulators.py (954 bytes) - added by arnihr@… 8 years ago.
Fixes issue.

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by arnihr@…

Fixes issue.

comment:1 Changed 8 years ago by anonymous

  • Summary changed from Model save method should have acces to file fields details during save to [patch] Model save method should have acces to file fields details during save

comment:2 Changed 8 years ago by anonymous

  • priority changed from normal to high

Bump. This is causing a few some problems.

comment:3 Changed 8 years ago by adrian

  • priority changed from high to normal

comment:4 Changed 8 years ago by anonymous

  • Version changed from magic-removal to SVN

comment:5 Changed 7 years ago by Simon G. <dev@…>

  • Triage Stage changed from Unreviewed to Design decision needed

comment:6 Changed 7 years ago by ubernostrum

  • Resolution set to invalid
  • Status changed from new to closed

Manipulators are deprecated, so this patch is invalid, and I _think_ the solution is to call the superclass save before attempting to do anything fancy with the file.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.