Re: Long-term direction for shortcuts

2009-08-04 Thread Ulrich Petri
Am 04.08.2009 um 18:31 schrieb Daniel Pope: > > 2009/8/3 Jacob Kaplan-Moss : >> 1. Propose a new shortcut function. Bonus points for a patch. > > In all my projects I use a file of my own shortcuts: > > http://dpaste.com/hold/75120/ > There is also django-annoying [1] which

Re: Long-term direction for shortcuts

2009-08-04 Thread Daniel Pope
2009/8/3 Jacob Kaplan-Moss : > 1. Propose a new shortcut function. Bonus points for a patch. In all my projects I use a file of my own shortcuts: http://dpaste.com/hold/75120/ NB. I knew as I wrote the MAGICTEMPLATE shortcut that I would never actually use it. The idea was

Re: Long-term direction for shortcuts

2009-08-04 Thread Alex Gaynor
On Tue, Aug 4, 2009 at 4:52 AM, Simon Willison wrote: > > On Aug 3, 3:53 am, chairface wrote: >> Also, it is only a single video, but that video >> is a pretty good resource for the topic of Django's future.  It was >> the topic of the entire

Re: Long-term direction for shortcuts

2009-08-04 Thread Simon Willison
On Aug 3, 3:53 am, chairface wrote: > Also, it is only a single video, but that video > is a pretty good resource for the topic of Django's future. It was > the topic of the entire hour. Are you implying that it's a poor > source for people wondering where Django is

Re: Long-term direction for shortcuts

2009-08-03 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > As a general process, I'm inclined to think it's the wrong direction -- > making namespaces larger and larger. That way lies PHP or web2py. Having read your replies in this thread I refrain from speaking about general directions :-). This one was about particular

Re: Long-term direction for shortcuts

2009-08-03 Thread Malcolm Tredinnick
On Mon, 2009-08-03 at 10:06 +0400, Ivan Sagalaev wrote: > Brent Hagany wrote: > > The issue of making shortcuts better (and decreasing the number of > > imports in views.py files) was brought up at DjangoCon > > Another angle on the issue of reducing imports is that we can do it not > with

Re: Long-term direction for shortcuts

2009-08-03 Thread Ivan Sagalaev
Brent Hagany wrote: > The issue of making shortcuts better (and decreasing the number of > imports in views.py files) was brought up at DjangoCon Another angle on the issue of reducing imports is that we can do it not with shortcuts only but by packing some smaller modules into larger ones.

Re: Long-term direction for shortcuts

2009-08-02 Thread chairface
On Aug 2, 9:50 pm, Jacob Kaplan-Moss wrote: > On Sun, Aug 2, 2009 at 8:05 PM, Brent Hagany wrote: > > But, just to be explicit, I don't want to > > limit the discussion just to that patch, or to render_to_response or > > any particular shortcut.  

Re: Long-term direction for shortcuts

2009-08-02 Thread Jacob Kaplan-Moss
On Sun, Aug 2, 2009 at 8:05 PM, Brent Hagany wrote: > But, just to be explicit, I don't want to > limit the discussion just to that patch, or to render_to_response or > any particular shortcut.  First, we should discuss the larger issue of > whether technically unnecessary

Re: Long-term direction for shortcuts

2009-08-02 Thread chairface
On Aug 2, 9:14 pm, Malcolm Tredinnick wrote: > Simon has not justified why his particular preference for imports > necessarily meets even the common case and why he, or somebody else, > cannot put their own choices for common imports into a single that they > import

Re: Long-term direction for shortcuts

2009-08-02 Thread Malcolm Tredinnick
On Sun, 2009-08-02 at 18:53 -0700, chairface wrote: > On Aug 2, 8:36 pm, Malcolm Tredinnick > wrote: > > On Sun, 2009-08-02 at 18:05 -0700, Brent Hagany wrote: > > > > Putting too much weight on more or less throwaway comments in a single > > video isn't going to be

Re: Long-term direction for shortcuts

2009-08-02 Thread chairface
On Aug 2, 8:36 pm, Malcolm Tredinnick wrote: > On Sun, 2009-08-02 at 18:05 -0700, Brent Hagany wrote: > > Putting too much weight on more or less throwaway comments in a single > video isn't going to be particularly useful. They didn't seem to be "throwaway" to me -

Re: Long-term direction for shortcuts

2009-08-02 Thread Malcolm Tredinnick
On Sun, 2009-08-02 at 18:05 -0700, Brent Hagany wrote: [...] > If you watch the video, there was some disagreement with the idea > right from the start. Putting too much weight on more or less throwaway comments in a single video isn't going to be particularly useful. > The ticket that grew

Re: Long-term direction for shortcuts

2009-08-02 Thread chairface
Thanks Alex, I should have explicitly mentioned that rather than letting the video take care of it. I'm rather ambivalent on the common import location myself, but I am in very in favor of his stated reason for it: reducing the number of imports. I think good shortcuts can get us a lot of the

Re: Long-term direction for shortcuts

2009-08-02 Thread Alex Gaynor
On Sun, Aug 2, 2009 at 8:05 PM, Brent Hagany wrote: > > Hello Django devs, > > The issue of making shortcuts better (and decreasing the number of > imports in views.py files) was brought up at DjangoCon, and now that > 1.1 is out the door, I would like to spark some

Long-term direction for shortcuts

2009-08-02 Thread Brent Hagany
Hello Django devs, The issue of making shortcuts better (and decreasing the number of imports in views.py files) was brought up at DjangoCon, and now that 1.1 is out the door, I would like to spark some discussion on what direction (if any) Django should take on the subject. (Relevant video