Re: "allow tags" attribute. stays/vanishes? :)

2006-07-17 Thread Christopher Lenz
Am 17.07.2006 um 16:59 schrieb Adrian Holovaty: > On 7/17/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: >> i can do it by setting the allow_tags attribute to true >> for the given "something" :) >> >> but this feature is not documented, so before i use it in an >> application, i'd like to ask: >> >>

Re: ticket #1891 review? distinct=True no longer works in limit_choices_to

2006-07-17 Thread Malcolm Tredinnick
Hi Matthew, On Tue, 2006-07-18 at 13:31 +1000, Matthew Flanagan wrote: > Hi, > > This ticket #1891 [1] has been outstanding for quite a while. I'm in > the process of rolling out a large application that would really > benefit from this being fixed. Is anyone able to look at it? > > Malcolm, di

ticket #1891 review? distinct=True no longer works in limit_choices_to

2006-07-17 Thread Matthew Flanagan
Hi, This ticket #1891 [1] has been outstanding for quite a while. I'm in the process of rolling out a large application that would really benefit from this being fixed. Is anyone able to look at it? Malcolm, did you ever get around to proving your idea in your last comment in the ticket? [1] h

Re: would is_loggedin be better than is_anonymous?

2006-07-17 Thread Malcolm Tredinnick
Hi Gary, On Mon, 2006-07-17 at 18:12 -0700, Gary Wilson wrote: > Patch for is_authenticated implementation with doc changes and no > deprecation warnings in is_anonymous. Please review. > > http://code.djangoproject.com/attachment/ticket/2332/is_authenticated.2.diff I'm going to sit down this

Re: USE_I18N = False side effect

2006-07-17 Thread avansant
Yes. All works now. Thank you Adrian. --~--~-~--~~~---~--~~ 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

Re: would is_loggedin be better than is_anonymous?

2006-07-17 Thread Gary Wilson
Patch for is_authenticated implementation with doc changes and no deprecation warnings in is_anonymous. Please review. http://code.djangoproject.com/attachment/ticket/2332/is_authenticated.2.diff --~--~-~--~~~---~--~~ You received this message because you are su

Re: Akismet spam filtering for Trac

2006-07-17 Thread Gary Wilson
> """ > 2006-07-17 17:13:08,419 Trac[__init__] WARNING: 500 Internal Error > (Akismet rejected spam) > """ > > Seems to be working. Good to hear. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers"

Re: Akismet spam filtering for Trac

2006-07-17 Thread Jacob Kaplan-Moss
Jacob Kaplan-Moss wrote: > On Jul 17, 2006, at 4:26 PM, Gary Wilson wrote: > > Has anyone seen/tried the Akismet spam filtering plugin for Trac: > > http://trac.edgewall.org/wiki/SpamFilter#Akismet > > > > Would be nice for Django's trac. > > Enabled -- let's see how it works :) >From the log fil

Re: Akismet spam filtering for Trac

2006-07-17 Thread Jacob Kaplan-Moss
On Jul 17, 2006, at 4:26 PM, Gary Wilson wrote: > Has anyone seen/tried the Akismet spam filtering plugin for Trac: > http://trac.edgewall.org/wiki/SpamFilter#Akismet > > Would be nice for Django's trac. Enabled -- let's see how it works :) Jacob --~--~-~--~~~---~--~

Akismet spam filtering for Trac

2006-07-17 Thread Gary Wilson
Has anyone seen/tried the Akismet spam filtering plugin for Trac: http://trac.edgewall.org/wiki/SpamFilter#Akismet Would be nice for Django's trac. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers

Re: Some extentions for MySQL backend using contrib/

