Re: [Zope] ZTopics not working right --Error Value: Vocabulary
>>From what I remember, the TextIndex code wants to acquire the catalog's >Vocabulary subobject. If you created your catalog without a Vocabulary (I >think this is an option during the instantiation of a catalog), this can >occur. This is arguably a bug. The vocabulary object should probably not >be acquired. Do you think you can submit this to the "Collector" at >Zope.org (http://classic.zope.org:8080/Collector)? > > --snip The catalog in question is the portal_catalog from the PTK which has an accompaning Vocabulary object. I will do as you requested and submit this to the Collector. umesh btw. I had to apply the following patch to ZTopic to rectify a mis-behaving user interface. --- topicEdit.dtml.old Wed Nov 29 10:49:53 2000 +++ topicEdit.dtml Wed Nov 29 09:16:02 2000 @@ -35,8 +35,8 @@ - - + + ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZTopics not working right --Error Value: Vocabulary
Hi I am trying to use ZTopics to create a visual hierarchy. I've got ZTopics installed ok but I am having problems with using them. If I create a top level ZTopic all is well and the ztopic will filter my catalog fine. However, if I try to create a hierarchy -even if only one level deep, I get the following error. Error Type: AttributeError Error Value: Vocabulary Traceback (innermost last): File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 180, in contents (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 228, in _contentsSet (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 401, in _apply_index File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 476, in query File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 196, in getLexicon AttributeError: (see above) I haven't a clue if the problem is with ZTopics or the lexicon stuff within zope. Anyone know what's going on here? umesh ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] serving java applet fails
hi all, I'm having problems serving up the EIRC java chat-client from within zope. I have uploaded two java archives EIRC-gfx.jar and EIRC.jar as file objects via the management screen. Zope has recognised these as 'application/java-archive' content types. I am using the following dtml (which is in the same folder as the two java archives) to serve the applet http://eirc.sourceforge.net/"> Eteria IRC Client Sorry, but you need a Java 1.x enabled browser to use EIRC. The applet loads (and runs) fine when served from from the filesystem with apache. When served from zope it appears to load ok and is even rendered within the browser -but at the last moment fails to run with the following browser error; Applet EIRC can't start: ERROR Any thoughts? umesh ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZSQL method broken on 2.1.6
>Umesh Soni wrote: >> >> (using zope 2.1.6 with ZMySQLDA-2.0.0a1 and MySQLdb-0.2.1) >> >> Hi there, >> >> I had this ZSQL method (simplified for clarity) working on 2.1.4 >> >> select id, nickname from bboard >> where id<=50 >> order by id desc >> limit 30 > >Remove either the limit 30 or the LIMIT 1000 Advanced property of the >ZSQL method (advanced tab). To speed things up, the limit 1000 appended >to the query to stop MySQL giving Zope lots of lines when it only wants >1000 anyway. Its not too clever though. There should maybe be a check to >see if "limit x" exists in the query. > >Phill > Thanks Phill, that did the trick --strange thing though the 'Maximum number of rows retrieved attribute' was set to 100 not 1000 as the error reported --I changed it to 30. Anyway it's working now --cheers. Umesh Soni. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZSQL method broken on 2.1.6
(using zope 2.1.6 with ZMySQLDA-2.0.0a1 and MySQLdb-0.2.1) Hi there, I had this ZSQL method (simplified for clarity) working on 2.1.4 select id, nickname from bboard where id<=50 order by id desc limit 30 Now, I've upgraded to 2.1.6 and I get the following error; Error, _mysql.OperationalError: (1064, "You have an error in your SQL syntax near 'LIMIT 1000' at line 4") -this is wierd because my ZSQL method says "limit 30" The traceback displayed is; Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: simple-test) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_test) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_test) File /usr/local/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 331, in manage_test (Object: simple-test) File /usr/local/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 312, in manage_test (Object: simple-test) File /usr/local/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 430, in __call__ (Object: simple-test) File /usr/local/Zope/lib/python/Products/ZMySQLDA/db.py, line 221, in query OperationalError: (see above) Note: if I remove the limit constraint as in; select id, nickname from bboard where id<=50 order by id desc the ZSQL method works fine. I do need to limit the number of results returned. Does anyone know a workaround for this? umesh ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )