Archived GeneralDiscussion.


comments:

Table of contents --Racing Pitoune, Wed, 01 Sep 2004 19:32:51 -0700 reply
After renaming my ZWiki homepage, the table of contents is showing only singletons (and no sublinks) and two pages that don't exist any more (including the previous homepage). How do update contents? One more thing: how do I access that page management form that is described in FAQ? (I mean, what's the special url or method for it?)

Table of contents --Racing Pitoune, Wed, 01 Sep 2004 19:54:58 -0700 reply
And now recentchanges reads as such: .../SandBox/recentchanges, instead of .../[homepage]/recentchanges as before. How do I fix that?

Table of contents --Racing Pitoune, Wed, 01 Sep 2004 22:22:27 -0700 reply
Please discard my two previous messages. That table of contents problem stems from the fact that I have renamed the standard Zope folder (not a ZWiki folder) containing my ZWiki pages. How do I rename that folder without breaking the table of contents?

Table of contents --Simon Michael, Wed, 01 Sep 2004 23:00:53 -0700 reply
Racing, a standard folder is what you need. Zwiki caches some outline information, but this cache isn't very persistent and certain ZMI operations can confuse it. Visit .../SOMEPAGE/updateWikiOutline, then all will be well.

Table of contents --Simon Michael, Wed, 01 Sep 2004 23:02:56 -0700 reply

how do I access that page management form that is described in FAQ?

The standard skin shows this form if: - you have permission to rename, reparent, create or delete - you are authenticated, or you have set a username in options - you are in full mode

Table of contents --Simon Michael, Wed, 01 Sep 2004 23:05:30 -0700 reply

And now recentchanges reads as such: .../SandBox/recentchanges, instead of .../[homepage]/recentchanges as before. How do I fix that?

Zwiki uses the "default page" for those urls. That is the page named in the default_page property, or FrontPage, or the first wiki page object found in the folder,

subtopics --ArnoPucher, Thu, 02 Sep 2004 00:35:21 -0700 reply
is there a way that all subtopics are collapsed like in this current version here (0.34B1) like

I tried with 0.33/0.34B1 but there are no "neat" "+" signs to collapse/expand the subtopics

subtopics -- Thu, 02 Sep 2004 02:40:52 -0700 reply
See OldHowToMakeContentsExpandable.

STX and utf-8: trying to straighten it all out ... --Simon Michael, Thu, 02 Sep 2004 09:39:13 -0700 reply
Hi Dmitry, thanks for working on this. I'm forwarding to the issue tracker so it doesn't get forgotten.

Zwiki 0.34 released --Simon Michael, Thu, 02 Sep 2004 17:06:54 -0700 reply
Summary: Beginnings of a plugin architecture; mailin simplifications and enhancements; new hungarian translation; miscellaneous skin enhancements and bugfixes.

http://zwiki.org http://zwiki.org/ReleaseNotes

Best wishes, -Simon

STX and utf-8: continued with ZWiki 0.34 --Dmitry Astapov, Fri, 03 Sep 2004 04:39:33 -0700 reply
I upgraded to ZWiki 0.34 and everything regarding STX and non-latin letters still works fine.

However, browsing is extremely slow, with STX patch or without it (I was wrong stating that patch is responsible for slowdown, after all). Page load (from local Zope, so no network involved) takes about 4-5 seconds (iP IV 2 mHz). I tried to toggle allow_dtml - it does not have any visible effect.

And, last but not least, I have the same problem that could be observed on SlowFreeformLinks - free-form links are not working as expected. Seems like an issue, right?

