[Zope] Cann't we use 'get' as object name in Zope 2.12 ?
Tres Seaver
tseaver at palladion.com
Wed Jan 27 15:56:11 EST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Baiju M wrote:
> Hi,
> Any idea about this ?
>
>>>> app.manage_addFolder('get')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/opt/baiju/zesite/eggs/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/Folder.py",
> line 51, in manage_addFolder
> self._setObject(id, ob)
> File "/opt/baiju/zesite/eggs/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/ObjectManager.py",
> line 332, in _setObject
> v = self._checkId(id)
> File "/opt/baiju/zesite/eggs/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/ObjectManager.py",
> line 116, in checkValidId
> 'The id "%s" is invalid - it is already in use.' % id)
> zExceptions.BadRequest: The id "get" is invalid - it is already in use.
Because attributes and item keys are in the same namespace, you cannot
use any attribute name the object has as a key for a subobject. This
includes methods defined on the object's class, but not acquired methods
/ attributes.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAktgqGcACgkQ+gerLs4ltQ5B3QCgvc3CpAg/VFrjoqKVc8RlaQWl
jzQAoMvKzZGfJ6MjFSgGhTIUxcJApD9X
=XGMH
-----END PGP SIGNATURE-----
More information about the Zope
mailing list