2006-07-17 Thread Ian Holsman
This portability by the lowest common denominator is a screwed up way of thinking (IMHO). I mean.. how many people write apps and suddenly switch backends half way through development? Having them in the core with a big warning saying that they are mysql only would be ok I think. (similar

manipulator via ajax

2006-07-17 Thread [EMAIL PROTECTED]
Brantley Harris wrote: > Is there any discussion on the fate of manipulators? I've done a lot > on my own to make it more managable (including making a very cool > 'remote manipulator that executes via ajax'), so I'd like to see where > this is all going, a plan or what not. Whoa! I was just th

fix for #1207: do_html2python clobbers missing fields

2006-07-17 Thread [EMAIL PROTECTED]
Hi all -- I wrote a patch and explanation for http://code.djangoproject.org/ticket/1207 but haven't heard anything for two months, so I wanted to see if people thought it was a bug and if the patch is correct. If you omit a field on a creation form then try to save via the AddManipulator, when yo

Re: javascript image preloading from templates?

2006-07-17 Thread Iain Duncan
Oops that was supposed to go to user list, sorry. Iain Duncan wrote: > Hello fellow djangoers. I've been doing a gallery site that is too image > heavy for it's own good ( yes, I'm subcontracted by a graphic designer > ... ), and am trying to find good ways to control image loading so that > the

Re: Default arguments for RegexURLResolver

2006-07-17 Thread Adrian Holovaty
On 7/17/06, Martin <[EMAIL PROTECTED]> wrote: > > How does your patch work? In your example, would it just add > > {'weblog_slug': 'guestbook'} to every infodict in the included > > URLconf? > it is a fairly simple change (so maybe I over looked something) Hi Martin, That answers my question

Re: Default arguments for RegexURLResolver

2006-07-17 Thread Mr. P
Martin wrote: > Once a sub_match as beed found (in `RegexURLResolver.resolve`) the dict > passed to the contructor of `RegexURLResolver` will be merged with the > dict of prefix-match, the sub_match (so instead of merging 2 dict, now > 3 dict are merged and the default_args dict has to lowest `pri

Re: Default arguments for RegexURLResolver

2006-07-17 Thread Martin
Hi Adrian, > How does your patch work? In your example, would it just add > {'weblog_slug': 'guestbook'} to every infodict in the included > URLconf? it is a fairly simple change (so maybe I over looked something) I only had to change to files: conf/urls/defaults.py just pass the third para

Re: Table options in CREATE TABLE..

2006-07-17 Thread Geert Vanderkelen
Geert Vanderkelen wrote: > Hi! > > I'm currently looking into a possibility to define per Model which MySQL > Storage Engine it should use for creating the table. This would need a new > option called 'db_table_option' for the Model. .. Ok. Sorry for the noise, idea binned by all mighty FAQ. :

Re: Table options in CREATE TABLE..

2006-07-17 Thread Adrian Holovaty
On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > No.. This is about table options. All of them! Not only storage engine > choice. All of the table options anyone can imagine. And "all of the table options anyone can imagine" are supported by that FAQ answer, as long as they can be appli

Re: Table options in CREATE TABLE..

2006-07-17 Thread James Bennett
On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > No.. This is about table options. All of them! Not only storage engine > choice. All of the table options anyone can imagine. I still feel like it's way too much of a special case to try to do this; the proposed option of an "anything goe

Re: Table options in CREATE TABLE..

2006-07-17 Thread Geert Vanderkelen
Hi James, James Bennett wrote: > On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: .. > 1) The features common to all the RDBMS products it can be used with. > 2) A way to manually tweak its SQL output to take advantage of > features which only apply to one database. Well, my 'manually' t

Re: Table options in CREATE TABLE..

2006-07-17 Thread Geert Vanderkelen
Hi Adrian, Adrian Holovaty wrote: > On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: >> I'm currently looking into a possibility to define per Model which MySQL >> Storage Engine it should use for creating the table. This would need a new >> option called 'db_table_option' for the Model.

Re: Default arguments for RegexURLResolver

2006-07-17 Thread Adrian Holovaty
On 7/16/06, Martin <[EMAIL PROTECTED]> wrote: > I just recently found out that if you use the 'include' feature to > refer to a external URl config file the default parameter dict is > silently ingored, e.g.: > > urlpatterns = patterns \ > ( "" > , ( r"^lce/guestbook", include ("lce_at.bl

Re: "allow tags" attribute. stays/vanishes? :)

2006-07-17 Thread Adrian Holovaty
On 7/17/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > i can do it by setting the allow_tags attribute to true > for the given "something" :) > > but this feature is not documented, so before i use it in an > application, i'd like to ask: > > could this be documented, or is this something that will

Re: Table options in CREATE TABLE..

2006-07-17 Thread James Bennett
On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > This storage engine choice was only an example. There are lots of other > options which can be set per table. > As Honza replied, this is not MySQL specific and PostgreSQL as well as other > DBMS accept options like these. But pretty much

Re: Table options in CREATE TABLE..

2006-07-17 Thread Adrian Holovaty
On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > I'm currently looking into a possibility to define per Model which MySQL > Storage Engine it should use for creating the table. This would need a new > option called 'db_table_option' for the Model. > > Not only for MySQL would this be han

Re: Auto-escaping patch

2006-07-17 Thread adurdin
Malcolm Tredinnick wrote: > When a variable is evaluated in a context in a template, it is > considered to be either "safe" or not (Simon used the term "escaped", > but that seemed less universally true than "safe"). As long as we're discussing terminology, might as well enumerate the situations

Re: Table options in CREATE TABLE..

2006-07-17 Thread Geert Vanderkelen
Hi James, James Bennett wrote: > On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: >> Not only for MySQL would this be handy, for other backends as well. I think >> for PostgreSQL the inheritance feature would need this too. > > How so? Postgres doesn't have multiple storage engines like

Re: Table options in CREATE TABLE..

2006-07-17 Thread Geert Vanderkelen
Hi Malcolm, Malcolm Tredinnick wrote: > On Mon, 2006-07-17 at 12:15 +0200, Geert Vanderkelen wrote: >> A follow-up on my previous post, with a patch attached to make the >> db_table_options work, which was easy to put in. >> >> Any comments on this patch, or something I looked over? Otherwise I

Re: Table options in CREATE TABLE..

2006-07-17 Thread Honza Král
On 7/17/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > > Not only for MySQL would this be handy, for other backends as well. I think > > for PostgreSQL the inheritance feature would need this too. > > How so? Postgres doesn't have multipl

Re: Auto-escaping patch (terminology)

2006-07-17 Thread Michael Radziej
Malcolm Tredinnick wrote: > If you want to mark every "still needs cooking" string then you have to > mark *every* string that comes into the system (a la Perl's tainted > strings). Nonono ... I just was talking about terminology. We need a term for "safe" and "unsafe" strings. I take it as gra

Re: Table options in CREATE TABLE..

2006-07-17 Thread James Bennett
On 7/17/06, Geert Vanderkelen <[EMAIL PROTECTED]> wrote: > Not only for MySQL would this be handy, for other backends as well. I think > for PostgreSQL the inheritance feature would need this too. How so? Postgres doesn't have multiple storage engines like MySQL does; a Postgres table is a Postgr

Re: Table options in CREATE TABLE..

2006-07-17 Thread Malcolm Tredinnick
On Mon, 2006-07-17 at 12:15 +0200, Geert Vanderkelen wrote: > A follow-up on my previous post, with a patch attached to make the > db_table_options work, which was easy to put in. > > Any comments on this patch, or something I looked over? Otherwise I make a > feature request with it, unless I

Re: Auto-escaping patch

2006-07-17 Thread Malcolm Tredinnick
On Mon, 2006-07-17 at 12:00 +0200, Michael Radziej wrote: > Malcolm Tredinnick wrote: > > On Sun, 2006-07-16 at 21:30 +0200, Michael Radziej wrote: > >> I'm more for 'escaped' and 'raw', but not really violently. This is a > >> minor issue, and I wouldn't like to get the work delayed by it. >

Re: Auto-escaping patch

2006-07-17 Thread Malcolm Tredinnick
On Mon, 2006-07-17 at 03:30 -0700, SmileyChris wrote: > Great job on the patch, Malcom! > I posted this in the ticket, then felt guilty because you told me not > to. So I'll post here for discusion. > > A couple of points: > If a markup filter fails due to an import error, I don't think it > shou

Re: Auto-escaping patch

2006-07-17 Thread SmileyChris
Great job on the patch, Malcom! I posted this in the ticket, then felt guilty because you told me not to. So I'll post here for discusion. A couple of points: If a markup filter fails due to an import error, I don't think it should be marked as safe. >From a skim read of the patch, I'm missing th

Re: Table options in CREATE TABLE..

2006-07-17 Thread Geert Vanderkelen
A follow-up on my previous post, with a patch attached to make the db_table_options work, which was easy to put in. Any comments on this patch, or something I looked over? Otherwise I make a feature request with it, unless I missed it while searching for an existing one.. -Geert Geert Vanderk

Re: Auto-escaping patch

2006-07-17 Thread Michael Radziej
Malcolm Tredinnick wrote: > On Sun, 2006-07-16 at 21:30 +0200, Michael Radziej wrote: >> I'm more for 'escaped' and 'raw', but not really violently. This is a >> minor issue, and I wouldn't like to get the work delayed by it. >> Also ... I volunteer to rewrite the docs if these terms change. B

Table options in CREATE TABLE..

2006-07-17 Thread Geert Vanderkelen
Hi! I'm currently looking into a possibility to define per Model which MySQL Storage Engine it should use for creating the table. This would need a new option called 'db_table_option' for the Model. Not only for MySQL would this be handy, for other backends as well. I think for PostgreSQL the

Some extentions for MySQL backend using contrib/

2006-07-17 Thread Geert Vanderkelen
Hi! I was a bit playing around and missed MySQL ENUM and SET column types. Instead of adding them to the MySQL backend, I just created a new app in the contrib/ directory called 'mysqlext'. http://some-abstract-type.com/code/?cmd=manifest;manifest=76d4a786cf3bd215546af6f1bcf2d12309515d43;path=

Re: new field idea

2006-07-17 Thread dummy
Hi django-developers, a generic api for registration of new fields would be a good idea. As IOC, FIFA and ISO-3166 codes are not the same this won't help me: http://en.wikipedia.org/wiki/Comparison_of_IOC%2C_FIFA%2C_and_ISO_3166_country_codes But IOC, FIFA and ISO-3166 should have the same api.

javascript image preloading from templates?

2006-07-17 Thread Iain Duncan
Hello fellow djangoers. I've been doing a gallery site that is too image heavy for it's own good ( yes, I'm subcontracted by a graphic designer ... ), and am trying to find good ways to control image loading so that the user will wait and then see all the numerous and large images at the same time

"allow tags" attribute. stays/vanishes? :)

2006-07-17 Thread Gábor Farkas
hi, i've found (by browsing the source-code), that if i want to put raw html code into a column in django.contrib.admin's list views, i can do it by setting the allow_tags attribute to true for the given "something" :) but this feature is not documented, so before i use it in an application, i