On Tue, 2009-08-11 at 10:21 -0700, Richard Davies wrote:
> > I don't agree the current savepoint use within Django is inconsistent. As
> > far as I can tell, savepoints are used internally in the one case where
> > Django itself catches and suppresses an IntegrityError.
> ...
> > Right now it is
On Tue, 2009-08-11 at 04:39 -0700, Ole Laursen wrote:
> Hi!
>
> There are a couple of bugs open/closed about what happens when you
> upload a new file to a file field that already has a file:
>
> http://code.djangoproject.com/ticket/11663
> http://code.djangoproject.com/ticket/2983
> http:
For those, like me, wondering what this proposal was about, it's
concerning changing sorting in the admin interface to initially use the
full set of fields specified in Meta.ordering on the model.
What I can't work out yet, due to difficulty in reviewing the patch,
mentioned below, is whether it
On Wed, 2009-08-12 at 02:32 -0700, Waldemar Kornewald wrote:
> On Aug 12, 2:09 am, Russell Keith-Magee
> wrote:
> > > Is the consensus that further refactoring or rethinking of things like
> > > QuerySet and Query are required to make this happen?
> >
> > Not really a consensus - more a general f
On Wed, 2009-08-12 at 03:04 -0700, Waldemar Kornewald wrote:
> On Aug 12, 11:40 am, Malcolm Tredinnick
> wrote:
> > On Wed, 2009-08-12 at 02:32 -0700, Waldemar Kornewald wrote:
> > > Is there a way to override sql.subqueries?
> >
> > Not yet. As mentioned earlie
On Wed, 2009-08-12 at 20:05 -0700, Kevin Henry wrote:
[...]
> But if you decide to customize the widget, for example:
>
> class AuthorForm(forms.ModelForm):
> name = forms.CharField(widget=forms.TextInput(attrs={'size':80}))
>
> class Meta:
> model = Author
>
> the form field no
On Fri, 2010-03-19 at 05:39 -0700, Sh4wn wrote:
[..]
> I want to refactor the QuerySet and other databases related API's,
> which adds an additional method of selecting records, and provides
> more control of what data you'll select, but probably is a bit more
> complex than the current API. It's a
Hi,
I see a few problems here. The gist of what follows is that it seems a
bit abstract and as one tries to nail down the specifics it either
devolves to a more-or-less already solved problem that doesn't require
Django core changes, or a problem that is so unconstrained as to not be
solvable by a
On Fri, 2006-05-12 at 00:19 -0500, Eugene Lazutkin wrote:
> I added to the wiki a new document "Removing the magic: the cheat
> sheet": http://code.djangoproject.com/wiki/MagicRemovalCheatSheet.
> Essentially it is an index to "Removing the magic" organized by
> functional areas with small hint
On Sat, 2006-05-13 at 09:11 -0700, Martin Ostrovsky wrote:
> Hello,
>
> Is there a reason why CONTENT-LENGTH is always blank in the environ
> dictionary that gets passed to WSGIRequest ?
> (django/core/handlers/wsgi.py)
What web server front-end are you using to handle the request?
Development s
Hey Michael,
On Mon, 2006-05-15 at 05:30 +0200, Michael Radziej wrote:
> Hi,
>
> Django silently drops certain types of exceptions during exception
> processing.
>
> Now, while this is in general useful, it really obscures your bugs.
>
> I'd propose to optionally log those exceptions to st
Michael Radjiez quite reasonably raised a problem with a recent change I
made to fix a bug with QuerySet.count() (it was previously ignoring any
"distinct" modifiers). The problem is that if you are using a version of
SQLite prior to version 3.2.6 (released in September 2005),
QuerySet.distinct().
On Mon, 2006-05-15 at 20:43 +1000, Malcolm Tredinnick wrote:
> Michael Radjiez quite reasonably raised a problem with a recent change I
> made to fix a bug with QuerySet.count() (it was previously ignoring any
> "distinct" modifiers). The problem is that if you are using a
A friend hit the standard problems with trying to use Django's templates
in another application at his work last week. So we sat down on Saturday
and polished Luke Plant's existing patch a little. I have put the new
patch into ticket #1321.
I would appreciate some review of this, since I believe
On Tue, 2006-05-16 at 09:00 +0200, Gábor Farkas wrote:
> Jeroen Ruigrok van der Werven wrote:
> > On 5/16/06, Ville Säävuori <[EMAIL PROTECTED]> wrote:
> >> I think that this problem applies in most european languages, too.
> >> Like, say, Swedish, German and French.
> >
> > The same appliesa for
On Tue, 2006-05-16 at 09:36 +0200, Gábor Farkas wrote:
> Malcolm Tredinnick wrote:
> > On Tue, 2006-05-16 at 09:00 +0200, Gábor Farkas wrote:
> >> Jeroen Ruigrok van der Werven wrote:
> >>> On 5/16/06, Ville Säävuori <[EMAIL PROTECTED]> wrote:
> >>
On Tue, 2006-05-16 at 16:26 -0500, Adrian Holovaty wrote:
> On 5/15/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > A friend hit the standard problems with trying to use Django's templates
> > in another application at his work last week. So we sat down on Satu
On Wed, 2006-05-17 at 07:20 +, wegen wrote:
> hi, all.
>
> i'm new to django and i have a couple of questions regarding images
> upload in django.
>
> i followed the step-by-step instruction given in the FAQ of the django
> homepage
> (http://www.djangoproject.com/documentation/faq/#how-do-i
On Thu, 2006-05-18 at 06:16 +, wegen wrote:
> thanks very much for your help, arthur.
>
> now i can get the value returned from {{ car.get_carimage_url }} as
> something like
> http://localhost:8080/media/images/cars/car1.png.
>
> however, if i try to view the image in my template by using t
On Thu, 2006-05-18 at 18:41 -0700, ymasuda wrote:
> I have finished Japanese (ja-jp) translations for revision 2933, and
> I wish to contribute them (after proofread patches for tutorials).
>
> Although there are no explicit rules for translated doc, I think there
> should be some guidelines: for
On Fri, 2006-05-19 at 03:00 +, wegen wrote:
> thanks for letting me know about the issue you had before, malcolm.
>
> i'm using the development server as you suspected, however,
> changing the value of the ADMIN_MEDIA_PREFIX does not seem to fix the
> problem.
>
> rather than asking you to w
Hey Luke,
On Fri, 2006-05-19 at 13:15 +0100, Luke Plant wrote:
> Malcolm,
>
> I noticed this addition to the docs in django-updates:
>
> + Note that QuerySets are not callable, so
> + if you want to pass in a QuerySet in ``extra_context`` and have it
> + evaluated at render time, you need to
ct: Re: bug? missing foreign key constraints in SQL
From: Malcolm Tredinnick <[EMAIL PROTECTED]>
To: django-developers@googlegroups.com
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain
Date: Sun, 21 May 2006 11:08:13 +1000
M
Hi David,
On Mon, 2006-05-22 at 15:06 -0700, David Elias wrote:
> I think one way to go is with factories.
> The packages don't know nothing where settings coming from. These
> settings are passed within a constructor or something and django would
> use factories that know to look from django.con
On Mon, 2006-05-22 at 20:27 -0500, Jeremy Dunck wrote:
> At:
> http://www.djangoproject.com/documentation/tutorial2/
>
> This:
> "By default, Django displays the repr() of each object."
>
> It actually uses str() now, right?
Indeed. Fixed now. Thanks. :-)
Regards,
Malcolm
--~--~-~--
I'm arriving late to this thread; been travelling on business last week
and only catching up on email in some downtime this weekend. The topic
here is something I've been tossing around in my head a bit, too, since
I'm not sure how best to help without making life harder for Adrian and
Jacob. Anyw
On Tue, 2006-06-06 at 22:11 -0500, Adrian Holovaty wrote:
> http://code.djangoproject.com/wiki/NewbieMistakes#POSTtoviewslosesPOSTdata
>
> It's about time to solve this one. Who has a creative, elegant solution? :-)
>
> Some ideas, just to start discussion --
>
> * THROW ERROR ON POST: The Comm
Michael,
On Wed, 2006-06-07 at 11:11 +0200, Michael Radziej wrote:
> Hi,
>
> is this again just me :-), or has some checkin changed an error message
> recently?
> If I run the test suite, I get:
>
> 'invalid_models' module: Validator found 47 validation errors, 47 expected
> ==
On Wed, 2006-06-07 at 02:12 -0700, Luke Plant wrote:
>
> Simon Willison wrote:
>
> > It's certainly a nasty solution here, but we shouldn't rule
> > inspecting generated pages for errors out completely - just as long
> > as anything like that is hived off in to a specialist tool.
>
> You could
On Wed, 2006-06-07 at 22:25 +, [EMAIL PROTECTED] wrote:
[...]
> However, I've run into a problem that can't be fixed with little
> patches, in django.core.management. Specifically, all of the many
> get_sql_* functions in there pull together sql from multiple models and
> execute it all with
Can a couple of people with access to SQL Server or Oracle setups
running Django please run the tests after updating to r3116. I just
checked in a fix for ticket #2108 that I'm not 100% certain is correct
for those two databases, although I suspect it's right.
The problem is how to specify a defa
What's our policy on template filters failing? If applying a filter
raises an error, should we just trap it and return the empty string, or
raise an error? I can't find this written down anywhere, but maybe I've
missed it.
Should the answer depend upon the DEBUG setting?
This is in particular re
On Sat, 2006-06-10 at 14:57 +, Gary Wilson wrote:
> Simon Willison wrote:
> > On 10 Jun 2006, at 07:39, Malcolm Tredinnick wrote:
> >
> > > What's our policy on template filters failing? If applying a filter
> > > raises an error, should we just trap it
Hi Michael,
On Mon, 2006-06-12 at 14:33 +0200, Michael Radziej wrote:
> Hi,
>
> I wonder if there's a bug in the case that save() creates a new record for a
> model without data.
[...]
> The pk value isn't retrieved. There should be a:
>
> setattr(self, self._meta.pk.attname,
On Sat, 2006-06-17 at 07:27 +, william wrote:
>
[...]
> Sounds nice, this is a feature I'm currently looking for... but I've
> already started my own implementation.
>
> I would just share it with you.
>
> I've build a single table History with :
> - "change"; a text field which will conta
[OK, this is longer than I intended. Sorry 'bout that. :-(
Short version: yes, I agree. Focus on the organisation, too; we already
have a lot of content; people apparently don't read the docs anyway; how
we can kickstart this a bit; and some clues from other projects I've
help on and hung around.
There are a couple of problem I am looking at where it will be nice to
put in some regression tests just to ensure they don't reoccur. However,
putting them in tests/modeltests/* doesn't seem like the right place,
because we are simultaneously using that directory as a source for
examples. This tr
On Mon, 2006-06-19 at 12:28 -0500, Adrian Holovaty wrote:
> On 6/18/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > What I would like to propose is that we create a tests/regression/
> > subdirectory for these slightly more mind-numbing but important tests.
> > S
On Tue, 2006-06-20 at 20:40 +, [EMAIL PROTECTED] wrote:
> i'm having the same issue that is described in ticket #2079 (except the
> fields are just CharFields). the ticket says that the issue was fixed.
> so i updated to the latest build, but i'm still having the problem.
> anyone else seen th
On Wed, 2006-06-21 at 05:35 -0700, Luke Plant wrote:
>
> Jacob Kaplan-Moss wrote:
>
> > Yeah, the media server failed early this morning.
> >
> > It should be fixed now, but I think the updates still aren't being
> > sent and I'll look into it.
>
> Cheers, updates seem to be working now. The c
On Wed, 2006-06-21 at 13:35 -0700, Tyson Tate wrote:
> I posted a ticket (#1972) a while ago and there's been a few other
> tickets reporting the same issue, so it sound like an issue that
> should be addressed.
>
> Basically: A model with no explicit fields doesn't get created by
> syncdb,
On Wed, 2006-06-21 at 19:42 -0500, Jacob Kaplan-Moss wrote:
> On Jun 21, 2006, at 7:28 PM, Jeremy Dunck wrote:
> > Was it Unicode? How did you find the offending bits? Is it something
> > we could have helped with? (Can we help next time?)
>
> Nah, just a small change in the layout of the test
On Sun, 2006-06-25 at 14:04 +0400, Ivan Sagalaev wrote:
> I'd like to draw some attention to ticket
> http://code.djangoproject.com/ticket/2232 (mainly russelm's attention as
> it appeared after his checkin 3195).
>
> Basically ManyToMany relations don't work when you try to get related
> qu
On Sun, 2006-06-25 at 20:20 +1000, Malcolm Tredinnick wrote:
> On Sun, 2006-06-25 at 14:04 +0400, Ivan Sagalaev wrote:
> > I'd like to draw some attention to ticket
> > http://code.djangoproject.com/ticket/2232 (mainly russelm's attention as
> > it
On Sun, 2006-06-25 at 22:39 +0800, Russell Keith-Magee wrote:
> On 6/25/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote:
> >
> > I'd like to draw some attention to ticket
> > http://code.djangoproject.com/ticket/2232 (mainly russelm's attention as
> > it appeared after his checkin 3195).
>
> Paying
On Mon, 2006-06-26 at 00:58 +1000, Malcolm Tredinnick wrote:
> I've just checked in r3202 which I believe fixes the root cause of #1796
> in a reasonably correct way. I think it also fixes #2232 for the same
> reason. It all seems to come down to the import paths being used as
>
On Sun, 2006-06-25 at 18:36 +0200, gabor wrote:
> Malcolm Tredinnick wrote:
> >
> > I can no longer cause #1796 or anything like it to fail -- and I had a
> > couple of failing examples there. I believe relative imports
> > (appname.models, etc) might now work reliab
On Mon, 2006-06-26 at 10:30 +0100, Simon Willison wrote:
> I've been playing around with making the URL resolver accept a
> callable in addition to accepting 'module.blah' strings, and I think
> it's a big improvement.
>
> The change itself is very simple - when a URL is resolved, callable
>
On Mon, 2006-06-26 at 06:33 -0700, [EMAIL PROTECTED] wrote:
> Hello
>
> I run into trouble when I tried to do backward reverse lookup.
> Exampe in doc: Blog.objects.filter(entry__headline__contains='Lennon')
>
> It doesn't work and raises TypeError: Cannot resolve keyword 'blabla'
> into field
Hi Tom,
On Wed, 2006-06-28 at 03:09 -0700, tomass wrote:
> Hi Folks,
>
> I've just tried to add a time field to one of my models, and then I
> ran:
>
> ALTER TABLE blah ADD COLUMN blah_blah TIME;
> UPDATE blah SET blah_blah='09:00:00'
>
> I restarted apache, and I can see my current entries ar
Tom,
On Wed, 2006-06-28 at 03:09 -0700, tomass wrote:
> Hi Folks,
>
> I've just tried to add a time field to one of my models, and then I
> ran:
>
> ALTER TABLE blah ADD COLUMN blah_blah TIME;
> UPDATE blah SET blah_blah='09:00:00'
>
> I restarted apache, and I can see my current entries are s
I've been writing an application this evening to add the Atom Publishing
Protocol to my blog and some other projects I have in mind and hit a
problem that I now realise Hugo, and no doubt others, have stumbled
across in the past, too: Django wants to treat all incoming HTTP as
though it was a form
On Wed, 2006-06-28 at 14:15 -0500, Jacob Kaplan-Moss wrote:
> On Jun 28, 2006, at 11:45 AM, Malcolm Tredinnick wrote:
> > For things like applications/atomserv+xml and related ones (basically,
> > everything else), data should be left unprocessed by the Django
> > lay
On Thu, 2006-06-29 at 14:40 +, [EMAIL PROTECTED] wrote:
> Adrian Holovaty wrote:
> > On 6/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Is it appropriate to have a test that requires sqlite, or should tests
> > > always use the database engine(s) specified in settings?
> >
> > Test
On Fri, 2006-06-30 at 02:59 +, [EMAIL PROTECTED] wrote:
> Malcolm,
>
> Thank you. You questions have actually answered a few of mine. For
> those that are left, I'll try to clarify...
>
> > So wouldn't the analogous situation in your case be to also reserve
> > django_test_a and django_test_
On Fri, 2006-06-30 at 13:59 +, [EMAIL PROTECTED] wrote:
> > I understand what you are wanting to do. I'm wondering why you can't
> > create the dictionary inside runtests.py and then poke it inside
> > settings.DATABASE?
>
> That's a good idea, I hadn't thought of that. Are there any objectio
Hi Ahmad,
On Fri, 2006-06-30 at 09:49 -0700, Ahmad Alhashemi wrote:
> Hello,
>
> Immagine that I created a weblog application. Then I decide to make it
> accomodate multiple weblogs, by adding a weblog model and weblog_id to
> all records in the application.
>
> Is there an easy way to achieve
Hi Adrian,
On Sat, 2006-07-01 at 12:52 -0500, Adrian Holovaty wrote:
[...]
> The problem with this arrangement is that it causes any import of
> django.utils.translation to load django.conf.settings -- and the
> settings file in itself imports the translation hooks, because of the
> LANGUAGES set
On Sun, 2006-07-02 at 00:54 -0700, Ahmad Alhashemi wrote:
> Hi Luke,
>
> I agree that explicitness is better. But I think implicit filtering
> here is not that bad for two reasons. The first is, as I said, it is
> the rule not the exception. The second is that it makes it extremely
> easy to star
On Sun, 2006-07-02 at 21:16 -0500, Adrian Holovaty wrote:
> On 7/1/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > So you could leave the strings in settings.py, providing you define a
> > function called gettext_noop. All this function does is return the
> > strin
On Mon, 2006-07-03 at 22:49 +0800, Russell Keith-Magee wrote:
>
> Hi all,
>
> I've been tracking bug #2237, which has revealed a few weird cases in
> the way the TEMPLATE_STRING_IF_INVALID setting gets used. These cases
> are easy to find - put TEMPLATE_STRING_IF_INVALID='invalid' in your
> sett
On Mon, 2006-07-03 at 21:04 -0700, jws wrote:
> I submitted a patch to the tracker some time ago that was never merged.
> I'm unsure if there's some other community protocol for getting things
> accepted that I need to follow.
>
> I've described the problem, submitted a complete, working patch, g
On Mon, 2006-07-03 at 23:33 -0700, jws wrote:
> > (1) It's been closed twice; once each by Jacob and Adrian. Closing it or
> > applying both make some sense to me, so I'm not about to go any further
> > without some clarification.
>
> The discussion regarding the closure and subsequent re-opening
I was having a discussion today with a client who are using Django
templates inside their own code, without using the ORM or views.
It initially started out because they were using the old
os.environ['DJANGO_SETTINGS_MODULE'] = '__main__'
hack and had discovered that the timezone was be
On Tue, 2006-07-04 at 08:05 -0700, jws wrote:
> > They should be added, since we are bound to get some edge cases wrong
> > (c.f. initial SQL parsing) and having regression tests will help there.
> > If you could add those, that would be great. Testing both sorts of
> > quotes, backslashes, semico
On Tue, 2006-07-04 at 19:08 +1000, Malcolm Tredinnick wrote:
> I was having a discussion today with a client who are using Django
> templates inside their own code, without using the ORM or views.
>
> It initially started out because they were using the old
>
>
On Thu, 2006-07-06 at 10:11 +0800, Russell Keith-Magee wrote:
>
>
> On 7/6/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> Anybody have thoughts about this?
>
> Thinking about it further, I am more and more inclined
On Wed, 2006-07-05 at 18:50 -0700, SmileyChris wrote:
[...]
> My proposal is that we don't use a {% autoescape on/off %} block tag or
> a new |raw filter in the template source at all, but rather always use
> the view to set it the auto-escaping status.
> The developer wanting to use autoescaping
On Wed, 2006-07-05 at 22:50 -0600, m h wrote:
> I'll just post the contents of my bug report. Has anyone else ran
> into this? Any hints, suggestions?
>
>
> http://code.djangoproject.com/ticket/2297
This isn't a bug. You are using foo_set incorrectly (it is not an
attribute on the Bar model,
On Thu, 2006-07-06 at 10:57 +0200, David Larlet wrote:
> Hi all,
>
> I've recently added an enhancement (ticket #2282) about urlify without
> checking for duplicate and there is already a proposal (my mistake)
> and a discussion on this mailing-list which were unfortunatly closed
> now:
> http:/
Hi Bill,
On Fri, 2006-07-07 at 10:06 +0100, Bill de hÓra wrote:
> Malcolm Tredinnick wrote:
>
> > There was reasonable consensus in one of the threads about doing
> > something similar (but a bit smaller) than what Wordpress does. Now it's
> > a case of "patc
On Sat, 2006-07-08 at 16:54 +, Chris L wrote:
> Hi,
>
> I've currently set up enabling row level permissions using the meta
> class, e.g. to enable row level permissions for the Mineral model you
> would have:
>
> class Mineral(models.Model):
> name = models.CharField(maxlength=150)
>
On Sat, 2006-07-08 at 21:37 -0700, bradford wrote:
> There are many tickets out there marked as wontfix. It would be nice
> to see an explaination of why the ticket was marked as wontfix on all
> tickets marked as wontfix.
>
> Just a brief description would do.
Most of them are so annotated, in
On Sun, 2006-07-09 at 05:37 +, Chris L wrote:
[...]
> Each row in the RLP(Row Level Permission) table contains:
> - The RLP id
> - The content type for the "owner" (e.g. user, group)
> - The id of the owner
> - The content type of the object
> - The id of the object
> - The permission id
> - I
On Mon, 2006-07-10 at 14:40 +0200, Michael Radziej wrote:
> Hi,
>
> Looking into django.contrib.auth.__init__, it seems that
> load_backend() is called for each request when you need to access
> the request.user object. Then, the backend module is imported via
> __import__. Isn't that a little m
On Mon, 2006-07-10 at 15:01 +0200, Michael Radziej wrote:
> Malcolm Tredinnick wrote:
> > The __import__() call does not reimport the module if it already exists
> > in sys.modules. It works just like the "import" statement in Python (and
> > reload() works like imp
Hey Ian,
On Tue, 2006-07-11 at 11:59 +1000, Ian Holsman wrote:
> this is what I was thinking of
> from django.db import models
> from django.db.models.query import QuerySet
>
> class SmallQuerySet(QuerySet):
> cache={}
> def get(self, *args, **kwargs):
> cachekey = "%s:%s:%s"
I agree with most of your points (the settings one is actually kind of
obvious that it may be backwards now that you mention it).
Inter-database relations would be nice to have at some point, but it
could be a post-first-release kind of feature.
On Mon, 2006-07-10 at 21:38 -0500, Jacob Kaplan-Mos
On Mon, 2006-07-10 at 22:09 -0500, jason pellerin wrote:
> Hi all,
>
> Thanks, Jacob. And yes please, more eyes are badly needed. Aside from
> dropping tables, the branch is fully functional -- please try it out!
>
> > I'd like to see this done the other way around, which the DATABASES
> > setti
On Mon, 2006-07-10 at 20:05 -0700, Gary Wilson wrote:
> Proposing an is_loggedin method for User and AnonymousUser models.
>
> Templates treat non-existing variables as False; therefore; a
> request.user somehow failing to get assigned would result in the
> template treating the user as they are
On Mon, 2006-07-10 at 22:24 -0500, Jacob Kaplan-Moss wrote:
> On Jul 10, 2006, at 10:09 PM, jason pellerin wrote:
[...]
> >> Finally: will there be syntax to use a specific connection for some
> >> operations even if that model's set up to use a different backend?
> >> I'd hope so, but I'm not sur
On Tue, 2006-07-11 at 03:15 -0700, Bjørn Stabell wrote:
> Adrian Holovaty wrote:
> > You're right -- models will gain validation, and there will be a
> > helper function/method that returns a data structure that encapsulates
> > form validation/redisplay (like a Manipulator currently does). That'l
On Tue, 2006-07-11 at 15:52 -0700, SmileyChris wrote:
> When using templates and the user interface, the logic seems backwards
> to check for an anonymous user as opposed to a logged in user.
>
> By using user.is_anonymous in a template, you assume that if it's false
> then the user is logged in,
On Wed, 2006-07-12 at 02:54 +0100, Bill de hÓra wrote:
> Malcolm Tredinnick wrote:
>
> > Personally, I was kind of hoping whoever wrote
> > the patch might think this sort of thing through and give us a concrete
> > target to throw ideas at. :-)
>
> Hi Malcolm,
&g
On Tue, 2006-07-11 at 21:34 -0700, Gary Wilson wrote:
> Thinking of this some more, I'm wondering about the names is_logged_in
> or is_authenticated. They could be a little misleading since they
> aren't really checking if the user is logged in or not. One might be
> led to believe that they cou
On Wed, 2006-07-12 at 15:38 +0800, Russell Keith-Magee wrote:
>
> Hi all,
>
> I've got a project at work that requires a formal test harness, so I
> thought I would kill two birds with one stone and spend some time
> adding a formal test framework for all Django applications.
Hmmm .. deja vu.
On Thu, 2006-07-06 at 11:20 +0800, Russell Keith-Magee wrote:
> On 7/6/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
[...]
> One idea that was bounced around in my conversation with the
> client was
> that TIME_ZONE defaults to empty (or None,
On Wed, 2006-07-12 at 17:13 +0300, Jyrki Pulliainen wrote:
> On 7/12/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
[...]
> > When a test targets is executed, django-admin:
> > 1) creates a test database named 'test_' + settings.DATABASE_NAME
>
> This is created to the database server being u
at 01:41 -0700, Simon Willison wrote:
>
> On 12 Jul 2006, at 02:28, Malcolm Tredinnick wrote:
>
> > I approached things from a different direction, though, more
> > concentrating on how to unit test templates and views (as in not
> > requiring a full end-to-end applicat
I'm doing a run through the admin interface, looking for non-escaping
problems.
One problem surfaced more or less immediately, though: the
"unordered_list" filter. Wrapping that in an escaped block or passing
the results through the "escape" filter obviously doesn't work. We
*want* the elements
A question for the maintainers...
The easiest way to screw up admin page displays at the moment is to put
a '<' in your model's verbose name or plural verbose name.
The admin interface handles this inconsistently: sometimes spitting out
just the raw string, and sometimes presenting the string vi
On Fri, 2006-07-14 at 02:25 +, Omar El-Domeiri wrote:
> Hello,
>
> I would like to make the basehttp.py log_message() function log more
> than it currently does. It seems if I want more things logged, I will
> just have to pass them to the args argument.
>
> The problem is that I don't unde
On Thu, 2006-07-13 at 22:06 -0500, Adrian Holovaty wrote:
> On 7/13/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > Historically, was there a wish/need to put interpretable HTML in the
> > model verbose names? I am happy to go through and add escaping
> > everyw
On Fri, 2006-07-14 at 13:11 +1000, Malcolm Tredinnick wrote:
> On Thu, 2006-07-13 at 22:06 -0500, Adrian Holovaty wrote:
> > On 7/13/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> > > Historically, was there a wish/need to put interpretable HTML in the
> > >
Bjørn Stabell wrote:
> I was wondering if anyone has made a field for managing hierarchical
> data in Django?
>
> For example, a TreeField that manages "parent" relationships and gives
> the model parent and children object managers:
>
> class Category(model.Model):
> tree = TreeField()
>
>
On Fri, 2006-07-14 at 16:45 +0100, Simon Willison wrote:
> On 14 Jul 2006, at 03:05, Malcolm Tredinnick wrote:
>
> > Is there any alternative to creating an escaped_unordered_list tag?
> > (Any
> > better name for this tag? It's too long)
>
> Yes. Im
I have put an initial version of the auto-escaping patch I mentioned
yesterday into ticket #2359. I'll briefly describe what it does below.
The patch includes changes to the core and a test suite for the
auto-escaping changes (which is about half the patch).
My reason for posting this first pass
On Sun, 2006-07-16 at 23:31 +0200, [EMAIL PROTECTED] wrote:
> Hi django-developers,
>
> I had the need for a field type similar to USStateField: an
> OlympicNationField which takes 3 uppercase letters to the official olympic
> nation abbrevation.
>
> Maybe this is generic enough to go into dja
On Sun, 2006-07-16 at 21:30 +0200, Michael Radziej wrote:
> Hi,
>
> I really appreciate your work, it goes all along my wishes--thanks a
> *lot*, Malcolm!
>
> I'll try to find some time in the next few days to test how my
> existing stuff would look using autoescape.
>
> I have looked in yo
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
1 - 100 of 1429 matches
Mail list logo