comments:

Zwiki 0.28 released --SimonMichael, Mon, 01 Mar 2004 13:56:03 -0800 reply
Zwiki 0.28 has been released. If you have been having trouble in plone 2 or zope 2.7, try this one.

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

away for a couple of days --SimonMichael, Tue, 02 Mar 2004 09:17:32 -0800 reply
I will be/should be submerged in client work for the next three days.. press on fellow zwikizens, I'll respond when I can.

create zwiki page programmatically -- Thu, 04 Mar 2004 11:14:22 -0800 reply
Could anyone explain, how to create a ZWiki page from a Python Script? Plain Zope, no CMF or Plone.

page content in postgres database? -- Thu, 04 Mar 2004 11:17:00 -0800 reply
Is it possible to store the content of zwiki pages in postgres????

page content in postgres database? --DeanG, Thu, 04 Mar 2004 11:23:19 -0800 reply
Would it suffice if your Zope database was a PostgreSQL? database? http://hathaway.freezope.org/Software/Ape

Unable to change status choices in Issue Tracker -- Fri, 05 Mar 2004 06:12:40 -0800 reply
Howdy,

I'm using Issues for collecting bits of documentation.

I've added choices to Category and Severity, but get an error if I change status from open pending closed (well, I can remove one, but not change or add to the list). I get the following traceback if I add the choice Example to the issues_statuses list.

It looks like a security setting issue, but I have no idea what setting might affect status and not other fields ... Any help is appreciated.

Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in callobject
  Module Products.ZWiki.ZWikiPage, line 238, in __call__
  Module Products.ZWiki.ZWikiPage, line 251, in render
  Module Products.ZWiki.PageTypes, line 256, in render
  Module Products.ZWiki.ZWikiPage, line 294, in evaluatePreRenderedAsDtml
  Module OFS.DTMLDocument, line 128, in __call_
   - 
   - URL: http://192.168.1.2:8080/wiki/IssueTracker/managemain
   - Physical Path: /wiki/IssueTracker
  Module DocumentTemplate.DTString, line 474, in __call_
  Module DocumentTemplate.DT_Let, line 76, in render
  Module DocumentTemplate.DT_In, line 703, in renderwob
  Module DocumentTemplate.DT_Util, line 201, in eval
   - __traceback_info__: 
  Module , line 1, in 
  Module AccessControl.ZopeGuards, line 67, in guarded_getitem
KeyError: Example

Thanks
Kent

Changing choices for status -- Sat, 06 Mar 2004 06:43:59 -0800 reply
I added an item to the list ISSUE_STATUSES in INSTANCE/Products/ZWiki/Defaults.py, and they show up in the Tracker, seems fine.

Is it OK to do this? Will it cause problems at a later time?

Thanks,
Kent

back in zope land, --simon, Tue, 09 Mar 2004 12:19:12 -0800 reply
Still recovering from crunch mode on a PHP project. It was interesting, and PHP was definitely the better solution in this case (a shopping site).

Imeme found some security issues with freebsd 5 and had to downgrade it. Zwiki.org got broken again, and I couldn't fix it without becoming a freebsd guru. It's time for me to say goodbye to freebsd, so I went looking for debian hosting and found it . Ahhhh, debian. Suddenly maintenance has become a joy. :)

I will rebuild the zwiki list asap. I am thinking of trying out ezmlm, just for variety, and because it might be simpler than mailman.

Changing choices for status --simon, Tue, 09 Mar 2004 12:30:46 -0800 reply
Hi Kent - longrun.org is looking good. Yes, adding to ISSUE_STATUSES is fine. Sounds like an issue there we need to investigate.

back in zope land, --DeanGoodmanson, Tue, 09 Mar 2004 13:58:02 -0800 reply
Zwiki is much snappier! :-)

UTF-8 --Jároli József, Wed, 10 Mar 2004 02:13:06 -0800 reply
Could you please set the site encoding back to utf-8 (instead of latin-1) ? Thanks!

Trouble Installing -- Wed, 10 Mar 2004 09:22:00 -0800 reply
Error Type RuntimeError?

Error Message FS Page Template editform has errors: Compilation failed.

TAL.TALDefs.TALError: Python expression error: invalid syntax (line 1) in expression "python: \r\n\t\t editing and len(here.pages())==1 and here.id()!='FrontPage'\r\n\t\t # are we editing the only page in this wiki ?\r\n\t\t # if so, we'll make the page name default to FrontPage\r\n\t\t # (intended to rename the first ugly CMF-named page,\r\n\t\t # but will activate any time we edit a lone page) ", at line 9, column 1
Request made at 2004/03/08 02:28:34.104 US/Central

UTF-8 --simon, Wed, 10 Mar 2004 13:25:09 -0800 reply
Done.. I think. I've set python's default encoding to utf-8 in sitecustomize.py and restarted zope.

mail-out working again --simon, Wed, 10 Mar 2004 16:25:43 -0800 reply
The zwiki list, and mail-out from zwiki.org, is up again (mail-in is on the way).

Note we are running ezmlm now instead of mailman. No web interface (yet) and fewer options, but everything is quite a bit simpler. You are subscribed to either zwiki@zwiki.org or zwiki-digest@zwiki.org , and you manage your subscription just by sending mail to the right -suffix@zwiki.org address. See the ezmlm user's manual for examples.

mail-out working again --simon, Wed, 10 Mar 2004 17:31:35 -0800 reply
Not quite. Still some DNS issues.

tap tap is this thing on ? --SimonMichael, Fri, 12 Mar 2004 09:23:30 -0800 reply
Ay, that sucked. Things were going so smoothly, then I gradually descended into DNS hell..

I was trying to set up my own nameserver for joyful.com, zwiki.org etc. A combination of my newbieness and registrar weirdness took zwiki.org offline for a day or two (.org domains must have two nameservers; nameservers must be registered with internic by the registrar; etc.).

I'm moving to a more transparent registrar, meanwhile I have reset the zwiki.org nameservers to trusty ns.imeme.net. I believe pretty much everyone should be able to resolve the domain again at this point.

tap tap is this thing on ? --simon, Fri, 12 Mar 2004 10:05:59 -0800 reply
Another test.. should go out on the list..

is there anything else that can break --simon, Fri, 12 Mar 2004 12:32:48 -0800 reply
Must be that spring-cleaning time.

zwiki.org and zwiki list back on the air --Simon Michael, Fri, 12 Mar 2004 20:09:42 -0800 reply
I think we are live again. Mail out to page subscribers, mail out to the list, mail in from page subscribers (to zwiki-wiki@zwiki.org) and mail-in via the list (zwiki@zwiki.org) should all be working.

Note the zwiki list is now based on ezmlm. There is no web interface yet; you can un/subscribe by sending mail to -subscribe or -unsubscribe. I removed some addresses that were bouncing, and ezmlm will probably remove some more itself.

This has been the month and week where everything broke! Thanks for your patience.

See the recent GeneralDiscussion for more details.

DTML Method won't run -- Sun, 14 Mar 2004 11:19:40 -0800 reply
Howdy,

I've just moved a ZWiki off-site, and a few things are not working ...

I've a blog page which calls a DTML method, < dtml var BlogMethod> for adding an entry, the entry form doesn't show up.

It runs fine locally, and if I add /BlogMethod? to the page URL I get the entry form on a blank page. I've monkeyed with the permissions which look involved, no luck.

Suggestions?

Thanks
Kent

DTML Method won't run -- Sun, 14 Mar 2004 15:45:40 -0800 reply
Try:

 <dtml-var BlogMethod html_quote> (or &dtml-BlogMethod;)

and see if it's showing you the object you expect.

BlogMethod? calling -- Mon, 15 Mar 2004 04:30:52 -0800 reply
changing:

 <dtml-var BlogMethod> to <dtml-var BlogMethod html_quote> 

doesn't help.

I'm not sure what is meant by:

 (or &dtml-BlogMethod)

BlogMethod? calling -- Mon, 15 Mar 2004 13:20:05 -0800 reply
What did it print ?

& dtml-BlogMethod?;

(remove the space) is just a shorter way to write the same thing.

BlogMethod? calling --DeanGoodmanson, Mon, 15 Mar 2004 21:51:55 -0800 reply
Is allow_dtml a wiki folder property, and true?

Check your allowed_page_types to make sure that msgstxprelinkdtmlfitissuehtml is in the list, and also the page_type of that page.

There could also be something on QuickReference that I missed. Sorry I couldn't change it, I've lost my p/w.

an old problem: Umlauts ... | reStructeredText --ArnoPucher, Tue, 16 Mar 2004 00:59:30 -0800 reply
ad 1) Umlauts

