Re: Lookups spanning GenericRelations

2007-11-16 Thread Malcolm Tredinnick
On Fri, 2007-11-16 at 16:54 -0500, Joshua 'jag' Ginsberg wrote: [...] > So it looks like we're joining to object_permissions twice and only > constraining that join to instances of the correct permission codename > on one of those two joins, resulting in one Widget object for every > object

Re: django-gadgets

2007-11-16 Thread Marinho Brandao
hummm... ok, I'll msg you in PVT, ok? :) 2007/11/16, Marty Alchin <[EMAIL PROTECTED]>: > > On Nov 16, 2007 2:55 PM, Marinho Brandao <[EMAIL PROTECTED]> wrote: > > nice job :) if I understand, django-modular is a app to allow websites > > are widgets container, and provide too some widgets

Re: urlize insufficient escaping with autoescape

2007-11-16 Thread Malcolm Tredinnick
On Fri, 2007-11-16 at 13:26 -0800, ScottB wrote: > Hi. > > It seems the urlize filter marks its output as safe, but the > django.utils.html.urlize function on which it depends is only escaping > the content of the "a" element (i.e. the text between and ). > > Any other text passed to the

Send Big File Fast and Easy Apply For FREE!!! ( New Service From yousendit )

2007-11-16 Thread pishate chond
Send Big File Fast and Easy Send, Receive and Track files with YouSendIt. apply for free. be urgent , there is the time limits. Get Free Code: Limited Time Only! http://www.tkqlhce.com/click-2667396-10501907 --~--~-~--~~~---~--~~ You received this message because

Lookups spanning GenericRelations

2007-11-16 Thread Joshua 'jag' Ginsberg
Howdy! I've banged together a rudimentary row-level permissions framework that looks something like... from django.db import models from django.contrib.auth.models import Permission, User from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic

Re: django-admin.py can't access user-supplied commands, even if --settings option is provided

2007-11-16 Thread Todd O'Bryan
Just replied directly to Russ, but I'll mention this here for posterity. I found the problem--I'd missed an ImportError in an except clause. Unfortunately, now all the tests run, but the one that loads the user commands (tests/modeltests/user_commands) fails because the dance command isn't

urlize insufficient escaping with autoescape

2007-11-16 Thread ScottB
Hi. It seems the urlize filter marks its output as safe, but the django.utils.html.urlize function on which it depends is only escaping the content of the "a" element (i.e. the text between and ). Any other text passed to the filter is not escaped. Also the url inserted in the href attribute

Re: django-gadgets

2007-11-16 Thread Marty Alchin
On Nov 16, 2007 2:55 PM, Marinho Brandao <[EMAIL PROTECTED]> wrote: > nice job :) if I understand, django-modular is a app to allow websites > are widgets container, and provide too some widgets functionality, > right? all based on UWA API, I'm right? No, django-modular has nothing to do with

Re: django-gadgets

2007-11-16 Thread Marinho Brandao
Marty, nice job :) if I understand, django-modular is a app to allow websites are widgets container, and provide too some widgets functionality, right? all based on UWA API, I'm right? ok, I'll see it :) django-gadgets only provide a easy way to create gadgets (based on Google API). Maybe we

Re: Problems with FileFields/ImageFields

2007-11-16 Thread [EMAIL PROTECTED]
Every time I make a model with a File or Image Field I create a corresponding boolean field called clear_fileFieldName. And then I override the save action. Checking to see if that clear_fileFieldName is set to true. If it is I, clear the FileField Like this class Property(models.Model):

Re: Problems with FileFields/ImageFields

2007-11-16 Thread Marty Alchin
On Nov 16, 2007 12:12 PM, Marc Garcia <[EMAIL PROTECTED]> wrote: > First one is about how to delete content in a FileField. With a > example: > > I've a model: > > class Person(model.Model): > name = models.CharField(maxlength=32) > [...] > picture =

Problems with FileFields/ImageFields

2007-11-16 Thread Marc Garcia
There are a couple of things about FileFields that I want to comment. First one is about how to delete content in a FileField. With a example: I've a model: class Person(model.Model): name = models.CharField(maxlength=32) [...] picture = models.ImageField(upload_to='pictures',

i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-16 Thread alain D.
Hi, Following up on a previous discussion about an important but complex i18n missing feature : http://groups.google.com/group/django-developers/browse_thread/thread/c88b582fa4764aaa I've been thinking over and over about the problem and came up with an idea of a proposed syntax that I