[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] Cann't we use 'get' as object name in Zope 2.12 ?
From: Tres Seaver <tseaver () palladion ! com>
Date: 2010-01-27 20:56:11
Message-ID: hjq99a$qt7$1 () ger ! gmane ! org
[Download RAW message or body]
-----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@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-----
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic