Re: Adding FilePathField

2005-10-11 Thread Adrian Holovaty
On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Any one had a chance to look at this yet? I just added it, and I've updated the docs. Thanks again for the idea and patch! http://code.djangoproject.com/changeset/846 http://www.djangoproject.com/documentation/model_api/#field-types Ad

Re: Adding FilePathField

2005-10-11 Thread [EMAIL PROTECTED]
So ... Any one had a chance to look at this yet?

Re: Adding FilePathField

2005-10-03 Thread [EMAIL PROTECTED]
I just submited my first stab at this. Please give it a try and let me know what you think. http://code.djangoproject.com/ticket/589

Re: Adding FilePathField

2005-09-30 Thread [EMAIL PROTECTED]
Hi everyone I was the one that made that blog post, so I figured I would chime in. I think getting files recursively would be good as long as you can pass an option to not do that. I also think it would be cool if you could pass a regex string to match certain files. So you could list all the z

Re: Adding FilePathField

2005-09-29 Thread Amit Upadhyay
On 9/29/05, Manuzhai <[EMAIL PROTECTED]> wrote: I'm not sure about using Jason Orendorff's path module, since it's YetAnother Dependency. I'm not sure it adds that much value (and it doesadd some learning curve for those not familiar with it). Its a single python module, very liberally licensed so

Re: Adding FilePathField

2005-09-29 Thread Manuzhai
I love the idea of a FilePathField. The globbing thing seems nice. I'm not sure about using Jason Orendorff's path module, since it's Yet Another Dependency. I'm not sure it adds that much value (and it does add some learning curve for those not familiar with it). Regards, Manuzhai

Re: Adding FilePathField

2005-09-29 Thread Moof
Adrian Holovaty wrote: > This is a great idea, and we should implement it right away. But > there's one question that needs to be answered: How should it choose > the files? A couple of choices: > > * Accept "glob" syntax, e.g. "/home/media/*", which would follow Unix > glob conventions -- e.g.

Re: Adding FilePathField

2005-09-29 Thread Sune Kirkeby
On 9/29/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > This is a great idea, and we should implement it right away. But > there's one question that needs to be answered: How should it choose > the files? A couple of choices: > * Both? If so, what's the syntax? How about a subset of the find(1)

Adding FilePathField

2005-09-28 Thread Adrian Holovaty
I came across this blog entry today: http://www.socialistsoftware.com/?p=12 The author suggests a "ServerFileField", which you would instantiate with a given filepath on the system, and it would be represented in the admin by a select box listing all the files in that directory. For example, th