Re: "slice" xhtml content and keep it valid xhtml?

2006-09-27 Thread Luke Plant
rnally (default UTF8), so you might want to decode into unicode strings before slicing, then re-encode. Luke -- Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. Luke Plant || L.Plant.98 (at) cantab

Re: threadlocals with limit_choices_to in models

2006-09-27 Thread Luke Plant
ode, is fixed from the first time this module is imported. Whether the threadlocal middleware code has been called at all by this point may well depend on import order of the different bits and pieces. Luke -- Hofstadter's Law: It always takes longer than you expect, even when you tak

Re: Custom SQL in Q objects

2006-08-31 Thread Luke Plant
ould be pretty easy using the 'js' admin option. 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 || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~

Re: Generic relations and tags

2006-06-27 Thread Luke Plant
tag names. Would something like this do it? your_query_set.distinct().values('tag') Luke -- "Defeat: For every winner, there are dozens of losers. Odds are you're one of them." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~

OT: Re: ANN: Screencast demo of the WebFaction control panel

2006-06-22 Thread Luke Plant
Jay Parlar wrote: > Luke, which hosting plan are you using? I know that Shared 2 is the > minimum for Django, but I'm curious if it's "enough". I'm on shared 2, which seems to be fine for my needs. The main thing that would worry me is the amount of memory, so I haven't used any caching.

Re: ANN: Screencast demo of the WebFaction control panel

2006-06-21 Thread Luke Plant
a domain and 'went live' a few days ago was dead simple too -- everything was obvious and just worked. It's all very slick. Luke -- As Ralph Waldo Emerson once said, "I hate quotations." Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~-

Re: overriding-default-model-methods what am i doing wrong ?

2006-06-21 Thread Luke Plant
To debug, try making sure your code is actually being executed e.g. print statements or throwing exceptions at the relevant points. Luke -- As Ralph Waldo Emerson once said, "I hate quotations." Luke Plant || L.Plant.98 (at) cantab.net || htt

Re: Custom manager filter by logged in user.

2006-06-17 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 || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~--

Re: Generic views and "include"

2006-06-15 Thread Luke Plant
lso, you may have to modify your templates to refactor out the bit that can be included into other templates. Luke -- A dyslexic agnostic doesn't believe in Dog Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You rec

Re: problem with related foreignkey in model

2006-06-15 Thread Luke Plant
d rewrite the contents of the Cite field. Have fun! Luke -- "Adversity: That which does not kill me only postpones the inevitable." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this

Re: No such column error + tag question

2006-06-15 Thread Luke Plant
ttp://feh.holsman.net/articles/2006/06/03/django-contenttype Luke -- "Adversity: That which does not kill me only postpones the inevitable." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You rece

Re: Foreign keys and applications

2006-06-15 Thread Luke Plant
ich does not kill me only postpones the inevitable." (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 users" group.

Re: How to do named HTML anchors with Django?

2006-06-13 Thread Luke Plant
Yep, you need to spell it: /mypage/#foo Otherwise the CommonMiddleware will do a redirect to add the trailing slash that will strip the fragment. Luke -- I went to the Missing Persons Bureau. No one was there. Luke Plant || L.Plant.98 (at) cantab.net || http://

Re: MyFormWrapper.myfield works in {{}} but not {%%} ?

2006-06-13 Thread Luke Plant
d handled is the first word ('expr' in this case). It is the responsibility of the python code that is associated with 'expr' to parse the rest of the text inside {%%} as it sees fit. Luke -- I went to the Missing Persons Bureau. No one was there. Luke Plant || L.Plant.98 (at) cantab.ne

Re: Strange problems in 0.91

2006-06-12 Thread Luke Plant
; Or all filtering provided at application level? Django's ORM doesn't do any filtering in Python -- it generates the correct SQL and sends that to the database. Luke -- To iterate is human, to recurse, divine. L. Peter Deutch Luke Plant || L.Pl

Re: TEMPLATE_CONTEXT_PROCESSORS confusion

2006-06-10 Thread Luke Plant
- The probability of someone watching you is proportional 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 "D

