Re: #10355 Add support for email backends

2009-08-20 Thread Thomas Guettler
tions error-mails of uncaught exceptions should take a different backend than emails for application users. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message beca

Re: Feature proposal: Test client form value extraction

2009-08-26 Thread Thomas Guettler
he transaction management for some > reason. > > Let me know what you think. Should I submit it as a ticket? -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message be

Subclassing db fields: to_python() need model instance

2009-10-02 Thread Thomas Guettler
h modifies subclassing.py to make this possible? # Finally that's what I need for my db field: class Creator(object): ... def __set__(self, obj, value): obj.__dict__[self.field.name] = self.field.to_python(value, obj) Thomas -- Thomas Guettler, http://www.thomas-guettler.de/

Re: Process discussion: reboot

2010-04-21 Thread Thomas Guettler
dful > of issues. > > So: here's your chance. You have suggestions about Django's > development process? Make them. I'm listening. > > Jacob > -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received t

Re: Advice on #13260 - '%' in args to urlresolvers.reverse()

2010-04-22 Thread Thomas Guettler
>>>> reverse('special', args=[r'+\$*']) > '/special_chars/+%5C$*/' > > It would have to output: > > '/special_chars/%2B%5C%24%2A/' Hi, I think the current test case is broken. All args/kwargs should be quoted. -- Thomas

Re: Decision for ticket #6362 - Remove blank spaces with strip when validating the data

2010-06-03 Thread Thomas Guettler
snag a 'feature' in MySQL with unique indexes ignoring > trailing spaces for comparison purposes. > > Any chance of a decision on whether this should appear in 1.3 and in > what form? -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler +

missing in SVN branches/releases/1.2.X

2010-06-03 Thread Thomas Guettler
Hi, will there be a SVN branch releases/1.2.X? For 1.0 and 1.1 it exists: http://code.djangoproject.com/browser/django/branches/releases Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are

Re: Beating on an old issue; counter intuitive cascade deletes on foreign keys

2010-06-08 Thread Thomas Guettler
ive data > deleted from my database on two production projects and it pisses me > off big time every time. > > I can accept that NOT nullable foreign relations cascade the delete > but not if they have null=True on them. > ... -- Thomas Guettler, http://www.thomas-guettler.de/

Re: Beating on an old issue; counter intuitive cascade deletes on foreign keys

2010-06-09 Thread Thomas Guettler
We pretty clearly document that our deletion scheme emulates "ON > DELETE CASCADE"; if you can provide evidence to the contrary, please > open a ticket. > > Yours, > Russ Magee %-) > -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettle

Re: transaction.commit_manually masks uncaught exception

2010-06-18 Thread Thomas Guettler
, and have updated it: > http://code.djangoproject.com/ticket/13265 > I also even found some old discussion in this group from a cross- > poster experiencing the problem: http://bit.ly/9KqDNA > > Let me know if I can help in any way. Thanks for your time. > -JohnO > -- Thomas

#11834: colorized debug page. Assigned to buriy

2010-08-12 Thread Thomas Guettler
Hi, a colorized debug page helps a lot. More than 99% of errors are in my code, and not in django's. This patch gives "own" code a different color. It is assigned to "buriy" since 6 months. http://code.djangoproject.com/ticket/11834 Why not commit? Thomas

Re: #11834: colorized debug page. Assigned to buriy

2010-08-13 Thread Thomas Guettler
burc...@gmail.com wrote: > Hi, > > On Thu, Aug 12, 2010 at 9:54 PM, Thomas Guettler wrote: >> Hi, >> >> a colorized debug page helps a lot. More than 99% of errors >> are in my code, and not in django's. This patch gives "own" code >> a di

Re: #11834: colorized debug page. Assigned to buriy

2010-08-16 Thread Thomas Guettler
> On Thu, Aug 12, 2010 at 9:54 PM, Thomas Guettler wrote: ... -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

#2131 SendFile Support

2012-01-09 Thread Thomas Guettler
tself. i.e. as serving large files is not what Django is made for. }}} -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Read only Test Was: Speeding up tests

2012-01-17 Thread Thomas Guettler
s unittest code is non public. But if there is any interest, we could make it public. Is anyone interested? Thomas Güttler On 16.01.2012 17:46, Anssi Kääriäinen wrote: .... -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this messa

Re: Proposal: upgrading the choices machinery for Django

