Hi there!.
I have looked to migrate my project from 0.91 to MRT, b/c expecting
some problem with template and manipulator classes inheritances. E.g.
for example, template "add" extends "base", and template "edit"
extends "add"; if we  visit first an URL which matched to
myapps.views.add function (with returns render_to_response('add',
base_context) and second visit an URL which matched to
myapps.views.edit functions which returns render_to_response('edit',
base_context), we will see page as if myapps.views.edit returns
render_to_response('add', base_context) (but code executed from
myapps.views.edit, I hae check). Restarting server and visiting "Edit"
URL again, will display "Edit" page ok. If I change "Edit" template to
be extended "base" (copy needed html code from "Add" template and add
"Edit" specific code), then problem disappeared.

Same problem with manipulator class inheritances:
Manipulator "Add"  inherited from "Manipulator" and introduced
validator isSomeFieldValid. Manipulator "Edit"  inherited from "Add"
and redefined validator isSomeFieldValid.
First visit the "Add" page (not even user click submit button in form).
Second visit the "Edit" page, fill the fields and click submit. User
will see error from Add.isSomeFieldValid (with my trying to debug
problem Edit.isSomeFieldValid does not raise any exception. Its look
like django lanched Edit.isSomeFieldValid and next
Add.isSomeFieldValid. Problem solved by removing inheritance "Edit"
from "Add" and moving common code to third party module wich used in
both "Add" and "Edit".

Probem exists with djando-admin.py runserver and with FastCGI mode under apache.

So for avoiding these problems I have looked to migrate to MRT.
Anybody know is construction
  Entry.objects.filter(
    headline__startswith='What').exclude(
        pub_date__gte=datetime.now()).filter(
            pub_date__gte=datetime(2005, 1, 1))

translated to a single SQL query with WHERE clause? E.g. to something like
SELECT * FROM table_name WHERE headline LIKE 'What%' AND NOT pud_date
>= '2006-06-11 19:08:17' AND pub_date >= '2005-01-01 00:00:00'.
Or all filtering provided at application level?

-- 
Andrew Degtiariov
DA-RIPE

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to