Re: CSRF template tag patch done

2009-04-04 Thread Luke Plant
Hi Jacob, Just got back from being away, would have replied earlier otherwise... > It's simply far too draconian: if I forget to do all steps needed > to upgrade, all my contrib apps stop working. And then as soon as I > *do* those steps, all *my* apps that use POST stop working. I just > can't

Re: CSRF template tag patch done

2009-03-24 Thread Luke Plant
On Monday 23 March 2009 19:21:00 Luke Plant wrote: > Hi all, > > The patch has been added to: > > http://code.djangoproject.com/ticket/9977 I've bashed on this a lot more, and discovered (and fixed) several issues (particularly to do with what happens when sessions are fi

CSRF template tag patch done

2009-03-23 Thread Luke Plant
Hi all, The patch has been added to: http://code.djangoproject.com/ticket/9977 It includes tests, docs etc - I think it is complete. Other notes are below (some of this would need to be prominently noted in the release notes). I don't know if this is too late for the beta. Since I guess

Re: Proposal: enable CSRF middleware by default

2009-03-21 Thread Luke Plant
p the admin app to use it, eliminating the need for the (more) contentious part of this commit. That's past the deadline for the beta, though (the reason for my hasty commit in the first place), and it would still need review from other people b

Re: Proposal: enable CSRF middleware by default

2009-03-19 Thread Luke Plant
On Thursday 19 March 2009 19:18:19 Bob Thomas wrote: > On Mar 19, 2:49 pm, Luke Plant wrote: > > The hard work isn't the template tag, it's: > > > > - tests (the existing ones are in django/contrib/csrf/tests.py) > > - documentation > > - converting

Re: Proposal: enable CSRF middleware by default

2009-03-19 Thread Luke Plant
On Thursday 19 March 2009 15:55:35 Bob Thomas wrote: > On Mar 18, 1:25 pm, Luke Plant wrote: > > Yep, agreed. I plan to replace the content re-writing stuff with > > a template tag which hopefully won't be too nasty. It's just I > > haven't had time yet, and

Re: Proposal: enable CSRF middleware by default

2009-03-19 Thread Luke Plant
iliar 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 "Django develo

Re: Proposal: enable CSRF middleware by default

2009-03-18 Thread Luke Plant
On Wednesday 18 March 2009 15:59:10 Jacob Kaplan-Moss wrote: > On Wed, Mar 18, 2009 at 8:40 AM, Luke Plant wrote: > > I propose adding the two [CSRF] middleware (view and response) to > > the MIDDLEWARE settings [...] > > I'm a somewhat reluctant +0 on this -- the con

Proposal: enable CSRF middleware by default

2009-03-18 Thread Luke Plant
- now fixable with 'csrf_exempt' Please let me know by Thursday evening (GMT) if there are objections. Luke -- "My middle name is 'Organised'! My first name is 'Poorly'." Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~-

Re: CSRF / SafeForm

2009-01-05 Thread Luke Plant
in global_settings, or at least the skeleton settings file created by 'manage.py startproject'. Luke -- Noise proves nothing. Often a hen who has merely laid an egg cackles as if she laid an asteroid. -- Mark Twain Luke Plant || http://lukeplant.me.uk/ --~--~-

Re: CSRF / SafeForm

2008-12-23 Thread Luke Plant
On Tuesday 23 December 2008 16:51:46 Bob Thomas wrote: > On Dec 3, 9:14 am, Luke Plant wrote: > > At the moment, once you've factored everything in, I think 'view > > middleware' + template tag is the way to go, with some more > > custom solution for loginC

Re: How do you handle cascading deletes in your production apps?

2008-12-13 Thread Luke Plant
s the default delete behaviour, forces the issue, and that's good. Obviously people have different needs but we should err on the side of data-integrity. Luke -- "The number you have dialled is imaginary. Please rotate your telephone by 90 degrees and try agai

CSRF / SafeForm

2008-12-03 Thread Luke Plant
w session and returning a form with a csrf token at the same time. The mechanism that generates the token will need to be aware that the session ID might not be in request.COOKIES[SESSION_COOKIE_NAME], but in request.session.?? -- "Outside of a dog, a book is a man's bes

Re: Dropping Python 2.3 compatibility for Django 1.1

2008-11-26 Thread Luke Plant
se of your life is only to serve as a warning to others." (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

Re: Ticket 8638: Provide setting to disable e-mail sending

2008-11-25 Thread Luke Plant
ngo. Regards, Luke [1] http://www.lastcraft.com/fakemail.php -- "Mediocrity: It takes a lot less time, and most people don't realise until it's too late." (despair.com) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received

Re: assigning to model properties for mocking

