[Zope] Can't change title of a common instance property sheet
I suppose this is some sort of lack in the Zope management UI, but maybe someone else knows how to do this: If you create a ZClass property sheet you can pick an ID and a title. But you don't seem to be able to EDIT the title of the property sheet ever again. Is there some magic property sheet property name or is there just no way to edit the title from the management interface? The other bizzare thing is that you can export a property sheet, but there seems no obvious way to import one anywhere. Anyone have a clue on this? What's it there for? TIA Jeff Sasmor [EMAIL PROTECTED] ___ 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] ZCatalog Question
I have a product that has three CatalogAware Zclasses. They are indexed by the catalog correctly, but when I look at the catalog's status tab, the number of objects for each index are identical, even though the ZClasses themselves don't all have the same properties. Intuitively, this seems wrong. Or maybe my intuition is wrong. It "makes more sense" to have differing number of objects based on how many of each type of ZClass instance was indexed and what the properties of each one was. Anyone have any enlightenment (or is that Zen...) ? Jeff Sasmor [EMAIL PROTECTED] ___ 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] Can ZClass products use structured text?
Zopeistas - I am trying to use the new help system to add help for a product (finally) newly-adapted to Zope 2.2. When I imported the ZClass (.zexp) file, I noticed a nice Help folder, and I can see how to add help topics and how that works very nicely thankx. However, it does not seem possible to create a stx document from the web interface, if only to be able to have help pages that more or less look similarly- formatted to the ones that are part of Zope already. (In desperation I just tried using structured text in the help file with no success didn't really expect it to.) I suppose that one could use a kludge and have the topic just open an dtml doc with fmt=structured_text. It would be nice to just have a .stx file as a normal product does (you can see this by looking in the help files for 'regular' Python products. Perusing the source, I see in lib/Python/HelpSys/HelpTopic.py a class STXTopic (line 264) that's a subclass of TextTopic, but I don't see a way to create one of these from the web. Am I missing something zymosely obvious? TIA, Jeff Sasmor [EMAIL PROTECTED] ___ 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] Renderable ZClass and Zope 2.2
Hi- I am trying to 'update' my EventFolder product to Zope 2.2 but a really wierd thing is going on: When I try to create an instance (an EventFolder, which is subclassed from Renderable and ObjectManager) I get an error shown in the traceback below. There EventFolder_add method in the ZClass creates a catalog (Catalog) which does not seem to be accessable... yet, why is the instance being renedered at all? It appears as if the instance is being rendered before the transaction is committed and therefore there's no Catalog-- this I get. But why is the instance being rendered at all? Is there some incompatability with Renderable and 2.2? Confusedly, Jeff Sasmor [EMAIL PROTECTED] --- Error Type: AttributeError Error Value: Catalog Traceback (innermost last): File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope220/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope220/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: EventFolder_add) File /usr/local/Zope220/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: EventFolder_add) File /usr/local/Zope220/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: EventFolder_add) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: EventFolder_add) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: folder="EventFolder.createInObjectManager(REQUEST['id'], REQUEST)") File /usr/local/Zope220/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: folder) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: manage_addProduct['ZCatalog'].manage_addZCatalog(this(),'Catalog','EventCatalog' )) (Info: this) File , line 0, in ? File /usr/local/Zope220/lib/python/Products/ZCatalog/ZCatalog.py, line 112, in manage_addZCatalog File /usr/local/Zope220/lib/python/Products/Renderable/Renderable.py, line 17, in __str__ (Object: Renderable) File /usr/local/Zope220/lib/python/OFS/DTMLMethod.py, line 167, in __call__ (Object: render) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: render) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: ZopeTime) File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: tdate="'%s/%s/1' % (tyear,tmonth) " this_month="'%s/%s' % (tyear,tmonth) " ddate="_.DateTime(tdate)") File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Let.py, line 147, in render (Object: smeth="dateSearch.absolute_url()") File /usr/local/Zope220/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: renderMonth(ddate,smeth,bodyFgColor,bodyBgColor,headingFgColor,headingBgColor, 'showyear' , moderated)) (Info: smeth) File , line 0, in ? File /usr/local/Zope220/lib/python/Products/ExternalMethod/ExternalMethod.py, line 270, in __call__ (Object: renderMonth) (Info: ((DateTime('2000/07/01'), 'http://www.ptang.com:8080/test/asdasd/dateSearch', '#00', '#ff', '#ff', '#00', 'showyear', 'on'), {}, None)) File /usr/local/Zope220/lib/python/Products/EventFolder/Extensions/rendercal.py, line 97, in renderMonth (Object: Renderable) AttributeError: (see above) ___ 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] Anyone for a Zope bonding experience at OSS con next week?
This is a repeat of a previous post - the OSS con is next week. About 6 people have responded before, you don't need to respond again if you have done so already. --- Hi Zopistas, Anyone else in this list going to the OReilly Open Source SW convention July 17-20?. Anyone interested in having an informal Zopista.party.dinner.beerfest.splunge (or whatever...) one night during the con or perhaps Sunday nite July 16? If enough people are interested I'll try to set something up. Might be fun to hang out and share experiences &stuff; Since this is Off-Topic- probably you should respond via email to: Jeff Sasmor [EMAIL PROTECTED] I'll post a summary to this list if enough people respond. PS: People from Digital Creations are welcome too! ___ 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] FYI - poss. reindex_object alleged 'bug' workaround
Zopers and PyCoders- I was having a problem with ZCatalog-- namely, editing the properties of a CatalogAware item (in a custom form) after creation resulted in no change to the indexed value in the Catalog. I know about reindex_object and was using that-- so it wasn't just that I was leaving it out! Hmmm. I read the [EMAIL PROTECTED] list archives on zope.nipltd.com (what a great resource, thanks!!!) and found some mentions that this was broken in 2.1.6, which is what I am using. ANYWAY, I found that solved the problem immediately (well, for me, anyway). Just thought I would pass this on so it would be archived for others with this problem (or at least something to try in a moment of desperation!). Why does this work? I have some guesses about some of the PyCode in CatalogAwarenesss.py but I'm still too much of a Python newbie to make any comments..... Jeff Sasmor [EMAIL PROTECTED] ___ 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] Problem with > 1 ZCatalog search on same page
Hi Zopistas- I have problem that I hope that there's an answer to. Perhaps this has been covered on this list already, but I couldn't find it by searching the NIP archives and 800+ results for "ZCatalog" was mind-numbing. I have two ZCatalog searches on the same page (in the same DTML method). Each has different fields so they have different numbers of results displayed in two tables. This works just fine. What's wierd is that the 'batch_size' code interacts between the two-- if the size of the first table's set of results is < batch size and the size of the second table's results is > batch size then the second table has a "next N results" link. If I click this then the second table dutifully displays the next data set. BUT- the first table just displays the LAST item it had displayed before. >From a quick glance at the way that ZCatalog works, it seems as if this behaviour >could be correct; and the batching code in the ZC can't handle more than one set of results associated with a single DTML method. But I am by no means sure of my interpretation of the python code here. Anyone have any insights? TIA, Jeff Sasmor [EMAIL PROTECTED] PS. For those Zopistas who are MontyPythonistas: I get to see "Eric Idle exploits Monty Python" tonite (weds 6/28) at Carnegie Hall in NewYawkCity. They promise lumberjacks, etc. This goes on tour to some cities in the US this summer. Bought these tickets months ago so have the 4th Row Orchestra! I hope this is as good as seeing Monty at NYC's Civic Center . John Cleese stepped on my foot whilst selling albatrosses (?) at that one. But I digress... ___ 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] brain hurts regarding dynamic fcn args in Python
Hi- I guess I'm somewhere past a 'newbie' (after a few solid months) and I'm developing a calendar-based (but not based on calendar tag) 'event-log' 'black-box app' for lack of a better term, for eventual relase to Zope.org, if only as a helper for _new_ newbies. I'm stuck on what I guess is a pythonish thing and my brain hurts. Is there a (straightforward?) way to dynamically compose function argument lists? For example, in C, you can write" f(arg1, arg2, (conditional expression)?(val for TRUE state):(val for FALSE state)). Or one can embed a fcn call within an argument list in order to supply a needed function parameter. In my case here in Zope, sometimes I have to search a ZCatalog prior to displaying the results in a looping construct. Now if the 'moderated' property is active I want to add the keyword arg reviewed='on' to the arg list at the time that the searchResults method is invoked. Since this invokation is in an expression it's certainly a python thing, but I can't find any reference to this type of capability in any reference I have. Did I miss something or is there just no simple way to do this? The only way I can see to do it is to wrap Catalog.searchResults() in an external method with some ifs and elifs. TIA. Jeff Sasmor [EMAIL PROTECTED] ___ 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] OReilly Open Source conference
Hi Zopistas, Anyone else in this list going to the OReilly Open Source SW convention July 17-20?. Anyone interested in having an informal Zopista.party.dinner.beerfest.splunge (or whatever...) one night during the con or perhaps Sunday nite July 16? If enough people are interested I'll try to set something up. Might be fun to hang out and share experiences &stuff; Since this is Off-Topic- probably you should respond via email to: Jeff Sasmor [EMAIL PROTECTED] I'll post a summary to this list if enough people respond. PS: People from Digital Creations are welcome too! ___ 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 )