Re: check if file exists before uploading | adding a validator to a field

2008-10-09 Thread jelle
Many thanks Carl, that was most helpful! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send em

Re: check if file exists before uploading | adding a validator to a field

2008-10-06 Thread Carl Meyer
Hi jelle, On Oct 6, 5:34 am, jelle <[EMAIL PROTECTED]> wrote: > Now, what I'd like to do is to write a validator which will check if a > ( renamed ) file is already existing. Writing the validator itself > isnt too hard; I can just use pre_save.connect and call a function > from here. What I do n

check if file exists before uploading | adding a validator to a field

2008-10-06 Thread jelle
Hi, I'm working on an asset managment app, that will rename uploaded files according to a specified nomenclature. Now, what I'd like to do is to write a validator which will check if a ( renamed ) file is already existing. Writing the validator itself isnt too hard; I can just use pre_save.connec