Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-18 Thread Luke Plant
parts of the site etc.), so this distinction is already real, not just academic, and the patch would just make it easier to control. Luke -- "Pessimism: Every dark cloud has a silver lining, but lightning kills hundreds of people each year trying to find it." (despair.com) Luke Plant

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-19 Thread Luke Plant
ot 'AnonymousUser', but we have specifically documented AnonymousUser as implementing the same interface as User, and I cannot see what harm it would cause to allow this. Luke -- "Pretension: The downside of being better than everyone else is that people tend to assume you'

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-19 Thread Luke Plant
see this as particularly bad - the amount of spam these days means it's probably helpful to have things locked down by default. Regards, Luke [1] http://code.djangoproject.com/ticket/9444 -- "Pretension: The downside of being better than everyone else is that people tend to assume

Re: What The Enterprise wants from Django

2010-01-20 Thread Luke Plant
orcing anyone to use that system. Luke -- "Procrastination: Hard work often pays off after time, but laziness always pays off now." (despair.com) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers"

Re: What The Enterprise wants from Django

2010-01-21 Thread Luke Plant
tination: Hard work often pays off after time, but laziness always pays off now." (despair.com) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-

Re: Possible bug in messages framework?

2010-01-22 Thread Luke Plant
/httpheaders.html [2] http://code.djangoproject.com/ticket/12470#comment:4 [3] http://docs.python.org/library/cookie.html -- Sometimes I wonder if men and women really suit each other. Perhaps they should live next door and just visit now and then. (Katherine Hepburn) Luke Plant || http://lukepl

Re: Possible bug in messages framework?

2010-01-22 Thread Luke Plant
pecs of any kind are fairly meaningless here, it's a matter of what everyone does. Luke -- Sometimes I wonder if men and women really suit each other. Perhaps they should live next door and just visit now and then. (Katherine Hepburn) Luke Plant || http://lukeplant.me.uk/ -- You recei

Re: Possible bug in messages framework?

2010-01-22 Thread Luke Plant
On Saturday 23 January 2010 02:44:39 Luke Plant wrote: > BTW, further research shows that we are not really RFC 2109 > compliant at all, but then again no-one is. It seems virtually > everyone (server side and client side) is using 'Netscape style' > cookies with some t

Re: Possible bug in messages framework?

2010-01-23 Thread Luke Plant
27;m inclined towards committing the patch I just added to #12470, and adding a note in 'backwards incompatibilities'. Thoughts? Luke -- The early bird gets the worm, but the second mouse gets the cheese. --Steven Wright Luke Plant || http://lukeplant.me.uk/ -- You received t

Re: 1.2 beta?

2010-01-26 Thread Luke Plant
ct_permissions'. Luke -- "The first ten million years were the worst. And the second ten million, they were the worst too. The third ten million, I didn't enjoy at all. After that I went into a bit of a decline." (Marvin the paranoid android) Luke Plant || http://lukepla

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-26 Thread Luke Plant
e -- "The first ten million years were the worst. And the second ten million, they were the worst too. The third ten million, I didn't enjoy at all. After that I went into a bit of a decline." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received t

Re: HTML 5

2010-01-31 Thread Luke Plant
Luke -- "Trouble: Luck can't last a lifetime, unless you die young." (despair.com) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djang

Re: HTML 5

2010-02-01 Thread Luke Plant
well* as having HTML validity - that's not being a perfectionist, it's called OCD, and I'm drawing the line there. Regards, Luke [1] http://hixie.ch/advocacy/xhtml -- "Trouble: Luck can't last a lifetime, unless you die young." (despair.com) Luke Plant |

Re: Ticket #12760 is no dublicate

2010-02-03 Thread Luke Plant
27;t explain it every time. Cheers, Luke -- "Where a person wishes to attract, they should always be ignorant." (Jane Austen) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. T

Re: HTML 5

2010-02-04 Thread Luke Plant
On Tuesday 02 February 2010 01:09:23 Leo Soto M. wrote: > On Mon, Feb 1, 2010 at 11:00 AM, Luke Plant > wrote: [...] > > > Changing that assumption in an elegant way would require changing > > *everything* to use a markup agnostic output tree, which you > > would

Re: Refining Django admin look proposal

