Re: Inline template rendering in admin shouldn't silence errors

2010-09-01 Thread Russell Keith-Magee
On Thu, Sep 2, 2010 at 2:30 PM, burc...@gmail.com wrote: > Hi Russell, > > I'd define >> {% for templ in template_list %} >>    {% include templ %} >> {% endfor %} > as a special case, for which special command or pattern should exist. > > Should it be > {% for templ in template_list %} >    {% tr

Re: Inline template rendering in admin shouldn't silence errors

2010-09-01 Thread burc...@gmail.com
Hi Russell, I'd define > {% for templ in template_list %} >    {% include templ %} > {% endfor %} as a special case, for which special command or pattern should exist. Should it be {% for templ in template_list %} {% try-include template %} {% endfor %} or the opposite to be called {% require

Re: Inline template rendering in admin shouldn't silence errors

2010-09-01 Thread Russell Keith-Magee
On Thu, Sep 2, 2010 at 1:42 PM, burc...@gmail.com wrote: > Hi George, > > I believe this is a bug since any other errors in admin (not related > to inlines) don't pass silently. > > Silencing errors should always be documented, especially if error is > silenced when DEBUG is turned on. > > So it's

Re: Inline template rendering in admin shouldn't silence errors

2010-09-01 Thread burc...@gmail.com
Hi George, I believe this is a bug since any other errors in admin (not related to inlines) don't pass silently. Silencing errors should always be documented, especially if error is silenced when DEBUG is turned on. So it's either documentation or implementation bug. By the way, does it show 50

Re: Inline template rendering in admin shouldn't silence errors

2010-09-01 Thread George Karpenkov
Dear Russell, I don't quite understand how an error in the admin template is different from the error in the inline template -- why one gets silenced and another one doesn't? Well if I am the only person who got repeatedly hit by that particular issue, then I guess I'll have to deal with that.

Re: SQLite support for FK constraints

2010-09-01 Thread Russell Keith-Magee
On Wed, Sep 1, 2010 at 10:29 PM, Ramiro Morales wrote: > Hi all, > > SQLite 3.6.19 from Oct 14 2009 added support for enforcing these > constraints. The relevant documentation is available at > http://www.sqlite.org/foreignkeys.html > > I've opened ticket [1]14204 with a initial patch. > > In shor

New Release of ibm_db_django(1.0.1)

2010-09-01 Thread Rahul
IBM_DB_DJANGO-1.0.1 --- IBM_DB_DJANGO adaptor enables access to IBM databases from Django applications http://www.djangoproject.com/. The adaptor is developed and maintained by IBM. What's New? - Fixed LIMIT constraint in select statement with

SQLite support for FK constraints

2010-09-01 Thread Ramiro Morales
Hi all, SQLite 3.6.19 from Oct 14 2009 added support for enforcing these constraints. The relevant documentation is available at http://www.sqlite.org/foreignkeys.html I've opened ticket [1]14204 with a initial patch. In short, the SQLite feature has the following particularities: * There is no

Re: Inline template rendering in admin shouldn't silence errors

2010-09-01 Thread Russell Keith-Magee
On Wed, Sep 1, 2010 at 2:03 PM, George Karpenkov wrote: > Steps to reproduce: > 1) Specify a custom admin class (say A) which mentions a custom inline > with a custom template, say "a.html" > 2) Write anything to "a.html" which will raise TemplateSyntaxError - > ie "{% extends "a.html" %} > 3) Obs

Re: contrib/admin/validation.py

2010-09-01 Thread Russell Keith-Magee
On Wed, Sep 1, 2010 at 6:41 PM, Gregor Müllegger wrote: > I ran into the same problem as George before. And it always hits when I try to > modify my admin pages in undocumented ways. So I would also be for some > changes in this area. > > But I think we cannot simply remove it. Most constraints ma

Re: contrib/admin/validation.py

2010-09-01 Thread Łukasz Rekucki
On 1 September 2010 08:15, George Karpenkov wrote: > The reasons are: > 1) Python does not have interfaces. It relies on "duck typing". This > file attempts to check whether the class follows the interface, yet in > a very naive way. Why hasattr() is a naive way? Using hasattr() to check for a giv

Re: contrib/admin/validation.py

2010-09-01 Thread Gregor Müllegger
I ran into the same problem as George before. And it always hits when I try to modify my admin pages in undocumented ways. So I would also be for some changes in this area. But I think we cannot simply remove it. Most constraints make much sense and usually help avoiding problems in your admin pag