Re: OT: Password checker

2006-06-10 Thread Luke Plant
it doesn't seem to depend on any libraries except standard C libs. Luke -- The probability of someone watching you is proportional to the stupidity of your action. Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You receiv

Re: Extending User model after magic-removal

2006-06-10 Thread Luke Plant
lit('.')[-2]" logic should exist in only one place. Other than that it seems quite good -- maybe you should create a ticket. Luke -- The probability of someone watching you is proportional to the stupidity of your action. Luke Plant || L.P

Re: Possibly new Django user questions

2006-06-10 Thread Luke Plant
pend on them in some way. There are SoC plans to make authorisation more modular though, or at least more capable. Luke -- The probability of someone watching you is proportional to the stupidity of your action. Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--

Re: TypeError adding an item in the Admin UI

2006-06-05 Thread Luke Plant
On Monday 05 June 2006 14:02, Chris H wrote: > The full error is: > TypeError at /admin/catalog/item/add/ > __deepcopy__() takes exactly 2 arguments (1 given) Adrian fixed it in svn, my bad sorry. Luke -- "Whoever calls on the name of the LORD will be saved." (Romans

Re: combining models in something like a queryset?

2006-06-05 Thread Luke Plant
ex on that view, you may be able to do an ORDER BY efficiently over the relevant column. I'm not sure though. Obviously it depends on your db supported indexed views. Luke -- "Whoever calls on the name of the LORD will be saved." (Romans 10:13) Luke Pla

Re: Django magic removal and access to user into template.

2006-06-05 Thread Luke Plant
o various model methods, since there is no other way to do this.] Luke -- "Whoever calls on the name of the LORD will be saved." (Romans 10:13) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received t

Re: how to use instance method in the validator_list of a field in model?

2006-06-01 Thread Luke Plant
emember how far it progressed. Obviously not as far as getting the manipulators to work that way. Luke -- "Trouble: Luck can't last a lifetime, unless you die young." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~

Re: Controlling Display of Foreign Key Input Fieldsets in Admin

2006-06-01 Thread Luke Plant
on a per model basis, which might be the best way of doing this. Luke -- "Trouble: Luck can't last a lifetime, unless you die young." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received

Re: how to use instance method in the validator_list of a field in model?

2006-05-31 Thread Luke Plant
fields etc here def validate(self): error_dict = super(Category, self).validate() # Do your validation here, adding to 'error_dict' # and then: return error_dict Luke -- "The truth will set your teeth free." (Calvin and Hobbes) Luke Plant ||

Re: Tagging app

2006-05-27 Thread Luke Plant
s imaginary. Please rotate your telephone by 90 degrees and try again." 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 users" gr

Re: Tagging app

2006-05-26 Thread Luke Plant
to a bit of a decline." (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 users" group. To post to

Re: Q behavior with filter() and exclude()

2006-05-26 Thread Luke Plant
ter that I went into a bit of a decline." (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 users"

Re: Please help this newbie

2006-05-26 Thread Luke Plant
Salvage wrote: > I understand when you say I cant build those sites without having > programing skills but are there no modules that are already pre-built > like print this article, comment on this article, send by email, most > popular etc. That one can call with some django tags or something

Re: Please help this newbie

2006-05-26 Thread Luke Plant
Salvage wrote: > I have never coded in python and even my knowledge of php is > limited(though I can install any script with php). But I see from the > news sites that are built with django, that it has all that i need for > newspaper/media sites. I want to know if I django can be installed in a

Re: Slicing [-1] on objects.all()

2006-05-26 Thread Luke Plant
Jay Parlar wrote: > Maybe a note should go into the db_api docs about -1 not working? I > did look at those docs before sending my original message, and didn't > see anything about that. I think it should throw an exception saying that negative indices are not supported (and even include a

Re: Tagging app

2006-05-26 Thread Luke Plant
arthur debert wrote: > ps: how is the GenericForeignKey going to work? will it be imported > from the tagging app's package, or will it go into trunk? There is no guarantee that any of this stuff will go into trunk at all - the core django devs would obviously have to be for it first. But the