2010-02-06 Thread Luke Plant
. And it's kind of difficult to assess what is currently an extremely vague proposal. Luke -- "Whom have I in heaven but You? And there is none upon earth that I desire besides You." Psalm 73:25 Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are

Re: #12801 : Allow empty non-nullable ForeignKey fields until save()

2010-02-06 Thread Luke Plant
(f.bar_id in the above case). Thanks, Luke -- "Yes, wearily I sit here, pain and misery my only companions. And vast intelligence of course. And infinite sorrow. And..." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subsc

Re: #12804 - decorating admin views marked as invalid

2010-02-07 Thread Luke Plant
And infinite sorrow. And..." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com.

Re: #12801 : Allow empty non-nullable ForeignKey fields until save()

2010-02-07 Thread Luke Plant
"Yes, wearily I sit here, pain and misery my only companions. And vast intelligence of course. And infinite sorrow. And..." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django d

Re: #12804 - decorating admin views marked as invalid

2010-02-07 Thread Luke Plant
Ignore my last post - my 'fix' only fixes one corner case, and not a very useful one either. I've got it fairly sorted out now, I'll post tomorrow about this. Luke On Sunday 07 February 2010 21:11:42 Luke Plant wrote: > On Sunday 07 February 2010 10:45:29 Florian

Re: #12804 - decorating admin views marked as invalid

2010-02-08 Thread Luke Plant
apt_to_methods, and removing use of it as much as we can. But this would add a layer of complication, and people will have to update their code eventually anyway. What do people think? Luke -- "Yes, wearily I sit here, pain and misery my only companions. And vast intelligence of course. And

Re: #12804 - decorating admin views marked as invalid

2010-02-09 Thread Luke Plant
;ll be glad to know, I'm going to donate all the snot I sneeze to hospitals for mucus transfusions." (Calvin and Hobbes) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To pos

Re: Add Mod(%) Operator to If Tag

2010-02-10 Thread Luke Plant
ver meet a smart woman with a stupid husband. (Erica Jong) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubsc

Re: Backwards-incompat with CsrfViewMiddleware

2010-02-15 Thread Luke Plant
now how feasible that is in this case. Thanks, Luke -- Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups &

examples directory

2010-02-15 Thread Luke Plant
other people think? Luke [1] http://code.djangoproject.com/ticket/12863 -- Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the

Re: Serialization of single object instead of only querysets.

2010-02-16 Thread Luke Plant
coding difference. It just seems > broken and confusing, especially to newcomers. def serialize_one_object_to_json(obj): return serializers.serialize("json", [obj])[1:-1] Regards, Luke -- "Our software is idiot proof. If you bought it, that's proof you're an

Re: admin javacripts

2010-02-19 Thread Luke Plant
lothes make the man. Naked people have little or no influence on society. -- Mark Twain Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send em

Re: admin javacripts

2010-02-19 Thread Luke Plant
p with other libraries. Regards, Luke -- Clothes make the man. Naked people have little or no influence on society. -- Mark Twain Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" gro

Re: Fixing middleware/view decorator handling of content iterators

2010-02-21 Thread Luke Plant
sinstance). Django should make the defaults for this behaviour amount to 'do what I mean', but add an API which provides the explicit 'do what I say' control. Luke -- Noise proves nothing. Often a hen who has merely laid an egg cackles as if she laid an asteroid.

Re: High Level Discussion about the Future of Django

2010-04-19 Thread Luke Plant
l in your talk and in this thread, but seeing a person saying it with concrete examples is very helpful. We can then point to official documentation when this comes up again. Luke [1] http://goo.gl/wF57 -- Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are sub

Re: Process discussion: reboot

2010-04-20 Thread Luke Plant
Triagers = [[UserProfilesList(role=triager)]] Luke -- "I married Miss Right, I just didn't know her first name was 'Always'" Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django dev

Re: Trac workflow assistance (commiter feedback needed)

2010-04-30 Thread Luke Plant
ledged, that a single man in possession of a good fortune, must be in want of a wife." (Jane Austen) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Hyperlinking template tags and filters in docs

2010-05-06 Thread Luke Plant
s like an hourglass, with the heart filling up as the brain empties." Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.

Re: Hyperlinking template tags and filters in docs

2010-05-07 Thread Luke Plant
ed. It is not built with the idea that formatting of a block of code depends on the *library* rather than the *language grammar*, and certainly not on the disk layout of files containing the code to be highlighted. So, I agree that it would be nice to do this 'correctly' in ren