2008-10-23 Thread Luke Plant
ve come across this before when doing this type of thing, and found it annoying, and definitely unpythonic, as I've not come across any other python code that behaves this way. Luke -- "Doubt: In the battle between you and the

Re: GET requests should not alter data?

2008-10-15 Thread Luke Plant
stem. In short, there is no option but to require developers to understand HTTP. Django's position is clear, it is the same as the HTTP spec. Luke [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1 -- "Because Your lovingkindness is better than life, My li

Re: Proposal: django.forms.SafeForm - forms with built in CSRF protection

2008-09-24 Thread Luke Plant
Hi Simon, > CSRF[1] is one of the most common web application vulnerabilities, but > continues to have very poor awareness in the developer community. > Django ships with CSRF protection in the form of middleware, but it's > off by default. I'm willing to bet most people don't turn it on. > > I

Re: Generic relations and non-integer primary keys

2008-07-16 Thread Luke Plant
writing parts of it AFAICS. Luke -- "Mediocrity: It takes a lot less time, and most people don't realise until it's too late." (despair.com) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you a

Is it UploadedFile.chunks() or .chunk() ?

2008-07-03 Thread Luke Plant
ll, learn to enjoy doing it poorly." (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 djan

Re: Ticket #7591: Authenticate By Email Support

2008-07-03 Thread Luke Plant
jangoproject.com/ticket/7591 I replied on the ticket. Regards, Luke -- "Ineptitude: If you can't learn to do something well, learn to enjoy doing it poorly." (despair.com) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received t

Re: More secure user password reset

2008-06-28 Thread Luke Plant
page, you would want to have a link to the log in screen, but I don't know how to calculate that). Regards, Luke -- "I have had a perfectly lovely evening. However, this wasn't it." (Groucho Marx) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~

Re: More secure user password reset

2008-06-28 Thread Luke Plant
new password (which *is* allowed to be the same as the last password) and updates the last_login timestamp. I'm happy to implement -- I've got the tests setup already etc, so it should be easy enough. Luke -- "I have had a per

Re: More secure user password reset

2008-06-27 Thread Luke Plant
e had a perfectly lovely evening. However, this wasn't it." (Groucho Marx) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post

More secure user password reset

2008-06-27 Thread Luke Plant
ve system for my own site, complete with tests. Testing is still problematic for views in contrib, but that should be fixed shortly. What do people think? Did I miss any problems? Luke -- "If your parents never had children, the chances are you won't either." L

Re: nfa-blocker #6004

2008-06-24 Thread Luke Plant
ecked > > in? > > > > Jeff Anderson > > > ::bump:: > > This ticket is about 3% of the first milestone. Done now, thanks. Luke -- If you can't answer a man's arguments, all is not lost; you can still call h

Re: Database weirdness in test harness

2008-06-23 Thread Luke Plant
g is hard, it's not worth doing." (Homer Simpson) 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

Re: Database weirdness in test harness

2008-06-21 Thread Luke Plant
On Friday 20 June 2008 23:30:07 Luke Plant wrote: > Hi all, > > I'm trying to pin down what I think is a bug in Model.delete() OK, here is the situation. Suppose you have 4 models, A, B, C, D, with foreign keys from one model to another represented by '->' A

Re: Database weirdness in test harness

2008-06-21 Thread Luke Plant
On Saturday 21 June 2008 07:08:52 Russell Keith-Magee wrote: > On Sat, Jun 21, 2008 at 6:30 AM, Luke Plant <[EMAIL PROTECTED]> wrote: > > Hi all, > > Hi Luke - Great to see you back and committing again! :-) Thanks, I was at busy at college for 2 year -- I can't believ

Re: Database weirdness in test harness

2008-06-20 Thread Luke Plant
- "I asked mom if I was a gifted child. She said they certainly wouldn't have paid for me." (Calvin and Hobbes) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Database weirdness in test harness

2008-06-20 Thread Luke Plant
ry bizarre. Does anyone know if the test harness does something unusual with constraints? Cheers, Luke -- "I am going to let you move around more, just to break up the mahogany." (True Quotes From Induhviduals, Scott Adams) Luke Plant || http://lukeplant.me.uk/ --~--~-

Re: RFC: Django 1.0 roadmap and timeline

2008-06-12 Thread Luke Plant
nks, Luke -- "Don't mention it. Oh, you didn't." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" g

Re: Current request, object and action as fields of ModelAdmin instances (newforms-admin branch)

2008-06-09 Thread Luke Plant
hing Django itself. http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser Luke -- "Defeat: For every winner, there are dozens of losers. Odds are you're one of them." (despair.com) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~

Re: HTML in Admin.fields 'description'

2008-05-22 Thread Luke Plant
tes, which hadn't merged in changeset 7078! My bad. Thanks for catching this. I'll revert my change to the docs. Cheers, Luke -- There was a young man from Peru Whose limericks stopped at line two. Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~--

