making zwikiwebs.zexp import unnecessary
I think I read someone had integrated the sample zwiki web(s) into the python product, removing the need for the import which causes great confusion. If you know anything about this, please get in touch. Thanks -Simon
Hi Simon, Yes, the CMFWiki product does this... it's fairly simple code that I think could be lifted directly from the product. I think CMFWiki comes with the CVS checkout of the CMF now... - C Simon Michael wrote:
I think I read someone had integrated the sample zwiki web(s) into the python product, removing the need for the import which causes great confusion. If you know anything about this, please get in touch.
Thanks -Simon
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Chris McDonough <chrism@digicool.com> writes:
Yes, the CMFWiki product does this... it's fairly simple code that I think could be lifted directly from the product. I think CMFWiki comes with the CVS checkout of the CMF now...
Thanks Chris, I will look. I posted a tentative plan on http://zwiki.org/ToDo also.
It occurs to me that you may be confused as to why there are only two Wiki Pages stuck into a CMFWiki by the CMFWiki product. Especially if you haven't worked with the CMF. CMFWiki just creates a skin directory view with the Wiki DTML in it (a feature of the CMF that isn't available in regular Zope)... the only two pages that are non-help that are placed into an actual CMFWiki instance and FrontPage and SandBox. For vanilla ZWiki, I think what you'll need to do is register a "WikiWeb" constructor in the ZWiki __init__.py (much like you register one now for "WikiPage") That constructor method could construct a Folder object, and iterate over all the dtml and Wiki files in a subdirectory of the ZWiki package, adding them to the folder. I think you can rip most of this code right out of CMFWiki, though you may need to extend it a bit for DTML files if there are any. HTH, - C Simon Michael wrote:
Chris McDonough <chrism@digicool.com> writes:
Yes, the CMFWiki product does this... it's fairly simple code that I think could be lifted directly from the product. I think CMFWiki comes with the CVS checkout of the CMF now...
Thanks Chris, I will look. I posted a tentative plan on http://zwiki.org/ToDo also.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org 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 )
participants (2)
-
Chris McDonough -
Simon Michael