Re: admin: suggestions for how to warn users that an object is being viewed for editing

2007-06-22 Thread ToddG
One approach: optimistic locking. http://en.wikipedia.org/wiki/Optimistic_concurrency_control Rails has an implementation you could look at for an example, likely simpler to read than something like Hibernate... not sure how/if anything could be hooked/monkey'd into the django-admin though. --

Re: In-line Comments

2007-08-21 Thread ToddG
Don't know if you're only looking for a django solution, but if you just need something that (AFAIK) works, this might do it: http://www.futureofthebook.org/commentpress/ thin layer over Wordpress to allow comments similar to djangobook, but in the sidebar instead of fancy little popup windows.

Re: ANN: Making some changes to djangoproject.com

2007-09-07 Thread ToddG
> These changes are in preparation of some exciting news, but I'll leave > y'all in suspense until next week. You're rewriting Django in Java! Finally, enterprise capability! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Will there be a django 0.97 release ?

2007-11-10 Thread ToddG
On Nov 9, 6:41 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > then. It's very time consuming to go around again on this topic (in > fact, it will slow down the next release, and I gather people in this > thread want that as soon as possible). I don't think (at least hope) that people in gene

Re: Child Category Views

2006-11-09 Thread ToddG
I think you can just use: def entries_by_category(request, slug, childslug=None) with your first urlpattern and then switch on childslug, i.e. if it's set or not. Also you're prob already looking at this but http://www.djangoproject.com/documentation/url_dispatch/#named-groups should help if

Re: Django developers NYC???

2006-11-16 Thread ToddG
Take a look at his email address --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email t

Re: Root URI in templates

2006-06-13 Thread ToddG
I don't know the status but read this to see some past thoughts on the topic: http://groups.google.com/group/django-developers/browse_thread/thread/a5d12bc4fb073f24/83d7e4cb5f35ed08 There are other threads pre-dating that one as well... --~--~-~--~~~---~--~~ You

Re: How to re-use the admin contrib ?

2006-06-16 Thread ToddG
This sorta question pops up often, and as far as I've been able to tell the answer is "you can't" really, without writing the admin views (controllers) yourself. You might still be able to use some of the underlying functionality, but for the interface it seems to me you've gotta write that code.

Re: Custom manager filter by logged in user.

2006-06-17 Thread ToddG
But Luke *is* proposing to do this in a manager. The middleware just makes the current user available in the model/manager. (if you want it to be) Rather than a hack, the functionality that his middleware module provides seems to me a missing part in a mostly very pragmatic codebase, but I digres

Re: Custom manager filter by logged in user.

2006-06-17 Thread ToddG
Just curious -- so now you're going to tie your middleware to the model? ;-) The MV(C|T) police will come after you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Is Django the framework I've been looking for?

2006-07-21 Thread ToddG
Elver Loho wrote: > In CherryPy, every "directory" of the website is mapped to a class > with its exposed methods being the "files" in that directory. It's a > godsend as you can write any kind of functionality (shopping cart, > blog, whatnot) into a class or two and plop it anywhere else. Very >

Preview updates from auto-admin(?)

2006-07-29 Thread ToddG
Hi all- Is there any way to preview updates in the auto-admin? From what I can tell the answer is "no". The use case I'm referring to is say an editor needs to update information on the "contact us" page, which is already published, and they want to make sure they got their formatting and HTML c

Re: Forcing a view to expire from cache

2006-08-12 Thread ToddG
Maciej, you mentioned "turned on the caching" -- that sounds like using the caching middleware, not the view-level cache functionality. Or am I guessing wrong? To my understanding if you need to be able to manuallly get and clear cached pages you'll need to use the view level caching, not the mid

Re: Forcing a view to expire from cache

2006-08-12 Thread ToddG
I think I didn't get the whole picture before; reading the docs and source a bit more, it looks like you can't manually get/set/clear (decorator) cached views. The view-level decorator basically applies/restricts the middleware functionality to a specific view instead of all views (or just excludi

Re: libraries for common tasks, tinymce, mochikit

2006-08-19 Thread ToddG
I think this sounds like an ideal solution to handling common needs and requests that don't belong or aren't wanted in django core/contrib. Over time if certain libs or functions prove esp. useful they could be "promoted" to the distribution if wanted (by core committers). Just because something

Re: Calling templates within templates - a'la Mason

2005-12-12 Thread ToddG
Just on the very unlikely chance you're not aware of it, Myghty is Mason++ implemented in Python, and would probably let you work as you did with Mason (if you want to). http://www.myghty.org/

Re: Calling templates within templates - a'la Mason

2005-12-13 Thread ToddG
I don't know that one would want to hook them together -- I just thought if the OP wanted to develop in a similar style to Mason but using Python, Myghty would be the obvious path to take. Myghty has lots of parts, which might be usable with other frameworks, I honestly don't know it well enough

Re: Comments on Ruby code slides from Snakes and Rubies?

2005-12-15 Thread ToddG
If anyone is interested in more on this very topic: http://blog.ianbicking.org/more-on-python-metaprogramming.html Same discussion as here.

Re: Upgrading models...

2006-01-19 Thread ToddG
Re: Upgrading models... [without blowing away existing data] Maybe mix your languages? http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations

Re: RoR Ajax helpers port to Django tags?

2006-01-20 Thread ToddG
For a head start take a look here: http://pylonshq.com/project/pylons/browser/RailsHelpers Pylons being an in-development python "mega" framework (not a fan of that term!). I don't know anything of licensing or credit issues, but they're ported from Rails, so... maybe ask Ben over there, he did

Re: editing multiple records

2006-01-24 Thread ToddG
> The Django admin site can't do that out of the box, but you could > create your own custom views that do that. I'm wondering when you say this, do you mean within the generated admin interface, or without using the auto-admin functions? This is an area I've long been a bit hazy on -- whether o

Upcoming project... 0.91 or svn or magic-removal?

2006-02-08 Thread ToddG
Hi all - I know nobody wants to hear "when will it be done" type questions, so I hope this isn't annoying. I'm going to be starting a project in the next few weeks, and I was wondering what people recommend building on at this point. I've been exploring with the svn of trunk, but I'm not sure on

Re: Upcoming project... 0.91 or svn or magic-removal?

2006-02-08 Thread ToddG
Thanks guys. I'm familiar enough to be confused as to which to use, and to know changes are happening in lots of spots, but not familiar enough to know exactly where and when. Part of the fun I guess!

Re: Upcoming project... 0.91 or svn or magic-removal?

2006-02-08 Thread ToddG
Right, I just really can't get a sense of how far off 0.92 (assuming that's the merge) is. I'm not sure how (if) the milestones in trac reflect the status of 0.92/magic merge. If it's roughly in the next few weeks that (magic-removal) would seem to be the obvious choice. I didn't want to make any

Re: Overthinking urls.py?

2006-03-27 Thread ToddG
Perhaps for a rainy day (very future release): http://routes.groovie.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To u

Re: Overthinking urls.py?

2006-03-30 Thread ToddG
I'm not sure if this was earlier missed or ignored by people [nobody explictly ruled it out], I can't help but think Django's URL handling will either drift towards re-implementing Routes: http://routes.groovie.org/ or staying as it is. (note the lastest version has a nice feature where you can p