Re: Django Error Display Page

2011-06-09 Thread Valentin Golev
What I'd really like is a stacktrace in a plain text in the html commentary ("") on the very top of the page. This really would save me from curl's output reading nightmare without losing all browser-understandable happiness On Jun 9, 6:16 pm, Idan Gazit wrote: > The technical 500 page does disp

Re: Permission Duplication

2011-04-28 Thread Valentin Golev
ren't huge discussions on it, let's think about how to make django more verbose, polite and useful using logging framework -- Valya Golev On Thu, Apr 28, 2011 at 9:41 AM, Carl Meyer wrote: > Hi Valentin, > > On 04/27/2011 10:33 PM, Valentin Golev wrote: >> 1. I've run

Permission Duplication

2011-04-27 Thread Valentin Golev
Hello! Two things, specific and more abstract: 1. I've run into something that seems like a bug. If it really is a bug, I'll file a ticket, if it's not, please clarify the behaviour, and, in this case, I think a better error message will be awesome. Basically, if there are two permissions for

Re: Broken .dates() method?

2010-11-27 Thread Valentin Golev
6, 2010 at 8:26 PM, Russell Keith-Magee > wrote: >> On Sat, Nov 27, 2010 at 9:23 AM, Russell Keith-Magee >> wrote: >>> On Sat, Nov 27, 2010 at 1:04 AM, Valentin Golev wrote: >>>> Hello >>>> >>>> One of my projects which is running on tru

Broken .dates() method?

2010-11-26 Thread Valentin Golev
Hello One of my projects which is running on trunk version of Django (not in production, of course) have been broken with recent updates. DatabaseError at /news/ : near "FROM": syntax error Django Version: 1.3 alpha 1 SVN-14719 /home/deploy/envs/fest/src/django/django/views/generic/dates.py in

Re: Class-based views

2010-11-05 Thread Valentin Golev
If using both mixins and decorators simultaneously is how Django going to work - I'll put up with it. -- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valyagolev.net +7 921 789 0895, avaiable 12:00-18:00 MSK 2010/11/5 Łukasz Rekucki > On 5 November 2010 16:

Re: Class-based views

2010-11-05 Thread Valentin Golev
I'm sorry, I misread it. Please mention form.instance field in "forms for models" docs somewhere. The gain is inheritance. If one of your view classes is intented to be subclassed and requires logging in, Mixins are natural solution, methinks -- Best Regards, Valentin Golev Lea

Re: Class-based views

2010-11-05 Thread Valentin Golev
with some recommendation). Like the one from my example, django.contrib.auth.decorators.login_required can be transformed into Mixin. Will it be? -- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valyagolev.net +7 921 789 0895, avaiable 12:00-18:00 MSK On Fri, Nov 5, 2010 at

Class-based views

2010-11-05 Thread Valentin Golev
Hello, I'm still playing with brand new class-based views. I think I'm not wrong about writing my experiences, questions and ideas so you developers could polish the API more (if I'm being useless here, sorry). My first question is, that is "the right way" to handle creation of objects with param

Re: new class based views

2010-10-20 Thread Valentin Golev
to defined functions, but, as I was told, these doubts were based on my poor understanding of how "super()" and mixins work. I totally agree with Łukasz about annoyance of decorating a dispatch() function. -- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valyagolev

Re: new class based views

2010-10-20 Thread Valentin Golev
cs and for "@on_dispatch()" decorators - are worth it. -- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valyagolev.net +7 921 789 0895, avaiable 12:00-18:00 MSK On Wed, Oct 20, 2010 at 3:25 PM, Russell Keith-Magee wrote: > On Wed, Oct 20, 2010 at 7:05 PM, Valen

Re: new class based views

2010-10-20 Thread Valentin Golev
-- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valyagolev.net +7 921 789 0895, avaiable 12:00-18:00 MSK On Wed, Oct 20, 2010 at 3:05 PM, Valentin Golev wrote: > As far as I know, I can just say: > > @login_required > class MyView(View): >   # ... > > si

Re: new class based views

2010-10-20 Thread Valentin Golev
great to add something about it to docs, since decorators is extremely wide-used feature. -- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valyagolev.net +7 921 789 0895, avaiable 12:00-18:00 MSK On Wed, Oct 20, 2010 at 2:59 PM, Russell Keith-Magee wrote: > On Wed

Re: new class based views

2010-10-20 Thread Valentin Golev
Awesome, thank you! I've asked about @login_required and class based views in django-users, and I'd like to ask here: are something like LoginRequiredMixin's planned? -- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valyagolev.net +7 921 789 0895, avaia

Re: ,new class based views

2010-10-19 Thread Valentin Golev
Sorry! I've hit "Enter" key accidentally while writing a subject. Don't blame me too much, please :) On 19 окт, 21:22, Valentin Golev wrote: > Hello -- You received this message because you are subscribed to the Google Groups "Django developers" group. To

new class based views

2010-10-19 Thread Valentin Golev
Hello, I'm trying to use brand new Class Based Views and I have a question about implementation. Let's take a look at SingleObjectMixin.get_object(): http://code.djangoproject.com/browser/django/trunk/django/views/generic/detail.py Why does it use function arguments, and not self.kwargs, while,

,new class based views

2010-10-19 Thread Valentin Golev
Hello -- 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 unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options,

,new class based views

2010-10-19 Thread Valentin Golev
Hello -- 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 unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options,

Re: filtering aggregation without filtering objects

2010-07-21 Thread Valentin Golev
That makes sense. While my proposal isn't made for a sake of proposing something, I see that I hardly can speed up implementing it without following your last advice and working on other Django ORM issues. I'm going to find out what I can do. Thanks. -- Best Regards, Valentin

Re: filtering aggregation without filtering objects

2010-07-21 Thread Valentin Golev
ver tried do it so I don't think they need to be shared now.) But my efforts don't matter if Django doesn't want such features. On 21 июл, 12:21, Russell Keith-Magee wrote: > On Wed, Jul 21, 2010 at 1:17 AM, Valentin Golev wrote: > > Hello, > > > There

filtering aggregation without filtering objects

2010-07-20 Thread Valentin Golev
haven't got the idea, refers to some parameter of object in the outer QuerySet all_users.annotate( latest_message=Message.objects.filter(user=Param('self')).latest() ) etc. What do you think about it? -- Best Regards, Valentin Golev Lead Developer r00, http://r00.ru http://valya