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

Dmitry Vasiliev lists at hlabs.spb.ru
Mon Sep 6 06:41:50 EDT 2004


Philipp von Weitershausen wrote:
> 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.

Ouch, right :)

-- 
Dmitry Vasiliev (dima at hlabs.spb.ru)
     http://hlabs.spb.ru


More information about the Zope3-dev mailing list