Re: Tagging app

2006-05-26 Thread Luke Plant
Ivan Sagalaev wrote: > The single target means that one tag can't be used for different models? Yep, a single 'Tag' object is associated with just one target and one creator. However, you can easily tag different models and objects with the same bit of text. > I have chosen a different

Tagging app

2006-05-25 Thread Luke Plant
p the code and post it somewhere. 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 || L.Plant.98 (at) cantab.net || http://lukep

Re: does django go to 11?

2006-05-22 Thread Luke Plant
n very much any more. Luke X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.53.63 with SMTP id b63mr118065cwa; Mon, 22 May 2006 02:39:25 -0700 (PDT) X-Google-Token: EBWqpwwAAAB4EXIwnd4uBocvG1Cd6aYZ Received: from 217.67.53.216 by y43g2000cwc.googlegroups.com with HTTP; Mon, 22 M

Re: Best way to run dev and production site concurrently on same server?

2006-05-20 Thread Luke Plant
necessary Site objects and setting the SITE_ID option correctly in your settings files. Other than that I can't see any problems. Luke -- Parenthetical remarks (however relevant) are unnecessary Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ X-Google-Language: ENGLISH,UTF8

Re: Best way to do a dynamic sidebar?

2006-05-18 Thread Luke Plant
ars every time. Luke -- OSBORN'S LAW Variables won't, constants aren't. 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 u

Re: Problems with ForeignKey in magic-removal

2006-05-16 Thread Luke Plant
ottom 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 || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received

Re: How to prevent a page from being cached?

2006-05-13 Thread Luke Plant
dules: http://code.djangoproject.com/browser/django/trunk/django/views/decorators/cache.py http://code.djangoproject.com/browser/django/trunk/django/utils/cache.py Luke -- "Mistakes: It could be that the purpose of your life is only to serve as a warning to others." (despair.com) Luke Plant || L.Pl

Re: How to prevent a page from being cached?

2006-05-12 Thread Luke Plant
diocrity: It takes a lot less time, and most people don't realise until it's too late." (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

Re: Best practice for separating Model and Control?

2006-05-11 Thread Luke Plant
f it." (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 users" group. To post to this grou

Re: Admin Functionality Enhancement

2006-05-06 Thread Luke Plant
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/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: [MySQLdb] Could not load database backend: cannot import name ImmutableSet.

2006-05-06 Thread Luke Plant
ally 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/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Error creating SQL with string field containing a single quote.

2006-05-06 Thread Luke Plant
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/ --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Tutorial for MR

2006-05-05 Thread Luke Plant
ightly tricky problem... 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/ --~--~-~--~~~---~--~~ You received this message because yo

Re: Tutorial for MR

2006-05-04 Thread Luke Plant
On Wednesday 03 May 2006 23:52, Luke Plant wrote: > /myproject > /myapp > /models > __init__.py > foo.py > bar.py > > > In __init__.py, I have: > -- > from foo import Foo, SomeThingElse > from bar import

Re: Tutorial for MR

2006-05-03 Thread Luke Plant
I thought this should work, but I must admit that a quick test I did > just now completely failed. Wait for the Earth to turn a little more > on its axis: Luke Plant has a bit of experience in this area (every > time it broke, he screamed), so I think we are missing something > obvious.

Re: Send POST data for unchecked checkboxes

2006-05-01 Thread Luke Plant
On Monday 01 May 2006 21:47, Sam Tran wrote: > On 5/1/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > On Monday 01 May 2006 20:03, Sam Tran wrote: > > > I am having the problem described in ticket 1045: > > > http://code.djangoproject.com/ticket/1045 > > &

Re: Send POST data for unchecked checkboxes

2006-05-01 Thread Luke Plant
problem you are having is inherent in HTML forms, and the solution is to have a view function that knows what data should have been filled in. Luke -- "In my opinion, we don't devote nearly enough scientific research to finding a cure for jerks." (Calvin and Hobbes) Luke Plant || L.Pl

