[Zope3-Users] ForbiddenAttribute error when adding a container
Hi all, I am Baiju from Kerala (India), and I am new to this list. Recently I started learning Zope3, to play with it I am developing a small app. The latest tarball is available here : http://baijum81.freezope.org/zissue/zissue-0.1.1.tar.bz2 When I am trying to add a 'Comment' (Implemented using BTreeContainer) An error occur (in browser): A system error occurred. Can anyone give a pointer, how to fix it. ... File /usr/local/Zope-3.1.0c1/lib/python/zope/app/container/size.py, line 38, in sizeForDisplay num_items = len(self._container) ForbiddenAttribute: ('__len__', zissue.zissuetracker.comment.Comment object at 0x4164eb2c) 192.168.1.10 - zope.manager [13/Sep/2005:16:33:58 +0530] GET /zit/ZissueTracker/MainProduct/Component/Zissue/@@contents.html HTTP/1.1 500 311 http://192.168.1.15:7080/zit/ZissueTracker/MainProduct/Component/Zissue/+/AddComment.html=; Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2) ... Thanks, Baiju M ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Object Name field on addforms
Am Montag, 12. September 2005 15:09 schrieb Stephan Richter: On Monday 12 September 2005 09:05, Florian Lindner wrote: Don't use the menu/title attributes of form:addform. Use the browser:addMenuItem directive instead. Ok. But why does the addform directive registers a menu item with a action which is not even supposed to work? Isn't that considered a bug? Yes, it should. :-\ I've a wierd error now. I've changed my configure.zcml accordingly: addform schema=CS.Link.interfaces.ILink name=AddCSLink.html content_factory=CS.Link.link.Link permission=CS.Add layer=centershock / addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=CS.Add for=CS.ContentFolder.interfaces.IContentFolder menu=CSaddMenu / But this gives a configuration error upon startup: File /home/florian/Zope3/src/zope/app/publisher/browser/menumeta.py, line 214, in _checkViewFor raise ConfigurationError( zope.configuration.config.ConfigurationExecutionError: zope.configuration.exceptions.ConfigurationError: view name AddCSLink.html not found in: File /home/florian/Desktop/zope/lib/python/CS/Link/browser/skin/configure.zcml, line 20.4-27.6 addMenuItem title=Link class=CS.Link.link.Link view=AddCSLink.html permission=CS.Add for=CS.ContentFolder.interfaces.IContentFolder menu=CSaddMenu / I really don't understand why the view is not found... Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem connecting to MySQL
On 9/11/05, Stephen Day [EMAIL PROTECTED] wrote: Hello, I'm trying to access a MySQL database through Zope3 but I keep getting an error about encoding: LookupError: unknown encoding: latin1_swedish_ci I've tried changing the encoding of the database and the Zope connection object to utf8, among other things, but nothing seems to work. I'm using MySQL 4.1.14-nt, Zope-3.1.0c1 with mysqldbda-1.0.0 installed, and Python 2.4.1. Some versions of MySQL-4.1 incorrectly return the collation name rather than the encoding name. Note the _ci suffix; this is for case-insensitive, which means it's a collation. http://bugs.mysql.com/bug.php?id=7891 However, this should be fixed in 4.1.9 or later. Is your client library really 4.1.14? The mysql-python windows packages are supposed to be built using 4.1.9, but I can't really verify this. To check, run this in a Python interpreter: import MySQLdb print MySQLdb.get_client_info() This will show what version of the client library is in use. -- Computer interfaces should never be made of meat. http://www.terrybisson.com/meat.html ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users