Re: HTTP Errors

2009-07-27 Thread Anton Bessonov
http/__init__.py describe Http404 Exception as: class Http404(Exception): pass You can make own Exception: class Http403(Exception): pass For 403 Response do you have HttpResponseForbidden in other Hand. Jonas Obrist schrieb: > I don't quite understand why I can raise a Http404 but

Re: HTTP Errors

2009-07-27 Thread Anton Bessonov
Using e.x. raise Http404 isn't clean solution. Is a very ugly shortcut. So you can return always a 404-view. All other unhandled errors given 500 - is general server error for _unhandled_ exception. Maybe I was wrong, but using exceptions is not pretty way. Jonas Obrist schrieb: > It probably

Re: NDjango - .Net port of Django template langauage

2009-09-22 Thread Anton Bessonov
Hello, if you need template engine only, then make more sence to port pure template engine such as jinja2. IMHO. Michael Feingold schrieb: > I am working on NDjango project. NDjango is a port of Django template > language to .Net. It is an open source project. If you are curious you > can get

Re: ANNOUNCE:- ibm_db_django-0.1.4 IBM Dataservers backend support for Django 1.1 Released

2009-11-07 Thread Anton Bessonov
Please don't write "ANNOUNCE". This make no sense and seems ugly. Tarun Pasrija schrieb: > Mistakably I have missed the What's New section so here is goes:- > > What's New?? > - > > This version has added support for the following- > - ZOS support included > - ibm_db google

Re: Which textmate django bundle?

2009-12-23 Thread Anton Bessonov
VIM. django-dev is for discussion of developing Django itself! zweb schrieb: > I see there are multiple django bundles for textmate. > > Which is the best one you recommend? > > -- > > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To

Re: can anybody help me whats the wrong...

2009-12-29 Thread Anton Bessonov
Hello, here is django-developers, not python-tornado ) 'chiru'tha schrieb: > Hi to all, > when i' running the helloworld example, i get this error.. But when i > remove the statements corresponds to the options.py module its > working fine.. > and one thing is when i run the same code with

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-15 Thread Anton Bessonov
Hello, It's a false place. All what you need - one Model for Settings. if SettingsModel.objects.get(code='guest_can_comment'): can_post else: cant_post You can wrap this in one decorator function. Harro schrieb: Because the authentication backend now allows for role based permissions you

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-15 Thread Anton Bessonov
No. You need row based permissions if You will limit User(!) rights. For example user can edit entries with FK 2. See http://code.djangoproject.com/wiki/RowLevelPermissions But AnonymousUser (Guest) don't have any permissions. It's a special and that the guest can - it's not a permission -

Re: AnonymousUser has_perm/has_module_perms function check authentication backends

2010-01-17 Thread Anton Bessonov
Why wouldn't a AnonymousUser have permissions? Basically, this is senseless. For some photo's you might want to disable rating and/ or commenting. How often it is required to the user? In 99% of cases it is enough specify in an album "can" or "can not". It's really overkill of

Re: 1.3: Start deprecating mod_python?

2010-06-23 Thread Anton Bessonov
Hey folks, While people are throwing around 1.3 ideas... I think we should start the process of deprecating and removing support for mod_python. Why? * mod_wsgi is better in every way. And? Jinja2-Template Engine is every way better as Django Template Engine. Drop DJango Template Engine

Re: About the django-core mailing list

2010-09-09 Thread Anton Bessonov
+1. Explaining existence of private core-list is needless. But also +1 for other points in Eric's presentation. Thanks Jacob, I don't understand why we are discussing about it. It's quite obvious that if there is a core team, there's also a mailing list. S -- You received this message

Re: About the django-core mailing list

2010-09-09 Thread Anton Bessonov
I disagree. Although it is normal for a project to have private mailing lists, such as -security You disagree, but it is normal? Decide for you first. I'm very glad Jacob took the time to explain the need for its presence in Django. There is a difference about knowledge of the confidential

Re: About the django-core mailing list

2010-09-09 Thread Anton Bessonov
I would say that any information on why a structure exists is good. There is no difference have developers a confidential list, a chat or they communicate by phone, right? It has no relation to structure. It is a natural way for the decision not public problems. -- You received this