Re: Checking if ManyToManyField is empty in pre_save function

2006-05-01 Thread Luke Plant
table when you access it. It's impossible to evaluate .authorised properly until you have saved the object at least once. It would be possible to get Django to throw an exception in this case. What do people think about that? Luke -- "In my opinion, we don't devote nearly enough

Re: How can users only edit their own files?

2006-04-27 Thread Luke Plant
-- "I married Miss Right, I just didn't know her first name was 'Always'" 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 use

Re: ZeroToMany ForeignKey

2006-04-22 Thread Luke Plant
it was late in the day and so the gremlines might have taken > ahold. You need both null=True (for the database) and blank=True (for the admin) for this to work. Luke -- "If your parents never had children, the chances are you won't either." Luke Plant || L.Plant.98 (at) c

Re: mange.py sql weirdness in MR

2006-04-21 Thread Luke Plant
etup, except I don't have the 'Foo' model, just the 'Story' model. Of course, I do 'manage.py sql myapp', not just 'manage.py sql' - actually I normally just use django_admin.py. Luke -- "If you're not part of the solution, you're part of the precipitate." (Steven Wright) Luke Pla

Re: problem with model (manytomany related)...

2006-04-21 Thread Luke Plant
e1.get_publications_list() (NB - I think 'publications' is named confusingly - 'readers' would be better) My apologies if I made some mistakes - I've been using m-r for a while and forgotten what the syntax was like before... Luke -- "If you're not part of the solution, you're part of th

Re: Accessing custom managers in O2M2O / using RelatedManager

2006-04-19 Thread Luke Plant
> Am I approaching the problem in the wrong way? how can i access custom > manager functions for Bar, via baz? It throws an error complaining of > RelatedManager...how can I write my own RelatedManager? What error does it throw? Luke --~--~-~--~~~---~--~~ You

Re: possible to filter ManyToMany results?

2006-04-14 Thread Luke Plant
hod name to be 'get_articles_list' not 'get_article_list', since you defined it as 'articles = meta.ManyToManyField(Article)'. If you post the entire code for your models we may be able to find the problem. Magic-removal branch doesn't really change what is possible here, it just changes the syntax.

Re: A model which is recursively referring to itself in Magic Removal

2006-04-05 Thread Luke Plant
ing up with name automatically. The way it is at present allows you to write stuff like myobject.children.filter(..etc), rather than myobject.child_set Luke -- "Despair: It's always darkest just before it goes pitch black." (despair.com) Luke Plant || L.Plant.98 (at) canta

Re: Relationship with self with relationship data in app.py

2006-04-03 Thread Luke Plant
del). Have a look in tests/modeltests/mutually_referential/models.py in the source (these tests are a very good source for how to do stuff). Luke -- "Cross country skiing is great if you live in a small country." (Steven Wright) Luke Plant || L.Plant.98 (at) cantab.n

Re: Brain fried - need help with M2M and MR

2006-04-03 Thread Luke Plant
ry it out - it makes finding these things out really easy. Luke -- "Cross country skiing is great if you live in a small country." (Steven Wright) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this

Re: limit_choices_to

2006-03-29 Thread Luke Plant
r_id is None:' always failed. > Left a comment on the web site, Luke. Cheers - I responded on my blog. Luke -- "A man in love is incomplete until he is married. Then he is finished." -- Zsa Zsa Gabor, "Newsweek" Luke Plant || L.Plant.98 (at) c

Re: limit_choices_to

2006-03-29 Thread Luke Plant
tion is left as an exercise for the reader :-) Also, re: limit_choices_to - it wasn't working on m-r until r2547 (March 22), but it should be fixed now. Regards, Luke -- "A man in love is incomplete until he is married. Then he is finished." -- Zsa Zsa Gabor, "Newsweek" Luke Pla

Re: Virtual hosting and CommonMiddleware redirects

2006-03-28 Thread Luke Plant
On Wednesday 29 March 2006 00:33, Luke Plant wrote: > Hi, > > I'm using python-hosting which is working great so far. I've found > one problem with the way that CommonMiddleware does redirects. > Python-hosting give you your own apache instance, forwarding on > requests

