Re: RFC: Django history tracking

2006-06-15 Thread DavidA
There was a similar thread on this earlier where I commented about a slightly different way to store the changes: http://groups.google.com/group/django-users/browse_thread/thread/f36f4e48f9579fff/0d3d64b25f3fd506?q=time_from&rnum=1 To summarize, in the past I've used a time_from/time_thru pair of

Re: HttpResponseSendFile

2006-06-15 Thread Adrian Holovaty
On 6/14/06, SmileyChris <[EMAIL PROTECTED]> wrote: > I realise there are better ways to send most files. I ask about this > because I'm looking at implementing that "special case" soon > (authenticating files via logged in user in Django), and I was just > wondering about ways to do it. May I int

Re: Proposal: default escaping

2006-06-15 Thread Gary Wilson
gabor wrote: > is it true, that people usually forget to escape dangerous variables? > > > a) if no (people do not forget): > means people are already using 'escape' when needed. in this case, this > block-level tag is a welcome addition, because it makes it > simpler/more-convenient to toggle esc

Re: Proposal: default escaping

2006-06-15 Thread James Bennett
On 6/15/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > What would you rather have: > "Help, help! How do I turn off escaping?" I don't know... memories are stirring of my PHP days and the horror of magic_quotes... -- "May the forces of evil become confused on the way to your house." -- George

delete file of File/ImageUploadFields

2006-06-15 Thread Norman Harman
For my ImageUploadFields I ignore the filename provided by user and and name it something specific. I got real tired of the save_file method appending underscores when it found a file with that name already existed. So, added this delete_fieldname_file(). Works like save_filename_file but de

Custom template paths for syndication framework

2006-06-15 Thread James Wheare
Hi chaps, In short, the syndication framework doesn't allow custom template paths for the title and description of feeds. I made a trac report detailing the issue and added a patch that works but I'm sure could be improved. http://code.djangoproject.com/ticket/2158 Mind taking a look? Cheers,

Re: Proposal: default escaping

2006-06-15 Thread Rowan Kerr
On 6/15/06, James Bennett <[EMAIL PROTECTED]> wrote: > I don't know... memories are stirring of my PHP days and the horror of > magic_quotes... As long as the data is only escaped on final output (and here escaping should actually be intelligent as to whether it's outputting html, or some mime-en