Re: Class based generic views in 1.3?

2010-05-13 Thread Luke Plant
e_m = method_decorator(cache_page) for every decorator we provide, so that people don't need to do that themselves. However, this point may be moot given the discussion above. Luke -- "Mistakes: It could be that the purpose of your life is only to serve as a warning to others." (despa

Re: django template revision (for 1.4?)

2010-05-26 Thread Luke Plant
to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Djang

Re: django template revision (for 1.4?)

2010-05-27 Thread Luke Plant
I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups

Re: django template revision (for 1.4?)

2010-05-27 Thread Luke Plant
a limited form: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#with Thanks, Luke -- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) L

Static media handling - ticket 12323

2010-05-27 Thread Luke Plant
Thanks, Luke -- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you

Re: Class based generic views in 1.3?

2010-05-27 Thread Luke Plant
On Thursday 13 May 2010 12:08:26 Luke Plant wrote: > 3) Add the decorators when you call 'instantiator' (which, by the > way, I would rather call 'make_view' or something more specific). > You would then have, *in views.py*: > > 3a) my_view = some_decora

Re: Static media handling proposal - ticket 12323

2010-05-27 Thread Luke Plant
f anyone proposes app media handling for 1.3. Cheers, Luke -- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.

Re: Class based generic views in 1.3?

2010-05-27 Thread Luke Plant
ly not a good thing to have on a base class. Regards, Luke -- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me

Re: Class based generic views in 1.3?

2010-05-28 Thread Luke Plant
-- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscri

Re: Class based generic views in 1.3?

2010-05-28 Thread Luke Plant
rect answer here. In that case, I guess it would be good to make this hard to do wrong, by providing helpers that add the decorator to the right end of the list of decorators. Regards, Luke -- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar conc

Re: Class based generic views in 1.3?

2010-06-02 Thread Luke Plant
pear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups &q

Re: Class based generic views in 1.3?

2010-06-02 Thread Luke Plant
be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Dja

Re: Class based generic views in 1.3?

2010-06-03 Thread Luke Plant
ake View a subclass of HttpResponse. Regards, Luke -- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- You

Re: proposal: abstract file upload/download handling

2010-06-24 Thread Luke Plant
t each other. Perhaps they should live next door and just visit now and then. (Katherine Hepburn) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-

Re: Feedback for #13849 (csrf referer checking)

2010-06-30 Thread Luke Plant
serve your whole site over HTTPS. I only just realised this for one of my own sites. We probably need to document that more clearly, but I'm not sure how. Regards, Luke -- "The only skills I have the patience to learn are those that have no real application in life." (Calvin

Re: Feedback for #13849 (csrf referer checking)

2010-06-30 Thread Luke Plant
But I cannot see an argument for supporting this as an option out of the box. Regards, Luke [1] http://www.adambarth.com/papers/2008/barth-jackson-mitchell-b.pdf -- "The only skills I have the patience to learn are those that have no real application in life." (Calvin and Hobbes) Luke Pl

Re: A setting that skips tests for thirdparty applications

2010-07-02 Thread Luke Plant
ou don't have to remember it, in which case it's of dubious usefulness IMO. Just my 2ยข Luke [1] http://mike-austin.com/blog/2007/03/history-search-backward.html -- "The truth will set your teeth free." (Calvin and Hobbes) Luke Plant || http://lukeplant.me.uk/ -- You

Re: documentation re-factor for 1.3?