Virtual hosting and CommonMiddleware redirects

2006-03-28 Thread Luke Plant
.' + old_url[0] -- "A man in love is incomplete until he is married. Then he is finished." -- Zsa Zsa Gabor, "Newsweek" Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message becaus

Re: trying to get my first app up.

2006-03-24 Thread Luke Plant
ted __init__.py files in the relevant directories? Luke -- A dyslexic agnostic doesn't believe in Dog 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: magick-removal: Two questions

2006-03-14 Thread Luke Plant
I in heaven but You? And there is none upon earth that I desire besides You." Psalm 73:25 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: using context_instance=DjangoContext(request) in generic view url.

2006-03-13 Thread Luke Plant
ay -- you don't have to do anything to achieve this. Luke -- "Where a person wishes to attract, they should always be ignorant." (Jane Austen) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received

Re: url config and generic views and non generic views.

2006-03-11 Thread Luke Plant
ine lists using just '+' 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 messag

Re: Can I pass a python iterator to a template?

2006-03-11 Thread Luke Plant
those options/variables. 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 mes

Re: login page

2006-03-10 Thread Luke Plant
> > Enter Username: > Enter Password: > You've duplicated 'username' there - it might be your problem (though it seems unlikely actually). Also make sure there isn't any redirection going on. You can check easily if you are running the development server by looking at the output on the

Re: Django in Boo

2006-03-04 Thread Luke Plant
t 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 || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are

Re: Ordering with respect to a function in models?

2006-03-03 Thread Luke Plant
l. After that I went into a bit of a decline." (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 users"

Re: Database API

2006-03-01 Thread Luke Plant
Field. Luke -- "Smoking cures weight problems...eventually..." (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 "Django users&qu

Re: Help with Generic Views in Magic Removal Branch

2006-02-25 Thread Luke Plant
l 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 "Django users" group. To post to this group

Re: Help with Generic Views in Magic Removal Branch

2006-02-25 Thread Luke Plant
t perhaps not in others. (Technically, it's to do with QuerySets caching their result for efficiency, and the fact that you don't want 'model.objects' to cache it's result). Luke -- Parenthetical remarks (however relevant) are unnecessary Luke Plant || L.Plant.98 (at) cantab.net || http://lukepl

Re: Help with Generic Views in Magic Removal Branch

2006-02-25 Thread Luke Plant
t know that much about it. 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 "D

Re: Help with Generic Views in Magic Removal Branch

2006-02-25 Thread Luke Plant
not sure all the generic views have been updated yet. I do know the above examples work. Luke -- Parenthetical remarks (however relevant) are unnecessary Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message

Re: ORDER BY on get_object?

2006-02-25 Thread Luke Plant
; ever guess at the structure of unknown code... You are right, it wouldn't be hard to change -- I was thinking about it in the wrong way. See Adrian's e-mail for an answer. Luke -- Parenthetical remarks (however relevant) are unnecessary Luke Plant || L.Plant.98 (at) cantab.net || http://luk

Re: ORDER BY on get_object?

2006-02-25 Thread Luke Plant
affect performance on a popular DB then there would some motivation to change this. Regards, Luke -- Parenthetical remarks (however relevant) are unnecessary Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this m

Re: Get list by Foreign Key when using generic views

2006-02-23 Thread Luke Plant
u are getting the 'account' object perhaps unnecessarily. Luke -- OSBORN'S LAW Variables won't, constants aren't. Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are su

Re: admin-logout + opera8.52?

2006-02-22 Thread Luke Plant
ed it with 8.51 . I get a logout screen but I'm not actually logged out. Logging out works correctly in at least Konqueror and Firefox. Luke -- O'REILLY'S LAW OF THE KITCHEN Cleanliness is next to impossible. Luke Plant || L.Plant.98 (at) cantab.net |

Re: forward references

2006-02-18 Thread Luke Plant
es first." (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 users" group. To post to this grou

Re: ForeignKey dropdown list in custom view

2006-02-18 Thread Luke Plant
end snip (or whatever). Luke -- "My capacity for happiness you could fit into a matchbox without taking out the matches first." (Marvin the paranoid android) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You re

Re: Request for ideas

2006-02-17 Thread Luke Plant
ning to others." (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 users" group. To post to this group, send email to

Re: Is context variable 'user' automatic in templates?

2006-02-11 Thread Luke Plant
t-djangocontext ) DjangoContext is used by all the generic views (including flatpage). If you want it in your own views, just use DjangoContext instead of Context, passing the 'request' object into the DjangoContext constructor. Regards, Luke -- Life is complex. It has both real and imaginary component

Re: How to find the label for a value

2006-02-11 Thread Luke Plant
-- Life is complex. It has both real and imaginary components. Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: displaying a foreign key in admin list and template exception

2006-02-11 Thread Luke Plant
omponents. Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: Problem using a related object in __repr__()

2006-02-01 Thread Luke Plant
ough to give him his diamonds back. (Zsa Zsa Gabor) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: new here and where/how/what to cache...

2006-02-01 Thread Luke Plant
should have side effects. So for adding a vote, you should use a POST request and this will always return a fresh page, so this example should work out fine. Luke -- I never hated a man enough to give him his diamonds back. (Zsa Zsa Gabor) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: Error when relating a model to another model more than once

2006-02-01 Thread Luke Plant
an enough to give him his diamonds back. (Zsa Zsa Gabor) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: Error when relating a model to another model more than once

2006-01-31 Thread Luke Plant
-- "Ineptitude: If you can't learn to do something well, learn to enjoy doing it poorly." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ -- "Ineptitude: If you can't learn to do something well, learn to enjoy doing it poorly." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: Question About Multi Column Keys

2006-01-31 Thread Luke Plant
eing able to specify an object to delete. Luke -- "Ineptitude: If you can't learn to do something well, learn to enjoy doing it poorly." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ -- "Ineptitude: If you can't learn to do something well, learn t

Re: broken link in templates_python

2006-01-19 Thread Luke Plant
we could come to a fairer compromise on the disambiguation front: from holt.skibinski import Luke as LukeH from plant import Luke as LukeP :-) Luke P -- 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) c

