Re: Any reason for Field subclasses calling super on get_db_prep_save?

2008-05-28 Thread Alex Koshelev
Today it may be empty, but tomorrow there can appear some useful code. So I think its better to follow that style. On May 29, 12:57 am, "Leo Soto M." <[EMAIL PROTECTED]> wrote: > I see that almost all Field subclasses which implements > get_db_prep_save end calling Field.get_db_prep_save anyway.

Re: Any reason for Field subclasses calling super on get_db_prep_save?

2008-06-01 Thread Alex Koshelev
And rewrite it in every project?! No, thanks. I'd like to write it now and have no troubles in future at all. On Jun 2, 9:12 am, "Leo Soto M." <[EMAIL PROTECTED]> wrote: > On Wed, May 28, 2008 at 5:08 PM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > On May

Re: Django releases

2008-06-09 Thread Alex Koshelev
I think that it is better way to write code and produce 1.0 as soon as possible then to write tons of text that doesn't help in it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

Re: Django community aggregator and non-English posts

2008-06-13 Thread Alex Koshelev
It is not a problem. Just skip non-English posts at all. English is international language of cource but not the one. On Jun 13, 7:58 pm, "Tom Tobin" <[EMAIL PROTECTED]> wrote: > The Django community aggregator includes non-English posts, which are > unfortunately pure noise for those of us who d

Re: Django community aggregator and non-English posts

2008-06-13 Thread Alex Koshelev
And when does author write in number of languages? On Jun 13, 8:41 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: > siudesign wrote: > >http://www.djangobrasil.org/< Not in English. > > > Huge -1 > > > If people want to post in their own language they can. Having a feed > > split up by languages mi

Re: Django community aggregator and non-English posts

2008-06-13 Thread Alex Koshelev
There is existing multi-lingual aggregator http://djangosearch.com/ On Fri, Jun 13, 2008 at 9:07 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > > This whole thing reminds me of something I've had rattling around in > my head for a while, and maybe now's the time to bring it to the > group. In addi

Re: Django community aggregator and non-English posts

2008-06-13 Thread Alex Koshelev
-100 Non-English post isn't noise! Some English posts has more less profit then non-English ones. On Fri, Jun 13, 2008 at 9:07 PM, Tom Tobin <[EMAIL PROTECTED]> wrote: > > On Fri, Jun 13, 2008 at 12:02 PM, Arien <[EMAIL PROTECTED]> wrote: > > > > The non-English posts are clearly useful to the

Re: QuerySetPaginator object_list type check?

2008-06-29 Thread Alex Koshelev
Regular `Paginator` is for any sequence of object (it calls `len` for count). `QuerySetPaginator` is for `QuerySet` objects. Find the right choice must developer itself. Its easy:) On Jun 29, 4:54 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I just spent a while chasing my tail because I