I installed a new version of Zope (2.7.0) and Zwiki 0.28 and noticed a stranged thing Umlauts (öäüß) for example are stored as clenaly rubbish if I edit my wikipage using the editform; if I choose to edit the page using the Zope management interface all has been perfect - is there maybe a bug in the editform ?

ad 2) reStructuredText

Linked text containing international characters is ignored -- Tue, 16 Mar 2004 06:22:46 -0800 reply
I have the following problem: Linked text such as in:

  "linked text":http://www.zwiki.org

is not rendered as link in my ZWiki installation (Zope 2.6.2, various ZWiki version from 0.24 to 0.28) when the linked text contains international characters (in particular German Umlauts such as äöüÖÄÜ). Instead, the linked text constructs are copied as plain text into the rendered page. The Umlauts themselfs are shown correctly, the "linked text" is just not recognized as what it is.

I already enabled locaale aware string encoding and tried different values (de_DE, iso-8859-1, ...), but without prevail.

Does anybody know what has to be patched or configured to allow international characters in linked text?

And how do you do this under Windows? It seems, that the Python installation shipped with the Zope binaries (or Windows itself) doesn't know about "de_DE" (locale not supported).

an old problem: Umlauts ... | reStructeredText --DeanG, Tue, 16 Mar 2004 07:08:41 -0800 reply

Is there a significant difference between structered Text and restructered text ?

Yep. StructuredText is a simple helper to HTML pages, where reStructuredText markup is exclusive (with exception to some plug-ins and a raw directive) which requires exact adherance. The markups are mostly different, which some similarities. Folks who are immersed in reStructuredText seem to love it.

Site Templates --Bob McElrath?, Tue, 16 Mar 2004 08:37:06 -0800 reply
I am attempting to create a site template for LatexWiki by placing the appropriate files in Products/ZWiki/content/latexwiki. A couple of questions:

  1. It seems I cannot put a site_logo.jpg in there, ZWiki doesn't know what to do with it. (I will add code to handle this if there are no objections...but it brings up the question of how to more generally handle non-Wiki content)
  2. I need to specify attributes of the ZWiki folder (such as allow_dtml + some latexwiki specfic ones) How can I do this in the template?

If I go the other route, and install a template site in Control_Panel/ZWiki, how can this be done automatically? Is there an first-run method that is called on a package? (__init__: initialize()?)

Lastly, is there any way to do this without putting files in ZWiki's tree? i.e. could I just add Products/LatexWiki/content or Control_Panel/LatexWiki to some path that ZWiki searches for site templates (by modifying the methods listFsWikis, listZodbWikis, addZWikiWebFromFs, addZWikiWebFromZodb)?

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened. -- Douglas Adams, Hitchhikers Guide to the Galaxy

Linked text containing international characters is ignored --Bob McElrath?, Tue, 16 Mar 2004 08:58:41 -0800 reply
zwiki-wiki@zwiki.org [zwiki-wiki@zwiki.org]? wrote:

I have the following problem: Linked text such as in:

  "linked text":http://www.zwiki.org

is not rendered as link in my ZWiki installation (Zope 2.6.2, various ZWiki version from 0.24 to 0.28) when the linked text contains international characters (in particular German Umlauts such as ??????).

I encountered this WRT putting equations in links. I am using this regex (before ZWiki processing) to make links out of these:

# Be more generous in STX for links...so they can contain equations t = re.sub(r'(^| )(?ms)"([^"]?*)":(http://[-:A-Za-z0-9_,./\?=@#~&%()]?*?)([.!?,;]?(?= )|(?= )|$)',\ r'\1\2\4',t)

...if ZWiki wants to be more generous about this. I also allow '( and )' in URL's (add to Regexps.py:urlchars) because doi links use them. (Yes, they should encode them, but they do not).

I think the corresponding changes should be made in Regexps.py, but the exact location evades me...

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened. -- Douglas Adams, Hitchhikers Guide to the Galaxy

Linked text containing international characters is ignored -- Tue, 16 Mar 2004 13:30:20 -0800 reply
Call me evil (or worse), but what's your thoughts on a link rule of a "text and spaces but not a double-quote or other white-space ":NON-WHITESPACE simple regex?, therefore alleviating all of the extraneous rules?

Linked text containing international characters is ignored --Bob McElrath?, Tue, 16 Mar 2004 13:39:41 -0800 reply
zwiki-wiki@zwiki.org [zwiki-wiki@zwiki.org]? wrote:

Call me evil (or worse), but what's your thoughts on a link rule of a "text and spaces but not a double-quote or other white-space ":NON-WHITESPACE simple regex?, therefore alleviating all of the extraneous rules?

That's essentially what I did. Here's your suggestion "[^"]?*":\S+ But here's a way to break it (and mine, and the one used by zwiki currently):

"my dog's page":http://site/doggie

Keep in mind that STX is not a well-defined, rigorous markup language (note: reStructuredText IS), rather it is a series of hacks designed to be easy to use with the fewest possible negative side effects.

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

Thanks Dean -- Tue, 16 Mar 2004 14:31:35 -0800 reply
Indeed, allow_dtml was not a property. Somehow it got lost when switching from local to zettai.net

Thanks
Kent

Linked text containing international characters is ignored -- Thu, 18 Mar 2004 00:24:48 -0800 reply

Call me evil (or worse), but what's your thoughts on a link rule of a "text and spaces but not a double-quote or other white-space ":NON-WHITESPACE simple regex?, therefore alleviating all of the extraneous rules?

Hmm. The regular expression used by ZWiki is fine for me, but ...

In the course of writing up my problem in a 3 line text-box, I forget to mention that I we have a different installation running on our site which accepts linked text containing international characters. The only difference to the other one (I found so far) is an installed Plone 1.0.5. It uses exactly the same ZWiki code. There must be some locale setting which forces the regular expression matcher to also accept international characters for the expressions used by ZWiki.

--Andreas

Issue Tracker URL oddity --ktenney, Fri, 19 Mar 2004 05:23:42 -0800 reply
Howdy,

(I recently moved my wiki to http://zettai.net, I don't know of that's related to the following.)

I am getting an error from http://longrun.org/wiki/IssueTracker, the target of the issues link at the top of the wiki pages.

My Issue Tracker now has the URL http://longrun.org/wiki/FrontPage/issuetracker

Any clues as to what's going on?

Thanks
Kent

Issue Tracker URL oddity --DeanG, Fri, 19 Mar 2004 07:16:26 -0800 reply
There's still an old IssueTracker page floating out there, and it's failing. Delete it and the site should revert to the appropriate issuetracker Good News! Fuzzy URL searching now works on your site! :-) :-) :-) http://longrun.org/wiki/Kent redirects to the KentT page. :-)

Locales Musing --ArnoPucher, Fri, 19 Mar 2004 07:59:44 -0800 reply
I recently intalled ZOPE 2.7 and ZWiki 0.28 (to test for an upgrade of my ZOPE 2.6 / ZWiki 0.24 Versions).

Since I am a german native speaker, I noticed that the (pardon for the BAD word) Umlauts like 'äöüß' dont work in Zope AND in the WIKI. If I enter a 'ä' in the Zope Management Interface I get some rubbish in the WIKI page and vice versa.

To top the problem - with the Windows Version of Zope I have to use there is nothing like starting Zope with "-L "de_DE" ...

Any ideas how to get the same locale on ZWiki AND Zope ?

Help - Having Trouble Getting ZWiki to Work -- Fri, 19 Mar 2004 08:06:49 -0800 reply
I installed ZWiki on Plone 2.0 I installed everything the way I was supposed to and now I am trying to actually create the wiki but I am having some problems. For example, if I have a folder in plone called TestFolder? if I select Wiki Page in the add new item menu I get a site error:

 Site error
This site encountered an error trying to fulfill your request. The errors were: 
Error Type 
RuntimeError 
Error Message 
FS Page Template editform has errors: Compilation failed.
<pre>TAL.TALDefs.TALError: Python expression error: invalid syntax (line 1) in expression "python: \r\n\t\t editing and len(here.pages())==1 and here.id()!='FrontPage'\r\n\t\t # are we editing the only page in this wiki ?\r\n\t\t # if so, we'll make the page name default to FrontPage\r\n\t\t # (intended to rename the first ugly CMF-named page,\r\n\t\t # but will activate any time we edit a lone page) ", at line 9, column 1</pre> 
Request made at 
2004/03/16 19:35:52.917 US/Central 

I have no idea what this means or how to even resolve it. I have been told this from some people: "Maybe the \n linebreaks? If your editor has some kind of DOS-to-UNIX conversion, try it."

But, I don't understand what I am supposed to do.

Thanks, Laura

Help - Having Trouble Getting ZWiki to Work -- Fri, 19 Mar 2004 08:25:43 -0800 reply
I tried doing this: In my Plone ZMI and selected in the drop-down menu ZWiki. When I tested it it now states this runtime error:

