[Zope-CMF] Cleaning up imports, question about odd "feature"

Jens Vagelpohl jens at dataflake.org
Sat Dec 27 14:03:39 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Dec 27, 2008, at 19:45 , Tres Seaver wrote:

> I have found a couple of oddities:  both CMFCore.FSPropertiesObject  
> and
> CMFCore.FSSQLMethod use Globals.Development mode to decide whether or
> not to give their class an '__of__' method.  I don't recall the
> rationale, but it has been around *forever*, AFAICT.  I would like to
> rip it out, and just make the '__of__' method there always, unless
> somebody has a good argument for the current status.

I always thought it was there to continually re-read the filesystem  
representation upon access, so any filesystem changes are reflected  
without restarting the instance. As to the usefulness, I'm not relying  
on it when I do development. I always restart.


> I also plan to make all the currently relative imports absolute, since
> relative imports break under later versions of Python, and I am making
> some of them more precise:  e.g.:
>
>  from AccessControl import ClassSecurityInfo
>
> becomes:
>
>  from AccessControl.SecurityInfo import ClassSecurityInfo

+1

jens



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAklWfAsACgkQRAx5nvEhZLKF6gCfbAiOvshC/jieG8+4UmTsyYH7
AR8An2DsvoQ9ELqaRRG2LQPGFXOoIk+k
=9Md6
-----END PGP SIGNATURE-----


More information about the Zope-CMF mailing list