2010-07-04 Thread Luke Plant
tside the template system. (It already has some things, related to auto-escaping, that might make it behave 'funny' depending on what exactly you pass it). I think that a developer wanting to find function that are not publicly documented *is* expected to know how to use grep (or 'ac

Re: documentation re-factor for 1.3?

2010-07-05 Thread Luke Plant
On Sun, 2010-07-04 at 18:41 -0700, dffdgsdfgsdfhjhtre wrote: > On Jul 4, 8:40 pm, Luke Plant wrote: > > Unlike PHP, we have namespaces, which means that providing a list of > > every function/class is a different matter. > > So? Matplotlib has similar documentation to PHP&

Re: MySQL index hints

2010-07-05 Thread Luke Plant
ffection of those who like us, but we always respect their good judgement." -- Libbie Fudim Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop

Re: Suggestion: Better handling of HTML entities by slugify()

2010-07-07 Thread Luke Plant
would be why-you-see-lt-and-gt-in-rss-feeds, not why-you-see-and-in-rss-feeds) The normal way to do this is to store special characters as unicode characters, and apply slugify to that, which works fine. Luke -- "Where a person wishes to attract, they should always be ignorant." (Jane

Re: Unit tests

2010-08-19 Thread Luke Plant
lots of other places. Luke -- Environmentalists are much too concerned with planet earth. Their geocentric attitude prevents them from seeing the greater picture -- lots of planets are much worse off than earth is. Luke Plant || http://lukeplant.me.uk/ -- You received this message because you a

Re: bug with joins and &, or am I simply confused?

2006-05-05 Thread Luke Plant
the moment. Perhaps related to this? http://code.djangoproject.com/ticket/1535 Luke -- "I think you ought to know I'm feeling very depressed." (Marvin the paranoid android) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~---

Re: apache/modpython error (502 Proxy Error)

2006-05-05 Thread Luke Plant
feeling very depressed." (Marvin the paranoid android) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: What about union() and intersection()

2006-05-05 Thread Luke Plant
some_qset.union([other_qset]) == some_qset | other_qset Also, I'm not sure why it needs to be a class method. Instead of using cls.__or__, you could use operator.or_ Luke -- "I think you ought to know I'm feeling very depressed." (Marvin the paranoid android) Luke Plant || L.Pl

Re: [Changeset] r2837 - django/trunk/docs

2006-05-05 Thread Luke Plant
order_by('headline')[0:1].get() """ Regards, Luke -- "It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife." (Jane Austen) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ -

Re: [Changeset] r2837 - django/trunk/docs

2006-05-06 Thread Luke Plant
are some bits of code external to the QuerySet class that are using ._clone() -- shall I change them to use the [:] idiom? Luke -- "It is a truth universally acknowledged, that a single man in possession of a good fortune, must be in want of a wife." (Jane Austen) Luke Plant || L.P

Re: What about union() and intersection()

2006-05-08 Thread Luke Plant
#x27;, however, it's different, and I think some functionality to support that would be nice. Luke -- "I was sad because I had no shoes, until I met a man who had no feet. So I said, "Got any shoes you're not using?" (Steven Wright) Luke Plant || L.Plant.98 (at) cant

Building the documentation locally

2006-05-08 Thread Luke Plant
s, until I met a man who had no feet. So I said, "Got any shoes you're not using?" (Steven Wright) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: [Changeset] r2931 - django/trunk/docs

2006-05-19 Thread Luke Plant
``extra_context`` that is always fresh you need to wrap it in a function or lambda that returns the QuerySet. Thanks, Luke -- "Outside of a dog, a book is a man's best friend... inside of a dog, it's too dark to read." Luke Plant || L.Plant.98 (at) cantab.net || ht

Re: __getitem__ ignores Meta_ordering?

2006-05-23 Thread Luke Plant
on that, it's now fixed, and with a test to ensure it doesn't regress. Cheers, Luke -- "Procrastination: Hard work often pays off after time, but laziness always pays off now." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~-

Re: Ticket review please? 1584

2006-05-29 Thread Luke Plant
y you'd sell your soul for something, souls are a glut." Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" g

Custom manipulators

2006-05-29 Thread Luke Plant
people can think of (I imagine validators that check multiple fields might be one)? If I came up with a patch to make this easier, would the core devs be interested? Cheers, Luke -- "The one day you'd sell your soul for something, s

Re: Custom manipulators

2006-05-30 Thread Luke Plant
Ivan Sagalaev wrote: > You are looking for undocumented "follow": > > class MyManipulator(MyModel.ChangeManipulator): > def __init__(self, id): > MyModel.ChangeManipulator.__init__(self, id, follow={ > 'my_text_field': False, > 'my_date_field': False, >

Re: Custom manipulators

2006-05-30 Thread Luke Plant
Luke Plant wrote: > However, I had > problems. But I've forgotten what they were now I remembered what my problem was: Manipulator.get_validation_errors() ignores the 'follow' parameter, so you get validation errors for fields that aren't included. Also, it'

Re: Custom manipulators

2006-05-30 Thread Luke Plant
Ivan Sagalaev wrote: > Luke Plant wrote: > > >Manipulator.get_validation_errors() ignores the 'follow' parameter, so > >you get validation errors for fields that aren't included. > > > Just tested it and it shows that you don't. I have a required fi

Re: is_approved

2006-05-30 Thread Luke Plant
, > how are you doing it? > > On 5/30/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > Bryan wrote: > > > I strongly feel the need for an is_approved field in the User > > > model (django.contrib.auth.models). This field would allow for > > > user

Re: is_approved

2006-05-30 Thread Luke Plant
he patience to learn are those that have no real application in life." (Calvin and Hobbes) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: introduction

2006-05-31 Thread Luke Plant
Andy Shaw wrote: > PS: would Luke's GenericForeignKey allow for inline editing, assuming it > was to be adopted? Personally I'd much rather be able to alter a row's > permissions on its own admin page than have to switch table. There would have to be very specialised support for it. I haven't

Re: is_approved

2006-05-31 Thread Luke Plant
Bryan wrote: > My point is how do you lock the user out until he confirms his changed > email address? Ah, I had no idea you would want to do that, and can't see why you would want to (the e-mail address that is stored is still correct), but you know your requirements. But, you can always set i

Re: Django magic removeral DON'T support models in multiple files.

2006-05-31 Thread Luke Plant
favo wrote: > Thanks a lot ,I have follow the patch > put my appsname int hte Meta. it works. > Thanks. Michael!! Just to note: you do not need the patch for this to work i.e. if you can put app_label as a Meta option. The patch enables you to have a single module level attribute to do the sam

Re: Generalisation of exclude/QNot has broken QNot

2006-06-01 Thread Luke Plant
Ivan Sagalaev wrote: > I noticed today that in http://code.djangoproject.com/changeset/2997 > there were some changes to QNot after that my code has broken. I was > using Q() and QNot() to dynamically construct a search query like this: > > I then changed all this logic from "q = q & Q()" to "que

Re: Patch review procedure?

2006-06-01 Thread Luke Plant
> b) create a permanent branch "patch" (or a seperate svn) where commit > access is granted essentially on request. > > c) the remaining patches can be applied by the contributers to the > "patch" branch. > > the patch committers can collaborate to keep the branch stable > > the core committers m

Re: Generalisation of exclude/QNot has broken QNot

2006-06-01 Thread Luke Plant
Ivan Sagalaev wrote: > In code I was constructing the query once and then used it for both models: > > q = Q() > q = q & Q(...) > ... > albums = Album.objects.filter(q) > artists = Artist.objects.filter(q) > > One of the conditions happend to check if one of the fields was no

Re: Patch review procedure?

2006-06-01 Thread Luke Plant
adopt' it if they realise they won't be able to look at it in the time they've said. It looks like Trac will be able to support reports like these -- I'm happy to play around creating reports, but I'll need someone else to add them to the default list. Phew, that was long, sorry abou

Re: get_next_by_FIELD taking parameters (WAS: Re: interesting stuff in django.db.models.base.Model._get_next_or_previous_in_order)

2006-06-01 Thread Luke Plant
tyle...What do people think? > What params did they used to take? Without knowing, my instinct would be that it's OK, since they start with 'get'. Luke -- "Trouble: Luck can't last a lifetime, unless you die young." (despair.com

Re: Some thoughts on Django and usability

2006-06-02 Thread Luke Plant
Ilias Lazaridis wrote: > So, why not create an option for "startproject", to keep everyone (you, > me, the unexperienced, the experienced) happy? Flexibility and freedom > of choice is a nice thing: > > $ django-admin.py startproject eval quick-start > > $ django-admin.py startproject eval # us

Re: Patch review procedure?

2006-06-02 Thread Luke Plant
a certain period of time. Luke -- "Underachievement: The tallest blade of grass is the first to be cut by the lawnmower." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message becau

Re: Unit Tests for Filters

2006-06-05 Thread Luke Plant
John Sutherland wrote: > Is there some registration process I'm missing for the > filters? Yep. See: http://www.djangoproject.com/documentation/templates_python/#writing-custom-template-filters and the bottom of: http://code.djangoproject.com/browser/django/trunk/django/template/defaultfilter

Re: Must app names in django be unique?

2006-06-05 Thread Luke Plant
Steven Armstrong wrote: > Just found this [1], so sorry for the noise. I searched through the > tickets, but forgot to check the mailing list archives. Don't worry, it's probably a good reminder, since we never actually did anything about this as far as I remember. Luke --~--~-~--~--

Re: Solving the POST-data-lost-after-redirect problem

2006-06-07 Thread Luke Plant
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 do this pretty easily as a 'debug' middleware that is enabled by defa

Re: Solving the POST-data-lost-after-redirect problem

2006-06-07 Thread Luke Plant
Malcolm Tredinnick wrote: > Not entirely on-topic, but I must say that I think your HTML validation > middleware deserves to be much better known. I was using it last week to > check out some pages prior to release. It's very handy in development. > > Thanks. :-) My pleasure. I've updated it f

Re: Solving the POST-data-lost-after-redirect problem

2006-06-07 Thread Luke Plant
ew weeks to do anything with this. Luke -- "Yes, wearily I sit here, pain and misery my only companions. And vast intelligence of course. And infinite sorrow. And..." (Marvin the paranoid android) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~---

Re: Solving the POST-data-lost-after-redirect problem

2006-06-08 Thread Luke Plant
Steven Armstrong wrote: > I believe you do something similar in the admin when a session is > expired and you redirect to the login form. Actually this works differently -- no 'redirecting' is done - instead the view function is wrapped, and the view is essentially replaced with a login form un

Re: inability to use decorators on template filters

2006-06-10 Thread Luke Plant
nal to the stupidity of your action. Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this grou

Re: Regressions tests: a suggestion

2006-06-19 Thread Luke Plant
Malcolm Tredinnick wrote: > What I would like to propose is that we create a tests/regression/ > subdirectory for these slightly more mind-numbing but important tests. > Same sub-directory structure, etc, as the the modeltests/ directory, but > not in any way intended to be examples of good model

Re: trac updates/changesets not being sent?

2006-06-20 Thread Luke Plant
Ian Holsman wrote: > hi. > I just noticed that the last email I got from django-updates was on > june 12. > has something been turned off ? Also, the django community aggregator hasn't pulled in a post I wrote about 12 hours ago. Luke --~--~-~--~~~---~--~~ You

Re: Help needed creating a blog archive.

2006-06-20 Thread Luke Plant
[EMAIL PROTECTED] wrote: > But what's the best way to go about creating the archive page? I had a > thought that the url could look something like > /path/to/my/site/blog/11-20/ and that the url could somehow pick out > the numbers to use in the creation of its queryset > Post.objects.all().orde

Re: trac updates/changesets not being sent?

2006-06-20 Thread Luke Plant
In fact there seems to be a problem with the whole website now -- it's very slow, and media.djangoproject.com doesn't seem to be working at all. Luke --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django develope

Re: trac updates/changesets not being sent?

2006-06-21 Thread Luke Plant
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 community aggregator still doesn't though. Luke --~--~-~--~--

Re: Cutting applications vertically, like multiple weblogs software

2006-07-01 Thread Luke Plant
the battle between you and the world, bet on the world." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&q

Broken internal links

2006-07-11 Thread Luke Plant
g is hard, it's not worth doing." (Homer Simpson) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" g

Re: Django, I am almost ready to make the jump, here some doubts ?

2006-07-12 Thread Luke Plant
more of a django-users thread. Luke -- If you can't answer a man's arguments, all is not lost; you can still call him vile names. (Elbert Hubbard) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received

Re: related object's fields in the admin options

2006-07-12 Thread Luke Plant
ps you could do some hacks in .save()) Luke -- If you can't answer a man's arguments, all is not lost; you can still call him vile names. (Elbert Hubbard) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You rec

Re: related object's fields in the admin options

2006-07-13 Thread Luke Plant
On Thursday 13 July 2006 20:26, Gary Wilson wrote: > Luke Plant wrote: > > On Wednesday 12 July 2006 21:27, Gary Wilson wrote: > > > Jay Parlar wrote: > > > > You can use functions inside list_display: > > > > > > > > class

Re: related object's fields in the admin options

2006-07-13 Thread Luke Plant
On Thursday 13 July 2006 22:07, Luke Plant wrote: > In that particular case, yes (and in this instance it might be > possible to implement what you want be writing a custom manager and > overriding get_query_set() so that it adds a join and custom > ordering), but there is no (feas

<    1   2   3   4   5   6   7   8   >