Just for the record: too slow :( --Dmitry Astapov, Fri, 03 Sep 2004 05:37:32 -0700 reply
I finally gave up and rolled zope 2.7/zwiki 0.34 back to zope 2.6.4/zwiki 0.18. Bugs of 0.18 are much less annoying than unbearable slowness of 0.34 :(

Just for the records -- Fri, 03 Sep 2004 05:54:32 -0700 reply
I am currently working with an ~500 pages zwiki on a AMD1800+/512MB RAM (Windows, Zope 2.7, Zwiki 0.33) and it is quite performant (also in the DTML magic pages like IssueTracker, FilterIssues) and so on ...

There are many wonderful features since 0.18 ...

--ArnoPucher

Just for the records II -- Fri, 03 Sep 2004 05:59:48 -0700 reply
The SlowFreeformLinks page (copied to a local wiki) loads under one second ...

Here at this wiki it takes 20 secs+ ...

But I think thats the "internet" ;)

--ArnoPucher

Just for the records II --Simon Michael, Fri, 03 Sep 2004 07:39:06 -0700 reply
Dmitry, that's surprising. Something weird at your site I think. Do you have any skin customizations ? How many pages ? Do you use a catalog ? (recent changes will show day/week/month/year)

anonymous wrote:

The SlowFreeformLinks page (copied to a local wiki) loads under one second ... Here at this wiki it takes 20 secs+ ... --ArnoPucher
Good to know.. this needs to be looked at. I'm reasonably sure this was faster at one time. It's affected by number of pages and size of zodb cache. You are also using a catalog, right ?

2 bugs --SimonMichael, Fri, 03 Sep 2004 08:20:18 -0700 reply
Can anyone confirm/deny those two bug reports with IE6 ? can't upload images, can't edit pages without having to refresh ?

2 bugs -- Fri, 03 Sep 2004 08:27:03 -0700 reply
no problems here. DeanG

Mail-out and subject line content-type for accented characters --Racing Pitoune, Sat, 04 Sep 2004 10:10:38 -0700 reply
Mail-out is working just fine for me except for one tiny detail. Accented characters (usual story, usual suspects:-) in the mail-out subject line appear as gibberish in many mail readers. E-mail body is ok in most of them as far as accented characters are concerned, though.

Both subject line and e-mail body render perfectly well in Mozilla 1.7.2.

Users with a Yahoo!Mail account are not so lucky as far as subject lines go, but contents is ok (tested with ie and Mozilla). Exact same story with Outlook Express: subject line garbled, message body ok (however, one can toggle encoding manually in Outlook).

My webmail app (php) has trouble with both mail subject and body.

Only mail-out is activated right now. I haven't touched mail-in yet.

Any views on this? Users may be using all kinds of mail readers. If need be, how can I pick an alternate encoding for mail-outs? Anything I can do to make their ZWiki mail-out experience smoother?

(Red Hat Linux release 7.3; Python 2.3.4; Zope-2.7.2-0; PlacelessTranslationService 1.0-rc8; ZWiki-0-34-0; French locale)

Testedit -ArnoPucher + Images (bug 2 request by Simon)

2 bugs -- Sun, 05 Sep 2004 23:34:18 -0700 reply
works fine (XP - Service Pack 2)

BTW: after adding a comment to a page you have to refresh if you using opera - since the first Zwiki version I believe.

--ArnoPucher

Just for the records II --Dmitry Astapov, Mon, 06 Sep 2004 05:06:23 -0700 reply
Here are the numbers: ~1300 pages, 2xiP-IV 2 mHz Xeon, 2 Gb RAM, Debian Linux, Zope 2.6.4 (from deb) + Zwiki 0.18 (from deb) (production) alongside with Zope 2.7.2 (deb) + ZWiki 0.33 (from tgz)(testing). Nothing else CPU-consuming enough to raise load average above 1 on an average day. Both ZWiki webs sit in an ordinary folder (not btree2). Zwiki 0.18 is without a catalog, ZWiki 0.33 - with catalog created by /setupCatalog. No issue tracker. No skin mods. A tiny bit of DTML on several pages. 100 mbit net.

Any page is loaded from 0.18 in less than half a second (like "click and here it is instantly"). Any page from 0.33 takes about 2-3 seconds at best. I tried to make a local install to exclude possible net issues - results haven't changed. I can show you data from trace reports, but they are consistent with what I see at ZWikiPerformance? - a lot of "metedataFor", "ensureCompleteMetadataIn" and other "metadata" calls. As I already say, I experimented with patches to Zope and was about to blame them, so I made a fresh Zope 2.7.2 + ZWiki 0.33 install only to see that speed hasn't perceptively. I gave access to 0.33 to several friendly users and they unanimously complained that it is "unbearably slow".

How could I track down the bottleneck?

Just for the records II --Dmitry Astapov, Tue, 07 Sep 2004 01:01:13 -0700 reply
Following-up to myself :)

I experimented with profiling some more, and here is what I got (sorted by cumtime, profiler and core Zope calls ommited):

   Ordered by: cumulative time
   List reduced from 1289 to 100 due to restriction <100>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
       16    0.060    0.004   59.920    3.745 Tracker.py:136(issueCount)
       16    0.000    0.000   59.920    3.745 Tracker.py:140(hasIssues)
       16    0.370    0.023   59.800    3.738 ZWikiPage.py:894(pageIds)
       16    0.490    0.031   59.400    3.713 ZWikiPage.py:803(pages)
        7    0.000    0.000   54.750    7.821 ZWikiPage.py:223(__call__)
        7    0.000    0.000   54.740    7.820 stx.py:80(render)
        7    0.000    0.000   54.740    7.820 ZWikiPage.py:240(render)
        7    0.000    0.000   54.180    7.740 UI.py:188(addSkinTo)

