Pywe-Talk

This space is for User-contributed commentary and notes regarding the Cookbook:Pywe. Please include your name and a date along with your comment.


Comments

Comments to v1.3.1 Release (February 9, 2007)

This release introduces a new command line option to delete pages. This should resolve the problem encounterred with the comment being added.

I also changed how the application reports a new page. Rather than add content, it gives a command line report, waits a few seconds and moves on. Informing the author that the page is supposed to be blank is the goal, rather than leave him guessing. Thus, if you mistyped the page, you should be able to :q! and avoid creating new pages.

I also remedied a problem with non-authenticated access---I think. If you're a site admin, restrict access to source to the same level as edit ($Auth['source'] = $Auth['edit']; or something to that effect). This application can detect when access to source is restricted. I'm still working with Pm on this, so stay tuned for v.1.3.2.

BenWilson February 09, 2007, at 10:09 AM

  • The accents (é, à, etc.) are not translated correctly. I suppose they are translated twice :once by python, once by pmWiki. got é for é.
  • Correction : when pasting between two vim window, the accents got mixed up. Works if editing the wiki page directly.

LionelBarret -> mailto:lionel [snail] gamr7 [period] com

Yitping? June 02, 2011, at 06:11 PM
The sample-pywerc file is missing from the attachment directory. Can someone share a copy or restore the file? Thanks.

Comments to v1.2.0 Release (June 2, 2006)

Here is a feature request (or a bug report) I encountered earlier but forgot for some time: Pywe adds a line (:comment This page has been edited using Pywe:) to the bottom of every wiki page. Generally I don't care about that line but there are cases where this behaviour becomes disturbing:

  1. Whenever I want to delete a page by replacing its whole content by the "magic word", the page keeps living due to the comment line of pywe.
  2. Probably a second problem but together with the first one it makes me worry: If I -- by mistake -- open a non existing page (like "Homepage" instead of "HomePage" there is no way to quit without saving the page (except killing vi). If I try to quit vi (using :q or :q!) pywe saves the page nevertheless.

Any chances to fix this? Bartolin December 11, 2006, at 03:49 PM

  • I've not touched it yet. Although, I believe the second problem is mitigated by a version I've been using recently. If the original and edited versions are unchanged, it does not save. BenWilson February 07, 2007, at 10:17 AM
  • I'll add a "delete" option. BenWilson February 07, 2007, at 10:17 AM
    • Thanks, the new version 1.3.0 seems to work fine. Bartolin February 09, 2007, at 07:38 AM

Comments to v1.1.0 Release (May 29, 2006)

  • Just put Pywe to work. Here is what I did to make use of the syntax file on my linux system:
    1. Downloaded syntax-pmwiki.txtΔ and renamed it to pmwiki.vim as desribed.
    2. Moved that file pmwiki.vim to my ~/.vim/syntax/ directory.
    3. Changed the entry for 'editor' in ~/.pywerc as follows: editor=/usr/bin/vim -c "set syn=pmwiki" (taken from one of BenWilsons posts on pmwiki-users (from July 2004))
    After that the syntax file is used by default whenever I use Pywe. Bartolin May 29, 2006, at 05:57 PM
  • Be very sure that you don't specify no password required in .pywerc when one is required. Otherwise you might be confused that a fully qualified url works on the command line, but not using the abbreviated syntax (the apache logs show identical GET strings, but the latter case returns the full html for the page!) Stupidly this took me an hour to figure out. Nice job Mr. Wilson. Mike Bishop May 30 06 5:26 PM AKDT
    • Sorry about that. If there were a way to test a site for password requirement. I would layer that in. Profiles July 25, 2006, at 11:48 AM

BenWilsonMaintained

Talk page for the Python-based Pmwiki Editor recipe (users).