unicode issues in multiple tickets (#952, #1356, #3370) and thread about Euro sign in django-users

2007-03-23 Thread dummy
Hi, I came across thoes tickets and the corresponding thread just yesterday and as fas as I understood the main problem is that newforms ist talking unicode internally and at the interface to the django-ORM. I attached my solution to this problem for django.newforms.models (diffed against late

Re: proposal: helper functions for validation

2007-09-09 Thread dummy
Hi, since your assert-function won't be like assert in python or UnitTests, you mix semantics nobody knows everywhere else. Please remember that assert Statements have special meanings depending on __DEBUG__ http://docs.python.org/ref/assert.html http://pyunit.sourceforge.net/pyunit.html#TESTC

new field idea

2006-07-16 Thread dummy
Hi django-developers, I had the need for a field type similar to USStateField: an OlympicNationField which takes 3 uppercase letters to the official olympic nation abbrevation. Maybe this is generic enough to go into django.db.models.fields ? I attach my solution. Regards, Dirk -- "Feel free

Re: new field idea

2006-07-17 Thread dummy
Hi django-developers, a generic api for registration of new fields would be a good idea. As IOC, FIFA and ISO-3166 codes are not the same this won't help me: http://en.wikipedia.org/wiki/Comparison_of_IOC%2C_FIFA%2C_and_ISO_3166_country_codes But IOC, FIFA and ISO-3166 should have the same api.

django and LDAP support

2006-08-01 Thread dummy
Hi all, I read a lot about django's auth system and the AUTHENTICATION_BACKENDS middelware. I also googled the following resources for LDAP support in django: http://code.djangoproject.com/wiki/MultipleAuthBackends http://www.jrandolph.com/blog/?p=22 http://www.carthage.edu/webdev/?p=12 Are th

Re: Convince us to continue using setuptools

2006-08-02 Thread dummy
Hi all, I wondered what essential function of setuptools is used and I think that only find_packages() is neccessary. Try the following patch for setup.py and a MANIFEST.in If this works for you, than I won't suggest setuptools bundled with Django. I tested the following usecases: python setu

Re: django and LDAP support

2006-08-11 Thread dummy
Hi Scott, I came back to your LDAPSupport. The pre_auth_bind is a little bit tricky evan with mk_pre_auth_bind, but I got it (after a while :) And there seems a problem with pre_auth_bind() and update_user(): You let construct somebody a pre_auth_bind() which search for the dn of a user, but

Re: django and LDAP support

2006-08-12 Thread dummy
Hi Scott, for sure I understand now why you need a second search on update_user() and with the defaults for mk_pre_auth_bind those two searches should be the same. A security question about get_ldap_user() def get_ldap_user(l, username): """ Helper method, makes a user obje

big picture of middelware

2006-08-12 Thread dummy
Hi all, I read the middelware documentation on http://www.djangoproject.com/documentation/middleware/ and try to get a big picture of understanding. I also looked into the django/core/handler/base code. 1. incoming request is processed by each Middleware.process_request until a middleware re

admin/doc for templates ?

2006-08-13 Thread dummy
Hi all, is there a reason why in the admin/doc templatetags, filters and views are accessible but templates are not ? Was it only not done until yet ? How could it be done ? Regards, Dirk -- Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://w

Re: admin/doc for templates ?

2006-08-14 Thread dummy
Hi Adrian, > I'm not sure what sort of template documentation we could add. Would > it just be a list of all the available templates, or what? what about where exactly the template is located ? I had a problem that the same template was located in different places and I didn't know that. what

Re: Re: admin/doc for templates ?

2006-08-14 Thread dummy
Hi James, James Bennett schrieb: > On 8/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> what about the loaded templatetag-sets and where they are located ? > > Template tag libraries already get picked up, and if they've got > docstrings those should be displayed. I mean which templatetag

Re: admin/doc for templates ?

2006-08-15 Thread dummy
Hi Adrian, > > This sounds like a great addition to the automatic admin > documentation. Would you be willing to code up the patch? I don't know where to start for such changes. I would be happy if I could contribute such a patch. I think that you need to know a lot of internals ? Regards, Dirk

posibility of generalize AdminMediaHandler ?

2006-08-17 Thread dummy
Hi, I like that the admin/media is served in development mode by django himself. I would like to write apps which have their own media folders and also should serve their media files in development mode by themselfs (django himself) Can the AdminMediaHandler extended or generalized in a way th

Re: posibility of generalize AdminMediaHandler ?

2006-08-17 Thread dummy
Hi, I answered it myself, and made a ticket :) http://code.djangoproject.com/ticket/2557 Regards, Dirk -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer --~--~-~--~~~---~--~~

Re: posibility of generalize AdminMediaHandler ?

2006-08-18 Thread dummy
Hi all, waylan schrieb: > > Karen Tracey wrote: >> If what works for admin can't/shouldn't/won't be generalized, then >> maybe some documentation enhancements would help out people like me. > > See the page "How to serve static files"[1] in the docs. Then, be sure > to read "The big, fat disclaim

get_current_user into django distro ?

2006-08-18 Thread dummy
Hi all, I came across http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser Since this middleware depends on django.contrib.auth.middleware.AuthenticationMiddleware and its context is very related to the request.user object I was wondering if this is related enought to become an ow

Re: Proposal: Django Apps & Project Repository (again)

2006-08-20 Thread dummy
Hi limodou, limodou schrieb: > There are some threads talking about the apps repository already, but > till now, no repository be found. So I want to suggest again: we > should build an official project web site to host django apps or > projects. So we can easy share our source code and exchange

Template variable evaluation for True/False ?

2006-08-30 Thread dummy
Hi all, why was False/True evaluation in http://code.djangoproject.com/changeset/3680 reverted? The committer russelm said: Template variable evalution should follow Python norms. What would be more Python norms for true and false as True and False ? Regards, Dirk -- Der GMX SmartSurfer

Re: Template variable evaluation for True/False ?

2006-08-30 Thread dummy
Hi James, James Bennett schrieb: > On 8/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> The committer russelm said: Template variable evalution should follow Python >> norms. > > As I understand it, the distinction is between the string 'False' and > the boolean False. > > In other words,

Re: Template variable evaluation for True/False ?

2006-08-31 Thread dummy
Hi all, the usecase for the False/True template evaluation comes from this templatetag here: http://svn.sourceforge.net/viewvc/django-userlibs/trunk/libs.common/src/common/templatetags/commonmedia.py?revision=22&view=markup function yes_no_icon_url(boolean_value) Normally the boolean_value co

generic date_based views

2006-09-02 Thread dummy
Hi all, most generic views from date_based accept a template_object_name keyword arg, except the archive_index, instead the latest object_list is created in the RequestContext. I would suggest to apply the attached patch, to make keyword arg template_object_name available with respect to the o

Re: Call for testing: New setup.py

2006-10-17 Thread dummy
Hi, one diff for MANIFEST.in. The docs/*.txt of bdist_rpm are missing! Regards, Dirk -- GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl --~--~-~--~~~---~--~~ You received this message beca

found error traceback in regressiontests model_forms

2006-12-30 Thread dummy
Hi, I've updated to SVN Revision 4269 and run the regressions tests. I attached the error output from the run. Regards, Dirk -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer --~--~-~--~~---

[solved] found error traceback in regressiontests model_forms

2006-12-30 Thread dummy
Hi, I've updated to SVN Revision 4269 and run the regressions tests. I attached the error output from the run. I have to say sorry. I run the SVN Revision 4269 tests against Revision 4259 Django, which was my error :) Regards, Dirk -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten

newforms widget idea

2007-01-07 Thread dummy
Hi all, the select-form-widget and the selectmultiple-form-widget display's a choices-list as ... ... From the per-row-level-permision branch there is an alternative issue to do something like this: ... ... I made 2 new widgets, selectgrouped and selectmultiplegrouped, which w

Re: newforms widget idea

2007-01-09 Thread dummy
Hi Adrian, > This would be a nice addition indeed, but I agree with Honza that the > following syntax would be better: > >choices =( >( 'Group name 1', [(1, 'one'), (2,'two')]), >( 'Group name 2', [(3, 'three'), (2,'four')]), >) > > Would you be willing to rework your patc

svn properties ?

2007-01-23 Thread dummy
Hi, may I suggest to set properties for the files in svn ? {{{ for filename in `find . -type f`; do svn propset svn:keyword "URL Author Date Rev Id" $filename done; }}} Regards, Dirk -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www