For each page display first group of calls got incremented by two (in this example, 16 -> 18), second group - by one (7 -> 8). Time per call is not decreased by subsecuent reloads of the same page.

For the record, I have no tracker installed. So why tracker methods take up so much time? And why pages and pageIds got called twice per page display?

Mail-out and subject line content-type for accented characters --Simon Michael, Tue, 07 Sep 2004 10:06:57 -0700 reply
Racing Pitoune wrote:

Mail-out is working just fine for me except for one tiny detail. Accented characters (usual story, usual suspects:-) in the mail-out subject line appear as gibberish in many mail readers. E-mail body is ok in most of them as far as accented characters are concerned,
I had the opposite experience. 0.34 has a fix for this, it sets a utf-8 content-type in mail-outs. Try that.

Mail-out and subject line content-type for accented characters -- Tue, 07 Sep 2004 15:23:59 -0700 reply
Accented characters rendition in some e-mail clients

Mail-out and subject line content-type for accented characters --Simon Michael, Tue, 07 Sep 2004 23:56:18 -0700 reply
Thanks for the test report. http://help.yahoo.com/help/uk/mail/errors/errors-03.html makes me think there's nothing to be done in Zwiki for now.

spaced wikinames --simon, Wed, 08 Sep 2004 09:24:18 -0700 reply
A spaced_wikinames property is now supported and is enabled on zwiki.org for testing.

spaced wikinames --Bob McElrath?, Wed, 08 Sep 2004 09:30:38 -0700 reply
simon [zwiki-wiki@zwiki.org]? wrote:

A spaced_wikinames property is now supported and is enabled on zwiki.org for testing.

Ooooh does that do what I think it does?

Is it case sensitive?

Is it really a good idea? (i.e. words that have different meanings like "big crane" -- a bird or a piece of machinery?)

Does it slow things down a lot? (it should significantly increase regex complexity, no?)

spaced wikinames --Simon Michael, Wed, 08 Sep 2004 09:39:35 -0700 reply

Ooooh does that do what I think it does?

Yup. Have a look at the contents or index to see the effects.
Is it really a good idea? (i.e. words that have different meanings like "big crane" -- a bird or a piece of machinery?)

I think it may lead to confusion in some cases, but people really want it sometimes.
Does it slow things down a lot? (it should significantly increase regex complexity, no?)

I hope not. Have a look at spacedNameFrom. If anyone feels a slowdown on zwiki.org let me know, but I don't think it's perceptible.

GeneralDiscussion, again ? --simon, Wed, 08 Sep 2004 10:33:26 -0700 reply
I've given up trying to segregate GeneralDiscussion and DevDiscussion? - at one point it seemed like we had enough traffic to justify the hassle, but now I'm not so sure. What do you think ?

GeneralDiscussion, again ? --Bob McElrath?, Wed, 08 Sep 2004 11:16:17 -0700 reply
simon [zwiki-wiki@zwiki.org]? wrote:

I've given up trying to segregate GeneralDiscussion and DevDiscussion? - at one point it seemed like we had enough traffic to justify the hassle, but now I'm not so sure. What do you think ?

