[Zope] Error on simultaneous updates/requests

Dieter Maurer dieter at handshake.de
Mon Jan 5 14:31:10 EST 2004


Sean wrote at 2004-1-4 23:47 -0500:
> ...
>>  * Python 2.1's "getattr" catches all exceptions (when called with
>>   an optional default argument) (while it should only catch
>>    "AttributeError"). This may transform "ConflictError"
>>    to "missing docstring".
>>
>>    In this case, the affected object would define its
>>    docstring itself. This is very rare: usually, the
>>    docstring is defined by the class and not the object...
>
>I do not understand this.
>
>I am not using "getattr" in my code.

"getattr" is used in "ZPublisher.BaseRequest.BaseRequest.traverse".
Search for the error message to find the precise line...

>How can an object define its own docstring separately from its class
>definition?

	self.__doc__ = ...

But, really, it is very rarely done.


-- 
Dieter



More information about the Zope mailing list