Re: FileField & many to many

2005-12-27 Thread Eugene Lazutkin
"hugo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I would just store them in a configureable temp directory and add a > cleaning routine that removes temp files whose ctime is older than some > configured maximum of seconds. Maybe give them a directory structure to > prevent

Re: FileField & many to many

2005-12-27 Thread Robert Wittams
Jason Davies wrote: > > Robert Wittams wrote: > > >>The temporary location is a slight issue. My current thinking is : >>a temporary location is a directory. It contains two subdirectories, eg >>0 and 1. >>We first use the 0 directory. Then after n minutes, we use the 1 >>directory. After anoth

Re: FileField & many to many

2005-12-27 Thread hugo
>Just an idea: could the file be temporarily stored in the session >instead? At least then it won't be sent "over the wire" multiple >times. Storing it in the session avoids having to introduce yet Files can be big. Don't think that it's a good idea to either send it over the wire or store it i

Re: FileField & many to many

2005-12-27 Thread Jason Davies
Robert Wittams wrote: > The temporary location is a slight issue. My current thinking is : > a temporary location is a directory. It contains two subdirectories, eg > 0 and 1. > We first use the 0 directory. Then after n minutes, we use the 1 > directory. After another n minutes, we use the 0 di

Re: FileField & many to many

2005-12-27 Thread Robert Wittams
Adrian Holovaty wrote: > On 12/24/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > >>* FileField becomes a descriptor (before other fields), and is >>assignable, and able to be passed in the constructor. The things which >>can be assigned will at least include a structure that can be made out >>of

Re: FileField & many to many

2005-12-27 Thread Adrian Holovaty
On 12/24/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > * FileField becomes a descriptor (before other fields), and is > assignable, and able to be passed in the constructor. The things which > can be assigned will at least include a structure that can be made out > of the request, in eg > { 'n

FileField & many to many

2005-12-24 Thread Robert Wittams
FileField -- Ok, so I need to change the file field api, because the current one requires special casing in the manipulator. It is also broken in the presence of validation errors, or multiple requests ( which the fallback non ajax admin now relies on). FileField needs to act like everyt