I have never seen a user- list that was useful. In all cases, I join the devel- lists. (The closest I've ever seen to a working user- list is IRC)

OTOH, eventually ZWiki will have enough users that the separation will be useful. I think the separation point is: when do non-developers start answering other people's questions?

I think all people contributing to DevDiscussion? and GeneralDiscussion have contributed code or pointed out bugs in some way. (making it all one big devel- list)

robots slowing down the site today --SimonMichael, Wed, 08 Sep 2004 11:40:02 -0700 reply
I'm blocking a rude robot from hq.ask.com, maybe others. Let me know if you are trying to do something legitimate.

site outage, zope upgraded --SimonMichael, Thu, 09 Sep 2004 07:25:06 -0700 reply
The site was hung this morning; zope died when viewing the faq-in-RST page and failed to restart for some reason. I upgraded to zope 2.7.2 to fix this RST crashing problem.

Also, google is hitting us about once a second right now and this seems to make the site slow at times.

spaced wikinames -- Thu, 09 Sep 2004 07:47:09 -0700 reply
Can we start a page on this one? I'd like to note how this affects different documentation scenarios. Very glad it's a toggle-able feature, not sure if I would want a per-page override for code project scenarios where pages represent class and function names (e.g. Natural CamelCase names.) ... I'd also like to get a tanget going on MeatBall:WikiNameCanonicalization ;-)

ContentsView? -- Thu, 09 Sep 2004 08:17:45 -0700 reply
Doesn't workGraphics don't display on IE6.

A "expand all" button would be helpful.

RecentChanges? expansions are different in SubWiki:RecentChanges , but that's probably due to old DTML.

Bulk load ZWiki --Jaap Noordzij, Mon, 13 Sep 2004 02:20:04 -0700 reply
I have read the page HowToCreateZwikiPagesWithPut but as far as I can see there is still no way to load pages into a ZWiki with FTP of WebDAV in a Plone site.

Am I correct in concluding that there is no way to bulk load existing content into ZWiki in Plone ?

Bulk load ZWiki -- Mon, 13 Sep 2004 07:23:19 -0700 reply
Does Zope's export/import work?

Bulk load ZWiki -- Mon, 13 Sep 2004 07:43:34 -0700 reply
yes import/export works - but make sure you import/export using the same ZWiki version

Bulk load ZWiki --Jaap Noordzij, Mon, 13 Sep 2004 23:12:36 -0700 reply
Export / Import is not what I need. My problem is how to get the content into ZWiki in the first place. Does anybody know why the pages that are created with FTP or WebDAV are emtpy ? If that problem can be solved, I can live with the portal-level change from Document to WikiPage? in the content-registry.

Bulk load ZWiki -- Tue, 14 Sep 2004 12:00:38 -0700 reply
Hi Jaap, did you ever figure this out?? I'm trying to do the same thing & I'm going nuts trying to figure it out!!! Brian

Bulk load ZWiki -- Tue, 14 Sep 2004 12:08:13 -0700 reply
I hope I don't side-track the issue again, but...At one point pages could be created via mail-in. Is this a possibility?

This is an important documentation issue for folks migrating from one wiki engine to Zwiki. Does a page exist?

Bulk load ZWiki --Jaap Noordzij, Tue, 14 Sep 2004 12:19:28 -0700 reply
Mailin works nice and fine. My client wants to add pages with WebDAV.

Bulk load ZWiki -- Tue, 14 Sep 2004 12:58:53 -0700 reply
Hi, from what I've read Mailin doesn't seem to be Windows friendly & I'm stuck using a Windows box..Can anyone think of any other ways to get a bunch of files containing text into a wiki? If I FTP them they're all empty but there must be a way around this. Brian

displaymode and Plone --1Jerry, Wed, 15 Sep 2004 14:20:06 -0700 reply
I have searched everywhere and can see no mention of this problem. I added a wiki in Plone (2.0.3) and the HelpFile? mentions the full, simple, and minimal modes (somewhere called displaymode) but there is no links to these modes from Plone, nor can I find any mention of how to enable these links or even whether they are available in Plone. Does the Plone skin have these modes available?

displaymode and Plone --Racing Pitoune, Wed, 15 Sep 2004 16:16:55 -0700 reply
These features seem to be part of the default skin. Not 100% sure, though.

RecentChanges? page --DeanG, Thu, 16 Sep 2004 08:36:27 -0700 reply
Is there recentchanges logic code solely in the recentchangesdtml.dtml file?

I'm asking becuase I don't like the pagename/recentchanges perspective%, and would like to know if there are other (better?) ways to create a RecentChanges? page is to create it with the contents from the recentchangesdtml.dtml document. Is there a dtml-method to call in the RecentChange? page? (such as <dtml-var RecentChanges?.recentchanges> , which didn't work for me, but seems better as the page content would not need to be addressed when it is affected by a Zwiki upgrade.)

Thanks for making the header default to RecentChanges? if that object exists.

% pagename/recentchanges is hard to socially discern from pagename/diff

PageMaintainer? official retired? -- Fri, 17 Sep 2004 13:17:51 -0700 reply
Noticed some junk on the WikiBadges page. We added, then abandon, then discussed, then retired(?) the Page Maintainer concept, correct?

Re: Is the website okay? --Simon Michael, Fri, 17 Sep 2004 14:54:15 -0700 reply

I'm getting lots of errors from various pages. The error is:

It was not! I had used up my disk quota. Sorry, all should be well now.

PageMaintainer? official retired? --Simon Michael, Fri, 17 Sep 2004 15:21:54 -0700 reply
Yes, the PageMaintainer? idea died.

displaymode and Plone --Simon Michael, Fri, 17 Sep 2004 15:29:25 -0700 reply

Does the Plone skin have these modes available?
No, it does not. It seemed like too much baggage in the already complex plone UI.

Bulk load ZWiki --Simon Michael, Fri, 17 Sep 2004 15:36:31 -0700 reply

Hi, from what I've read Mailin doesn't seem to be Windows friendly
Why is that ? I'm not aware.. oh. Harder to set up mailin scripts, I'm sure. We need some windows guru to post examples at HowToSetUpMailin?.
& I'm stuck using a Windows box..Can anyone think of any other ways to get a bunch of files containing text into a wiki? If I FTP them they're all empty but there must be a way around this.

I wouldn't have thought of mailin as an efficient way to do this, but why not..

This is a FAQ but unfortunately I don't know where the answers are right now. Have you checked FAQ and HowTos and searched the wiki for things like bulk, import, fsimport, load, ftp, webdav ?

Bulk load ZWiki --Simon Michael, Fri, 17 Sep 2004 15:41:01 -0700 reply
Jaap Noordzij wrote:

I have read the page HowToCreateZwikiPagesWithPut
Ah, that was one.
Am I correct in concluding that there is no way to bulk load existing content into ZWiki in Plone ?

There certainly must be, but I don't know what it is at the moment.

If you're a python programmer, a script in the zeo debug prompt would be quick.

For ease of use, I suspect drag and drop over ftp or webdav is the way to go. This means making the factory thing work somehow, hacking CMF if necessary.

RecentChanges? page --Simon Michael, Fri, 17 Sep 2004 15:44:14 -0700 reply
What don't you like ? The .../PAGE/recentchanges url, as compared to .../RecentChanges? ?

You could make a recentchanges script in the wiki folder that calls SomePage?.recentchanges().

Bulk load Zwiki -- Sat, 18 Sep 2004 08:02:31 -0700 reply
Thanks Jaap, Simon and all, please continue to post solutions to bulk load. Much appreciated, JohnDeBruyn

Bulk load Zwiki -- Sat, 18 Sep 2004 08:02:50 -0700 reply
Thanks Jaap, Simon and all, please continue to post solutions to bulk load. Much appreciated, JohnDeBruyn

Bulk load Zwiki --Jaap Noordzij, Sat, 18 Sep 2004 13:08:52 -0700 reply
I am not a python programmer :-(

However I found that I can solve my problem by uncommenting line 917 in Editing.py :

  self.setText(body)

When this is done, uploads with Webdav are correctly filled.

Nested Wiki Links? -- Sun, 19 Sep 2004 14:03:40 -0700 reply
Is it possible for wiki pages in one folder to link to other wiki pages without using href's? I'm using the latest zwiki with the latest rev of plnone (yes on winXP) and when I try to link or do things like "reparent" with wiki pages outside the same folder, it does not work correctly. I either get 404 errors or the action does not seem to work at all.

FAQ --Racing Pitoune, Mon, 20 Sep 2004 06:22:02 -0700 reply
FAQ's contents has vanished.

FAQ -- Mon, 20 Sep 2004 06:44:13 -0700 reply
Ack! There's an old version here http://web.archive.org/web/20040208035707/http://zwiki.org/FAQ but I didn't even see a copy in the RecycleBin?

Nested Wiki Links? -- Mon, 20 Sep 2004 08:07:46 -0700 reply
The only way to link to other folders is a.) The target wiki page must exist in a parent folder to the referencing page, and b.) The wiki word must exactly match the page's id (not title). OR, c.) Use RemoteWikiLinks to address each wiki by creating a page in each wiki (or common parent folder) representing each wiki, and include the necesary Remote Wiki URL information., then if you have /mainwiki/happywiki and mainwiki/joywiki you can create a HappyWiki summary page in the main wiki (with RemoteWikiURL added), and reference pages there from the joywiki via HappyWiki:PageName

Renames and Reparent ONLY apply to the current wiki folder. (Same with BackLinks)

There are a number of issues when using a SubWiki. It's a low priority feature, and functionality is minimal. That's not saying it isn't important, as there are some folks using it (me, for one) and the better the documentation and issue reports, the easier it is to use and fix.

Changing Page Creation date -- Tue, 21 Sep 2004 06:34:05 -0700 reply
Is there a backdoor to changing the creation_date field? This is locked in the ZMI..

Use: Migrating to the tracker.

Feature Request--Edit Box Sizing Buttons -- Tue, 21 Sep 2004 06:48:00 -0700 reply
A couple of the folks who use ZWiki around here complain about the fact that the editing box is too small. I usually go in and edit the code to create a bigger window. But working in the ZMI just now, I see an answer that's been staring me in the face for the last couple of years: The "Taller/Shorter/Wider/Narrower" buttons that Zope uses to adjust the size of its editing space. Is there a way to leverage Zope's built-in mechanism for ZWiki?

Thanks!

Feature Request--Edit Box Sizing Buttons -- Tue, 21 Sep 2004 10:29:12 -0700 reply
I thought these were Javascript, but they are SUBMIT methods, and although you could probably built it in, will it conflicts with the back-button natural use of Zwiki.

It might also mess with another feature request I'd like to see: Change notification OK/Cancel message box.

Alternatives: Educate on UserOptions? size values (and report back implementation frustration), Change the text box to be sized by %'s??

Feature Request--Edit Box Sizing Buttons --Bob McElrath?, Tue, 21 Sep 2004 10:33:33 -0700 reply
anonymous [zwiki-wiki@zwiki.org]? wrote:

I thought these were Javascript, but they are SUBMIT methods, and although you could probably built it in, will it conflicts with the back-button natural use of Zwiki.

It might also mess with another feature request I'd like to see: Change notification OK/Cancel message box.

Alternatives: Educate on UserOptions? size values (and report back implementation frustration), Change the text box to be sized by %'s??

This does not work vertically with CSS. It's a well-known "bug". I found a page that claims if you use some table trickery, you can get it to fill the browser window vertically, but I can't get it to work.

I think for now we should just change the default height to be 40...

que es un wiki -- Wed, 22 Sep 2004 08:21:10 -0700 reply
tengo una duda existencial

ZWiki speed --Bob McElrath?, Wed, 22 Sep 2004 15:02:49 -0700 reply
Following up to two posts here.

Having had some experience with complicated regexes over large documents (filterproxy.sf.net) I recognized several flaws in the way some of the regexes are handled in zwiki. Some time ago (Jul 7 according to the dir) I sat down and rewrote several pieces including thunk_substituter, within_literal, withinSgmlOrDtml, and sgmlAndDtmlSpansIn in a way that improves performance. To my disbelief my rewrite actually increased the amount of time it took to render documents. (I still don't understand why) Perhaps I misunderstand something about the difference between perl and python regexes, or made some mistake (though my code is much simpler than the original).

Poor regexes can easily "hang" zope. Anonymous poster below, are you referring to a hang, or a true crash? Do you have a traceback?

And Dmitry, it seems that the pieces I was concerned about are far smaller in their performance hit than pageIds and pages. (So we should fix pageIds and pages first) Do you have profiling numbers for more than the top 8 processes? And how did you do this?

Dmitry Astapov [zwiki-wiki@zwiki.org]? wrote:

Following-up to myself :)

I experimented with profiling some more, and here is what I got (sorted by cumtime, profiler and core Zope calls ommited):

   Ordered by: cumulative time
   List reduced from 1289 to 100 due to restriction <100>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
       16    0.060    0.004   59.920    3.745 Tracker.py:136(issueCount)
       16    0.000    0.000   59.920    3.745 Tracker.py:140(hasIssues)
       16    0.370    0.023   59.800    3.738 ZWikiPage.py:894(pageIds)
       16    0.490    0.031   59.400    3.713 ZWikiPage.py:803(pages)
        7    0.000    0.000   54.750    7.821 ZWikiPage.py:223(__call__)
        7    0.000    0.000   54.740    7.820 stx.py:80(render)
        7    0.000    0.000   54.740    7.820 ZWikiPage.py:240(render)
        7    0.000    0.000   54.180    7.740 UI.py:188(addSkinTo)

For each page display first group of calls got incremented by two (in this example, 16 -> 18), second group - by one (7 -> 8). Time per call is not decreased by subsecuent reloads of the same page.

For the record, I have no tracker installed. So why tracker methods take up so much time? And why pages and pageIds got called twice per page display?

anonymous [zwiki-wiki@zwiki.org]? wrote:

I saw this today on a 0.17.0 version with a large page containing a lot of html tags, and most noteabley a HTML and BODY tag surroudnign the document. Crashed Zope on save, not when saved without HTML or body tag.

Digging through code I found the regex for "strip html & body added by some zope versions" which, although moved to stx.py, hasn't changed between versions.

Tried to reproduce on DiffTests, but notice there's new handling for htis, in such that the html and body tags I attached got removed and such. (at least the end tags) Some of the versions didn't seem to show up in the history.

ZWiki speed -- Wed, 22 Sep 2004 15:06:27 -0700 reply

the difference between perl and python regexes

The syntax is identical, right?? (I can look it up in Mastering Regular Expressions v. 2 if you'de like.. read plenty of vol. 1, only reference vol. 2.)

Thanks for your help. - DeanG (Anonymously cowarded 0.17.0 poster. ;-))

ZWiki speed -- Wed, 22 Sep 2004 15:08:34 -0700 reply

hang or true crash?

No trackback available. The Zope server restarts itself. I expect this is a true crash. OSX, can't reproduce on similar Windows setup.

ZWiki speed --Bob McElrath?, Wed, 22 Sep 2004 15:08:46 -0700 reply
anonymous [zwiki-wiki@zwiki.org]? wrote:

the difference between perl and python regexes

The syntax is identical, right?? (I can look it up in Mastering Regular Expressions v. 2 if you'de like.. read plenty of vol. 1, only reference vol. 2.)

That's what I thought, but are the implementations identical? Therefore is performance identical?

Anyway, I'm probably the guy to ask about regex speed and complicated regexes in general. When I get more time I'll look at this speed issue again. The speed of my server is beginning to get on my nerves. And I only have ~250 pages!

ZWiki speed -- Wed, 22 Sep 2004 15:31:34 -0700 reply
Implementations are certainly different. (I should know better than to click Reply before finishing an article) I know is that the Python version is implemented in C. Reading through comp.lang.py showed some interesting stuff, but I don't have Bob's expertise to filter it so would be dumping lots-o-links on you in a feeble attempt to help... http://groups.google.com/groups?q=regular+expression+perl&group=comp.lang.python.*&scoring=d

How can I indent replies? -- Wed, 22 Sep 2004 20:58:42 -0700 reply
How can I indent replies so that they are not directly under the comment they are replying to, but offset just a bit to the right?

How can I indent replies? -- Wed, 22 Sep 2004 20:59:38 -0700 reply
for instance, this reply looks like another comment because it's not indented or anything

ZWiki speed --Bob McElrath?, Thu, 23 Sep 2004 02:14:23 -0700 reply
I figured out ZopeProfiler? and ZopeCallProfiler?.

After turning on profiling I clicked around my site. All pages should have been pre-rendered. I then reset the statistics and ran an /upgradeAll and timed it. There are several surprises here.

The results for loading a bunch of prerendered pages and peforming an /upgradeAll

I find (as Dmitry) that the biggest timesuck is Tracker.py:164(issueColourFor). I discovered that at some point I must have run /setupTracker... The Tracker time is all being used in the lambda function on Tracker.py:183. Simon I'll let you figure out how to make that faster... I then disabled it by deleting the folder properties issue_*, and clicked around some more (again pre-rendered). Again issueColourFor dominates. I then commented it out in ZWikiPage.py...still issueColour dominates. The reason is that it is called from Utils.py:metadataFor by virtue of the fact that it is registered as metadata in Tracker.py:51.

I propose that plugins require an "installed" query function, which should be called (for tracker) in ZWikiPage.py:renderLink (the one place it's explicitly called). Also note that this interdependence between ZWikiPage.py and a plugin isn't really desirable. (they're not decoupled yet -- I can't remove Tracker.py and have ZWiki still work) I'm not sure how to do the registerPageMetaData (i.e. insert an "installed" check there). Simon?

The second worst culprit (after truly disabling the Tracker by commenting out registerPageMetaData in Tracker.py) is metadataFor.

The third worst is the single regex on Comments.py:59 (fromlineexpr). I have long felt that comments need to be individual ZODB objects, rather than embedded in the parent page (there can be undesirable consequences of treating the html-rendered message heading as stx). I don't see an obvious problem with this regex. It is slow because it is applied to a large document (as are the wikilink regexes -- see below). Splitting self.text into lines and iterating over lines would probably be faster.

The fourth worst is Rating.py:38(votes) which is called by metadataFor via being registered with registerPageMetaData.

As anticipated, the biggest atomic operation is sre.split and sre.sub, so we can gain by being smarter with regexes. The time consuming sre.sub operations are ZWikiPage.py:436, ZWikiPage.py:503 (renderLink and renderMarkedLinksIn). This could be made hundreds of times faster by storing the offset of WikiLinks? in the page at pre-render time, rather than the <zwiki></zwiki> method of marking. The thing I tried to fix was sgmlAndDtmlSpansIn, which similarly applies a single regex to the entire document. It is a prerendering operation...

Lastly, it is extremely alarming that the prerendered test is much slower than the upgradeAll test. It took 30 seconds to prerender 200+ pages on my site, but I easily consumed 600s just by clicking on 5 or so links! Thus, prerendering is ~20-100 times FASTER than rendering, making the whole prerendering step pretty moot!

How can I indent replies? --Racing Pitoune, Thu, 23 Sep 2004 18:59:57 -0700 reply
Create a file named stylesheet in your ZWiki folder, copy the default stylesheet rules into it, and add a declaration modifying the p selector. That's how I'd do it.

How can I indent replies? --Racing Pitoune, Thu, 23 Sep 2004 20:15:42 -0700 reply
The First-line indent rule described in one of the w3c tutorials should do the trick.

More details on indented paragraphs.

Ridicoulous Idea ? --ArnoPucher, Fri, 24 Sep 2004 07:15:55 -0700 reply
hehe - I made my first official ZWiki as my (new) homepage ... and run into an idea ...

since my "homepage wiki" is in german, how about extending the ZWiki not only to multi-language base (translating the ZWiki strings) but to store the ZWiki content with an additonal language code ?

So one Wiki could hold a german page and "it's" translation.

Just tell me your two cents of this idea ... is it possible ? Or would it mean to recode the entire ZWiki again ?

wikis on Yahoo news --Racing Pitoune, Sun, 26 Sep 2004 22:51:35 -0700 reply
Wikis Offer Knowledge-Sharing Online

BUG HUNT --simon, Mon, 27 Sep 2004 21:34:15 -0700 reply
The september BUGHUNT is in progress - help at http://zwiki.org/IssueTracker if you can.

outage --simon, Tue, 28 Sep 2004 07:41:12 -0700 reply
Second unexplained hang in a couple of days. Zope failed to come up properly after restarting due to memory growth. I've removed the recently installed ScriptDebugging? product which was looking suspicious.

outage, i18n character encoding change --simon, Tue, 28 Sep 2004 15:00:37 -0700 reply
Another outage today as I wrestled with content-type code. Back to normal now.

If you use PTS, please note this change:

 * clean up and disable the MessageIDFactoryWithUtf8Fix PTS hack
   disable for now as zwiki.org seems to be working fine without,
   perhaps due to some upgrade

Please let us know if you find utf-8 encoding of zwiki pages suddenly stops working with the latest code.

controlling webdav upload type --Simon Michael, Wed, 29 Sep 2004 12:41:42 -0700 reply
http://www.zopemag.com/Issue009/Section_Articles/article_PloneWebDAV.html has information on how to control the content type of objects uploaded to CMF/Plone sites via webdav. Might be useful for the bulk upload folk. Gnome and probably windows/KDE have nice support for drag and drop to webdav sites.

ZWiki Quirks -- Thu, 30 Sep 2004 06:34:27 -0700 reply
One of our wiki users ran across these problems with ZWiki 0.34 in Plone 2.0.4 (Win 2k). I looked through the notes, known problems, and bug stack but I didn't see any info that covered these issues, so here they are. All suggestions are welcome!

-----

  1. Renaming a wiki creates a duplicate.

Either of the pages can be edited and saved, but it's not a good thing that duplicates are created when a page is renamed.

---

  1. Double external link icons.

When external links are specified in a reStructuredText wiki page by just inserting the url, two "external link icons" are inserted instead of one.

-----

Thanks! Scott

Related sites -- Thu, 30 Sep 2004 06:42:52 -0700 reply
http://wiki-rules.blogspot.com was added to FrontPage related sites section. Seemed out of place, and at best unready for the FrontPage.

controlling webdav upload type -- Thu, 30 Sep 2004 07:51:09 -0700 reply
Just learning about WebDav...

Windows Webdav drag FROM a zwiki page object will create a local copy of the rendered page. Drag TO is just the file object, no properties, vanilla not suitable for Zwiki pages. Needs work. I quickly read through the article but I haven't glean the Zope from the Plone/CMF functionality. Does ExternalEditor use WebDav?, or is that a similar but different technology?

It would seem like a quick way to do a mirror backup, but dragging a folder to a local folder (or too many files at once), is likely to bring a timeout error.

thanks for spam cleanup --Simon Michael, Thu, 30 Sep 2004 09:21:42 -0700 reply
Thanks for cleaning up that spam raid.. the biggest so far.

FYI when I get these mails I forward them (reply, citing the original) to spam at zwiki.org; this adds the urls to the banned_links property so in theory we should never be spammed with the same urls twice.

We need something more though.

ZWiki Quirks --Simon Michael, Thu, 30 Sep 2004 09:24:08 -0700 reply
Thanks Scott, forwarding to the tracker.

Changing Page Creation date -- Fri, 21 Jan 2005 09:37:15 -0800 reply
Found this response while surfing the web from Dieter Mauer.

> > You use an ExternalMethod or my "TrusedExecutables?" product > to be unrestricted by Zope"s security restrictions. > Then you can assign new values to the "creation_date" > and "modification_date" attributes of your objects. > > > >

Just one further note: If you want the catalog to reflect the modified modification_date you have to call

self.reindexObject(idxs=["Date", "modified"]?)

i.e., you need to specify the indexes otherwise "notifyModified" will be called setting the mod_date to now (again)

Changing Page Creation date --Simon Michael, Fri, 21 Jan 2005 11:03:18 -0800 reply
Nice tip.