Traceback (innermost last):

 Module ZPublisher.Publish, line 150, in publish_module 
Module Products.PlacelessTranslationService.PatchStringIO, line 44, in new_publish 
Module ZPublisher.Publish, line 114, in publish 
Module Zope.App.startup, line 199, in zpublisher_exception_hook 
Module ZPublisher.Publish, line 98, in publish 
Module ZPublisher.mapply, line 88, in mapply 
Module ZPublisher.Publish, line 39, in call_object 
Module Products.ZWiki.ZWikiPage, line 236, in __call__ 
Module Products.ZWiki.CMF, line 122, in __call__ 
Module Shared.DC.Scripts.Bindings, line 252, in __call__ 
Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec 
Module Products.CMFCore.FSPageTemplate, line 191, in _exec 
Module Products.CMFCore.FSPageTemplate, line 140, in pt_render 
RuntimeError: 

Please help. :(

Thank You, Laura

happy friday --SimonMichael, Fri, 19 Mar 2004 18:09:50 -0800 reply
Hi all.. I'm sorry I haven't been very active here lately. Tax time is looming and I am under pressure. Focussed on billable work, etc etc.

We've had a rash of problem reports due to the confluence of new wiki outline code, zope 2.7, python 2.3, and plone 2, all at once. Hang in there, these problems are not random and I don't believe they are endemic or unsolvable. Difficult to test for, yes. Anyone who wants to start running some functional tests (one way: use the functional testing support in ZopeTestCase? in plone cvs) has my blessing.

On the upside, the new site seems to be running like a champ.

Help - Having Trouble Getting ZWiki to Work --Simon Michael, Fri, 19 Mar 2004 18:56:49 -0800 reply
zwiki-wiki@zwiki.org wrote:

I tried doing this: In my Plone ZMI and selected in the drop-down menu ZWiki. When I tested it it now states this runtime error:

The "ZWiki Page" and "ZWiki" choices in the ZMI add menu are really intended for non-plone wikis. In plone it's expected that you'll add a single Wiki Page using the plone UI and go from there. You can add the default pages that ZMI Add ZWiki provides, by visiting .../YourPage?/setupPages .

It looks as if wikis added via ZMI Add ZWiki aren't compatible with Plone. Plone wikis and non-plone wikis have some different requirements. This situation is not ideal.

Traceback (innermost last):

Module ZPublisher?.Publish, line 150, in publish_module Module Products.PlacelessTranslationService?.PatchStringIO?, line 44, in new_publish Module ZPublisher?.Publish, line 114, in publish Module Zope.App.startup, line 199, in zpublisher_exception_hook Module ZPublisher?.Publish, line 98, in publish Module ZPublisher?.mapply, line 88, in mapply Module ZPublisher?.Publish, line 39, in callobject Module Products.ZWiki.ZWikiPage, line 236, in __call_ Module Products.ZWiki.CMF, line 122, in __call__ Module Shared.DC.Scripts.Bindings, line 252, in __call__ Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec Module Products.CMFCore.FSPageTemplate?, line 191, in _exec Module Products.CMFCore.FSPageTemplate?, line 140, in pt_render RuntimeError?:

Please help. :(

Thank You, Laura
forwarded from http://zwiki.org/GeneralDiscussion#msg20040319082543-0800@zwiki.org

Help - Having Trouble Getting ZWiki to Work --Simon Michael, Fri, 19 Mar 2004 18:58:31 -0800 reply

TAL.TALDefs.TALError: Python expression error: invalid syntax (line 1) in expression "python: \r\n\t\t editing and len(here.pages())==1 and here.id()!='FrontPage'\r\n\t\t # are we editing the only page in this wiki ?\r\n\t\t # if so, we'll make the page name default to FrontPage\r\n\t\t # (intended to rename the first ugly CMF-named page,\r\n\t\t # but will activate any time we edit a lone page) ", at line 9, column 1
Request made at 2004/03/16 19:35:52.917 US/Central

You're using python 2.2, aren't you ? The solution is to upgrade it, or the plone package it came in.

my SiteReliability sliding - WebRobot? issue? --BillSeitz, Sat, 20 Mar 2004 07:06:58 -0800 reply
My site's been dying frequently all the sudden again. Have made no software changes lately.

One thing I just noticed yesterday was that grabbing my long/complex FrontPage via some Python urllib2.urlopen code consistently crashes the site, even when viewing the page by browser works fine.

Anyone know why this would matter? --BillSeitz

my SiteReliability sliding - WebRobot? issue? --Simon Michael, Sat, 20 Mar 2004 10:48:14 -0800 reply

Anyone know why this would matter? --BillSeitz

Not me..

Why is it dying.. what does event log say ?

I assume it's either exceeding python stack size on freebsd, or running out of memory. I might be able to suggest some steps.

restarted mail server --SimonMichael, Mon, 22 Mar 2004 08:21:48 -0800 reply
zwiki.org's mail server was down since yesterday, I believe I left it that way accidentally when clearing spam bounces out of qmail's queue. It's up again.

test comments --SimonMichael, Mon, 22 Mar 2004 08:31:15 -0800 reply
The flow of junk comments seems to be as strong as ever, I'm slightly surprised. I have added this text to the comment form: "Comments are received by many subscribers - please use SandBox for testing". Let's see if it helps, hopefully it won't have the opposite effect. One downside already - you now must hit tab tab enter when sending a comment. Other solutions welcome.

Locales Musing --Simon Michael, Mon, 22 Mar 2004 08:39:33 -0800 reply

Since I am a german native speaker, I noticed that the (pardon for the BAD word) Umlauts like 'äöüß' dont work in Zope AND in the WIKI. If I enter a 'ä' in the Zope Management Interface I get some rubbish in the WIKI page and vice versa.

Zwiki and even Zope's ZMI can be made to handle these characters. Zwiki should handle them without any setup if your python has the right locale - it would be best if you can fix that, but if not you can add the umlaut characters to zwiki's default set. Have a look at the discussion in http://zwiki.org/repos/zwiki/Regexps.py . Does that help ?

static html page export -- Mon, 22 Mar 2004 11:21:31 -0800 reply
Hi All, does anyone know if it is possible to export a section of a zwiki as html pages? These should be viewed just by the browser, no servers available.... Thx,

Oliver

static html page export --DeanG, Mon, 22 Mar 2004 11:34:09 -0800 reply
Is all in one file OK? Check out the /print functionality. http://zwiki.org/SandBox/print see: ZwikiPrinting .

static html page export --Simon Michael, Mon, 22 Mar 2004 16:00:46 -0800 reply
One way is to crawl your site with wget. It has options for this purpose.

Issue Tracker URL oddity --Simon Michael, Mon, 22 Mar 2004 16:05:01 -0800 reply

My Issue Tracker now has the URL http://longrun.org/wiki/FrontPage/issuetracker

This means you are using the skin template implementation, rather than the dtml wiki page implementation. We offer the former by default now so that you don't need to enable DTML to track issues. So all is working, yes ?

an old problem: Umlauts ... | reStructeredText --Simon Michael, Mon, 22 Mar 2004 16:11:40 -0800 reply
ArnoPucher wrote:

I installed a new version of Zope (2.7.0) and Zwiki 0.28 and noticed a stranged thing Umlauts (öäüß) for example are stored as clenaly rubbish if I edit my wikipage using the editform; if I choose to edit the page using the Zope management interface all has been perfect - is there maybe a bug in the editform ?

Arno - check your browser's Character Encoding setting in both cases. Ideally it will be set to Unicode/UTF-8 in both cases. If not, you'll set the characters and they'll look ok in one mode, but not in the other.

Probably unrelated, but I have noticed a current problem where Firefox does not select unicode mode while browsing zwiki.org; I am assuming this is a browser bug since the appropriate html header is there.

Wrong Last Edited Time -- Mon, 22 Mar 2004 16:47:47 -0800 reply
I'm using Zwiki in Plone 2.0 RC5, Zope 2.7.0. When I edit a page, the last edited time comes up as -1 yrs. This is because it's putting down the editing time in the future, because later on it ends up coming up to zero and acting normal.

The strange thing is I also have CMFBoard? installed and it seems to work out the last edited time no problem. Is there some way to change the Zwiki time? Or Plone time or something??

Thanks :)

Wrong Last Edited Time -- Mon, 22 Mar 2004 16:54:25 -0800 reply
I'm using ZWiki 0.28 If that helps.

Umlauts -- Tue, 23 Mar 2004 03:05:04 -0800 reply
I installed ZOPE 2.7 and ZWiki 0.28 ... and all seemed smooth until im imported my old wiki from Zope 2.6.2/ZWiki 0.24 ...

See the results in ArnoCharpageIssue sigh

any ideas how to compensate this

Another remark: I use Windows for my Zope Server - there is nothing like a locale "de_DE" under Zope for Windows ...

Help - Having Trouble Getting ZWiki to Work -- Tue, 23 Mar 2004 06:50:18 -0800 reply
I just got it working yesterday. It turned out that there were end of line characters that needed to be fixed. It was a COnversion? problem from windows to Unix.

Creating the "edit this Page" link -- Tue, 23 Mar 2004 07:04:23 -0800 reply
I am very new to zwiki, I just successfully installed it yesterday. I am trying to learn how to customize the look of my wiki page. My wiki page looks too much like my Plone site with the Content, View, and Edit tabs at the top. I want my wiki page to be edited differently than Plone. I was looking at some of the example zwiki sites and I noticed that alot of them you can edit from the view screen. Such as this example wiki page at, http://jade.freezope.org/zwiki/FrontPage . I want to also include the "edit this page" link at the bottom of my wiki page like the example wiki page. How do I do this?

Thank You in Advance, Laura

Help - Having Trouble Getting ZWiki to Work --DeanG, Tue, 23 Mar 2004 07:08:24 -0800 reply
Was this a problem in your code or the zwiki codebase?

Help - Having Trouble Getting ZWiki to Work -- Tue, 23 Mar 2004 07:17:47 -0800 reply
It was not my code because I had not edited it yet. It was mosting the wikipage_macros page template found in the default folder that gave me that problem along with a few page templates such as editform and wikiPage_view.

I simply just got rid of the crlf and put the code on one line as suggested from the plone mailing list. I had tried something like VIM or http://www.ericphelps.com/crlf/ to correct it but I didn't know how to use them and it didn't work. So, I just used brute force.

Laura

Laura

Help - Having Trouble Getting ZWiki to Work --Simon Michael, Tue, 23 Mar 2004 08:25:02 -0800 reply
Hi Laura,

I'd like to understand this better. In multiple places I told you the problem was caused by using python 2.2 - was I wrong ?

You can check the python version you're using in the zope Control Panel, in the ZMI root folder.

Help - Having Trouble Getting ZWiki to Work --SimonMichael, Tue, 23 Mar 2004 08:27:18 -0800 reply
And if I'm confusing you with someone else, my apologies.

Help - Having Trouble Getting ZWiki to Work -- Tue, 23 Mar 2004 08:41:36 -0800 reply
Yes, I am using python 2.2. I really don't know if that has anything to do with it since I am very new to python,Plone,Zope... I was getting a compilation error and it always quoted a python expression that was relative to the error with \n\r always appended to it. I had posted it to the plone mailing list and everyone was telling me that it was a conversion error Dos-to-Unix. So someone told me to put the expression on one line and after fixing a handful of them it worked.

Laura

Creating the "edit this Page" link --Simon Michael, Tue, 23 Mar 2004 08:43:16 -0800 reply

I am very new to zwiki, I just successfully installed it yesterday. I am trying to learn how to customize the look of my wiki page. My wiki page looks too much like my Plone site with the Content, View, and Edit tabs at the top. I want my wiki page to be edited differently than Plone. I was looking at some of the example zwiki sites and I noticed that alot of them you can edit from the view screen. Such as this example wiki page at, http://jade.freezope.org/zwiki/FrontPage . I want to also include the "edit this page" link at the bottom of my wiki page like the example wiki page. How do I do this?

That's a nice skin, isn't it. Though they need a zwiki upgrade.

The short answer is install a wikipage PageTemplate in your wiki folder and tweak it. See http://zwiki.org/FAQ#How%20do%20I%20change%20my%20wiki's%20appearance? , and CustomizingTheSkin etc. Does this help ?

Usually people put their wiki in plone only if they want it to have the plone look. The jade wiki is not inside plone. You may want to keep yours inside plone for other reasons; if you do, it's still possible to give it a non-plone look and I can say more about that. Perhaps you would be kind enough to add these answers to the FAQ if they help.

Creating the "edit this Page" link -- Tue, 23 Mar 2004 08:54:19 -0800 reply
The short answer is install a wikipage PageTemplate in your wiki folder and tweak it.

How is this different than the wikipage_view.pt that is in the zwiki_plone? And, how do you use the templates that are in the default folder using plone?

Thanks, Laura

Umlauts --Simon Michael, Tue, 23 Mar 2004 09:01:02 -0800 reply

I installed ZOPE 2.7 and ZWiki 0.28 ... and all seemed smooth until im imported my old wiki from Zope 2.6.2/ZWiki 0.24 ...

See the results in ArnoCharpageIssue sigh

This is a character encoding problem. I see these characters encoded three different ways:

  1. in UTF-8 at InternationalCharacterExamples. Here, they work fine, as they should, if your browser is using utf-8/unicode character encoding, which it should choose automatically for zwiki.org pages. (Does it ?)
  2. in iso8859-1 (latin-1) on the right hand side of ArnoCharpageIssue. That is not the right encoding for this wiki. Perhaps our editform didn't tell your browser to choose the appropriate encoding, or you copy & pasted these from an iso8859-1 page, eg a wiki running Zwiki 0.26 or earlier. (How did you enter these chars ? What browser are you using ?)
  3. in some random encoding I can't display, on the left hand side of ArnoCharpageIssue. I don't know what that is.

Short answer: since 0.27, it's simple: everything should be in UTF-8 all the time. See the upgrade notes in 0.27's ReleaseNotes - does that explain what's going on ?

Another remark: I use Windows for my Zope Server - there is nothing like a locale "de_DE" under Zope for Windows ...

Can you start up a python prompt (the python that's included with your zope) and show the output from HowToTroubleshootLocaleProblems.
Umlauts cannot be bolded or otherwise formatted at least in this ZWiki :(
Not with StructuredText, no. There is a patch for STX which fixes this, but I haven't got it working here yet. Could someone add this to FAQ please.

Help - Having Trouble Getting ZWiki to Work --Simon Michael, Tue, 23 Mar 2004 09:11:21 -0800 reply

I had posted it to the plone mailing list and everyone was telling me that it was a conversion error Dos-to-Unix. So someone told me to put the

Except me, who told you to upgrade your python (ie, your Plone package), because it has this bug and others and the python developers recommend you don't use it. :)

My understanding is that the simple fix is to use the latest plone package and all will be well, no messing with line endings needed. But you found the simple workaround, so if all is working for you, great!

Creating the "edit this Page" link --Simon Michael, Tue, 23 Mar 2004 09:17:19 -0800 reply

How is this different than the wikipage_view.pt that is in the zwiki_plone?
They serve exactly the same purpose - one is used inside CMF/Plone, the other outside - it's just that someone renamed one of them to wikipage_view. I'd like to change it back.
And, how do you use the templates that are in the default folder using plone?

In plone, the customization procedure is ZMI -> portal_skins -> zwiki_plone -> wikipage_view -> Customize and then edit. You may need to customize wikipage_macros too. This should all be in the docs.

Wrong Last Edited Time --Simon Michael, Tue, 23 Mar 2004 09:21:01 -0800 reply
zwiki-wiki@zwiki.org wrote:

I'm using Zwiki in Plone 2.0 RC5, Zope 2.7.0. When I edit a page, the last edited time comes up as -1 yrs. This is because it's putting down the editing time in the future, because later on it ends up coming up to zero and acting normal.

The strange thing is I also have CMFBoard? installed and it seems to work out the last edited time no problem. Is there some way to change the Zwiki time? Or Plone time or something??

Hmm I haven't seen this. Anyone else ? Do you have a wrong timezone set in zwiki preferences ?

Creating the "edit this Page" link -- Tue, 23 Mar 2004 09:24:21 -0800 reply
Thank you for your help. I am going to play around for awhile and see how different I can make my wiki page look like.

Thanks, Laura

Creating the "edit this Page" link --Simon Michael, Tue, 23 Mar 2004 09:26:51 -0800 reply

Thank you for your help. I am going to play around for awhile and see how different I can make my wiki page look like.

Excellent, shout if you hit trouble. We need more interesting wiki skins.

Creating the "edit this Page" link -- Tue, 23 Mar 2004 10:21:41 -0800 reply
Actually, how would I combine the look of the skins/default/wikipage with my plone header and navigational portlets? I know default/wikipage uses wikipage_macros and skins/zwiki_plone/wikipage_view uses main_template in plone. I am having the hardest time trying to stay with the main_template but in place of the main content block , I want default/wikipage to appear here.

Ultimately I just want to use the format of default/wikipage because I don't want the plone content/view/edit tabs to appear.

Any Suggestions? Thanks, Laura

Linked text containing international characters is ignored -- Tue, 23 Mar 2004 10:31:56 -0800 reply
Okay. After some fruitless researchs, I found, that the code in Regexp.py to compile the regular expressions for linked text, bold, and italics is already locale aware. Unfortunately, the result of x.encode(utf-8) seems to return always the same encoding for all non-ASCII characters in string.uppercase. So the resulting regular expressions do not work correctly--at least on my side.

In the end I decided to patch the ZWiki code to again use ISO-Latin-1, so I can do without the flawed encoding function. As it turned out, there are only three lines to change:

Unfortunately, I will have to maintain these changes for each new release of ZWiki. :-(

--Andreas

Linked text containing international characters is ignored --Simon Michael, Tue, 23 Mar 2004 10:42:44 -0800 reply
Glad you found a temporary workaround.. but it's a backwards move. I'll admit I don't understand the new utf-8 regexps 100% but they certainly should do better than what you're seeing - if your system's locale is correct. If you can, please post the requested python locale output so we can understand this better.

Creating the "edit this Page" link --Simon Michael, Tue, 23 Mar 2004 10:43:57 -0800 reply

Actually, how would I combine the look of the skins/default/wikipage with my plone header and navigational portlets? I know

I haven't done it.. I have only replaced the entire plone UI with the default. Perhaps someone else has.

Creating the "edit this Page" link -- Tue, 23 Mar 2004 13:41:59 -0800 reply
Well I somewhat got it working to where my plone header and navigation portlets are apparent while my wikipage template (wikipage_view) combines similar attributes with wikipage (default/wikipage).

What I did was click customize on main_template and renamed it (main_template2). In the main_template2, I inserted this line of code before the tag :

this is a similar line used in default/wikipage.

In main_template2 and the section "start of main content block", I can specify certain macros that are defined in the default/wikipage_macros. For example,

site links panel
gives me the edit link at the bottom of the page.

--Laura

Creating the "edit this Page" link -- Tue, 23 Mar 2004 13:48:04 -0800 reply
Oops, you can't see the code snippets I wrote.

Sorry, let me try again.

What I did was click customize on main_template and renamed it (main_template2). In the main_template2, I inserted this line of code before the tag :

In main_template2 and the section "start of main content block", I can specify certain macros that are defined in the default/wikipage_macros. For example:

site links panel

Hopefully I did it right this time.

Linked text containing international characters is ignored -- Tue, 23 Mar 2004 13:55:20 -0800 reply

Glad you found a temporary workaround.. but it's a backwards move.

You may be right. I have not followed the discussion about the transition to UTF-8 and may overlook something, but going back to Latin-1 not only solves my problem now. It also allows me to keep the already existing contents in Latin-1, which I would have to convert somehow to UTF-8 otherwise. And we have no need for additional characters other than Latin-1 at our site.

If you can, please post the requested python locale output so we can understand this better.

Since the problem occurs on all our machines, I can provide the following output from a Linux machine with Python 2.3.3::

  >>> import string
  >>> import locale
  >>> print locale.getdefaultlocale()
  [en_US, 'ISO8859-15']
  >>> locale.setlocale(locale.LC_ALL, de_DE)
  de_DE
  >>> print locale.getlocale()
  [de_DE, 'ISO8859-1']
  >>> print string.uppercase
  ABCDEFGHIJKLMNOPQRSTUVWXYZ������������������������������
  >>> print string.lowercase
  abcdefghijklmnopqrstuvwxyz���������������������������������
  >>> 
  >>> unicode(string.lowercase, ISO8859-1)
  u'abcdefghijklmnopqrstuvwxyz\xb5\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff'
  >>> unicode(string.uppercase, ISO8859-1)
  u'ABCDEFGHIJKLMNOPQRSTUVWXYZ\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\xde'

>>> locale.setlocale(locale.LC_ALL, '') en_US.iso885915 >>> print locale.getlocale() [en_US, 'ISO8859-15'] >>> print string.uppercase ABCDEFGHIJKLMNOPQRSTUVWXYZ�?�?�?�?������������������������������ >>> print string.lowercase abcdefghijklmnopqrstuvwxyz�?�??��������������������������������� >>> unicode(string.lowercase, ISO8859-1) u'abcdefghijklmnopqrstuvwxyz\xa8\xb5\xb8\xbd\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff' >>> unicode(string.uppercase, ISO8859-1) u'ABCDEFGHIJKLMNOPQRSTUVWXYZ\xa6\xb4\xbc\xbe\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd8\xd9\xda\xdb\xdc\xdd\xde'

I also must admid, that I was taken in by Python's print/my XTerminal?: since all special characters looked the same on my terminal when printed, I thought the result of x.encode(utf-8) was flawed, but when printed as escape sequences the result looks okay. Therefore, I don't have a clue, why the regular expressions do not work as expected.

--Andreas

Creating the "edit this Page" link --Simon Michael, Tue, 23 Mar 2004 15:40:46 -0800 reply
Nice! Can we see ? :)

Linked text containing international characters is ignored --Simon Michael, Tue, 23 Mar 2004 15:50:42 -0800 reply
Andreas & I discussed this further on irc. If there was an easy way to convert old pages and if STX worked easily with utf-8, he would probably be fine with utf-8. It may be worth allowing people to stick with iso8859-1 if it doesn't add confusion. I'm not sure it's a priority for me though.

I already enabled locaale aware string encoding ml

This was interesting. I have detected another candidate for PeopleUsingZwiki, yay :) ( http://stackless.com )

Wrong Last Edited Time -- Tue, 23 Mar 2004 20:35:15 -0800 reply

Hmm I haven't seen this. Anyone else ? Do you have a wrong timezone set in zwiki preferences ?

I don't know, where are the zwiki preferences? It could also be that the Plone time is not set correctly because I am also having trouble with Events and expiry dates for objects. I have checked the Zope time and it is correct, is there a separate Time Zone setting for Plone?

Wrong Last Edited Time --Simon Michael, Tue, 23 Mar 2004 20:55:35 -0800 reply

I don't know, where are the zwiki preferences? It could also be that

I guess they don't appear in plone, and are probably not the issue. I too see weird dates on one of my wikis in plone, now.

the Plone time is not set correctly because I am also having trouble with Events and expiry dates for objects. I have checked the Zope time and it is correct, is there a separate Time Zone setting for Plone?

Don't know, sorry.

Wrong Last Edited Time --Simon Michael, Tue, 23 Mar 2004 21:05:06 -0800 reply
I've moved this to [****IssueNo0758 Wrong Last Edited Time]?. Thanks.

Umlauts -- Wed, 24 Mar 2004 00:48:01 -0800 reply

This is a character encoding problem. I see these characters encoded three different ways:
1. in UTF-8 at InternationalCharacterExamples. Here, they work fine, as they should, if your browser is using utf-8/unicode character encoding, which it should choose automatically for zwiki.org pages. (Does it ?)

They do.

2. in iso8859-1 (latin-1) on the right hand side of ArnoCharpageIssue. That is not the right encoding for this wiki. Perhaps our editform didn't tell your browser to choose the appropriate encoding, or you copy & pasted these from an iso8859-1 page, eg a wiki running Zwiki 0.26 or earlier. (How did you enter these chars ? What browser are you using ?)

I wrote the page in my old ZWiki 0.24, exported the page and imported it to my Zope 2.7/ZWiki 0.28 => the result was copied and pasted in www.zwiki.org.

I use Opera 7.23 EN.

3. in some random encoding I can't display, on the left hand side of ArnoCharpageIssue. I don't know what that is.

I tried a lot to get this chars ;)

This are the old 7Bit ASCII Representations of the "Umlaut" Chars. You get this if you look at the HTML Source (!) of the a ZWiki Page.

Short answer: since 0.27, it's simple: everything should be in UTF-8 all the time. See the upgrade notes in 0.27's ReleaseNotes - does that explain what's going on ?

Yes. I will have to find a way to convert all my pages. Our company WIKI hast about 350 pages yet and I refuse to manually correct each page.

I also got approx. 10 other WIKI's were I would have to do it again - so better a script then changing all ;)

Another remark: I use Windows for my Zope Server - there is nothing like a locale "de_DE" under Zope for Windows ...

Can you start up a python prompt (the python that's included with your zope) and show the output from HowToTroubleshootLocaleProblems.

The script issued (and I really hope nothing changed through copy & paste):

  ('de_DE', 'cp1252')
  ['de_DE', '1252']
  ABCDEFGHIJKLMNOPQRSTUVWXYZ���?+--+-+���++--�-+������i���++�_���
  abcdefghijklmnopqrstuvwxyz�ܣ׬�������յ������ݯ���=�������¦

Creating the "edit this Page" link -- Wed, 24 Mar 2004 11:03:02 -0800 reply
I was trying to paste it on the wiki but how do you insert code with div tags

Once I figure that I will try to post it again.

Thanks, laura

Creating the "edit this Page" link --DeanG, Wed, 24 Mar 2004 11:33:45 -0800 reply
Use the double colon indented text block notation :

 Like this ::

   <div>WikiWords and all are ignored</div>

Just watch out for double spaces. :-)

Creating the "edit this Page" link --Simon Michael, Wed, 24 Mar 2004 12:15:02 -0800 reply
That's right. :: is our friend.

What's the double space issue ?

Creating the "edit this Page" link --DeanG, Wed, 24 Mar 2004 12:28:44 -0800 reply

what's the double space issue? ::

Accidentally putting a

double space

and losing the indent. Easier to do with larger chunks of whitespace-eating curly brace peppered code. ;-}

Creating the "edit this Page" link --DeanG, Wed, 24 Mar 2004 12:30:37 -0800 reply

Erm..round2... what's the double space issue? :

 Accidentally putting a 

 double space

and losing the indent.

Umlauts -- Wed, 24 Mar 2004 12:49:35 -0800 reply

Another remark: I use Windows for my Zope Server - there is nothing like a locale "de_DE" under Zope for Windows ...

Yes, there is. You can use "German_germany" instead. At least, this worked for me and string.uppercase and string.lowercase included the Umlauts with this setting.

--Andreas

Re: [IssueNo0637? CMF: Upload creates File object instead of 'Portal File'] I agree --Simon Michael, Wed, 24 Mar 2004 13:40:53 -0800 reply
Nope, not difficult.

Re: [IssueNo0762? Wiki contents in Plone shows "you are here" pointing to wrong page] (new) --Simon Michael, Wed, 24 Mar 2004 13:42:26 -0800 reply
this is explained in recent GeneralDiscussion - if you think it closes this, could you add it to FAQ as well - thanks.

Help I lost my linkpanel -- Wed, 24 Mar 2004 13:42:43 -0800 reply
I was trying to customize the look of this panel by changing the colors. I clicked on minimal on accident and now my panel is gone and I can't get it back. Is there anyway of get my links to show up again?

Thanks ::Laura

Help I lost my linkpanel --Simon Michael, Wed, 24 Mar 2004 13:54:40 -0800 reply
full/simple/minimal are gone too ? Well you can just visit PAGEURL?zwiki_displaymode=full and then click on the full/simple link to make it permanent.

Umlauts again -- Wed, 24 Mar 2004 14:11:10 -0800 reply
As described in a previous message, I patched my ZWiki to use ISO-Latin-1 so that Umlauts are correctly formatted (italic, bold, linked text, ...). This works fine in a Plone-Wiki with the property "default_charset=iso-8859-1". In a plain Wiki the Umlauts are correctly rendered, but WikiNames are no longer recognized, although they contain only ASCII characters. All I did is to change Regexps.py to look like this:

  if lang:
      # recognize this locale's upper and lower-case characters
      # old single-byte regexps:
      U = string.uppercase
      L = string.lowercase
      #wikiname1 = r'(?L)\b[%s]+[%s]+[%s][%s]*[0-9]*' % (U,L,U,U+L)
      #wikiname2 = r'(?L)\b[%s][%s]+[%s][%s]*[0-9]*'  % (U,U,L,U+L)
      # utf-8-aware regexps:
      #U='|'.join([x.encode('utf8') for x in unicode(string.uppercase,encoding)])
      #L='|'.join([x.encode('utf8') for x in unicode(string.lowercase,encoding)])
      wikiname1 = r'(?L)\b(?:%s)+(?:%s)+(?:%s)(?:%s|%s)*[0-9]*' % (U,L,U,U,L)
      wikiname2 = r'(?L)\b(?:%s)(?:%s)+(?:%s)(?:%s|%s)*[0-9]*'  % (U,U,L,U,L)
  else:

to change the charset in wikipage_macros.pt to "iso-8859-1", and to use the locale "de_DE". The output of the script in HowToTroubleshootLocaleProblems for this locale looks like this:

  ['en_US', 'ISO8859-15'] # getdefaultlocale
  ['de_DE', 'ISO8859-1'] # getlocale
  ABCDEFGHIJKLMNOPQRSTUVWXYZ������������������������������
  abcdefghijklmnopqrstuvwxyz���������������������������������

--Andreas

Umlauts -- Thu, 25 Mar 2004 01:11:04 -0800 reply
Maybe. Changing the locale in zope.conf (I am using Zope 2.7) to

locale German_germany

just resulted in a Zope which didn't start ... unfortunatly all logs remained empty (debug on); Zope just didn't start :(

--ArnoPucher

Umlauts again -- Thu, 25 Mar 2004 01:48:33 -0800 reply
I used your hint to change

to change the charset in wikipage_macros.pt to "iso-8859-1"

which now result in perfect representation; unfortunatly the editform ignores any edit since this time ...

Strange behavior:

  • press edit on a page
  • add a line for example
  • save
  • looks perfect :)
  • press edit again - the last change is no longer visible in the textbox - if you now press save, you lose :(

All I changed was the charset in wiki_macros.pt ...

--ArnoPucher

Umlauts again -- Thu, 25 Mar 2004 06:07:41 -0800 reply

locale German_germany just resulted in a Zope which didn't start ... unfortunatly all logs remained empty (debug on); Zope just didn't start :(

Hmm. Since I used Zope 2.6.2 for this, which has no zope.conf, I added a Zope\bin\lib\sitecustomize.py with the following lines:

  import locale
  locale.setlocale(locale.LC_ALL, "German_germany")

I do not know if this still works with Zope 2.7.0. And as I reported in a previous message, I can let the pages store and render in ISO-Latin-1, but now I face other problems.

--Andreas

Help I lost my linkpanel -- Thu, 25 Mar 2004 09:21:58 -0800 reply
Thank you so much for your help. Your suggestion fixed it.

--Laura

Customizing the wiki -- Thu, 25 Mar 2004 10:38:25 -0800 reply
I am so horrible with the span tag could someone tell me how to get the Add Comment box on the same line as the edit page link. I have already made the necessary modifications to the code to get the edit link but where would I put the span tags

For example:

  <input class="context2"
          type="submit"
           name="comment:method" 
           value="Add a comment"
           style="font-weight:bold;"/> or   <div metal:use-macro="macros/editpage">edit links panel</div>

In regards to: Help I lost my linkpanel --DeanG, Thu, 25 Mar 2004 10:41:11 -0800 reply
This message actually garnered at "37%" spam rating on my SpamBayes? filter. Simon et.al, if you want me to post the applicable score details please note the page. There may be a couple of things we could add to the headers to add credibility to the messages.

text wrap -- Thu, 25 Mar 2004 10:58:09 -0800 reply
Since I am using my navigational menu from plone I have noticed that if add a comment that is too large the test wrap will not work correctly. My navigational menu at the left shifts down until there is enough room for it. Is there any way of correcting it?

Thanks, --laura

text wrap -- Thu, 25 Mar 2004 11:43:59 -0800 reply
I fixed it. I just had to modify my width in the footer.

Thanks anyway. Laura

Spam --Bob McElrath?, Thu, 25 Mar 2004 12:07:59 -0800 reply
Recently I found spam sent to my wiki, presumably because of email-harvesting bots. Would anyone object to the following email-obfuscation code:

    Index: PageTypes.py
    ===================================================================
    RCS file: /cvsroot/zwiki/zwiki/PageTypes.py,v
    retrieving revision 1.14
    diff -c -r1.14 PageTypes.py
    *** PageTypes.py        18 Feb 2004 22:59:22 -0000      1.14
    --- PageTypes.py        25 Mar 2004 19:54:42 -0000
    ***************
    *** 83,92 ****
    --- 83,100 ----

          def preRenderMessage(self,page,msg):
              t = msg.fp.read()
    +         t = self.escapeEmailAddresses(page,t)
              t = self.renderCitationsIn(page,t)
              t = self.addCommentHeadingTo(page,t,msg)
              return t

    +     def escapeEmailAddresses(self,page,text):
    +         return re.sub(r'([\w\-\+\.]+)@([\w\-\+\.]+)\.([\w\-\+\.]+)', 
    +             lambda m: '<span class="nospam1">&#' + str(ord(m.groups()[0][0])) + m.groups()[0][1:] 
    +                 + '<!-- foobar --></span>&#64;<span class="nospam2">' + m.groups()[1][0:-1] + '&#' 
    +                 + str(ord(m.groups()[1][-1])) + ';&#46;' + m.groups()[2] + '</span>',
    +                 text)
    + 
          def renderCitationsIn(self,page,text):
              return text

It does not change the appearance of the page, and email addresses can be cut-and-pasted from your browser if desired.

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

Umlauts again --Simon Michael, Thu, 25 Mar 2004 17:04:35 -0800 reply
Hi Andreas - if you do any more work on this (continued latin-1 support) can you collect these details on an issue page - I think we need it. Thanks!

Spam --Simon Michael, Thu, 25 Mar 2004 17:07:51 -0800 reply

Recently I found spam sent to my wiki, presumably because of email-harvesting bots. Would anyone object to the following email-obfuscation code::

Bob - sounds promising - er, what does that lambda do again ? So I can see & copy email addresses from a wiki page as before ? Does that actually have much effect on harvesting bots, then ?

Spam --SimonMichael, Thu, 25 Mar 2004 17:13:14 -0800 reply
Possibly another issue page type of discussion.

GoldOffer --SimonMichael, Thu, 25 Mar 2004 17:15:27 -0800 reply
I will offer $20, yes TWENTY DOLLARS, to the person who solves the #547 mail with long page name containing line break goes to wrong page bug. This prevents replies to issue pages. Anyone ? Anyone ?

Spam --Bob McElrath?, Thu, 25 Mar 2004 17:16:38 -0800 reply

Bob - sounds promising - er, what does that lambda do again ?

Lambda is just a function. In this case it manipulates the match object and returns the replacement for re.sub.

So I can see & copy email addresses from a wiki page as before ?

Yes. Visually, there is no difference.

Does that actually have much effect on harvesting bots, then ?

Yes, since the spam-bot sees the HTML source, and must parse it.

Of course it's possible for spammers to get around this by writing fancy parsing code. It's not a perfect solution, but a deterrant. Anyone with a perfect solution to the spam problem please raise their hand...

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

Spam --Simon Michael, Thu, 25 Mar 2004 17:23:47 -0800 reply
I see no problems - please check in at will!

Site Templates --Simon Michael, Thu, 25 Mar 2004 17:31:47 -0800 reply
Bob McElrath? wrote:

1. It seems I cannot put a site_logo.jpg in there, ZWiki doesn't know what to do with it. (I will add code to handle this if there are no objections...but it brings up the question of how to more generally handle non-Wiki content)

Yes, it only knows how to handle a couple of file suffixes.

2. I need to specify attributes of the ZWiki folder (such as allow_dtml + some latexwiki specfic ones) How can I do this in the template?

There's support for a setup script that is run after the wiki is created - check the code, I forget the name. latexwiki_setup or some such. You could do any custom setup there.

I'm not sure if that works just with .zexps or with fs-based templates as well.

If I go the other route, and install a template site in Control_Panel/ZWiki, how can this be done automatically? Is there an first-run method that is called on a package? (__init__: initialize()?)

There was an automatic way - drop the .zexp into Products/Zwiki/imports - but it's currently commented out, in __init__.py. I'm not sure it was all that useful, if people have access to the filesystem they would probably rather deal with a file-based template.

Lastly, is there any way to do this without putting files in ZWiki's tree? i.e. could I just add Products/LatexWiki/content or Control_Panel/LatexWiki to some path that ZWiki searches for site templates (by modifying the methods listFsWikis, listZodbWikis, addZWikiWebFromFs, addZWikiWebFromZodb)?

That surely must be possible.. I'm glad the whole area of plugins/extensions is getting a bit of light shone on it.

In the ZODB, I think Control Panel/Products/ZWiki is a sensible place for wiki templates.

quick poll - level of difficulty headings, hot or not ? --SimonMichael, Thu, 25 Mar 2004 17:43:26 -0800 reply
Posting here for a wider audience -

a number of pages have the silverorange.com-inspired basic/intermediate/advanced markers at the top, sometimes with a table of contents as well. These are discussed at ZwikiDocumentation. I like the intent but after a few weeks the present system seems too inconsistent and too busy to my eyes and I think needs changing. Your thoughts ?

Umlauts again -- Fri, 26 Mar 2004 00:52:46 -0800 reply

if you do any more work on this (continued latin-1 support) can you collect these details on an issue page - I think we need it.

I did so in #463 STX formatting with special chars like @ or german "Umlauts". Hope this helps.

--Andreas

0.29rc1 released --simon, Fri, 26 Mar 2004 01:35:43 -0800 reply
Please hammer on it. This month we should be more solid with zope 2.7 & plone 2.

Site Templates --Bob McElrath?, Fri, 26 Mar 2004 13:02:49 -0800 reply
Simon Michael [zwiki-wiki@zwiki.org]? wrote:

Bob McElrath? wrote:
1. It seems I cannot put a site_logo.jpg in there, ZWiki doesn't know what to do with it. (I will add code to handle this if there are no objections...but it brings up the question of how to more generally handle non-Wiki content)

Yes, it only knows how to handle a couple of file suffixes.

As you probably saw I have added several file types. With these additions I have everything I need except for modifying the properties of the folder (to add allow_dtml, etc).

2. I need to specify attributes of the ZWiki folder (such as allow_dtml + some latexwiki specfic ones) How can I do this in the template?

There's support for a setup script that is run after the wiki is created - check the code, I forget the name. latexwiki_setup or some such. You could do any custom setup there.

I'm not sure if that works just with .zexps or with fs-based templates as well.

It seems the best way to do this would be for addZWikiWebFromFs to import an external method to setattr() a few times, and run it.

How can I import an external method? If I make .zexp, it seems that addZWikiWebFromFs cannot import it (following autoImport() and using importFile()), because I cannot get to the ZODB from any of the objects known to addZWikiWebFromFs. I cannot get _p_jar from self, or Folder()), and therefore importFile() fails.

Any suggestions?

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

step right up! --SimonMichael, Fri, 26 Mar 2004 21:08:41 -0800 reply
I finally did it - made a ZwikiFunding page.

Don't be alarmed; Zwiki's a gift. This is about giving people another way to accelerate the project, if they choose. I hope you'll take a look and let me know what you think.

That page is mostly about me, me, me. If we need to highlight other developers better, and generally spread the vast influx of lucre, I'd be open to that. May we have such a problem. :)

step right up! --Bob McElrath?, Sat, 27 Mar 2004 02:08:31 -0800 reply
SimonMichael [zwiki-wiki@zwiki.org]? wrote:

I finally did it - made a ZwikiFunding page.

Don't be alarmed; Zwiki's a gift. This is about giving people another way to accelerate the project, if they choose. I hope you'll take a look and let me know what you think.

That page is mostly about me, me, me. If we need to highlight other developers better, and generally spread the vast influx of lucre, I'd be open to that. May we have such a problem. :)

Indeed may you have such a problem.

As a academic geek, I usually trade code for code as a philosophy, as I work on software only in my spare time and am paid otherwise. But I think funding/sponsorship of free software is a fantastic idea. Certainly I would not volunteer to maintain ZWiki as I don't have the time.

Are there any corporations or otherwise large, funded organizations using ZWiki? Does this project have "critical mass"? What would make ZWiki more attractive to organizations, and encourage them to fund it?

Might I suggest speed? ZWiki often take several seconds to render a page. I noticed recently the CallProfiler? package, which may be of some use. Larger organizations presumably would place heavier demand on zope, and speed could easily be an issue.

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

back online --DeanGoodmanson, Mon, 29 Mar 2004 13:41:20 -0800 reply
:-)

zwiki.org back up --Simon Michael, Mon, 29 Mar 2004 15:55:27 -0800 reply
Looks like about an 8 hour outage.. this time due to zope eating up my 256M hard memory quota. "Bear with me".. this is quite solvable, either by reducing zope threads/cache size, restarting more often, or upgrading the aktiom account. Later..

... -- Mon, 29 Mar 2004 17:58:20 -0800 reply
I have added a portlet that provides page-type specific help for Wiki pages. It's "good enough" for my purposes at the moment; I'm sure an expert can tweak it to display only when in "edit" mode. I've tried to provide sensible quickhelp. If you do change it, please percolate the changes back into the wiki.

well ... -- Tue, 30 Mar 2004 06:07:34 -0800 reply
Is someone know how to insert a forum in a wiki site?

updates --simon, Wed, 31 Mar 2004 11:29:47 -0800 reply

  • FrontPage cleanup, doc progress indicators
  • full/simple/minimal access keys changed. Do these work in non-mozilla browsers ?

Looking into the future, should "i" be used for "index" (current) or "issues" ?

well ... --simon, Wed, 31 Mar 2004 11:30:23 -0800 reply
What do you mean by a forum ?

updates --DeanG, Wed, 31 Mar 2004 11:36:43 -0800 reply
i for index, t for tracker?

updates --simon, Wed, 31 Mar 2004 11:43:59 -0800 reply
Hmm, you're right, t is not being used for anything important. Trying it.

Made minimal display mode the default for zwiki.org. I've long wanted to try this!

XHTML fixes in wrong place --simon, Wed, 31 Mar 2004 14:49:07 -0800 reply
Bob, Cyrille - changes skins/{default,zwiki_plone}/*.dtml will get overwritten because these files are generated from the pages in content/{dtml,tracker}/*.stxdtml. You should work on the latter, not the former.

reminder: CVS freeze tomorrow --simon, Wed, 31 Mar 2004 15:04:58 -0800 reply
Also, note that as of tomorrow CVSRepository is no longer the master repository.

It will stay online for the foreseeable future - if darcs doesn't work out, I plan to retroactively commit the changes into CVS and resume with it - also, some gatewaying arrangement might possibly be worthwhile.

For now though, to avoid confusion please stop committing to CVS as of tomorrow. Post here or on CVSRepository (name change coming) if you have trouble switching to darcs, I will be writing more howtos for it.

quick poll: time to split GeneralDiscussion ? --simon, Wed, 31 Mar 2004 15:11:53 -0800 reply
Should we:

  1. stay with the single GeneralDiscussion page for now ?

    pro: simple, can get a taste of everything with a single page subscription

  2. split it into GeneralDiscussion and DevDiscussion? ? Here, "User" means users, administrators and dtml scriptors.

    pro: easier to subscribe to user-only discussion without developer stuff, better organized discussion archive

Please vote.

quick poll: time to split GeneralDiscussion ? --DeanG, Wed, 31 Mar 2004 15:17:14 -0800 reply
Split. I'm looking for more directed DevDiscussion? conversation. I can't be in IRC enough for that, and feel odd getting esoteric or brainstormy in general public places.

reminder: CVS freeze tomorrow --Bob McElrath?, Wed, 31 Mar 2004 15:29:09 -0800 reply
simon [zwiki-wiki@zwiki.org]? wrote:

Also, note that as of tomorrow CVSRepository is no longer the master repository.

It will stay online for the foreseeable future - if darcs doesn't work out, I plan to retroactively commit the changes into CVS and resume with it - also, some gatewaying arrangement might possibly be worthwhile.

For now though, to avoid confusion please stop committing to CVS as of tomorrow. Post here or on CVSRepository (name change coming) if you have trouble switching to darcs, I will be writing more howtos for it.

Argh I just forced myself to switch to subversion, now I've got to learn darcs too? :(

When did darcs become the master repository? I have committed things in the last few days. I want to properly do the XHTML fixes too before 0.29 is released.

When, exactly (date & time), will the release be? I want to make sure my recent changes are in 0.29, and I want to coordinate a LatexWiki release that will work with it.

Not having heard of darcs before...I did a little digging...in what little info I could find in 20 minutes, it looks like subversion is the superior answer. At the very least, it's more popular: google "cvs svn" 45k results, "cvs darcs" 2.7k results". And subversion is already in debain. :) And who knows haskell? Will bug fixes be timely in such an obscure language?

Anyhoo, I'm glad CVS' deficencies are being fixed, but 10 version management tools is a pain.

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

0.29rc2 released --simon, Wed, 31 Mar 2004 15:30:46 -0800 reply
Python locale problems should no longer prevent product startup, please test if you were having trouble with this.

quick poll: time to split GeneralDiscussion ? --Bob McElrath?, Wed, 31 Mar 2004 15:32:46 -0800 reply
Split to GeneralDiscussion and DevDiscussion?. (i.e. don't remove GeneralDiscussion, for posterity)

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

Should we:

  1. stay with the single GeneralDiscussion page for now ?

    pro: simple, can get a taste of everything with a single page subscription

  2. split it into GeneralDiscussion and DevDiscussion? ? Here, "User" means users, administrators and dtml scriptors.

    pro: easier to subscribe to user-only discussion without developer stuff, better organized discussion archive

Please vote.
forwarded from http://zwiki.org/GeneralDiscussion#msg20040331151153-0800@zwiki.org

Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

reminder: CVS freeze tomorrow --Simon Michael, Wed, 31 Mar 2004 16:18:52 -0800 reply
Bob - sorry this was a surprise. I meant to solicit feedback with my comments on CVSRepository. Did you not receive those ?

Your changes on the trunk after rc1 won't make it into 0.29 I'm afraid, unless I've missed something serious in there. This is normal. I try to leave the release candidate branch undisturbed unless there is something really wrong with it. Occasionally I make an exception for things I really want that I'm certain are low-risk but I'm not keen to do that right now.

reminder: CVS freeze tomorrow --Simon Michael, Wed, 31 Mar 2004 16:20:57 -0800 reply
And, while we're giving each other a hard time - any chance you could turn off that signature of yours ? :-/

reminder: CVS freeze tomorrow --Bob McElrath?, Wed, 31 Mar 2004 16:37:40 -0800 reply
Simon Michael [zwiki-wiki@zwiki.org]? wrote:

Bob - sorry this was a surprise. I meant to solicit feedback with my comments on CVSRepository. Did you not receive those ?

No. I think am only subscribed to GeneralDiscussion, not the entire wiki.

Your changes on the trunk after rc1 won't make it into 0.29 I'm afraid, unless I've missed something serious in there. This is normal. I try to leave the release candidate branch undisturbed unless there is something really wrong with it. Occasionally I make an exception for things I really want that I'm certain are low-risk but I'm not keen to do that right now.

Can I petition to get it into 0.29? LatexWiki is unusable with the current ZWiki, and badly in need of a new release, and I don't want to wait another month...especially since it works now with ZWiki CVS.

The changes I need are the ones in ZWikiWeb?.py.

reminder: CVS freeze tomorrow --Bob McElrath?, Wed, 31 Mar 2004 16:43:09 -0800 reply
Simon Michael [zwiki-wiki@zwiki.org]? wrote:

And, while we're giving each other a hard time - any chance you could turn off that signature of yours ? :-/

Why? Because it doesn't look nice on the web page? Or because YOU SUPPORT DIHYDROGEN MONOXIDE?!??! ;)

-- Cheers, Bob McElrath? [Univ. of California at Davis, Department of Physics]?

Stop the spread of the dangerous chemical Dihydrogen Monoxide! http://www.dhmo.org

reminder: CVS freeze tomorrow --simon, Wed, 31 Mar 2004 19:42:38 -0800 reply

Or because YOU SUPPORT DIHYDROGEN MONOXIDE?!??! ;)

Oh gawd, I've done it now.. LOL

LatexWiki is unusable with the current ZWiki

That's not so good. We should have been talking about this before rc phase of course. I'll take another look at it.

good news --simon, Wed, 31 Mar 2004 19:47:14 -0800 reply
On the upside - though I am noting some epoz/HTML glitches, I've just confirmed that mozilla -edit works stupendously well as an ExternalEditor for HTML pages.

0.29rc3 released --SimonMichael, Wed, 31 Mar 2004 22:11:41 -0800 reply
This has Bob's wiki template enhancements, which should make life easier for LatexWiki users. Thank you! Do these raise any security issues we need to think about ?

0.29rc3 released --Bob McElrath?, Wed, 31 Mar 2004 22:31:38 -0800 reply
SimonMichael [zwiki-wiki@zwiki.org]? wrote:

This has Bob's wiki template enhancements, which should make life easier for LatexWiki users. Thank you! Do these raise any security issues we need to think about ?

Not that I can think of. It's all server-side, and the user must be logged into the ZMI to activate this code anyway. I enable a setup_ python ExternalMethod that will be called after files are imported (which is a set-up method not a "wizard" like _config), and importing of page templates, zexp/xml files, images, and the default type for unknown files is "File" rather than ZWikiPage. All told, the ZWikiWeb?.py changes are 10-15 lines, I think.

I suggest setup_ and _config be given more sensible names, eventually.

Other changes I've made (XHTML fixes, etc) are not critical to getting LatexWiki working again.

Working LatexWiki (with ZWiki CVS) is in my subversion. Run: svn co svn://moya.mcelrath.org/latexwiki if anyone wants to see what I've done.

Cheers, Bob McElrath?

reminder: CVS freeze tomorrow --Bob McElrath?, Wed, 31 Mar 2004 22:34:37 -0800 reply

LatexWiki is unusable with the current ZWiki

That's not so good. We should have been talking about this before rc phase of course. I'll take another look at it.

I'm sorry about that, It took several days to write the ~30 lines of code total to make this work (and there was much gnashing of teeth and bashing of heads). Python, zope, dtml, etc. are all fairly new to me. I couldn't have predicted I'd have it done before the code freeze.

(Sorry for my ignorance of the release protocol...I know now, will be a better boy in the future)

Cheers, Bob McElrath?

reminder: CVS freeze tomorrow --SimonMichael, Wed, 31 Mar 2004 22:48:46 -0800 reply
No blame intended.. just getting the word out, to help grow our team process.

I believe darcs is going to make sharing changes between us developers, maintaining parallel code bases, or tracking the latest source as a user, much simpler. I really think you'll come to like it.