HTML in Admin.fields 'description'

2008-05-19 Thread Luke Plant
if you don't want it to be escaped. If anyone disagrees, let me know, otherwise I'll fix it and add it to BackwardsIncompatibleChanges. Thanks, Luke -- "I don't want to achieve immortality through my work. I want to achieve it by not dying." -- Wood

twill testing

2008-05-15 Thread Luke Plant
g cackles as if she laid an asteroid. -- 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, s

EmptyQuerySet

2008-04-29 Thread Luke Plant
I wanted to pass it by you first since I'm unfamiliar with qs-rf, and in case you disagree about fixing this -- patch attached. Luke -- "Where a person wishes to attract, they should always be ignorant." (Jane Austen) L

Re: SecureForm in newforms

2008-04-17 Thread Luke Plant
e some interfaces for the developer to get and insert the token (e.g. get_csrf_token() and {% csrf_token %} ). SecureForm would include this by default, in other situations you might want to manually include it. If you forget, and you haven't excluded your view from CsrfMiddleware, you will

Re: add support for unicode-normalizing get/post-data?

2008-04-10 Thread Luke Plant
ople each year trying to find it." (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 dja

Re: Pick a value from list variable in templates

2008-03-03 Thread Luke Plant
ke -- "God demonstrates his love towards us in this, that while we were still sinners, Christ died for us." (Romans 5:8) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Generic views with different template engine

2007-12-10 Thread Luke Plant
e seen hundreds of other proposed extensions to generic views. If we included everything that everyone wanted, it would be utterly ridiculous. I think the response will be "write your own view or your own generic views". Regards, Luke -- "My middle name is 'Organis

Re: DB API - the limiting syntax, is it magic?

2007-12-04 Thread Luke Plant
ously as possible -- it throws the same exceptions etc. Luke -- "My capacity for happiness you could fit into a matchbox without taking out the matches first." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ Y

Re: filtering a QuerySet after a slice

2007-12-04 Thread Luke Plant
0].filter(name__startswith='a')) Since we can't make the 2nd match the first, we disallow it. Luke -- "My capacity for happiness you could fit into a matchbox without taking out the matches first." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/

Re: DB API - the limiting syntax, is it magic?

2007-12-03 Thread Luke Plant
cial to get stuff done. Lol, very good! Luke -- "Mistakes: It could be that the purpose of your life is only to serve as a warning to others." (despair.com) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because

Re: Django 1.0 features -- the definitive list

2007-11-30 Thread Luke Plant
ode.djangoproject.com/ticket/749 A small backwards incompatible fix here, I think should be looked at: http://code.djangoproject.com/ticket/4619 Luke -- "Mediocrity: It takes a lot less time, and most people don't realise until it's too la

Re: [SECURITY] Session Hijacking in Django

2007-11-26 Thread Luke Plant
a typical Django request). Do the sums, and you're gonna need 10^30 years to brute force that. (Yep, that's a thousand billion billion billion years). Luke -- "Making it up? Why should I want to make anything up? Life's bad enough as it is without wanting to invent any m

Re: somebody to review ticket #5247

2007-11-19 Thread Luke Plant
't breaking > things elsewhere. I've done so rather briefly, comments on the ticket. 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?"

Re: An addendum to the escaping proposals

2007-11-14 Thread Luke Plant
tly in forms or views -- there is too much room for developer error if the request has actually got as far as a view function. Luke -- "I washed a sock. Then I put it in the dryer. When I took it out, it was gone." (Steven Wright) Luke Plant || http://lukeplant.me.uk/ --~--~

Re: Feed URLs

2007-09-05 Thread Luke Plant
> But you can get the querystring easily enough by using the > dictionary : request.GET ? Yes, but I can't tell Django's Feed class to use this information, that's the problem. Luke -- Luke Plant - L.Plant.98 at cantab.net --~--~-~--~~~---~

Feed URLs

2007-09-03 Thread Luke Plant
-- A former CEO: "Some of you think that only half of the Board of Directors do all the work and the rest do nothing, actually the reverse is true." (True Quotes From Induhviduals, Scott Adams) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~--

Re: Django 500 error debugging causes QuerySets to evaluate

2007-09-01 Thread Luke Plant
;Adversity: That which does not kill me only postpones the inevitable." (despair.com) Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: full Atom Publishing Format support almost done

2007-08-02 Thread Luke Plant
that, and we don't want to have to reinvent that kind of thing. So just accepting strings seems a good idea to me. 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/ --~--~-~

Re: Autoescaping: good time?

2007-08-01 Thread Luke Plant
'Never fix a bug twice' [1]. Regards, Luke [1] http://www.red-sweater.com/blog/125/easy-programming -- see part way down. -- Women take to goodhearted men. Also from. Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message be