2012-04-04 Thread Thomas Guettler
(STATE_DONE, _('done')), ) state=models.CharField(max_length=16, verbose_name=u'Status', default=STATE_NEU, choices=states) }}} I like this since, you can access the verbose string like this: Foo.states[obj.state] -- Thomas Guettler, http://www.t

Ticket for Docs improvement Was: Proposal: upgrading the choices machinery for Django

2012-04-05 Thread Thomas Guettler
prove our documentation. Also, the fact that we *don't* have a sub-framework for this lets people do whatever they want -- including using the dj.choices module. So I am -1 on including this in Django proper. Adrian -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) tho

Re: Ticket for Docs improvement Was: Proposal: upgrading the choices machinery for Django

2012-04-05 Thread Thomas Guettler
Am 05.04.2012 10:03, schrieb Łukasz Rekucki: On 5 April 2012 09:45, Thomas Guettler wrote: Hi, I created a ticket, incl. patch https://code.djangoproject.com/ticket/18062 While the example itself is useful, I don't really think Django's documentation should state obvious f

Edit Ticket Description in Trac

2012-04-23 Thread Thomas Guettler
Hi, I would like to modify the descriptions of tickets. Unfortunately this is not possible for me at the moment. Can someone give me the permission for at least modifying my tickets? Thomas Güttler Trac Login is "guettli" -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mai

Re: Django UnicodeEncodeError in errorlist

2012-04-27 Thread Thomas Guettler
/-/pYaefZxhll4J. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en. -- Thomas Guett

UUID Field really wontfix?

2012-12-11 Thread Thomas Guettler
This ticket is closed since several years. Maybe it is time to think about it again. Add UUID Field: https://code.djangoproject.com/ticket/4682 Thomas Güttler -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because

Re: UUID Field really wontfix?

2012-12-12 Thread Thomas Guettler
rrent UUID-Field authors if they can create a patch. Thomas -- -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: #13870: Correctly handling database isolation (in PostgreSQL)

2010-09-06 Thread Thomas Guettler
sted if this does not leave an idle transaction open): The place where the daemon hangs around if nothing can be done lives must not use the ORM. If there is something to be done, the daemon calls methods that use the commit_on_success decorators. Thomas -- Thomas Guettler, http://www.th

#9459 forms.DateTimeField() looses microseconds

2010-09-09 Thread Thomas Guettler
, for older versions it parses the last integer itself. Please review it. Thomas Güttler -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django developers" grou

Re: #9459 forms.DateTimeField() looses microseconds

2010-09-10 Thread Thomas Guettler
Tobias McNulty wrote: > On Thu, Sep 9, 2010 at 5:43 AM, Thomas Guettler <mailto:h...@tbz-pariv.de>> wrote: > > Here is the patch: > > http://code.djangoproject.com/attachment/ticket/9459/datetime-microseconds-py25.patch > > If the python version is g

Re: #9459 forms.DateTimeField() looses microseconds

2010-09-20 Thread Thomas Guettler
I uploaded a new patch (against trunk) which works on Python 2.4: http://code.djangoproject.com/attachment/ticket/9459/datetime-microseconds-py24.patch I think it is ready for commit. Thomas Tobias McNulty wrote: > On Thu, Sep 9, 2010 at 5:43 AM, Thomas Guettler <mailto:h...@tbz-pa

No caching if request.GET not empty

2010-09-29 Thread Thomas Guettler
uests with a query string. Can someone explain this? I read the documentation[1], but couldn't find a hint way GET requests with a query string are not cached. Should I open a ticket? [1] cache docs: http://docs.djangoproject.com/en/dev/topics/cache/ Thomas -- Thomas Guettler, http://

Re: No caching if request.GET not empty

2010-09-30 Thread Thomas Guettler
Hi Thomas, > > there is a ticket for that: > > http://code.djangoproject.com/ticket/4992 -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django developer

#4992: Cache GET requests with QUERY_STRING

2010-10-26 Thread Thomas Guettler
member) should not set "ready for commit". Could someone please review it? Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django developers&quo

Re: RFC #9964 - fix "missing" db commits by forcing managed transactions to close

2010-11-25 Thread Thomas Guettler
e case (as in the case of raw > SQL), the user is required to call transaction.set_dirty() to get correct > behavior. > ... -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google

Re: Expensive queryset cloning

2011-03-16 Thread Thomas Guettler
all querysets mutate not clone by default. > And when one need a clone just make it explicitly. > -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "Django develop

