[Zope-dev] REQUEST object enlightenment needed
Hello, I'm making a tree out of a StructuredTextDocument e.g.: StructuredTextDocument([ StructuredTextParagraph(o This is colin's test tree doc., [ StructuredTextParagraph(o most salient overall:, [ StructuredTextParagraph(x. finish this project. and journal project., [ ]) ]) ]), StructuredTextParagraph(o and something else , [ ]), ]) With the following external method: from ZTUtils import SimpleTreeMaker import StructuredText def StTree(container, REQUEST, context): treeobj = context.testdocument #this is a CMFDocument #Get the EditableBody of a CMFDocument containing structured text. tree_root = StructuredText.Basic(treeobj.EditableBody()) #Note that if I use a ParsedXML Document, everything works fine! #tree_root = context.ParsedXMLTestDoc tree_name = 'mytree' tm = SimpleTreeMaker(tree_name) #Change the child access function so it will work with StructuredTextDocument def getKids(object): return object.getChildren() tm.setChildAccess(function=getKids) #note the following hack! (it doesn't work all the way, that is my problem) #if I don't do this an error results. tree_root.REQUEST = container.REQUEST tree, rows = tm.cookieTree(tree_root) rows.pop(0) return {'root': tree, 'rows': rows} This code works, in that the first indent levels of the structured text are returned as the top-level nodes of the tree. However, clicking on them does not expand the tree. If I replace the Structured Text tree_root with a ParsedXML Test document, and comment out the tm.setChildAccess line and the tree_root.REQUEST hack, a working tree document results. I think this is a problem with the plain StructuredTextDocument lacking it's own request object. Can anyone give me any pointers? My goal is to create an easy way to make documents that can be expanded and collapsed like documents in MSWord outline format. If there's a simpler solution, please let me know! Thanks! Colin Leath ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] zope.org down from Thu Nov 9 12:00:00 GMT 2000 to present?searchablelist archive not linked to from mailman page; console-based zope development.list archive not linked to from mailman page; console-based zope development.
For the past hour and a half I have only once been able to get through to zope.org. lists.zope.org/mailman/listinfo is accessible, however. A zope.org-status mailing list might be helpful, like the egroups-status list, since Zope work is so dependent on the site. I've been trying to read product descriptions. Is that information available anywhere else? Second, I thought there was a searchable archive of the zope mailing lists. I just found it in my bookmarks: http://zope.nipltd.com/public/lists.html but I was not able to find this link on the lists.zope.org url referenced in the mailing list digests... the list manager might want to change that. Third, I'm trying to figure out ways of managing/developing with Zope from a unix console, using text editors, text browsers and so on. I have no doubt that others would rather not have to use a mouse and GUI to work with Zope. I have already found http://www.zope.org/Members/sf/zopeshell But it says it does not work for 2.2 Could someone please point me to documentation about console-based zope management? If it's easy to find on the zope site, I will find it when I can get through again. thanks, Colin ___ 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-dev] Re: Zope-Dev digest, Vol 1 #785 - 21 msgs
I get that error (replace "python.exe" with the program that just crashed) somewhat often on my NT Server box at work. I notice it most often when using Excel, or when working in Installshield. I assume one of my memory chips has a problem... If you find a different solution, please let me know. Colin [EMAIL PROTECTED] Message: 20 From: "Coi Giovanni" [EMAIL PROTECTED] Organization: Prometeo srl To: Toby Dickenson [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Fri, 3 Nov 2000 17:10:23 +0100 Subject: Re: [Zope-dev] python memory error on Windows NT Reply-to: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] In data 3 Nov 2000, alle ore 11:22, Toby Dickenson ha scritto: someone has never seen this kind of error on Windows NT 4.0 (last patch update) while executing IIS 4.0 + Zope 2.2.2? The panel say: python.exe The instruction at "0x1b271a1f" referenced memory at "0x" The memory could not be "read" ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )