Re: [Zope] Cann't we use 'get' as object name in Zope 2.12 ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Baiju M wrote: > Hi, > Any idea about this ? > app.manage_addFolder('get') > Traceback (most recent call last): > File "", line 1, in > 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 tsea...@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 )
Re: [Zope] Cann't we use 'get' as object name in Zope 2.12 ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Baiju M wrote: > Hi, > Any idea about this ? I think there is a filter checking for names that could lead to name clashes through acquisition. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktgOLgACgkQCJIWIbr9KYxfEgCgk7EP28cvFQro2nS6IcC/BqTl 0wgAnAqJ9FnvwLyT3gqlxLdpTWwfm5/3 =s5EM -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 )
[Zope] Cann't we use 'get' as object name in Zope 2.12 ?
Hi, Any idea about this ? >>> app.manage_addFolder('get') Traceback (most recent call last): File "", line 1, in 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. Regards, Baiju M ___ 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 )