Re: broken link in templates_python

2006-01-18 Thread Luke Plant
d people in large groups." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: unordered_list... explanation?

2006-01-18 Thread Luke Plant
unable to understand it. It uses an empty list to indicate the end of a list, I'm not sure exactly why :-). There are more examples in the tests (under 'othertests'). Luke -- "Idiocy: Never underestimate the power of stupid people in large groups." (despair.com) Luke Plant || L.P

Re: extra context processors

2006-01-17 Thread Luke Plant
the trend setter :-) I guess it would depend on what kind of thing they contain i.e. do they relate to a certain app, or custom tag, or model. Luke -- "I asked mom if I was a gifted child. She said they certainly wouldn't have paid for me." (Calvin and Hobbes) Luke Plant || L.Plant

Re: Passing template tags template variables

2006-01-14 Thread Luke Plant
-- "He knows the way I take: when he has tried me, I shall come forth as gold" (Job 23:10). Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: Django and MS SQL

2006-01-10 Thread Luke Plant
ction). Luke -- "Dysfunction: The only consistent feature of all of your dissatisfying relationships is you." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: Using Change Manipulators to Update Only a Subset of Model Data

2005-12-30 Thread Luke Plant
rectly. Luke -- "A man in love is incomplete until he is married. Then he is finished." -- Zsa Zsa Gabor, "Newsweek" Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: weird template(?) error

2005-12-27 Thread Luke Plant
trips up when trying to do repr() over partly constructed objects (or something like that). Luke -- "Agony: Not all pain is gain." (despair.com) Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Re: Newbie needs help with real-world example...

2005-12-01 Thread Luke Plant
wouldn't have thought it was publicly available. Luke -- "The number you have dialed is imaginary. Please rotate your telephone by 90 degrees and try again." Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

  1   2   >