Re: wiki coordinator position

2007-07-24 Thread Luke Plant
27;m throwing out the idea, I'm willing to do this. Is any one > else interested? Sounds good, I'm happy to 'leaf' it to you. (Sorry, couldn't resist). Luke -- "Whom have I in heaven but You? And there is none upon

Re: reverse pagination be made default?

2007-07-23 Thread Luke Plant
#x27;ve replied on the tracker -- best to keep discussion of tickets in one place. Luke -- "In your presence there is fullness of joy; at your right hand are pleasures forevermore" Psalm 16:11 Luke Plant || http://lukeplant.me.uk/ --~--~-~--~~~---~--~---

Re: unique email in User model

2007-07-04 Thread Luke Plant
al identifier. Regards, 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 || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Password reset form with non unique email addresses

2007-06-18 Thread Luke Plant
name that has been reset). Any objections to me committing this? Thanks, Luke -- "Making it up? Why should I want to make anything up? Life's bad enough as it is without wanting to invent any more of it." (Marvin the paranoid androi

Re: Proposal: Generic newforms media

2007-05-30 Thread Luke Plant
had a perfectly lovely evening. However, this wasn't it." (Groucho Marx) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: Proposal: Generic newforms media

2007-05-29 Thread Luke Plant
On Tuesday 29 May 2007 21:13:44 Luke Plant wrote: > I've had to add hacks in before to get around the inflexibility of > inner classes. It looks like my hack for this will no longer be needed in newforms-admin. That's because: class MyModel: ... class Admin: fi

Re: Proposal: Generic newforms media

2007-05-29 Thread Luke Plant
On Tuesday 29 May 2007 11:26:45 Russell Keith-Magee wrote: > On 5/29/07, Luke Plant <[EMAIL PROTECTED]> wrote: > > On Saturday 26 May 2007 21:55:04 Jared Kuolt wrote: > > > The javascript > > > portion seems fine, however I would see media as a class, not as &

Re: Proposal: Generic newforms media

2007-05-28 Thread Luke Plant
ot;If you're not part of the solution, you're part of the precipitate." (Steven Wright) 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: + Important: Repent, Completely trust in God only and, Love Him with all of your heart.

2007-05-14 Thread Luke Plant
ly apologise on behalf of the Christians for this. (Apologising for what other people have done seems to be all the rage these days, why not me :-) Luke -- "DO NOT DISTURB. I'm disturbed enough already." Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk

Re: Ticket #648 -- {# comment goes here #} style comments

2006-09-12 Thread Luke Plant
original suggestion - comments are just too bulky at the moment to really use. But I'm not the one you need to convince. Some tests for your patch wouldn't go amiss, though I realise it's a pain writing tests for code when you don't know if it's going to be used. L

Re: (OT) Feel proud today, very very proud especially of 0.95 and MR

2006-08-31 Thread Luke Plant
slated the 'at' and the 'dot' for me (which I was about to do myself), leaving the correct e-mail address! Wow! (Sorry, I don't get out much) Luke -- "Pessimism: Every dark cloud has a silver lining, but lightning kills hundreds of people each year trying to

Re: Broken internal links e-mails

2006-08-29 Thread Luke Plant
y Communists at it again... :-) Luke -- Parenthetical remarks (however relevant) are unnecessary Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Broken internal links e-mails

2006-08-29 Thread Luke Plant
;User agent' to the information that is sent in the e-mail, so I could filter these. Is this OK? Is there any other information that other people would find helpful? Thanks, Luke -- Parenthetical remarks (however relevant) are unnecessary Luke Plant || L.Plant

Ticket 1400

2006-08-29 Thread Luke Plant
nnecessary 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 group, send email to django-developers

Re: Default escaping -- again!

2006-07-27 Thread Luke Plant
ight With Ron and Sid and Meg, Ron stole Meggie's heart away And I got Sidney's leg (THHGTTG) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Default escaping -- again!

2006-07-27 Thread Luke Plant
With Ron and Sid and Meg, Ron stole Meggie's heart away And I got Sidney's leg (THHGTTG) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: related object's fields in the admin options

2006-07-14 Thread Luke Plant
Gary Wilson wrote: > Please look at my original post, I am not trying to use a > get_last_name() method. Yes, sorry, I realised this just after I wrote that e-mail and wrote a better reply. Luke --~--~-~--~~~---~--~~ You received this message because you are su

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

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-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: 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

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: 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

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: 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: 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
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: 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: 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: 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: 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-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
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: 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: 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: 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: 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: 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: 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: 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
> 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: > 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: 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: 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: 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-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: 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

<    1   2   3   4   5   6   7   8   >