Strip Whitespace Middleware

2006-07-27 Thread Doug Van Horn
I don't know if anyone will find this useful, but I thought I'd throw it out there. I wrote a little Middleware class to strip trailing and leading whitespace from a response: import re class StripWhitespaceMiddleware: """ Strips leading and trailing whitespace from response content.

Re: Free SVN and Issue Tracker

2006-07-27 Thread Deryck Hodge
On 7/27/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > FWIWwebfaction has offered this for a while for python > http://www.webfaction.com/freetrac > > BTW.. I can't see a reference to this on code.google.com It's http://code.google.com/hosting/. I just added a project of my own to it, and it see

Re: Free SVN and Issue Tracker

2006-07-27 Thread Ian Holsman
FWIWwebfaction has offered this for a while for python http://www.webfaction.com/freetrac BTW.. I can't see a reference to this on code.google.comOn 28/07/2006, at 12:53 PM, Tyson Tate wrote:I imagine there are some people here who (like me) want to open  source some of their Django code, contrib a

Free SVN and Issue Tracker

2006-07-27 Thread Tyson Tate
I imagine there are some people here who (like me) want to open source some of their Django code, contrib apps, or other things but cant run Subversion or Trac on their host. Google to the rescue, as always: http://code.google.com Hopefully this can be useful to many of you. -Tyson --~--

Re: Default escaping -- again!

2006-07-27 Thread Deryck Hodge
On 7/27/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Make a setting to turn define the default, and if the setting's not > there, auto-escape. > Anyone that doesn't want it can just turn it off by defining the setting. > > AUTO_ESCAPE_TEXT = _True_|False This is the exact scenario that should be

Re: Default escaping -- again!

2006-07-27 Thread Jeremy Dunck
On 7/27/06, Simon Willison <[EMAIL PROTECTED]> wrote: > Here's an idea I don't think anyone has brought up yet: what if > escaping was on by default for templates ending in .html and off by > default for templates ending in .txt? Make a setting to turn define the default, and if the setting's not

Re: Default escaping -- again!

2006-07-27 Thread Simon Willison
On 28 Jul 2006, at 01:50, Ahmad Alhashemi wrote: > Default escaping couples the Django templates with HTML. I don't think > that this is a good idea, even if HTML is, incidentally, the most > commonly used language in templates, for the time being. Here's an idea I don't think anyone has brough

Re: Default escaping -- again!

2006-07-27 Thread Ahmad Alhashemi
Default escaping couples the Django templates with HTML. I don't think that this is a good idea, even if HTML is, incidentally, the most commonly used language in templates, for the time being. --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Consider releasing a .95 beta

2006-07-27 Thread Bill de hÓra
Tom Tobin wrote: > On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: >> Adrian Holovaty wrote: >>> There's no real reason, other than the fact that the core developers >>> all use (and are happy with) the Subversion/development versions of >>> Django, with which we've been enjoying the great changes to D

Re: Consider releasing a .95 beta

2006-07-27 Thread Bill de hÓra
Jeremy Dunck wrote: > On 7/27/06, Kevin Menard <[EMAIL PROTECTED]> wrote: >> People run svn update at >> different times and all that jazz. I know we've been burned once or >> twice by people running different versions of django. > > Two-phase email? "I'd like to svn up, report back when ready.

Re: Default escaping -- again!

2006-07-27 Thread Jacob Kaplan-Moss
On Jul 27, 2006, at 3:22 PM, Simon Willison wrote: > (Malcolm Tredinnick's patch looks like a really great bash at this; > it's great that someone's taking the initiative and hammering out > some code). FYI, Malcom, Adrian and I spent some time talking this over today at OSCON. Expect to see s

Re: Default escaping -- again!

2006-07-27 Thread Simon Willison
On 27 Jul 2006, at 21:01, Tom Tobin wrote: > From what I recall of conversations on the subject, default behavior > will not be changed to auto-escape. Auto-escaping, under whatever > proposal is accepted, will require some form of action to enable. I like to think that's not set in stone yet. T

Re: Consider releasing a .95 beta

2006-07-27 Thread Kevin Menard
On 7/27/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > perfect is what 1.0 is for. I certainly hope this isn't the case. It'd kill me to see django get caught up with the mythical 1.0 that seems to plague so many OSS projects. -- Kevin --~--~-~--~~~---~--~~ You

Re: Consider releasing a .95 beta

2006-07-27 Thread Ian Holsman
On 28/07/2006, at 7:56 AM, Tyson Tate wrote:On 7/27/06, Ian Holsman <[EMAIL PROTECTED]> wrote: I for one would like a 0.95 release. ...Earlier today:On 7/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:... We're working on the .95 release as I typethis, though.Adrianyeah.. I saw that.but the other

Re: Re: Consider releasing a .95 beta

2006-07-27 Thread Tyson Tate
On 7/27/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > I for one would like a 0.95 release. ... Earlier today: On 7/27/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: ... > We're working on the .95 release as I type > this, though. > > Adrian --~--~-~--~~~---~--~~ Y

Re: Consider releasing a .95 beta

2006-07-27 Thread Ian Holsman
I for one would like a 0.95 release.why?I think 0.95 is stable enough *as is*. sure it's not perfect,  (thats what 0.96 is for ;-) but I would like people to stop using 0.91 ASAP.and personally I think trying to get a monthly release, or a release just before something major happens is a good idea.

Re: Consider releasing a .95 beta

2006-07-27 Thread Matt Howell
Regardless of the merits of the issue, it certainly doesn't help things to get personal. If you want to influence the process, stay cool and keep the emotional attacks off the table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: simonslaw/matt the destroyer

2006-07-27 Thread Matt the Destroyer
Thanks again. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMA

Re: simonslaw/matt the destroyer

2006-07-27 Thread Jacob Kaplan-Moss
On Jul 27, 2006, at 3:57 PM, Matt Carter wrote: > Unfortunately, "Matt the Destroyer" (me) is a completely different > person than "simonslaw." Indeed, turns out I was wrong. Matt, I'm very sorry. I figured the odds of two people with the same IP participating in the same thread was pretty lo

Re: limit_choices_to - allow FunctionType values?

2006-07-27 Thread Michael Hamilton
On Friday 28 July 2006 04:24, Simon Willison wrote: > > ... > > I've tested such a change on Django 0.95 - it seems to work OK. > > A neater way of doing that is to use the built-inr Python function > callable(): > > if callable(value): > value = value() > > This seems like a neat addition to

Re: simonslaw/matt the destroyer

2006-07-27 Thread Matt Carter
Unfortunately, "Matt the Destroyer" (me) is a completely different person than "simonslaw." I'd appreciate being removed from the ban list. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group.

Re: simonslaw/matt the destroyer

2006-07-27 Thread Deryck Hodge
On 7/27/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Hi guys - > > This guy -- same guy, BTW -- has been banned. Apologies for letting > him troll for so long. > > Jacob A, and I was just about to introduce everyone to my little friend...

Re: Consider releasing a .95 beta

2006-07-27 Thread [EMAIL PROTECTED]
Jeremy Dunck wrote: > On 7/27/06, Matt the Destroyer <[EMAIL PROTECTED]> wrote: > > Does Django improve if everyone's out for lunch? > > I think that depends on whether we're all friends here. I certainly > think about Django over lunch often. GAYY!!! BTW Jocab good one banning t

simonslaw/matt the destroyer

2006-07-27 Thread Jacob Kaplan-Moss
Hi guys - This guy -- same guy, BTW -- has been banned. Apologies for letting him troll for so long. Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send e

Re: Consider releasing a .95 beta

2006-07-27 Thread Jeremy Dunck
On 7/27/06, Matt the Destroyer <[EMAIL PROTECTED]> wrote: > Does Django improve if everyone's out for lunch? I think that depends on whether we're all friends here. I certainly think about Django over lunch often. --~--~-~--~~~---~--~~ You received this message b

Re: INSTALLED_APPS partially shown in admin with mod_python

2006-07-27 Thread Kilian CAVALOTTI
On Thursday 27 July 2006 18:48, Malcolm Tredinnick wrote: > Aargh! Can you make a ticket with these details so that we don't lose > them, please (I have flagged this email to look at later, too). Sure. It's done as ticket #2438. > This -- > the get_apps() and get_models() code -- is a slight h

Re: Consider releasing a .95 beta

2006-07-27 Thread Matt the Destroyer
Tyson Tate wrote: > > [...] If you can't handle using an in-development framework that's > improving by the hour [...] see it become the best web > application framework in the world > -Tyson Very ambitious words there, Tyson. While I can agreeably forsee Django eventually maturing into a great

Re: Default escaping -- again!

2006-07-27 Thread Deryck Hodge
On 7/27/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > On Thursday 27 July 2006 19:47, Deryck Hodge wrote: > > > But how is remembering to do {! var !} any easier than remembering {{ > > var|escape }}? I think that's the issue most people had, that > > escaping is easy to overlook. > > In my propo

Re: Re: Consider releasing a .95 beta

2006-07-27 Thread Tyson Tate
On 7/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > When you talk all I hear is poop hitting a toilet. ... > astablished ... > use there nightly build it a production > enviroment? ... > last nights kernal build ... > If you have ever worked on a non-kiddy project (ie $$$) you will > unde

Re: Consider releasing a .95 beta

2006-07-27 Thread [EMAIL PROTECTED]
Todd O'Bryan wrote: > On Jul 27, 2006, at 3:49 PM, [EMAIL PROTECTED] wrote: > > > Tom Tobin wrote: > >> On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > > >> In line with other sentiments I've expressed here in the past: IMHO, > >> this means your *project manager* is addled, not Django's release >

Re: Consider releasing a .95 beta

2006-07-27 Thread Kevin Menard
On 7/27/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > Read about agile development. You can release stable code without > freezing it. I guess it depends on the definition of "stable." I agree that you can have code that runs and runs well without freezing it. At some point though, you gotta b

Re: Consider releasing a .95 beta

2006-07-27 Thread Matt the Destroyer
Todd O'Bryan wrote: > On Jul 27, 2006, at 3:49 PM, [EMAIL PROTECTED] wrote: > > > Tom Tobin wrote: > >> On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > > >> In line with other sentiments I've expressed here in the past: IMHO, > >> this means your *project manager* is addled, not Django's release >

Re: Default escaping -- again!

2006-07-27 Thread Tom Tobin
On 7/27/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > Unless I missed something, the default escaping proposal hasn't been > committed. And I've had an idea that I don't think came up, that I > thought was perhaps worth throwing into the mix. > > Basically, {{ }} does escaping automatically, a

Re: Consider releasing a .95 beta

2006-07-27 Thread Todd O'Bryan
On Jul 27, 2006, at 3:49 PM, [EMAIL PROTECTED] wrote: > Tom Tobin wrote: >> On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > >> In line with other sentiments I've expressed here in the past: IMHO, >> this means your *project manager* is addled, not Django's release >> process. If you can understand

Re: Consider releasing a .95 beta

2006-07-27 Thread [EMAIL PROTECTED]
> Cmon now, keep it clean. I would love to keep it clean. But there are people out there like Todd and Tom got are doing their back to front action at their local vocational high school. Dear Todd and Tom Are you threatening me? Please do put me on your kill list. Commen sense is over your od

Re: Consider releasing a .95 beta

2006-07-27 Thread Tom Tobin
On 7/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Tom Tobin wrote: > > On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > > In line with other sentiments I've expressed here in the past: IMHO, > > this means your *project manager* is addled, not Django's release > > process. If you can u

Re: Consider releasing a .95 beta

2006-07-27 Thread Joe
[EMAIL PROTECTED] wrote: > Tom Tobin wrote: > > On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > > In line with other sentiments I've expressed here in the past: IMHO, > > this means your *project manager* is addled, not Django's release > > process. If you can understand that the development vers

Re: Consider releasing a .95 beta

2006-07-27 Thread [EMAIL PROTECTED]
Tom Tobin wrote: > On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > In line with other sentiments I've expressed here in the past: IMHO, > this means your *project manager* is addled, not Django's release > process. If you can understand that the development version is stable > enough to use, but y

Re: Consider releasing a .95 beta

2006-07-27 Thread Tom Tobin
On 7/27/06, Tom Tobin <[EMAIL PROTECTED]> wrote: > On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > > > > > Tom Tobin wrote: > > > In line with other sentiments I've expressed here in the past: IMHO, > > > this means your *project manager* is addled, not Django's release > > > process. If you can u

Re: Consider releasing a .95 beta

2006-07-27 Thread Tom Tobin
On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > > Tom Tobin wrote: > > In line with other sentiments I've expressed here in the past: IMHO, > > this means your *project manager* is addled, not Django's release > > process. If you can understand that the development version is stable > > enough to

Re: Consider releasing a .95 beta

2006-07-27 Thread Todd O'Bryan
On Jul 27, 2006, at 1:05 PM, Joe wrote: > Malcolm Tredinnick wrote: >> Release management is a little more faceted than that. You do >> understand >> that any Open Source project has multiple releases, right? Putting >> out >> periodic releases to act as checkpoints, regardless of whether it

Re: Default escaping -- again!

2006-07-27 Thread Luke Plant
On Thursday 27 July 2006 19:47, Deryck Hodge wrote: > But how is remembering to do {! var !} any easier than remembering {{ > var|escape }}? I think that's the issue most people had, that > escaping is easy to overlook. In my proposal, if you do {{ var }} you are covered, so you don't have to

Re: Consider releasing a .95 beta

2006-07-27 Thread Joe
Tom Tobin wrote: > In line with other sentiments I've expressed here in the past: IMHO, > this means your *project manager* is addled, not Django's release > process. If you can understand that the development version is stable > enough to use, but your project manager can't, your project manage

Re: Consider releasing a .95 beta

2006-07-27 Thread Tom Tobin
On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > Adrian Holovaty wrote: > > > > There's no real reason, other than the fact that the core developers > > all use (and are happy with) the Subversion/development versions of > > Django, with which we've been enjoying the great changes to Django > > over

Re: Consider releasing a .95 beta

2006-07-27 Thread Kevin Menard
On 7/27/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > Two-phase email? "I'd like to svn up, report back when ready." > > Or, if too large a team, cron'd switchtower/capistrano task? Heh, I'm not saying it's not doable. It is a pain in the neck though, and is alleviated by a point release. I i

Re: Consider releasing a .95 beta

2006-07-27 Thread Jeremy Dunck
On 7/27/06, Kevin Menard <[EMAIL PROTECTED]> wrote: > People run svn update at > different times and all that jazz. I know we've been burned once or > twice by people running different versions of django. Two-phase email? "I'd like to svn up, report back when ready." Or, if too large a team, c

Re: Default escaping -- again!

2006-07-27 Thread Deryck Hodge
On 7/27/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > Unless I missed something, the default escaping proposal hasn't been > committed. And I've had an idea that I don't think came up, that I > thought was perhaps worth throwing into the mix. > > Basically, {{ }} does escaping automatically, a

Default escaping -- again!

2006-07-27 Thread Luke Plant
Unless I missed something, the default escaping proposal hasn't been committed. And I've had an idea that I don't think came up, that I thought was perhaps worth throwing into the mix. Basically, {{ }} does escaping automatically, and {! !} doesn't. Of course, we can then argue about whe

Re: Consider releasing a .95 beta

2006-07-27 Thread Kevin Menard
On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > Hey, I'm with you 100%. I would use the development version if I > could. Unfortunately, my project manager thinks 'development' means > 'broken'. You know how those pesky project managers can be :) I don't think it's an issue of "brokeness" so muc

Re: Consider releasing a .95 beta

2006-07-27 Thread Joe
Adrian Holovaty wrote: > On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > > I wonder, then, why .95 has been held off so long. > > Hey Joe, > > There's no real reason, other than the fact that the core developers > all use (and are happy with) the Subversion/development versions of > Django, with whi

exclude items from dropdowns while using generic views?

2006-07-27 Thread hotani
I have some items for a dropdown: - category 1 - category 2 - old category ...And want to hide the "old category" on the template side, so that when a user clicks the dropdown, they only see "category 1" and "category 2." This has been eluding me for some time now --~--~-~--~~

Re: Consider releasing a .95 beta

2006-07-27 Thread Adrian Holovaty
On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > I wonder, then, why .95 has been held off so long. Hey Joe, There's no real reason, other than the fact that the core developers all use (and are happy with) the Subversion/development versions of Django, with which we've been enjoying the great chang

Re: Consider releasing a .95 beta

2006-07-27 Thread Joe
Malcolm Tredinnick wrote: > Release management is a little more faceted than that. You do understand > that any Open Source project has multiple releases, right? Putting out > periodic releases to act as checkpoints, regardless of whether it is the > ultimate, be-all-and-end-all release has benef

Re: INSTALLED_APPS partially shown in admin with mod_python

2006-07-27 Thread Malcolm Tredinnick
Hi Kilian, On Thu, 2006-07-27 at 18:36 +0200, Kilian CAVALOTTI wrote: [...] > After that, I'm truly lost, and I get no idea of what could be wrong. Did > anyone has any idea why the hasattr function could return different values > according to the server used? Aargh! Can you make a ticket with

Re: Re: why are the date-based views restricted to only displaying past-events?

2006-07-27 Thread Adrian Holovaty
On 7/26/06, monkeynut <[EMAIL PROTECTED]> wrote: > http://code.djangoproject.com/ticket/2433 > .. hopefully I didn't miss anything, I've been out in the sun all day. Good stuff, Pete! I've committed that patch. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~

Re: INSTALLED_APPS partially shown in admin with mod_python

2006-07-27 Thread Kilian CAVALOTTI
> I recently tried to use my django project with apache2+mod_python, after > a developement period using the integrated server. After some struggle, > I finally have a (quite) working installation. But the admin module > shows a really weird quirk. I have two custom applications, listed in > INSTA

Re: limit_choices_to - allow FunctionType values?

2006-07-27 Thread Simon Willison
On 27 Jul 2006, at 07:07, [EMAIL PROTECTED] wrote: > So the db/models/query.py parse_lookup() expansion loop would include: > > if type(value) == types.FunctionType: > value = value() > > I've tested such a change on Django 0.95 - it seems to work OK. A neater way of

Re: Re: Consider releasing a .95 beta

2006-07-27 Thread Malcolm Tredinnick
On Thu, 2006-07-27 at 08:36 -0700, Tyson Tate wrote: > It'd be nice if .95 would take care of at least *some* of the bugs > that have been piling up in Trac. I understand the few who have commit > access are insanely busy, but I just can't fathom a .95 release with > the current state of trunk. O

Re: Re: Consider releasing a .95 beta

2006-07-27 Thread Tyson Tate
It'd be nice if .95 would take care of at least *some* of the bugs that have been piling up in Trac. I understand the few who have commit access are insanely busy, but I just can't fathom a .95 release with the current state of trunk. (Whatever happened to the bug-fix sprint?) It's a little dishe

Re: Consider releasing a .95 beta

2006-07-27 Thread Matt the Destroyer
Joe wrote: > I saw this post, but I wasn't sure a consensus had been reached. I thought simonslaw summed it up pretty nicely. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to t

Re: MS SQL Server access from Linux/ODBC?

2006-07-27 Thread Filipe
Do you know if something equivalent to the "DTM Migration Kit" you mentioned exists as open software? Using a commercial product is not very practical in my case, because the clients would have to agree on buying it, which I belive is not likely. --~--~-~--~~~---~--~

Re: Consider releasing a .95 beta

2006-07-27 Thread Joe
I saw this post, but I wasn't sure a consensus had been reached. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To

Re: Consider releasing a .95 beta

2006-07-27 Thread [EMAIL PROTECTED]
Waiting When are y'all going to get off your asses and get finished with the god damn .95 release cocks ... My company is thinking about writing our own CMS plugin for rails if django can't make it to a stable release. Bennett stop being a fluff and rap this shit up. --~--~-~--~~--

Re: Consider releasing a .95 beta

2006-07-27 Thread Deryck Hodge
On 7/27/06, Joe <[EMAIL PROTECTED]> wrote: > How would the community around here feel about a beta/pre-release .95 > version? > Adrian mentioned doing one at OSCON. See this thread: http://groups.google.com/group/django-developers/browse_thread/thread/75c0a1d3703ab81/ Cheers, deryck -- Deryck

Consider releasing a .95 beta

2006-07-27 Thread Joe
I know that the release of a .95 version of Django is a touchy subject around here, but I really would like to see a .95 release, even if you have to call it a beta to signify not all issues are resolved. As a programmer, I know that I could just go to the subversion trunk and checkout the code.