[Zope3-dev] Re: Make message ids into "rocks", was Re: Re: SVN: Zope3/trunk/src/zope/ Internationalized apidoc modules description.

Philipp von Weitershausen philipp at weitershausen.de
Fri Sep 3 10:39:56 EDT 2004


Dmitry Vasiliev wrote:

>>     def __mod__(self, mapping):
>>         new_mapping = self.mapping
>>         new_mapping.update(keys_and_values_to_unicode(mapping))
>>         return self.__class__(
>>             self,
>>             domain=self._domain,
>>             default=self._default,
>>             mapping=new_mapping
>>         )
> 
> 
>       def __mod__(self, mapping):
>           return MessageID(self, self._domain, self._default, 
> self._mapping)

No, it wouldn't update the mapping. This is what __mod__ is supposed to do.

Philipp




More information about the Zope3-dev mailing list