Re: Some ideas about AUTH_PROFILE_MODULE (tickets: #7584, #7592 and #7400)

2008-07-02 Thread Alex Koshelev
May be better way to use ``OneToOneField`` with proper ``related_name`` like "profile" for example. Than profile can be accessed very simple ``user.pofile``. and its creation machinery leave to profile app author? On Jul 2, 12:38 pm, David Danier <[EMAIL PROTECTED]> wrote: > This basically starte

Re: post_save signal triggered twice

2008-07-25 Thread Alex Koshelev
You register same handler twiсe. Check the way you import your modules. On Jul 25, 6:10 pm, "Alex Rades" <[EMAIL PROTECTED]> wrote: > Hi, > is there a non-obvious reason for signals like post_save being > triggered twice for each save? --~--~-~--~~~---~--~~ You rec

Re: Denormalisation, magic, and is it really that useful?

2008-09-26 Thread Alex Koshelev
Hi, guys! For a long time I have thoughts to make composition/denormalisation a little bit easier and reusable. But I have no time to implement my ideas. Inspired by Anrew's blog post and its thread I recently wrote some code. And I think that it really may be useful and cover most of denormalisa

Re: Denormalisation, magic, and is it really that useful?

2008-09-26 Thread Alex Koshelev
Hi, Erik. The main purpose is to have declarative form of composition field calculation definition. Not to write imperative actions/signal connection/etc. I've made only flexible generic solution. In future I plan to write high-level subclasses that will can with minimal input parameters make al

Re: Static vs variable test fixtures

2008-10-13 Thread Alex Koshelev
After `testFOO` method call test case flushes all data in database. So if you want to add some logic at this stage - flushing procedure may take a lot of time and you will get no speed improvements. On Oct 14, 5:18 am, Simon Litchfield <[EMAIL PROTECTED]> wrote: > Reloading of fixtures for each t

Re: Improving Errors from manage.py

2008-11-17 Thread Alex Koshelev
Try to use `--traceback` switch that prints exception's traceback On Tue, Nov 18, 2008 at 00:41, David Cramer <[EMAIL PROTECTED]> wrote: > > I've been trying to dump some data to fixtures for the last couple > days, and I've ran into various problems each time. It's been quite > difficult each t

Re: New Patterns Idea

2008-11-26 Thread Alex Koshelev
And what are the benefits? On Wed, Nov 26, 2008 at 16:36, Alexander Lyabah <[EMAIL PROTECTED]>wrote: > > I am already posted it on Django Snippets > http://www.djangosnippets.org/snippets/1218/ > > I want to introduce my idea about url resolving in Django. > > It can be useful for using object-o

Re: Admin Site

2008-12-17 Thread Alex Koshelev
Something wrong with your code (maybe ib site.site_app.view) or third-party code that you use. Django has no entity with name `activeAccount`. On Wed, Dec 17, 2008 at 20:26, samira wrote: > > I renamed my project, but no diffrent. it seems something is wrong in > admin templates. > > On Dec 17

Re: Order of models metaclass __new__ dict

2009-01-11 Thread Alex Koshelev
I can write a short overview: Each model field(or form field) is marked by special counter while model(or form) is loading. Then in metaclass fields are sorted by that counter. I've recently written the blog post about this staff but its in Russian language. Overwise you can look at code snipp

Re: User Authentication without password

2009-02-23 Thread Alex Koshelev
You have to write your own authentication backend [1] with any credentials you need. [1]: http://docs.djangoproject.com/en/dev/topics/auth/#writing-an-authentication-backend On Tue, Feb 24, 2009 at 6:52 AM, dannyr wrote: > > > Is there a way to force authentication for a user without a password

Re: User Authentication without password

2009-02-23 Thread Alex Koshelev
And of course this topic is for django-users@ not developers. On Tue, Feb 24, 2009 at 10:33 AM, Alex Koshelev wrote: > You have to write your own authentication backend [1] with any credentials > you need. > > [1]: > http://docs.djangoproject.com/en/dev/topics/auth/#writing-an

Re: Why the request.get_full_path() returns empty string

2007-12-10 Thread Alex Koshelev
Because this method overloaded in subclasses of HttpRequest On 10 дек, 12:52, David Reynolds <[EMAIL PROTECTED]> wrote: > On 10 Dec 2007, at 5:35 am, Eratothene wrote: > > > Don't bother I have just figured out why. > > Can you say why, just for completeness of the archives? > > Thanks, > > David

Re: Generic Relation: Alter Table

2007-12-20 Thread Alex Koshelev
See CREATE sql statements for example On 20 дек, 15:52, madhav <[EMAIL PROTECTED]> wrote: > as a part of using generic relations, i got struck up at one point, > where i need to run the sql to have a field: > summary = generic.GenericRelation(Summary) > > where Summary is a class defined as: > c

Re: Generic Relation: Alter Table

2007-12-20 Thread Alex Koshelev
It's normal behaviour:) GenericRelation is just "fake" field that doesn't produce real table field On 20 дек, 16:23, madhav <[EMAIL PROTECTED]> wrote: > I did it, but its not showing up the new field(which is "summary" in > my case) in the Create Statement, nor is at the Alter table part. > > On

Re: Should manage.py startapp create a urls.py file?

2008-02-04 Thread Alex Koshelev
No, only startproject creates project-wide urls.py On 4 фев, 20:53, "Rob Hudson" <[EMAIL PROTECTED]> wrote: > If it's common advice to make apps portable and bundle urls along with > an app, shouldn't manage.py startapp also drop in a default urls.py > file? > > I realize it's simple to create a

Re: Adding InnoDB table engine to sql.py create table statements

2008-03-24 Thread Alex Koshelev
Hi, ro60 There is no need in such setting. Just now you can set table engine to entire database or in settings.py per-connection with DATABASE_OPTIONS = {"init_command": "SET storage_engine=INNODB" } On Mar 25, 5:37 am, ro60 <[EMAIL PROTECTED]> wrote: > Wanted to see what everyone thinks about

Re: GSoC proposition - djangosearch backend

2008-03-31 Thread Alex Koshelev
Do you see: - http://code.djangoproject.com/wiki/TextIndexingAbstractionLayer - http://code.google.com/p/djapian/ - http://code.google.com/p/django-sphinx/ ? On Mar 31, 8:39 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > My name is Grzegorz Swierad and I am interested in participati

Re: Middleware class vs decorators (proposal?)

2008-04-13 Thread Alex Koshelev
Hi, Amit! Check this utils function: http://code.djangoproject.com/browser/django/trunk/django/utils/decorators.py#L9 On Apr 13, 3:05 pm, "Amit Upadhyay" <[EMAIL PROTECTED]> wrote: > Hi, > > I was wondering about the reason that middleware classes were used instead > of decorators to implement

Re: Want to have unit tests in multiple files

2008-05-06 Thread Alex Koshelev
No. Not `tests.py`, but `tests` module - that can be a package of many other modules/files On May 7, 12:21 am, Steve <[EMAIL PROTECTED]> wrote: > Hi, we're just getting started using Django unit tests, and it looks > like the documentation says you can only have unit tests in two files: > models.