Re: State of X-Sendfile support?

2011-03-25 Thread Thomas Guettler
return doc_response > """ > > That package is pretty stable, the only thing it's missing is > documentation which should be sorted soon. > > Cheers. > > - Gustavo. -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thom

Re: State of X-Sendfile support?

2011-03-25 Thread Thomas Guettler
On 25.03.2011 12:55, Łukasz Rekucki wrote: > On 25 March 2011 12:34, Thomas Guettler wrote: >> Hi, >> >> I look at your example code. You need to name the webserver in the >> code. That's not very nice. I guess it should be possible to >> guess the web

Re: ImportError catching in urlresolvers.py

2011-06-15 Thread Thomas Guettler
ion (and the AttributeError). I want to see the original exception. It would be nice to have a better solution in django. Maybe a settings variable CATCH_EXCEPTIONS? Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message

Re: Advice on #13260 - '%' in args to urlresolvers.reverse()

2011-08-23 Thread Thomas Guettler
om/msg25678.html > > > The original message got two responses; one saying quote automatically, > the other saying it's up to the user. The ticket is in "design decision needed" since 14 months: https://code.djangoproject.com/ticket/13260 Who can make this decision? Thom

#13024 Signal sent on application startup

2011-08-29 Thread Thomas Guettler
) See https://docs.djangoproject.com/en/dev/topics/settings/#custom-default-settings But there are too many places, where the settings get loaded. I could write a patch, but this is more a design decision. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas

Re: Suppressed template errors in admin

2011-09-06 Thread Thomas Guettler
gt; a promise. If the django core makes a promise that TEMPLATE_STRING_IF_INVALID=RaiseMissingVariable() is supported in admin (and other contrib apps), I will help to get it done. Up to now, that's why I don't use the template language in my apps. Zen of Python: Errors should never pass silently.

common variable (Deploying Feature in manage.py)

2011-10-25 Thread Thomas Guettler
. Several deploy apps could use this common variable. In our company we have a common variable. PROD is zero: if STAGE: # some dev system... -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subs

Re: including the nested exception's traceback in new raised exception

2008-06-24 Thread Thomas Guettler
it will be displayed in the debug view. But a better solution would be to have a stack of original exceptions, since a exception might be cought several times in django. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~

Re: Debug logging of swallowed exceptions

2008-08-18 Thread Thomas Guettler
s seen as a desirable change, I volunteer to submit a patch > covering all swallowed exceptions - avoiding these 2+ hour "bug" > hunting sessions is well worth my time. > > There's no need for this to be a 1.0 feature. > > -Jim Me

Re: Exception swallowing in urls.py + admin.autodiscover() == a lot of frustration for developers

2008-08-28 Thread Thomas Guettler
the debug view. manage.py is not handled: http://code.djangoproject.com/attachment/ticket/6537/6537.diff > So I think we need to do something along the lines of what's in > #7524... it's far, far from perfect, but it's probably the only way to > go to avoid a lot of frustrat

Re: implementing app specific default settings

2008-09-12 Thread Thomas Guettler
gt; if settings doesn't already have the attribute. > > Hi, sorry, I only read the first lines of your post. I think application settings should not be in settings.py. Maybe appname_settings.py. It would be good to have a default way, to make django applications more pluggable. Th

#689 Honour Webserver Provided Auth (REMOTE_USER)

2008-10-01 Thread Thomas Guettler
n the ticket. -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send

Re: "things are ready" signal?

2008-10-01 Thread Thomas Guettler
Marc Fargas schrieb: > Hi there, > > Staring at #8638 I'm trying to find a way to hook code to be run "just > after Django is completelly loaded" and found no way ;( > ... > So, would a signal there be useful? I am missing this signal, too. Thomas -- T

Proposal: Decoupling authorization from view

2008-10-13 Thread Thomas Guettler
ccess this view and a small middleware to render "403 forbidden" pages. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message because you are subscribed

Proposal: Signal after model of app was loaded

2008-10-21 Thread Thomas Guettler
ned.append(app_name) return None if mod.models not in self.app_store: self.app_store[mod.models] = len(self.app_store) ### here the signal should get fired #### return mod.models }}} -- Thomas Guettler, http://www.thoma

Re: Proposal: Signal after model of app was loaded

2008-10-22 Thread Thomas Guettler
Hi Malcolm and others, your solution would solve my problem. I drop this proposal. Malcolm Tredinnick schrieb: > On Tue, 2008-10-21 at 13:07 +0200, Thomas Guettler wrote: > >> Hi, >> >> what do you think about a signal which fires after the models >>

Who can set "ready for checkin"?

2008-10-28 Thread Thomas Guettler
ramework/python code) I would like to know if I can set "ready for checkin" or what else can I do to see progress. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You receive

Re: Proposal: Decoupling authorization from view

2008-11-25 Thread Thomas Guettler
ribute "authorized". > > Hi Eric, I am very happy that someone understood what I want. > Perhaps you could post your code somewhere so that 3rd-party app > developers can standardize their authorization (git-hub?). > > I added a snippet: http://www.djangosnippets.org

#3896 pass value to field specific clean function

2008-12-09 Thread Thomas Guettler
need to look up the value in self.cleaned_data. I know that this would introduce a big not backward compatible change. But I think it feels much more natural if the value is passed to the method. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler

Re: Session-based messages (Contrib-05, #4604)

2009-01-07 Thread Thomas Guettler
UPDATE. The second request (GET) could be readonly. Maybe something like this snippet would be good: http://www.djangosnippets.org/snippets/1064/ Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~-

Unittest on live data Was: Rolling back tests -- status and open issues

2009-01-14 Thread Thomas Guettler
8138: > > http://code.djangoproject.com/ticket/8138 > ... > -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Proposal: enable CSRF middleware by default

2009-03-19 Thread Thomas Guettler
to selectively disable -- now fixable with 'csrf_exempt' > > Please let me know by Thursday evening (GMT) if there are objections. > > Luke > -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~-

Re: BigInt Patch for Django 1.0.2

2009-04-08 Thread Thomas Guettler
n Django 1.0.2. -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Re: Creating "Read-only" automated form views

2009-06-29 Thread Thomas Guettler
> the equivalent of these but in a "read-only" version:... -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Session based Messages

2007-07-09 Thread Thomas Guettler
Hi, I hope this patch will be merged soon: http://code.djangoproject.com/attachment/ticket/4604/visitor_messages.patch Messages should be stored with sessions. I would like to enhance the message system by a loglevel: debug, info, error. This way you could display important messages differ

Re: Django Documentation Orginzation

2007-07-27 Thread Thomas Guettler
Am Freitag, 27. Juli 2007 05:10 schrieb [EMAIL PROTECTED]: > I was thinking, for the sake of helping new users learn quicker, that > the Django documentation could be organized a little more. In > particular the list under "Reference" > > i would think a numbered list would be more suitable with 1

content of request.path

2007-09-05 Thread Thomas Guettler
Hi, if the SCGI/AJP/mod_python app is mounted under /dynamic (http://.../dynamic) and request URL is http://.../dynamic/test/ What should be the content if request.path? With mod_python it is /dynamic/test/ With SCGI+WSCGI it is /test/ settings.APPEND_SLASH and other stuff don't work with

Re: content of request.path

2007-09-05 Thread Thomas Guettler
Am Mittwoch, 5. September 2007 11:27 schrieb Michael Radziej: > On Wed, Sep 05, Thomas Guettler wrote: [cut] > Is this the same problem as in ticket #285? > > http://code.djangoproject.com/ticket/285 Yes --~--~-~--~~~---~--~~ You received this mes

Re: content of request.path

2007-09-05 Thread Thomas Guettler
Am Mittwoch, 5. September 2007 12:59 schrieb Michael Radziej: > On Wed, Sep 05, Thomas Guettler wrote: > > Am Mittwoch, 5. September 2007 11:27 schrieb Michael Radziej: > > > On Wed, Sep 05, Thomas Guettler wrote: > > > > [cut] > > > > &g

Re: FileField question

2007-10-24 Thread Thomas Guettler
Am Dienstag, 23. Oktober 2007 14:49 schrieb Marty Alchin: > In response to some recent questions regarding FileField usage, I > thought about including a way to format the filename based on details > from the model instance itself. It's looking like it' be best to add > an argument to FileField, c

Re: FileField question

2007-10-29 Thread Thomas Guettler
Am Freitag, 26. Oktober 2007 15:39 schrieb Marty Alchin: > Okay, just a quick update. I don't have a new patch ready yet, because > I wanted to outline a couple things and ask another question. I've > implemented the callable method for determining filenames, including > the ability to include a s

Re: ForeignKey(unique=True) and ForeignRelatedObjectsDescriptor

2007-11-06 Thread Thomas Guettler
Am Montag, 5. November 2007 18:47 schrieb Jeremy Dunck: > Consider: > > class Place(Model): > ... > > class Retaurant(Model): > place = ForeignKey(Place, unique=True) > You can use a property. Code not tested: class Place(Model): def get_restaurant(self): try:

Re: A few questions about FileField

2007-12-04 Thread Thomas Guettler
Am Montag, 3. Dezember 2007 16:04 schrieb Marty Alchin: > There is one other question I've been meaning to ask for a while. As > would be expected, this FileField work adds a good amount of code to > db/models/fields/__init__.py, including 3 new classes, which aren't > even Fields themselves (but

Re: Better Support for static file serving via django

2007-12-13 Thread Thomas Guettler
Am Mittwoch, 12. Dezember 2007 21:34 schrieb SmileyChris: > On Dec 13, 9:19 am, "Robert Coup" <[EMAIL PROTECTED]> > > wrote: > > On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: > > > How can you check that only authorized users can access > > > some files? > > Thomas, you might want to tr

SVN not available

2008-01-23 Thread Thomas Guettler
Hi, http://code.djangoproject.com/browser/django/trunk/django/views ''' 503 Service Unavailable Resources to service this request are not available. This message is sent by Packeteer PacketShaper. ''' ===> date -R Wed, 23 Jan 2008 12:51:42 +0100 Same on the shell: ... oops, it failed one min

Re: SVN not available

2008-01-23 Thread Thomas Guettler
Works again. Am Mittwoch, 23. Januar 2008 12:54 schrieb Thomas Guettler: > Hi, > > http://code.djangoproject.com/browser/django/trunk/django/views > > ''' > 503 Service Unavailable > > Resources to service this request are not available. > > T

Re: SQLAlchemy + Django... Again?

2008-03-03 Thread Thomas Guettler
Brantley Harris schrieb: > SQLAlchemy + Django > > What's the status on this? If someone was to work on it, would it be > supported by the lords of Django? > > Hi, I like the django OR mapping very much. I never used SQLAlchemy. Why do you think it is better? Thom

Re: logging & MODPYTHON

2008-03-04 Thread Thomas Guettler
up logging would be documented (maybe in the wiki of trac). I had problems with it, because settings.py gets imported several times and this leads to all messages being logged twice. My solution is at the bottom of this snippet: http://www.djangosnippets.org/snippets/16/ Thomas -- Th

Re: ***SPAM*** Re: logging & MODPYTHON

2008-03-05 Thread Thomas Guettler
Graham Dumpleton schrieb: > On Mar 5, 6:56 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > >> AndrewD schrieb:> I would like to contribute a general Django logging >> system. I have >> >>> MODPYTHON logging working, & a basic file logging s

settings imported twice Was: logging & MODPYTHON

2008-03-05 Thread Thomas Guettler
Malcolm Tredinnick schrieb: > On Wed, 2008-03-05 at 15:32 +0100, Thomas Guettler wrote: > [...] > >> No, it gets imported more then once: (Answer of Malcolm): >> http://www.mail-archive.com/[EMAIL PROTECTED]/msg39061.html >> > > Read that carefully and

Re: settings imported twice Was: logging & MODPYTHON

2008-03-06 Thread Thomas Guettler
alled logging). My solution is at the bottom of this snippet: http://www.djangosnippets.org/snippets/16/ Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Add newform errors directly (without using ValidationError)

2008-03-27 Thread Thomas Guettler
ation and unittest: http://code.djangoproject.com/ticket/5335 -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django deve

Re: Django leaking a file descriptor.

2008-03-28 Thread Thomas Guettler
wsgiserver.py", line 2, in > <module> > from django.core.handlers import modpython > > File "/Users/jikanter/public_html/django/__init__.py", line 4, in > <module> > assert False, 'wa-wa-wee-wah' > > AssertionError: wa-wa-we

is_authenticated as property

2008-04-10 Thread Thomas Guettler
: Make is_authenticated a property which returns a object which evaluates to the proper boolean value. This object has a method __call__ which returns the same value. This is backwards compatible. Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de

Re: Rethinking silent failures in templates

2008-05-15 Thread Thomas Guettler
ion, if a variable is missing. See http://www.djangosnippets.org/snippets/646/ Unfortunately TEMPLATE_STRING_IF_INVALID is not used in all places: e.g. Loops: http://code.djangoproject.com/ticket/6766 Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guet