zwiki.org new pages http://zwiki.org zwiki.org new pages en Fri, 01 Apr 2016 09:50:47 -0700 GeneralDiscussion2014 http://zwiki.org/GeneralDiscussion2014 http://zwiki.org/GeneralDiscussion2014 <p> </p> <p class="commentheading"><strong>Hi all</strong> --<a href="http://zwiki.org/EmmaLaurijssens">EmmaLaurijssens</a>, Thu, 29 May 2014 15:15:53 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2014?subject=Hi%20all&amp;in_reply_to=%3C20140529151553-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">So, we're still alive. Not to say that I'm more alive than ever :) Quite a change though.</p> Sun, 22 Feb 2015 01:23:21 -0800 GeneralDiscussion2013 http://zwiki.org/GeneralDiscussion2013 http://zwiki.org/GeneralDiscussion2013 <p> </p> <p class="commentheading"><strong>docutils-10</strong> --<a href="http://zwiki.org/BrianKennison">BrianKennison</a>, Wed, 27 Mar 2013 09:39:58 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2013?subject=docutils-10&amp;in_reply_to=%3C20130327093958-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hello everyone</p> <p>I'm running Zop2-13.19 but I recently upgrade docutitls to 10 and rst quit working in zwiki. ( it also stopped the rst product ) I had to back down to version 8 to get it to work. Anybody know any thing about this. Zwiki loads and there's nothing in the log. Docutils move some files around but I haven't found them used any where . Oh well, just thought I'd ask.</p> <p class="commentheading"><strong>docutils-10</strong> --simon, Wed, 27 Mar 2013 09:59:20 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2013?subject=docutils-10&amp;in_reply_to=%3C20130327095920-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hi Brian. Sorry, no clue. If your site is accessible I'll take a look at it. Perhaps you can isolate the problem from Zwiki, it may be independent.</p> Sun, 22 Feb 2015 01:22:57 -0800 GeneralDiscussion2012 http://zwiki.org/GeneralDiscussion2012 http://zwiki.org/GeneralDiscussion2012 <p> </p> <p class="commentheading"><strong>SURVEY: Zwiki usage 2012</strong> --simon, Thu, 23 Feb 2012 19:27:33 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2012?subject=SURVEY%3A%20Zwiki%20usage%202012&amp;in_reply_to=%3C20120223192733-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hey all,</p> <p>I'm gathering usage data on my main FOSS projects, to help me prioritize and allocate resources. I've prepared a short survey for Zwiki (the Zope 2-based wiki engine), 10 optional questions that should take 1-5 minutes. If you use Zwiki (or zwiki.org) and/or would like them to continue - or you just want to share your past experience for the record - you can help a lot by responding to the survey:</p> <p>Zwiki: <a class="reference external" href="https://docs.google.com/spreadsheet/viewform?formkey=dEczMnpOTjZDTVFoZHNOZDB3X0RxVXc6MA">https://docs.google.com/spreadsheet/viewform?formkey=dEczMnpOTjZDTVFoZHNOZDB3X0RxVXc6MA</a></p> <p>Don't hold back! Honest critique welcome. You'll see a summary report after submitting your answers, and before long I'll follow up with the url for full results.</p> <p>Note that contact info will be public, except that I'll hide email addresses if you add them. It's optional but at least a little contact info is quite useful in several ways.</p> <p>Best, -Simon</p> <p class="commentheading"><strong>SURVEY: Zwiki usage 2012</strong> --simon, Fri, 24 Feb 2012 08:54:23 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2012?subject=SURVEY%3A%20Zwiki%20usage%202012&amp;in_reply_to=%3C20120224085423-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">As promised, here are the (live-updating) results pages. The survey remains open, keep em coming...</p> <p>Details: <a class="reference external" href="https://docs.google.com/spreadsheet/ccc?key=0Au47MrJax8HpdEczMnpOTjZDTVFoZHNOZDB3X0RxVXc#gid=3">https://docs.google.com/spreadsheet/ccc?key=0Au47MrJax8HpdEczMnpOTjZDTVFoZHNOZDB3X0RxVXc#gid=3</a></p> <p>Summary: <a class="reference external" href="https://docs.google.com/spreadsheet/gform?key=0Au47MrJax8HpdEczMnpOTjZDTVFoZHNOZDB3X0RxVXc&amp;gridId=3#chart">https://docs.google.com/spreadsheet/gform?key=0Au47MrJax8HpdEczMnpOTjZDTVFoZHNOZDB3X0RxVXc&amp;gridId=3#chart</a> (requires google login)</p> <p>Thanks for the excellent feedback.</p> <p>should've-done-this-long-ago-ly y'rs, -Simon</p> Sun, 22 Feb 2015 01:22:35 -0800 GeneralDiscussion2011 http://zwiki.org/GeneralDiscussion2011 http://zwiki.org/GeneralDiscussion2011 <p> </p> <p class="commentheading"><strong>zwiki.org moved</strong> --admin, Thu, 24 Mar 2011 22:11:02 +0000 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=zwiki.org%20moved&amp;in_reply_to=%3C20110324221102%2B0000%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">zwiki.org and all <a href="#id1"><span class="problematic" id="id2">*</span></a>.zwiki.org sites have moved to a new VPS running zope 2.13.5. Everything should be working at this point, so please report any breakage.</p> <p>Best - Simon</p> <p class="commentheading"><strong>Hi all</strong> --frank, Sun, 26 Jun 2011 23:37:20 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C20110626233720-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">It sure is quiet... cleaned up some vandalism, someone renamed <a href="http://zwiki.org/FreeHosting">FreeHosting</a>. For some reason I didn't bother to look into, it broke the &quot;new parent, name, replacement, page&quot; form, so I did a manual rename and reverted all pages. Another thing that I learned is that a page rename apparently breaks the link with the page history; the page history remains available under the old name.</p> <p class="commentheading"><strong>Hi all</strong> --<a href="http://zwiki.org/EmmaLaurijssens">EmmaLaurijssens</a>, Sun, 26 Jun 2011 23:41:52 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C20110626234152-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">...and unsubscribed umuidi4 while I was at it. A hacked Yahoo account that autoresponds with bad urls, blech.</p> <p class="commentheading"><strong>Hi all</strong> --simon, Mon, 27 Jun 2011 06:02:54 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C20110627060254-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hi Frank.. thanks.</p> <p class="commentheading"><strong>Hi all</strong> --Simon Michael, Thu, 30 Jun 2011 13:24:48 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C4E0CDB8E.9060905%40joyful.com%3E#bottom">reply</a></p> <p class="commentbody">PS, thanks a lot for the cleanup help. I didn't see your first post and the extent of the spam until later.</p> <p class="commentheading"><strong>Hi all</strong> --<a href="http://zwiki.org/EmmaLaurijssens">EmmaLaurijssens</a>, Thu, 30 Jun 2011 13:41:32 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C20110630134132-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">YW. It struck me as odd that I wasn't able to rename the page the 'normal' way. I didn't want to rename it from Zope as that would certainly break things so I crafted a rename URL. That worked, although it didn't rename any wikilinks. Catalog issue?</p> <p class="commentheading"><strong>Hi all</strong> --Simon Michael, Thu, 30 Jun 2011 13:43:00 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C2E079207-AE54-4E22-AB58-AB9CF73FF205%40joyful.com%3E#bottom">reply</a></p> <p class="commentbody">Nice. What prevented ordinary renaming ? Rename button not visible ?</p> <p class="commentheading"><strong>Hi all</strong> --Frank Laurijssens, Thu, 30 Jun 2011 13:48:32 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C6FE02A2B5E2C9E4CB6790E2898929D29239DFB%40vm000110.ictio.zone%3E#bottom">reply</a></p> <p class="commentbody">Exactly. No buttons available, to be even more exact. And it's really been a long time since I looked at the code to see how it works. :-)</p> <p class="commentheading"><strong>Hi all</strong> --Simon Michael, Thu, 30 Jun 2011 14:02:39 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C9A15D516-E48D-48AD-AB0B-7D6C5C5D0D90%40joyful.com%3E#bottom">reply</a></p> <p class="commentbody">I looked briefly but didn't get to the bottom of it. On zwiki.org in the past those buttons appeared if you were authenticated or if you had a username configured in options. I still see them appearing on some pages but not consistently. Perhaps zwiki.org's over-aggressive apache mod_cache is causing confusion.</p> <p>I noticed some explicit anonymous edit permissions granted on <a href="http://zwiki.org/FreeHosting">FreeHosting</a>, and have removed those. I'm close to turning off anonymous edits on zwiki.org (following wiki.zope.org) since it seems pretty much in archive mode now.</p> <p class="commentheading"><strong>Hi all</strong> --Frank Laurijssens, Thu, 30 Jun 2011 14:07:14 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=Hi%20all&amp;in_reply_to=%3C6FE02A2B5E2C9E4CB6790E2898929D2923A655%40vm000110.ictio.zone%3E#bottom">reply</a></p> <p class="commentbody">Yes, I was somewhat surprised about those permissions as well. I did try to remove or reset them but it didn't make any difference, so I reverted it to the previous state.</p> <p>The buttons remained absent when I was logged on to Zope as well, so I figured it wasn't just a permissions issue.</p> <p class="commentheading"><strong>thanks for the cleanup</strong> --simon, Fri, 11 Nov 2011 10:40:54 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=thanks%20for%20the%20cleanup&amp;in_reply_to=%3C20111111104054-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Frank Laurijssens, I hereby award you the Gold Star of the Loyal Order of Wiki Defenders in recognition of your help with bot spam cleanup. Thanks for the big repair job yesterday!</p> <p>Well, the time has come. I have turned off all non-authenticated edit access on zwiki.org, except for <a href="http://zwiki.org/GeneralDiscussion">GeneralDiscussion</a> where anyone with a username set in options can still add comments. One of these days I'll figure out something better to do with this site - ideas welcome.</p> <p class="commentheading"><strong>thanks for the cleanup</strong> --<a href="http://zwiki.org/EmmaLaurijssens">EmmaLaurijssens</a>, Fri, 11 Nov 2011 10:51:55 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=thanks%20for%20the%20cleanup&amp;in_reply_to=%3C20111111105155-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">You're welcome :-)</p> <p>As I've explained before, I'm a lousy programmer, so except for the occasional bug squatting and user feedback I'm useless in projects like these otherwise ;-)</p> <p class="commentheading"><strong>UnicodeDecoding<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2011/createform?page=UnicodeDecoding" title="create this page">?</a> Error when creating a page</strong> --lww4, Fri, 02 Dec 2011 06:24:53 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=UnicodeDecoding%20Error%20when%20creating%20a%20page&amp;in_reply_to=%3C20111202062453-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">i cannot create page named in korean. always &quot;UnicodeDecoding<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2011/createform?page=UnicodeDecoding" title="create this page">?</a> Error&quot;. how can i create a page named in non-ascii characters.</p> <p class="commentheading"><strong>UnicodeDecoding<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2011/createform?page=UnicodeDecoding" title="create this page">?</a>? Error when creating a page</strong> --simon, Sat, 03 Dec 2011 08:40:46 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=UnicodeDecoding%3F%20Error%20when%20creating%20a%20page&amp;in_reply_to=%3C20111203084046-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hi, this is supported by both Zwiki 1 and 2 I believe. <a class="reference external" href="http://zwiki.org/Configuring#internationalisation">http://zwiki.org/Configuring#internationalisation</a> has a little more detail and <a class="reference external" href="http://zwiki.org/X_d55c_ae00_b9c1_d06c">http://zwiki.org/X_d55c_ae00_b9c1_d06c</a> is an example. Use Zwiki to create the page - not the Zope Management Interface. If it still doesn't work, maybe paste the error traceback to a paste site like gist.github.com. You can see this with bin/zopectl fg or in the <a class="reference external" href="http://wiki.zope.org/zope2/EventLog">http://wiki.zope.org/zope2/EventLog</a> .</p> <p class="commentheading"><strong>unsubscribe</strong> --philipp, Sun, 04 Dec 2011 15:15:51 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2011?subject=unsubscribe&amp;in_reply_to=%3C20111204151551-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hi, how can I unsubscribe from this mailing list? Best regards, Philipp</p> Sun, 22 Feb 2015 01:21:45 -0800 GeneralDiscussion2010 http://zwiki.org/GeneralDiscussion2010 http://zwiki.org/GeneralDiscussion2010 <p> </p> <p class="commentheading"><strong>server outage, caching changes</strong> --Simon Michael, Tue, 12 Jan 2010 07:04:11 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=server%20outage%2C%20caching%20changes&amp;in_reply_to=%3C5CBFF658-3C2D-4010-885F-FB878C80C0BE%40joyful.com%3E#bottom">reply</a></p> <p class="commentbody">My server has been increasingly melting down due to heavy ill-behaved bot traffic and trying to do too much in 1G of ram with not enough sysadmin-fu; I had to walk away from it this weekend. Sorry for the recent slowness and outages. I have been trying all kinds of adjustments, as well as looking into reducing the free hosted zwikis, moving zope to a cheaper vps and so on.</p> <p>This week I have enabled apache's mod_disk_cache for all of joyful.com &amp; zwiki.org. Now those slow zope requests are being cached in /var/ cache/apache2/mod_disk_cache, and server load is way down. But you may not see very fresh results, I think depending on your browser. Eg the last edited time at top right of wiki pages may be way wrong. I suspect it should update itself after an hour, but maybe not. If in doubt, try a shift-reload. Still working on this.</p> <p>Best - Simon</p> <p class="commentheading"><strong>server outage, caching changes</strong> --Niall Douglas, Wed, 13 Jan 2010 02:41:35 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=server%20outage%2C%20caching%20changes&amp;in_reply_to=%3C4B4DA35A.27394.4819F93%40s_sourceforge.nedprod.com%3E#bottom">reply</a></p> <p class="commentbody">On 12 Jan 2010 at 7:04, Simon Michael wrote:</p> <p>&gt; My server has been increasingly melting down due to heavy ill-behaved &gt; bot traffic and trying to do too much in 1G of ram with not enough &gt; sysadmin-fu; I had to walk away from it this weekend. Sorry for the &gt; recent slowness and outages. I have been trying all kinds of &gt; adjustments, as well as looking into reducing the free hosted zwikis, &gt; moving zope to a cheaper vps and so on.</p> <p>Sorry to hear this, though I don't think that RAM will be your problem.</p> <p>&gt; This week I have enabled apache's mod_disk_cache for all of joyful.com &gt; &amp; zwiki.org. Now those slow zope requests are being cached in /var/ &gt; cache/apache2/mod_disk_cache, and server load is way down. But you may &gt; not see very fresh results, I think depending on your browser. Eg the &gt; last edited time at top right of wiki pages may be way wrong. I &gt; suspect it should update itself after an hour, but maybe not. If in &gt; doubt, try a shift-reload. Still working on this.</p> <p>I would VERY strongly recommend deploying a nginx + varnish frontend to Zope instead of Apache. You'll get a fast, responsive and fresh website with no page being more than a few seconds out of date, and I was running that on 256Mb of RAM for around a year (I wouldn't recommend this though if anyone is logging in). 512Mb should be enough, and 1Gb more than plenty. That said, FsckVPS<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=FsckVPS" title="create this page">?</a> were doing a 25% off for life deal there before and you nowadays get a KVM rather than OpenVZ<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=OpenVZ" title="create this page">?</a> which makes it the best on the VPS market right now. Oh BTW you might find my site <a class="reference external" href="http://www.lowenddedi.net/">http://www.lowenddedi.net/</a> useful - it's a list of the cheapest Plone capable hosting providers along with reviews and tests.</p> <p>I have an outdated guide along with testing results at <a class="reference external" href="http://www.nedprod.com/Niall_stuff/lowendDedicatedPloneServer.html">http://www.nedprod.com/Niall_stuff/lowendDedicatedPloneServer.html</a>. If you do decide to go down this route, let me know and I'll freshen that page with my latest config scripts - in particular my varnish default.vcl has evolved considerably over the past year. It's such a capable programming language!</p> <p>HTH, Niall</p> <p class="commentheading"><strong>server outage, caching changes</strong> --Simon Michael, Wed, 13 Jan 2010 07:36:24 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=server%20outage%2C%20caching%20changes&amp;in_reply_to=%3C446B7C5B-9569-436F-91ED-E1187B9221DC%40joyful.com%3E#bottom">reply</a></p> <p class="commentbody">Niall, thanks a lot, I had forgotten these pages. This really deserves to be prominent in the zope &amp; plone docs. I'll reread and explore those suggestions more. What makes you prefer nginx + varnish so much to apache (+ varnish, perhaps) ? Note my zope with just two threads and 5000 target cache size likes to get up around 700M. I have a $20/ mo 1G vps from prgmr.com to try, which seems a pretty good deal..</p> <p class="commentheading"><strong>server outage, caching changes</strong> --Niall Douglas, Wed, 13 Jan 2010 08:01:59 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=server%20outage%2C%20caching%20changes&amp;in_reply_to=%3C4B4DEE77.13979.5A70BC9%40s_sourceforge.nedprod.com%3E#bottom">reply</a></p> <p class="commentbody">On 13 Jan 2010 at 7:36, Simon Michael wrote:</p> <p>&gt; Niall, thanks a lot, I had forgotten these pages. This really deserves &gt; to be prominent in the zope &amp; plone docs. I'll reread and explore &gt; those suggestions more. What makes you prefer nginx + varnish so much &gt; to apache (+ varnish, perhaps) ? Note my zope with just two threads &gt; and 5000 target cache size likes to get up around 700M. I have a $20/ &gt; mo 1G vps from prgmr.com to try, which seems a pretty good deal..</p> <p>My reasons were purely from benchmarking - nginx had a narrower result variance even though it was slightly slower on average than its next competitor which in my mind meant it was more predictable and therefore more desirable. BTW nginx is many times faster than Apache when acting as a simple frontend, so much so that I simply wouldn't advise using Apache at all. In the end though, my nginx does very little except handling a few static pages, some gzip compression of merged CSS and Javascript which Zope cannot currently gzip (this makes a BIG difference to bandwidth usage when using Plone) and of course HTTPS. I don't think I have the magic nginx config for this public, so here it is:</p> <blockquote> # Plone's ResourceRegistries<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=ResourceRegistries" title="create this page">?</a> can't gzip their compressed output # so we need to patch it here. Makes a huge difference to first # load times so it's worth the extra server load gzip on; gzip_http_version 1.0; gzip_buffers 16 8k; gzip_min_length 1000; gzip_proxied any; gzip_types application/x-javascript text/css; gzip_disable &quot;MSIE [1-6]<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=1-6" title="create this page">?</a>.&quot;; gzip_vary on;</blockquote> <p>If you do follow the nginx route, let me know if you have trouble figuring out how to correctly handle 503 errors. It took me weeks of experimentation :(</p> <p>BTW I've attached my varnish default.vcl below. You'll note that it manages to &quot;mount&quot; cached copies of Google Finance and the RePeC<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=RePeC" title="create this page">?</a> bibliographic database as subdirectories of my websites - this allows one to work around cross-domain scripting in AJAX. Such is the power of varnish!</p> <p>I have a low end 1.2Ghz Celeron D dedicated server, yet a nginx + varnish config will easily max out my 100Mbit network port before maxing out my CPU. I'd doubt though that my CPU would handle a 1Gbit max out though.</p> <p>HTH, Niall</p> <p># This VCL config file is adapted from template.vcl in <a class="reference external" href="http://pypi.python.org/pypi/plone.recipe.varnish">http://pypi.python.org/pypi/plone.recipe.varnish</a> backend default {</p> <blockquote> .host = &quot;localhost&quot;; .port = &quot;6100&quot;; .first_byte_timeout = 300s; /* varnish v2.0.3 or later only <a href="#id4"><span class="problematic" id="id5">*</span></a>/</blockquote> <p>}</p> <dl class="docutils"> <dt>backend repec {</dt> <dd>.host = &quot;ideas.repec.org&quot;; .port = &quot;80&quot;;</dd> </dl> <p>}</p> <dl class="docutils"> <dt>backend google {</dt> <dd>.host = &quot;209.85.229.106&quot;; /<em>www.google.com&quot;;</em>/ .port = &quot;80&quot;;</dd> </dl> <p>}</p> <p>/* Only permit cluster to purge files from cache <a href="#id6"><span class="problematic" id="id7">*</span></a>/ acl purge {</p> <blockquote> &quot;dedi1.nedprod.com&quot;; &quot;us1.nedproductions.biz&quot;; &quot;localhost&quot;;</blockquote> <p>}</p> <dl class="docutils"> <dt>sub vcl_recv {</dt> <dd>set req.grace = 20s; /* Only enable if you don't mind slightly stale</dd> </dl> <p>content <a href="#id8"><span class="problematic" id="id9">*</span></a>/</p> <blockquote> <p>/* Before anything else we need to fix gzip compression <a href="#id10"><span class="problematic" id="id11">*</span></a>/ if (req.http.Accept-Encoding) {</p> <blockquote> <dl class="docutils"> <dt>if (req.url ~ &quot;.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$&quot;) {</dt> <dd># No point in compressing these remove req.http.Accept-Encoding;</dd> <dt>} else if (req.http.Accept-Encoding ~ &quot;gzip&quot;) {</dt> <dd>set req.http.Accept-Encoding = &quot;gzip&quot;;</dd> <dt>} else if (req.http.Accept-Encoding ~ &quot;deflate&quot;) {</dt> <dd>set req.http.Accept-Encoding = &quot;deflate&quot;;</dd> <dt>} else {</dt> <dd># unknown algorithm remove req.http.Accept-Encoding;</dd> </dl> <p>}</p> </blockquote> <p>}</p> <dl class="docutils"> <dt>if (req.request == &quot;PURGE&quot;) {</dt> <dd><dl class="first docutils"> <dt>if (!client.ip ~ purge) {</dt> <dd>error 405 &quot;Not allowed.&quot;;</dd> </dl> <p>} /* Always purge by URL rather than going via vcl_hash</p> <blockquote> as it hashes other factors which break purging <a href="#id12"><span class="problematic" id="id13">*</span></a>/</blockquote> <p class="last">purge_url(req.url); error 200 &quot;Purged&quot;;</p> </dd> </dl> <p>}</p> <p>/* Rewrite all requests to /repec/cgi-bin/authorref.cgi to</p> </blockquote> <dl class="docutils"> <dt><a class="reference external" href="http://ideas.repec.org/cgi-bin/authorref.cgi">http://ideas.repec.org/cgi-bin/authorref.cgi</a> <a href="#id14"><span class="problematic" id="id15">*</span></a>/</dt> <dd>if (req.url ~ &quot;^/repec/cgi-bin/authorref.cgi?handle=&quot; || req.url ~</dd> <dt>&quot;^/repec/cgi-bin/ref.cgi?handle=&quot;) {</dt> <dd><blockquote class="first"> set req.http.host = &quot;ideas.repec.org&quot;; set req.url = regsub(req.url, &quot;^/repec&quot;, &quot;&quot;); set req.backend = repec; remove req.http.Cookie; lookup;</blockquote> <dl class="last docutils"> <dt>} else if(req.url ~ &quot;^/googlefinance/finance/converter?&quot;) {</dt> <dd>set req.http.host = &quot;www.google.com&quot;; set req.url = regsub(req.url, &quot;^/googlefinance&quot;, &quot;&quot;); set req.backend = google; remove req.http.Cookie; lookup;</dd> <dt>} else {</dt> <dd><p class="first">set req.backend = default; if (req.http.X-Forwarded-Proto == &quot;https&quot; ) {</p> <blockquote> set req.http.X-Forwarded-Port = &quot;443&quot;;</blockquote> <dl class="docutils"> <dt>} else {</dt> <dd>set req.http.X-Forwarded-Port = &quot;80&quot;;</dd> </dl> <p class="last">} if (req.http.host ~ &quot;^(www.|ipv6.)?([-0-9a-zA-Z]<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=-0-9a-zA-Z" title="create this page">?</a>+).([a-zA-</p> </dd> </dl> </dd> <dt>Z]+)$&quot;) {</dt> <dd>set req.http.host = regsub(req.http.host, &quot;^(www.|ipv6.)?([-0-9a-</dd> <dt>zA-Z]+).([a-zA-Z]<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=a-zA-Z" title="create this page">?</a>+)$&quot;, &quot;12.3&quot;);</dt> <dd><dl class="first last docutils"> <dt>set req.url = &quot;/VirtualHostBase<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=VirtualHostBase" title="create this page">?</a>/&quot; req.http.X-Forwarded-Proto</dt> <dd>regsub(req.http.host, &quot;^(www.|ipv6.)?([-0-9a-zA-Z]<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=-0-9a-zA-Z" title="create this page">?</a>+).([a-zA-</dd> </dl> </dd> <dt>Z]+)$&quot;, &quot;/12.3:&quot;)</dt> <dd>req.http.X-Forwarded-Port regsub(req.http.host, &quot;^(www.|ipv6.)?([-0-9a-zA-Z]<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=-0-9a-zA-Z" title="create this page">?</a>+).([a-zA-</dd> <dt>Z]+)$&quot;, &quot;/2.3/2.3/VirtualHostRoot<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=VirtualHostRoot" title="create this page">?</a>&quot;)</dt> <dd><blockquote class="first"> <blockquote> req.url;</blockquote> <p>}</p> </blockquote> <p>}</p> <dl class="docutils"> <dt>if (req.request != &quot;GET&quot; &amp;&amp;</dt> <dd>req.request != &quot;HEAD&quot; &amp;&amp; req.request != &quot;PUT&quot; &amp;&amp; req.request != &quot;POST&quot; &amp;&amp; req.request != &quot;TRACE&quot; &amp;&amp; req.request != &quot;OPTIONS&quot; &amp;&amp; req.request != &quot;DELETE&quot;) { /* Non-RFC2616 or CONNECT which is weird. <a href="#id16"><span class="problematic" id="id17">*</span></a>/ pipe;</dd> </dl> <p>}</p> <dl class="docutils"> <dt>if (req.request != &quot;GET&quot; &amp;&amp; req.request != &quot;HEAD&quot;) {</dt> <dd>/* We only deal with GET and HEAD by default <a href="#id18"><span class="problematic" id="id19">*</span></a>/ pass;</dd> </dl> <p>}</p> <dl class="last docutils"> <dt>if (req.http.Cookie) {</dt> <dd># We only care about the &quot;__ac.*&quot; cookies, used for</dd> </dl> </dd> <dt>authentication and special persistent p_* cookies.</dt> <dd><blockquote class="first"> <dl class="docutils"> <dt>if (req.http.Cookie ~ &quot;__ac.*&quot; ) {</dt> <dd>pass;</dd> </dl> <p>} # Else strip all cookies remove req.http.Cookie;</p> </blockquote> <p>}</p> <dl class="docutils"> <dt>if (req.http.If-None-Match) {</dt> <dd>pass;</dd> </dl> <p>}</p> <dl class="docutils"> <dt>if (req.url ~ &quot;createObject&quot;) {</dt> <dd>pass;</dd> </dl> <p>}</p> <p class="last">lookup;</p> </dd> </dl> <p>}</p> <dl class="docutils"> <dt>sub vcl_pipe {</dt> <dd># This is not necessary if you do not do any request rewriting. set req.http.connection = &quot;close&quot;;</dd> </dl> <p>}</p> <dl class="docutils"> <dt>sub vcl_hash {</dt> <dd><p class="first"># Normally it hashes on URL and Host but we rewrite the host # into a VirtualHostBase<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=VirtualHostBase" title="create this page">?</a> URL. Therefore we can hash on URL alone. set req.hash += req.url;</p> <p># One needs to include compression state normalised above if (req.http.Accept-Encoding) {</p> <blockquote> set req.hash += req.http.Accept-Encoding;</blockquote> <p>}</p> <p># Differentiate based on login cookie too #set req.hash += req.http.cookie;</p> <p class="last">return (hash);</p> </dd> </dl> <p>}</p> <dl class="docutils"> <dt>sub vcl_hit {</dt> <dd><dl class="first docutils"> <dt>if (req.request == &quot;PURGE&quot;) {</dt> <dd>purge_url(req.url); error 200 &quot;Purged&quot;;</dd> </dl> <p class="last">}</p> </dd> </dl> <p>}</p> <dl class="docutils"> <dt>sub vcl_miss {</dt> <dd><dl class="first docutils"> <dt>if (req.request == &quot;PURGE&quot;) {</dt> <dd>error 404 &quot;Not in cache&quot;;</dd> </dl> <p class="last">}</p> </dd> </dl> <p>}</p> <dl class="docutils"> <dt>sub vcl_fetch {</dt> <dd>set req.grace = 20s; /* Only enable if you don't mind slightly stale</dd> <dt>content <a href="#id20"><span class="problematic" id="id21">*</span></a>/</dt> <dd><dl class="first docutils"> <dt>if (req.url ~ &quot;.svgz$&quot;) {</dt> <dd># Add a Content-Encoding to match compressed SVG set obj.http.Content-Type = &quot;image/svg+xml&quot;; set obj.http.Content-Encoding = &quot;gzip&quot;; remove obj.http.Content-Length; set obj.ttl = 86400s; set obj.http.Cache-Control = &quot;max-age=3600&quot;; deliver;</dd> </dl> <p class="last">} if (req.http.host == &quot;ideas.repec.org&quot; || req.http.host ==</p> </dd> <dt>&quot;www.google.com&quot;) {</dt> <dd>set obj.http.Content-Type = &quot;text/html; charset=utf-8&quot;; /* Correct</dd> <dt>the wrong response <a href="#id22"><span class="problematic" id="id23">*</span></a>/</dt> <dd><blockquote class="first"> set obj.ttl = 86400s; set obj.http.Cache-Control = &quot;max-age=3600&quot;; deliver;</blockquote> <p>} if (obj.http.Set-Cookie) {</p> <blockquote> pass;</blockquote> <p>} if (req.http.Authorization &amp;&amp; !obj.http.Cache-Control ~ &quot;public&quot;) {</p> <blockquote> pass;</blockquote> <p>} /* Only use this if you wish to override Plone's CacheFu<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=CacheFu" title="create this page">?</a> <a href="#id24"><span class="problematic" id="id25">*</span></a>/ if (obj.ttl &lt; 3600s) {</p> <blockquote class="last"> <dl class="docutils"> <dt>if (obj.http.Cache-Control ~ &quot;(private|no-cache|no-store)&quot;) {</dt> <dd>set obj.ttl = 60s; /* Caching everything anonymous for 60s is</dd> </dl> </blockquote> </dd> <dt>handy for being slashdotted :) <a href="#id26"><span class="problematic" id="id27">*</span></a>/</dt> <dd><blockquote class="first"> <dl class="docutils"> <dt>} else {</dt> <dd>set obj.ttl = 3600s;</dd> </dl> <p>}</p> </blockquote> <p class="last">}</p> </dd> </dl> <p>}</p> <dl class="docutils"> <dt>sub vcl_error {</dt> <dd>set obj.http.Content-Type = &quot;text/html; charset=utf-8&quot;; synthetic {&quot;</dd> </dl> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;</p> <blockquote> &quot;<a class="reference external" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&quot;&gt;</blockquote> <dl class="docutils"> <dt>&lt;html&gt;</dt> <dd><dl class="first docutils"> <dt>&lt;head&gt;</dt> <dd>&lt;title&gt;&quot;} obj.status &quot; &quot; obj.response {&quot;&lt;/title&gt;</dd> </dl> <p>&lt;/head&gt; &lt;body&gt;</p> <blockquote class="last"> <dl class="docutils"> <dt>&lt;div style=&quot;background-color:yellow;&quot;&gt;</dt> <dd>&lt;h1&gt;This website is unavailable&lt;/h1&gt; &lt;p&gt;If you are seeing this page, either maintenance is being</dd> </dl> </blockquote> </dd> <dt>performed</dt> <dd>or something really bad has happened. Try returning in a few</dd> <dt>minutes.&lt;/p&gt;</dt> <dd><p class="first">&lt;h2&gt;Error &quot;} obj.status &quot; &quot; obj.response {&quot;&lt;/h2&gt; &lt;p&gt;&quot;} obj.response {&quot;&lt;/p&gt; &lt;h3&gt;Guru Meditation:&lt;/h3&gt; &lt;p&gt;XID: &quot;} req.xid {&quot;&lt;/p&gt; &lt;address&gt;</p> <blockquote class="last"> &lt;a href=&quot;<a class="reference external" href="http://www.nedproductions.biz/">http://www.nedproductions.biz/</a>&quot;&gt;ned Productions</blockquote> </dd> <dt>Ltd.&lt;/a&gt;</dt> <dd><blockquote class="first"> &lt;/address&gt;</blockquote> <p class="last">&lt;/div&gt; &lt;div style=&quot;position:fixed;top:0;left:0;width:100%;height:100%;z-</p> </dd> <dt>index:-1;&quot;&gt;</dt> <dd>&lt;img alt=&quot;&quot; src=&quot;/static/BBCTestCard<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=BBCTestCard" title="create this page">?</a>.jpg&quot;</dd> <dt>style=&quot;width:100%;height:100%&quot; /&gt;&lt;/div&gt;</dt> <dd>&lt;/body&gt;</dd> </dl> <p>&lt;/html&gt; &quot;};</p> <blockquote> return (deliver);</blockquote> <p>}</p> <p>#Below is a commented-out copy of the default VCL logic. If you #redefine any of these subroutines, the built-in logic will be #appended to your code. # #sub vcl_recv { # if (req.request != &quot;GET&quot; &amp;&amp; # req.request != &quot;HEAD&quot; &amp;&amp; # req.request != &quot;PUT&quot; &amp;&amp; # req.request != &quot;POST&quot; &amp;&amp; # req.request != &quot;TRACE&quot; &amp;&amp; # req.request != &quot;OPTIONS&quot; &amp;&amp; # req.request != &quot;DELETE&quot;) { # /* Non-RFC2616 or CONNECT which is weird. <em>/ # return (pipe); # } # if (req.request != &quot;GET&quot; &amp;&amp; req.request != &quot;HEAD&quot;) { # /</em> We only deal with GET and HEAD by default <em>/ # return (pass); # } # if (req.http.Authorization || req.http.Cookie) { # /</em> Not cacheable by default <em>/ # return (pass); # } # return (lookup); #} # #sub vcl_pipe { # return (pipe); #} # #sub vcl_pass { # return (pass); #} # #sub vcl_hash { # set req.hash += req.url; # if (req.http.host) { # set req.hash += req.http.host; # } else { # set req.hash += server.ip; # } # return (hash); #} # #sub vcl_hit { # if (!obj.cacheable) { # return (pass); # } # return (deliver); #} # #sub vcl_miss { # return (fetch); #} # #sub vcl_fetch { # if (!obj.cacheable) { # return (pass); # } # if (obj.http.Set-Cookie) { # return (pass); # } # set obj.prefetch = -30s; # return (deliver); #} # #sub vcl_deliver { # return (deliver); #} # #sub vcl_discard { # /</em> XXX: Do not redefine vcl_discard{}, it is not yet supported <em>/ # return (discard); #} # #sub vcl_prefetch { # /</em> XXX: Do not redefine vcl_prefetch{}, it is not yet supported <em>/ # return (fetch); #} # #sub vcl_timeout { # /</em> XXX: Do not redefine vcl_timeout{}, it is not yet supported <a href="#id28"><span class="problematic" id="id29">*</span></a>/ # return (discard); #} # #sub vcl_error { # set obj.http.Content-Type = &quot;text/html; charset=utf-8&quot;; # synthetic {&quot; #&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; #&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; # &quot;<a class="reference external" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&quot;&gt; #&lt;html&gt; # &lt;head&gt; # &lt;title&gt;&quot;} obj.status &quot; &quot; obj.response {&quot;&lt;/title&gt; # &lt;/head&gt; # &lt;body&gt; # &lt;h1&gt;Error &quot;} obj.status &quot; &quot; obj.response {&quot;&lt;/h1&gt; # &lt;p&gt;&quot;} obj.response {&quot;&lt;/p&gt; # &lt;h3&gt;Guru Meditation:&lt;/h3&gt; # &lt;p&gt;XID: &quot;} req.xid {&quot;&lt;/p&gt; # &lt;address&gt; # &lt;a href=&quot;<a class="reference external" href="http://www.varnish-cache.org/">http://www.varnish-cache.org/</a>&quot;&gt;Varnish&lt;/a&gt; # &lt;/address&gt; # &lt;/body&gt; #&lt;/html&gt; #&quot;}; # return (deliver); #}</p> <p class="commentheading"><strong>Site Error/ An error was encountered while publishing this resource.</strong> --johngrey, Wed, 20 Jan 2010 14:38:42 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=Site%20Error/%20An%20error%20was%20encountered%20while%20publishing%20this%20resource.&amp;in_reply_to=%3C20100120143842-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Sorry to have to post what is probably something very basic but..</p> <p>All the ZWikis<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=ZWikis" title="create this page">?</a> on my Zope site have suddenly stopped working for no obvious reason (well to me at least)</p> <p>I'm using:</p> <p>(Zope 2.10.5-final, python 2.4.5, linux2) Python Version 2.4.5 (<a href="http://zwiki.org/2AnotherIssue" style="background-color:#bbeebb;">#2</a>, Jul 22 2009, 13:43:00) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=GCC%204.2.4%20%28Ubuntu%204.2.4-1ubuntu3%29" title="create this page">?</a> <a href="http://zwiki.org/ZWiki">ZWiki</a> (Installed product <a href="http://zwiki.org/ZWiki">ZWiki</a> (<a href="http://zwiki.org/ZWiki">ZWiki</a>-0-61-0))</p> <p>All the <a href="http://zwiki.org/ZWiki">ZWiki</a> pages are accessible via the ZMI but attempting to display any of them gives the following Traceback. This traceback is the result of trying to display a <a href="http://zwiki.org/ZWiki">ZWiki</a> I have just added.</p> <p>I'm at a loss to know how to approach this.</p> <p>Any ideas?</p> <p>thanks John</p> <pre class="literal-block"> Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 202, in publish_module_standard * Module ZPublisher.Publish, line 150, in publish * Module Zope2.App.startup, line 221, in zpublisher_exception_hook * Module ZPublisher.Publish, line 119, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 42, in call_object * Module Products.ZWiki.ZWikiPage, line 229, in __call__ * Module Products.ZWiki.ZWikiPage, line 241, in render * Module Products.ZWiki.pagetypes.stx, line 96, in render * Module Products.ZWiki.Views, line 668, in addSkinTo * Module Shared.DC.Scripts.Bindings, line 313, in __call__ * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec * Module Products.PageTemplates.PageTemplateFile, line 129, in _exec * Module Products.PageTemplates.PageTemplate, line 89, in pt_render * Module zope.pagetemplate.pagetemplate, line 117, in pt_render Warning: Macro expansion failed Warning: exceptions.AttributeError: pt_macros * Module zope.tal.talinterpreter, line 271, in __call__ * Module zope.tal.talinterpreter, line 346, in interpret * Module zope.tal.talinterpreter, line 891, in do_useMacro * Module zope.tal.talinterpreter, line 346, in interpret * Module zope.tal.talinterpreter, line 536, in do_optTag_tal * Module zope.tal.talinterpreter, line 521, in do_optTag * Module zope.tal.talinterpreter, line 516, in no_tag * Module zope.tal.talinterpreter, line 346, in interpret * Module zope.tal.talinterpreter, line 949, in do_defineSlot * Module zope.tal.talinterpreter, line 346, in interpret * Module zope.tal.talinterpreter, line 536, in do_optTag_tal * Module zope.tal.talinterpreter, line 521, in do_optTag * Module zope.tal.talinterpreter, line 516, in no_tag * Module zope.tal.talinterpreter, line 346, in interpret * Module zope.tal.talinterpreter, line 870, in do_useMacro * Module zope.tales.tales, line 696, in evaluate URL: wikipage Line 7, Column 6 Expression: &lt;PathExpr standard:'here/macros/pagesearchtags'&gt; Names: {'container': &lt;Folder at /test_wiki&gt;, 'context': &lt;ZWikiPage 'FrontPage' at 0x941f7cc&gt;, 'default': &lt;object object at 0xb7d6f528&gt;, 'here': &lt;ZWikiPage 'FrontPage' at 0x941f7cc&gt;, 'loop': {}, 'nothing': None, 'options': {'args': (&lt;ZWikiPage 'FrontPage' at 0x941f7cc&gt;, &lt;HTTPRequest, URL=http://red.sunderland.ac.uk:8080/test_wiki/FrontPage&gt;), 'body': '&lt;p&gt;&lt;strong&gt;Welcome!&lt;/strong&gt; &lt;/p&gt;\n&lt;p&gt;This is the front page of &lt;a href=&quot;http://red.sunderland.ac.uk:8080/test_wiki/ZWiki&quot;&gt;ZWiki&lt;/a&gt;\'s &quot;basic&quot; wiki template, a small set of\nstarter pages for your wiki. &lt;a href=&quot;FrontPage/editform&quot;&gt;Edit&lt;/ [cut the rest of the default Frontpage] &gt;\n&lt;p&gt;Enjoy your wiki!&lt;/p&gt;\n&lt;p&gt;\n&lt;/p&gt;\n'}, 'repeat': &lt;Products.PageTemplates.Expressions.SafeMapping object at 0x94347ec&gt;, 'request': &lt;HTTPRequest, URL=http://red.sunderland.ac.uk:8080/test_wiki/FrontPage&gt;, 'root': &lt;Application at &gt;, 'template': &lt;PageTemplateFile at /test_wiki/wikipage used for /test_wiki/FrontPage&gt;, 'user': &lt;User 'john'&gt;} * Module zope.tales.expressions, line 217, in __call__ * Module Products.PageTemplates.Expressions, line 153, in _eval * Module zope.tales.expressions, line 124, in _eval * Module Products.PageTemplates.Expressions, line 80, in boboAwareZopeTraverse * Module OFS.Traversable, line 301, in restrictedTraverse * Module OFS.Traversable, line 284, in unrestrictedTraverse __traceback_info__: ([], 'macros') AttributeError Troubleshooting Suggestions </pre> <p class="commentheading"><strong>Site Error/ An error was encountered while publishing this resource.</strong> --Simon Michael, Wed, 20 Jan 2010 15:10:28 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=Site%20Error/%20An%20error%20was%20encountered%20while%20publishing%20this%20resource.&amp;in_reply_to=%3CC0D08F53-E91C-490B-B65E-C09AABAEB5A5%40joyful.com%3E#bottom">reply</a></p> <p class="commentbody">Hi John, that is quite odd. The first thing I see there that's probably indicating a problem is:</p> <pre class="literal-block"> * Module zope.pagetemplate.pagetemplate, line 117, in pt_render Warning: Macro expansion failed Warning: exceptions.AttributeError: pt_macros </pre> <p>If nothing has changed about your zope/zwiki configuration, is it possible you installed something elsewhere on the system - like a newer version of zope.pagetemplate - that could be affecting it, causing the standard pt_macros attribute to disappear ?</p> <p>I would also look at the traceback in /error_log, where you'll get the clearest rendering. I'd like to know what exactly it shows after the final &quot;AttributeError<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=AttributeError" title="create this page">?</a>&quot; at the bottom.</p> <p class="commentheading"><strong>Site Error/ An error was encountered while publishing this resource.</strong> --Simon Michael, Wed, 20 Jan 2010 15:19:00 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=Site%20Error/%20An%20error%20was%20encountered%20while%20publishing%20this%20resource.&amp;in_reply_to=%3C34B6CC55-9ADF-4CF7-9D28-A042A0014346%40joyful.com%3E#bottom">reply</a></p> <p class="commentbody">Another wild guess, could an object have been added to your zodb with a sensitive id, causing things to break ? <a class="reference external" href="http://wiki.zope.org/zope2/IdsToAvoid">http://wiki.zope.org/zope2/IdsToAvoid</a></p> <blockquote> lists some of these. Have you noticed any other breakage with this</blockquote> <p>zope ? Are you able to create a new Page Template in the root folder and view it ? How about in the wiki folder ? Are you able to test with a recent previous version of this zodb, if necessary by rolling back recent transactions in Undo (in a copy, obviously) ?</p> <dl class="commentheading docutils"> <dt><a href="#id33"><span class="problematic" id="id34">**</span></a>continued - Site Error/ An error was encountered while publishing</dt> <dd>this resource. ** --johngrey, Wed, 20 Jan 2010 15:32:11 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=continued%20-%20Site%20Error/%20An%20error%20was%20encountered%20while%20publishing%0A%09this%20resource.%20&amp;in_reply_to=%3C20100120153211-0800%40zwiki.org%3E#bottom">reply</a></dd> </dl> <p class="commentbody">This is the end of the event.log</p> <pre class="literal-block"> &lt;/ul&gt;\n&lt;p&gt;Enjoy your wiki!&lt;/p&gt;\n&lt;p&gt;\n&lt;/p&gt;\n'}, 'repeat': &lt;Products.PageTemplates.Expressions.SafeMapping object at 0x94ca92c&gt;, 'request': &lt;HTTPRequest, URL=http://red.sunderland.ac.uk:8080/test_wiki/FrontPage&gt;, 'root': &lt;Application at &gt;, 'template': &lt;PageTemplateFile at /test_wiki/wikipage used for /test_wiki/FrontPage&gt;, 'user': &lt;User 'john'&gt;} Module zope.tales.expressions, line 217, in __call__ Module Products.PageTemplates.Expressions, line 153, in _eval Module zope.tales.expressions, line 124, in _eval Module Products.PageTemplates.Expressions, line 80, in boboAwareZopeTraverse Module OFS.Traversable, line 301, in restrictedTraverse Module OFS.Traversable, line 284, in unrestrictedTraverse - __traceback_info__: ([], 'macros') AttributeError: pt_macros </pre> <p>thanks, John</p> <dl class="commentheading docutils"> <dt><a href="#id36"><span class="problematic" id="id37">**</span></a>continued - Site Error/ An error was encountered while publishing</dt> <dd>this resource. ** --Simon Michael, Wed, 20 Jan 2010 15:40:58 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=continued%20-%20Site%20Error/%20An%20error%20was%20encountered%20while%20publishing%0A%09this%20resource.%20&amp;in_reply_to=%3C782F6D2E-E60D-4C6E-BFCE-8BA16240FC6C%40joyful.com%3E#bottom">reply</a></dd> </dl> <dl class="commentbody docutils"> <dt>Googling for that error finds only <a class="reference external" href="http://zwiki.org/1373AttributeErrorPtMacrosInPlone">http://zwiki.org/1373AttributeErrorPtMacrosInPlone</a></dt> <dd><ul class="first last simple"> <li>check this in case it contains any clues. You should probably open</li> </ul> </dd> </dl> <p>a new issue to track this (at <a class="reference external" href="http://zwiki.org/IssueTracker">http://zwiki.org/IssueTracker</a> ).</p> <p class="commentheading"><strong>...</strong> --johngrey, Wed, 20 Jan 2010 15:52:18 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=&amp;in_reply_to=%3C20100120155218-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">thanks - just to add - I haven't added anything significant - at the time it seemed to break I was working on a script to allow users to change passwords and I can't see anything else that has changed. I've rolled things back to before I thought the problem occurred with no effect. I tried to roll back further but got a page of error messages (sorry didn't capture these) and Zope now displays that there are no undos available. Everything else in Zope seems to be working ok. The error from google looks similar - although I wasn't using plone as was the case then.</p> <p>I'll have to leave it for tonight but will investigate further tomorrow - thanks John</p> <dl class="commentheading docutils"> <dt><a href="#id40"><span class="problematic" id="id41">**</span></a>continued - Site Error/ An error was encountered while publishing</dt> <dd>this resource. ** --johngrey, Thu, 21 Jan 2010 03:27:30 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=continued%20-%20Site%20Error/%20An%20error%20was%20encountered%20while%20publishing%0A%09this%20resource.%20&amp;in_reply_to=%3C20100121032730-0800%40zwiki.org%3E#bottom">reply</a></dd> </dl> <p class="commentbody">OK - I fixed it (after much messing around setting up another server to experiment with)</p> <p>turns out there is another <a class="reference external" href="http://wiki.zope.org/zope2/IdsToAvoid">http://wiki.zope.org/zope2/IdsToAvoid</a> - &quot;content&quot; - I had an empty method called content in root which was obviously being picked up by <a href="http://zwiki.org/ZWiki">ZWiki</a> and preventing publishing.</p> <p>thanks, John</p> <dl class="commentheading docutils"> <dt><a href="#id43"><span class="problematic" id="id44">**</span></a>continued - Site Error/ An error was encountered while publishing</dt> <dd>this resource. ** --Simon Michael, Thu, 21 Jan 2010 08:08:31 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=continued%20-%20Site%20Error/%20An%20error%20was%20encountered%20while%20publishing%0A%09this%20resource.%20&amp;in_reply_to=%3CB5C5E80D-C733-4778-BF3B-00AEC213BE85%40joyful.com%3E#bottom">reply</a></dd> </dl> <p class="commentbody">Excellent! And unfortunate. :-/ Thanks for the tip.</p> <p class="commentheading"><strong>hello</strong> --simon, Mon, 26 Jul 2010 11:51:22 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=hello&amp;in_reply_to=%3C20100726115122-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">I've just had a look around zwiki.org for the first time in a while. It seems to be working as intended despite the neglect, so this is good.</p> <p>Nothing has happened in Zwiki development for some time. Are many of you still using it ? Any new deployments, or is it just to keep legacy sites going, or has Zwiki gone the way of the dodo ?</p> <p>I wanted to say hi to all you subscribers (wave).</p> <p class="commentheading"><strong>hello</strong> --<a href="http://zwiki.org/DeanG">DeanG</a>, Mon, 26 Jul 2010 11:58:43 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=hello&amp;in_reply_to=%3C20100726115843-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Good to hear from you Simon (wave).</p> <p>Since switching departments from where I deployed Zwiki I haven't been involved and the site has been mothballed. - <a href="http://zwiki.org/DeanG">DeanG</a> <a class="reference external" href="http://twitter.com/ponderings">http://twitter.com/ponderings</a></p> <p>I'd like to encourage you to pencil in PyCon<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=PyCon" title="create this page">?</a> 2011 in the spring as it will be in California next year (Silicon valley area). :)</p> <p class="commentheading"><strong>hello</strong> --<a href="http://zwiki.org/EmmaLaurijssens">EmmaLaurijssens</a>, Tue, 27 Jul 2010 01:26:01 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=hello&amp;in_reply_to=%3C20100727012601-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">(waves back) Still here, but not a wiki admin anymore. I'm currently working in a shop that relies on MediaWiki<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=MediaWiki" title="create this page">?</a>.</p> <p class="commentheading"><strong>hello</strong> --jmax, Sun, 01 Aug 2010 23:01:39 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=hello&amp;in_reply_to=%3C20100801230139-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hi, Simon... with a certain amount of shame I have to admit that we've bowed to peer pressure and moved most of Thinkubator(.ccsp.sfu.ca) into WordPress<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=WordPress" title="create this page">?</a> (all my friends were doing it, so...). I still have the legacy site up and running. WordPress<a class="new visualNoPrint" href="http://zwiki.org/GeneralDiscussion2010/createform?page=WordPress" title="create this page">?</a> is nowhere near as elegant an architecture as Zope/<a href="http://zwiki.org/ZWiki">ZWiki</a>, but I do feel a lot less like a lone wolf... Perhaps it's time for me to just say THANKS for such a terrific platform which served me for something like 7 years; I wish history were on its side, but from my perspective, it doesn't look that way.</p> <p class="commentheading"><strong>hello</strong> --tralala, Mon, 02 Aug 2010 04:05:32 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=hello&amp;in_reply_to=%3C20100802040532-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hey, Simon!</p> <p>Nearly four years walking down the zwiki road I still have trouble convincing the company to use it actively. Nevertheless there's some progress - from a closed, department only wiki, now we have an open company-wide site and a policy to use it as a tool for communicating requirements and documenting the internal projects. I'm still waiting for the site to really pick up. The progress has been way too slow.</p> <p class="commentheading"><strong>hello</strong> --<a href="http://zwiki.org/JohnDeBruyn">JohnDeBruyn</a>, Sun, 08 Aug 2010 08:24:05 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=hello&amp;in_reply_to=%3C20100808082405-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hi Simon: Zope and Zwiki are great. Hang in there. Your efforts are much appreciated. John</p> <p class="commentheading"><strong><a href="http://zwiki.org/ZwikiBlog">ZwikiBlog</a></strong> --<a href="http://zwiki.org/JohnDeBruyn">JohnDeBruyn</a>, Sun, 08 Aug 2010 08:57:16 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=ZwikiBlog&amp;in_reply_to=%3C20100808085716-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hi Simon: I got over to the <a href="http://zwiki.org/ZwikiBlog">ZwikiBlog</a> page. Exciting stuff. Keep up the good work. John</p> <p class="commentheading"><strong>hello</strong> --simon, Wed, 08 Sep 2010 08:12:19 -0700 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=hello&amp;in_reply_to=%3C20100908081219-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Hey all.. thanks for the replies to my ping in July. It sounds pretty much as I thought. But also, I've seen an unexpected slight uptick in activity of late - traffic on zwikis I subscribe to, Zwiki bug reports, #zwiki support incidents, new zwikis (<a class="reference external" href="http://specialtyjobmarkets.com/Wikis/LozinskiClasses/FrontPage">eg</a>).</p> <p>So keep the ol' sites running I guess.</p> <p class="commentheading"><strong>I accidentally the pypi package..</strong> --simon, Fri, 17 Dec 2010 06:57:58 -0800 <a class="reference external" href="http://zwiki.org/GeneralDiscussion2010?subject=I%20accidentally%20the%20pypi%20package..&amp;in_reply_to=%3C20101217065758-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Thanks to witsch for dropping by #zwiki and nudging me to do something about the broken Zwiki PYPI package. I removed it (now re-added, but hidden) until we conform to current packaging standards. To install Zwiki 2.0b1, use the traditional product tarball or darcs get methods linked on zwiki.org .</p> Sun, 22 Feb 2015 01:21:05 -0800 #1483 download link broken http://zwiki.org/1483DownloadLinkBroken http://zwiki.org/1483DownloadLinkBroken <p><a class="reference external" href="http://joyful.com/darcsden/simon/ZWiki/releases/ZWiki-2.0b1.tgz">http://joyful.com/darcsden/simon/ZWiki/releases/ZWiki-2.0b1.tgz</a> returns 404. I had a browse around on that site, and the tarball seems to have gone. </p> <p class="commentheading"><strong>fixed</strong> --simon, Fri, 16 Sep 2011 09:54:16 -0700 <a class="reference external" href="http://zwiki.org/1483DownloadLinkBroken?subject=fixed&amp;in_reply_to=%3C20110916095416-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Thanks for the report, I have set up a redirect to zwiki.org/releases . If you remember where you found that link let me know.</p> <p class="commentheading"><strong>...</strong> --coolestuk, Wed, 28 Sep 2011 07:12:30 -0700 <a class="reference external" href="http://zwiki.org/1483DownloadLinkBroken?subject=&amp;in_reply_to=%3C20110928071230-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">The link is to be found on the Zwiki .org front page, download section (where the anchor text says &quot;tarball&quot;).</p> <p class="commentheading"><strong>...</strong> --simon, Fri, 11 Nov 2011 10:17:19 -0800 <a class="reference external" href="http://zwiki.org/1483DownloadLinkBroken?subject=&amp;in_reply_to=%3C20111111101719-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Status: open =&gt; closed</p> Fri, 16 Sep 2011 05:04:08 -0700 invoice http://zwiki.org/Invoice http://zwiki.org/Invoice <h1 id="invoice-20110706xx">INVOICE 20110706xx</h1> <table> <col width="52%" /> <col width="45%" /> <tbody> <tr class="odd"> <td align="left"><strong>To:</strong><br> Client XX<br> address<br> <br> <br> <br></td> <td align="right"><strong>From:</strong><br> me<br> address<br> <br> Email: ...<br> Phone: ...<br></td> </tr> </tbody> </table> <p><strong>Date:</strong> 2011/7/6</p> <p><strong>Summary:</strong> $X is now due for IT support, maintenance and development during June 2011.</p> <table> <thead> <tr class="header"> <th align="left">Activity</th> <th align="right">Hours</th> <th align="right">Rate</th> <th align="right">Total</th> </tr> </thead> <tbody> <tr class="odd"> <td align="left"><a href="http://zwiki.org/121ZwikiOrgMailoutsSayForwardedFromLocalhost" style="background-color:#bbeebb;">#121</a> signings &amp; backlog reports</td> <td align="right">0.7</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="even"> <td align="left"><a href="http://zwiki.org/159AddIssueOftenGivesACopyErrorOrSaysIssueNo0001AlreadyInUse" style="background-color:#bbeebb;">#159</a> service schedule complete replacement item not showing</td> <td align="right">2.1</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="odd"> <td align="left"><a href="http://zwiki.org/160WouldLikePermanentUrlsForEditsDiffs" style="background-color:#e0e0e0;">#160</a> Incorrect stacked window size rounding &amp; overall size</td> <td align="right">8.4</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="even"> <td align="left">admin</td> <td align="right">4.6</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="odd"> <td align="left">planning</td> <td align="right">0.1</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="even"> <td align="left">recruiting</td> <td align="right">0.3</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="odd"> <td align="left">systems maintenance</td> <td align="right">3.3</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="even"> <td align="left"></td> <td align="right">------</td> <td align="right"></td> <td align="right"></td> </tr> <tr class="odd"> <td align="left"></td> <td align="right">x.x</td> <td align="right">$xx</td> <td align="right">$XXXX</td> </tr> </tbody> </table> <style> body {width:50em;} table {width:100%;} th {border-bottom:thin solid #eee;} tr:nth-child(even) {background-color:#eee;} </style> <a name="comments"><br /><b><span class="commentsheader">comments:</span></b></a> <p class="commentheading"> <strong>Nice links...</strong> --<a href="http://zwiki.org/EmmaLaurijssens">EmmaLaurijssens</a>, Fri, 08 Jul 2011 07:08:07 -0700 <a class="reference" href="http://zwiki.org/Invoice?subject=Nice%20links...&amp;in_reply_to=%3C20110708070807-0700%40zwiki.org%3E#bottom">reply</a> </p>...to the issues you worked on, including the implicit status of the issues :-) <p class="commentheading"> <strong>Nice links...</strong> --simon, Fri, 08 Jul 2011 07:38:49 -0700 <a class="reference" href="http://zwiki.org/Invoice?subject=Nice%20links...&amp;in_reply_to=%3C20110708073849-0700%40zwiki.org%3E#bottom">reply</a> </p>Yeah! If only I was using zwiki for this client. (We currently use agilezen.com, which has its own strengths.) Thu, 07 Jul 2011 10:21:25 -0700 #1482 newly created issues not appearing in recent issue list http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList <p>New issues should appear at the top of the recent list on <a href="http://zwiki.org/IssueTracker">IssueTracker</a>, but aren't, even after shift-reloading the page.</p> <p>Try to click &quot;edit&quot; and &quot;cancel&quot; instead! /zwtest </p> <p class="commentheading"><strong>two different issue trackers? one works!</strong> --zwtest, Fri, 20 May 2011 18:20:07 -0700 <a class="reference external" href="http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList?subject=two%20different%20issue%20trackers%3F%20one%20works%21&amp;in_reply_to=%3C20110520182007-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">I just found, that there are 2 issue trackers! a) <a class="reference external" href="http://zwiki.org/IssueTracker">http://zwiki.org/IssueTracker</a> - has the described problem b) <a class="reference external" href="http://zwiki.org/FrontPage/issuetracker">http://zwiki.org/FrontPage/issuetracker</a> - seems to work fine Hope, this helps. Greets from /zwtest</p> <p class="commentheading"><strong>and now they work both!</strong> --zwtest, Fri, 20 May 2011 18:38:35 -0700 <a class="reference external" href="http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList?subject=and%20now%20they%20work%20both%21&amp;in_reply_to=%3C20110520183835-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">I just visited <a class="reference external" href="http://zwiki.org/IssueTracker">http://zwiki.org/IssueTracker</a> again. <a href="http://zwiki.org/1481StrangeEditErrorOnSandBox" style="background-color:#ffbbbb;">#1481</a> and <a href="http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList" style="background-color:#ffdddd;">#1482</a> were still missing. Out of curiosity i clicked on &quot;edit&quot;. Then i did nothing, just looked at the code and scrolled up and down a bit. Finally I clicked on &quot;cancel&quot;, and to my surprise the two missing issues appeared. /zwtest</p> <p class="commentheading"><strong>same with these comments</strong> --zwtest, Fri, 20 May 2011 18:46:03 -0700 <a class="reference external" href="http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList?subject=same%20with%20these%20comments&amp;in_reply_to=%3C20110520184603-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">I have to perform the same &quot;edit&quot; + &quot;cancel&quot; sequence to make these comments visible! Something seems wrong with the page refresh. /zwtest</p> <p class="commentheading"><strong>same with these comments</strong> --Simon Michael, Fri, 20 May 2011 20:15:58 -0700 <a class="reference external" href="http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList?subject=same%20with%20these%20comments&amp;in_reply_to=%3Cir7aov%247td%241%40dough.gmane.org%3E#bottom">reply</a></p> <p class="commentbody">Thanks for the info!</p> <p>Re page refresh, yes zwiki.org (only) has an over-aggressive apache caching setup, you have to shift reload sometimes.</p> <p class="commentheading"><strong>...</strong> --simon, Fri, 11 Nov 2011 10:18:42 -0800 <a class="reference external" href="http://zwiki.org/1482NewlyCreatedIssuesNotAppearingInRecentIssueList?subject=&amp;in_reply_to=%3C20111111101842-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Severity: normal =&gt; minor</p> Fri, 20 May 2011 12:24:50 -0700 #1481 strange edit error on SandBox http://zwiki.org/1481StrangeEditErrorOnSandBox http://zwiki.org/1481StrangeEditErrorOnSandBox <p>Error Type: TypeError<a class="new visualNoPrint" href="http://zwiki.org/1481StrangeEditErrorOnSandBox/createform?page=TypeError" title="create this page">?</a> Error Value: ('object.__new__(PageTypesfaf<a class="new visualNoPrint" href="http://zwiki.org/1481StrangeEditErrorOnSandBox/createform?page=PageTypesfaf" title="create this page">?</a>.__new__()', &lt;class 'Products.<a href="http://zwiki.org/ZWiki">ZWiki</a>.plugins.mathaction.pagetypes.PageTypeStxMath<a class="new visualNoPrint" href="http://zwiki.org/1481StrangeEditErrorOnSandBox/createform?page=PageTypeStxMath" title="create this page">?</a>'&gt;, ()) </p> <p class="commentheading"><strong>...</strong> --simon, Thu, 29 Sep 2011 07:13:38 -0700 <a class="reference external" href="http://zwiki.org/1481StrangeEditErrorOnSandBox?subject=&amp;in_reply_to=%3C20110929071338-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Name: '<a href="http://zwiki.org/1481StrangeEditErrorOnSandBox" style="background-color:#ffbbbb;">#1481</a> strange easfasfsafasf' =&gt; '<a href="http://zwiki.org/1481StrangeEditErrorOnSandBox" style="background-color:#ffbbbb;">#1481</a> strange edit error on <a href="http://zwiki.org/SandBox">SandBox</a>'</p> <p class="commentheading"><strong>...</strong> --simon, Fri, 11 Nov 2011 10:31:53 -0800 <a class="reference external" href="http://zwiki.org/1481StrangeEditErrorOnSandBox?subject=&amp;in_reply_to=%3C20111111103153-0800%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Temporary ZODB corruption due to a class that no longer exists, and I have forgotten how to fix it. Will take stronger action one of these days.</p> Fri, 20 May 2011 12:23:10 -0700 #1480 files containing text + colons appear as empty files when added to wiki via WebDAV http://zwiki.org/1480FilesContainingTextColonsAppearAsEmptyFilesWhenAddedToWikiViaWebDAV http://zwiki.org/1480FilesContainingTextColonsAppearAsEmptyFilesWhenAddedToWikiViaWebDAV <p><a href="http://zwiki.org/ZWiki">ZWiki</a> 2.01b</p> <p>Zope Version (Zope 2.11.8-final, python 2.4.6, linux2) Python Version 2.4.6 (<a href="http://zwiki.org/1ATestIssue" style="background-color:#bbeebb;">#1</a>, Feb 11 2011, 00:00:26) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]<a class="new visualNoPrint" href="http://zwiki.org/1480FilesContainingTextColonsAppearAsEmptyFilesWhenAddedToWikiViaWebDAV/createform?page=GCC%204.1.2%2020080704%20%28Red%20Hat%204.1.2-48%29" title="create this page">?</a></p> <p>Using the following PUT_factory to enable docs to be added via <a href="http://zwiki.org/WebDAV">WebDAV</a>.</p> <p># simple put_factory from Products.<a href="http://zwiki.org/ZWiki">ZWiki</a>.<a href="http://zwiki.org/ZWikiPage">ZWikiPage</a> import <a href="http://zwiki.org/ZWikiPage">ZWikiPage</a></p> <dl class="docutils"> <dt>def PUT_factory( self, name, typ, body ):</dt> <dd>p=<a href="http://zwiki.org/ZWikiPage">ZWikiPage</a>('', __name__=name) p.setPageType('plaintext') return p</dd> </dl> <p>Files with a colon in the text do not register a problem on being added to the wiki via a webdav client (there is no error message on 'put'), but in the ZMI such files subsequently appear with a zero size, and when viewed via the <a href="http://zwiki.org/ZWiki">ZWiki</a> interface they are empty files.</p> <p>When a file containing no colon is successfully loaded into the wiki via webdav, the text can be edited through the zwiki web interface and the colon added. After saving the changes, there is no problem with the file being displayed in the <a href="http://zwiki.org/ZWiki">ZWiki</a> interface, and in the ZMI the files shows up with a size.</p> <p></p> <p class="commentheading"><strong>workaround for adding page to wiki via <a href="http://zwiki.org/WebDAV">WebDAV</a></strong> --coolestuk, Sun, 13 Mar 2011 05:23:13 -0700 <a class="reference external" href="http://zwiki.org/1480FilesContainingTextColonsAppearAsEmptyFilesWhenAddedToWikiViaWebDAV?subject=workaround%20for%20adding%20page%20to%20wiki%20via%20WebDAV&amp;in_reply_to=%3C20110313052313-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">Before the pages are added to a <a href="http://zwiki.org/ZWiki">ZWiki</a> using <a href="http://zwiki.org/WebDAV">WebDAV</a>, preface the text of the pages with &quot;Type: rstnn&quot; or &quot;Type: plaintextnn&quot;. The page then appears in the <a href="http://zwiki.org/ZWiki">ZWiki</a>. There then appears a subsequent problem.</p> <p>When searching for the text that is in some of those pages now added to the wiki, the number of pages which are &quot;hits&quot; will be returned by searchwiki, indicating that the sought text is found in the page. In order to get (e.g.) an excerpt of the page containing the text to be returned from the search, I have to run /SomePage<a class="new visualNoPrint" href="http://zwiki.org/1480FilesContainingTextColonsAppearAsEmptyFilesWhenAddedToWikiViaWebDAV/createform?page=SomePage" title="create this page">?</a>/upgradeAll before the search functionality works properly.</p> <p>I tried to add the &quot;Type: plaintext&quot; lines in the PUT_factory, but found that did not work (but then I'm not so clear about how what is returned by the PUT_factory then interfaces with the rest of the <a href="http://zwiki.org/ZWiki">ZWiki</a> insertion process). I run a external process on the text files before adding them via <a href="http://zwiki.org/WebDAV">WebDAV</a> which adds the required lines.</p> <p>I think the right place for this workaround with inserting &quot;Type: ...&quot; should perhaps be in the PUT_factory. Perhaps that is also where the actions leading to the search working properly would also need to be placed (i.e. while the text of the page is added to the catalog, some other step is missing and only supplied by running /upgradeAll).</p> <p class="commentheading"><strong>further details</strong> --coolestuk, Sat, 26 Mar 2011 05:01:16 -0700 <a class="reference external" href="http://zwiki.org/1480FilesContainingTextColonsAppearAsEmptyFilesWhenAddedToWikiViaWebDAV?subject=further%20details&amp;in_reply_to=%3C20110326050116-0700%40zwiki.org%3E#bottom">reply</a></p> <p class="commentbody">If the text file has a first line saying &quot;Type: rst&quot;, and then the file contains something that would cause <a href="http://zwiki.org/ZWiki">ZWiki</a> to process the text as reST (e.g. the markup to indicate a Title), then not only can the documented by uploaded into the wiki, but it also appears to trigger the outline creation, such that when one searches for a term and it is found, the search results page does not just contain the names of pages containing the term, but also the summary text from the relevant pages is shown. Without triggering some identification of the text contents as reST, it seems as though there is a rendering problem (in such cases instead of summary text, all one sees is a list of lines saying &quot;error&quot;.</p> Sat, 05 Mar 2011 08:54:13 -0800