[Zope-dev] Reading contents of a Page Template
Hi All, I have a requirement to create a SiteMap for my site. My site is dynamically built from the Zope tree structure. Folder and Sub Folders need to appear as a tree structure and need to be sorted by name and date. I have viewed the examples in the Examples folder in ZMI and gotten a general Idea of how to get the files within a specific folder. But I need to be able to go through the whole set of folders and sub Folders and create the SiteMap and not just for a single folder . Is there some While- Do Loop which I can use to Loop through till I reach the Lowest rung in a Tree for each and every Folder and create a Site Map. Also Each of these folders has an index_html page template which can be linked from the SiteMap that is created. Each of the index_html files has a number of anchor tags. These Tags are for moving within the Page. I need to be able to include these Tage as well in My SiteMap ... CAN I GET THESE ANCHOR TAG LINKS ON EACH PAGE BY READING THROUGH THE CONTENT OF EACH OF THESE PAGE TEMPLATES? IS THERE SOME OTHER WAY TO DO ALL THESE ??? So Totally I need a SiteMap with all Folders and SubFolders and Anchor Tags to be shown in the SiteMap from where I can click and view these Pages ALL help is appreciated.Thanks in advance. Best Regards Anitha George _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.7 Timeline
Oh by the way my Plone code is in Installers/pwi of the Plone cvs, looks pretty similar to your iss stuff though ;) Yep, it's very nice! I did look at it before doing the 2.7 one, but wasn't sure of its license, so I couldn't just copy it outright. ;-) Also the Plone Windows controller rocks, and I'd like to ship something like it with Zope itself. But a) I don't know it's licensing disposition (we can't ship GPL'ed code with Zope AFAIK) and b) it will need to change a lot due to the install and config changes in 2.7+. So, anyway, if there's any way we can work together on the installer or controller stuff, I'd be very happy. You know more about this shit than I do. ;-) Here's what I know still need to do: - figure out how to get event/access log rotation to work (sigusr2 definitely wont work ;-) - provide a better default config file for Windows (backslashes instead of slashes). - Log startup tracebacks when running as a service to the Windows event log. - C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.7 Timeline
Also the Plone Windows controller rocks, and I'd like to ship something like it with Zope itself. But a) I don't know it's licensing disposition (we can't ship GPL'ed code with Zope AFAIK) and b) it will need to change a lot due to the install and config changes in 2.7+. Im not trying to maintain the Controller any more, mostly because I dont really enjoy trying to faff with MFC code. I've tried to get a gui controller started using wxPython a few times, but ran out of steam before I get anywhere a few times. Either way the Controller does too much work that is now done in 2.7, I'd like it to: - talk to the tools in bin to create new instances (it tried to do its own thing) - talk to ZEO - read and write the ZConfig file So, anyway, if there's any way we can work together on the installer or controller stuff, I'd be very happy. You know more about this shit than I do. ;-) Likewise, when, how or what - I dont know. Here's what I know still need to do: - figure out how to get event/access log rotation to work (sigusr2 definitely wont work ;-) - provide a better default config file for Windows (backslashes instead of slashes). - Log startup tracebacks when running as a service to the Windows event log. Dont we use the logging module now? Can we just plug in the NTEventHandler? I haven't looked at 2.7 so guessing. -- Andy McKay http://www.agmweb.ca ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.7 Timeline
Im not trying to maintain the Controller any more, mostly because I dont really enjoy trying to faff with MFC code. I've tried to get a gui controller started using wxPython a few times, but ran out of steam before I get anywhere a few times. Ya. Me too. ;-) I was also about to write a different service controller today because pythonservice was giving me grief, then luckily I stopped myself. (FWIW, each instance can have a separate service registered for it at install now; I know that gave you problems at one point). Either way the Controller does too much work that is now done in 2.7, I'd like it to: - talk to the tools in bin to create new instances (it tried to do its own thing) - talk to ZEO - read and write the ZConfig file Reading and writing the ZConfig file would be great (writing it will be tricky - ZConfig doesn't retain enough state currently). Not quite sure what you mean by talk to ZEO, but I suspect you mean that you want to determine if ZEO is up or down via the controller. That'd be useful, but I suspect it might be more (and less frameworky) to have a separate controller app for ZEO itself. Personally I'd like to see a GUI controller that got installed on a per-instance basis which had the features of the current UNIX zopectl plus the ability to install and deinstall the service for the instance. This is as opposed to a single controller for all instances on the same machine. I'd like to see instance creation happen in the domain of a separate (also GUI) application. All that said, I'd love anything GUI at this point. ;-) Firing up a DOS box for people is just so nasty. So, anyway, if there's any way we can work together on the installer or controller stuff, I'd be very happy. You know more about this shit than I do. ;-) Likewise, when, how or what - I dont know. Yup. Dont we use the logging module now? Can we just plug in the NTEventHandler? I haven't looked at 2.7 so guessing. We can, but currently 2.7 startup logs to a StartupHandler which only gets flushed to real handlers after we setuid (a noop on windows, but the logic is stupidly the same now for both UNIX and Windows). This needs to be fixed. I also haven't figured out how to register an event log identifier for the Zope application (as opposed to the service control manager app; pythonservice does that for me there). As a result, the event log refuses to accept any messages from Zope when you try to use an NTEventLogHandler. Anyway, if you have any brilliant ideas or code you want to share, let me know... - C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )