[Zope3-dev] Re: [Checkins] SVN: zope.app.testing/trunk/src/zope/app/testing/functional.py fix bug in setter method of base_storage, i couldnt be set because of a typo

Benji York benji at zope.com
Fri May 18 06:56:37 EDT 2007


Bernd Dorn wrote:
> Log message for revision 75826:
>   fix bug in setter method of base_storage, i couldnt be set because of a typo

A part of this fix should be adding a test that fails without this change.

> Changed:
>   U   zope.app.testing/trunk/src/zope/app/testing/functional.py
> 
> -=-
> Modified: zope.app.testing/trunk/src/zope/app/testing/functional.py
> ===================================================================
> --- zope.app.testing/trunk/src/zope/app/testing/functional.py	2007-05-17 23:18:19 UTC (rev 75825)
> +++ zope.app.testing/trunk/src/zope/app/testing/functional.py	2007-05-18 08:15:27 UTC (rev 75826)
> @@ -225,7 +225,7 @@
>          return self._base_storages[self._database_names[0]]
>  
>      def _set_base_storage(self, value):
> -        if len(self._database_name)!=1:
> +        if len(self._database_names)!=1:
>              raise AttributeError('base_storage')
>          self._base_storages[self._database_names[0]] = value
>  
> 
> _______________________________________________
> Checkins mailing list
> Checkins at zope.org
> http://mail.zope.org/mailman/listinfo/checkins


-- 
Benji York
Senior Software Engineer
Zope Corporation


More information about the Zope3-dev mailing list