Edit detail for UserDiscussion200405 revision 1 of 1

1
Editor: simon
Time: 2005/09/30 11:41:03 GMT+0
Note: links updated

changed:
-
Archived GeneralDiscussion.

From SimonMichael Mon May 3 23:08:00 -0700 2004
From: Simon Michael
Date: Mon, 03 May 2004 23:08:00 -0700
Subject: Zwiki 0.30 released
Message-ID: <40973244.4020700@joyful.com>

Summary: Page rating, fix epoz support, bugfixes, code cleanups, i18n 
work, a french translation

http://zwiki.org

Best,
-Simon


From unknown Wed May 5 12:17:04 -0700 2004
From: 
Date: Wed, 05 May 2004 12:17:04 -0700
Subject: editing menu
Message-ID: <20040505121704-0700@www.zwiki.org>

Does anybody know, where I can change the menu titles or names like "wiki changes", "wiki contents" or "serch this wiki". Are the hardcoded or defined in any external file?

From SimonMichael Wed May 5 14:07:16 -0700 2004
From: SimonMichael
Date: Wed, 05 May 2004 14:07:16 -0700
Subject: editing menu
Message-ID: <20040505140716-0700@www.zwiki.org>
In-Reply-To: <20040505121704-0700@www.zwiki.org>

They are in the 'wikipage_macros' and possibly 'wikipage' page templates. The skin customizing docs should help.


From unknown Sat May 1 14:57:26 -0700 2004
From: 
Date: Sat, 01 May 2004 14:57:26 -0700
Subject: How does one lock a page ?
Message-ID: <20040501145726-0700@zwiki.org>

Allowing anyone to comment (say at the end of each paragraph or bottom of the page) but no content editing by anonymous users.  

*note* Comment moved from LinkingNotes

From DeanGoodmanson Thu May 6 15:03:42 -0700 2004
From: DeanGoodmanson
Date: Thu, 06 May 2004 15:03:42 -0700
Subject: How does one lock a page ?
Message-ID: <20040506150342-0700@zwiki.org>
In-Reply-To: <20040501145726-0700@zwiki.org>

See ZWiki:QuickReference#5 

From simon Fri May 7 20:06:47 -0700 2004
From: simon
Date: Fri, 07 May 2004 20:06:47 -0700
Subject: site downtime
Message-ID: <20040507200647-0700@zwiki.org>
In-Reply-To: <20040429075325-0700@zwiki.org>

None of these "strange site hangs":http://zopewiki.org/ZopeWikiDiscussion#msg20040430125710-0700@zopewiki.org for a week. Touch wood..

From simon Fri May 7 22:15:32 -0700 2004
From: simon
Date: Fri, 07 May 2004 22:15:32 -0700
Subject: you could not make this stuff up :)
Message-ID: <20040507221532-0700@zwiki.org>

http://www.sfweekly.com/issues/2004-04-28/nightcrawler.html/1/index.html

Happy weekend

From simon Fri May 7 22:38:53 -0700 2004
From: simon
Date: Fri, 07 May 2004 22:38:53 -0700
Subject: you could not make this stuff up :)
Message-ID: <20040507223853-0700@zwiki.org>
In-Reply-To: <20040507221532-0700@zwiki.org>

"braaaaaains!":http://www.dnalounge.com/gallery/2004/04-24/

From unknown Mon May 10 04:20:29 -0700 2004
From: 
Date: Mon, 10 May 2004 04:20:29 -0700
Subject: editing menu
Message-ID: <20040510042029-0700@zwiki.org>
In-Reply-To: <20040505140716-0700@www.zwiki.org>

Thanks for your answer, but I still couldn't find them.

From unknown Mon May 10 04:26:53 -0700 2004
From: 
Date: Mon, 10 May 2004 04:26:53 -0700
Subject: editing menu
Message-ID: <20040510042653-0700@zwiki.org>
In-Reply-To: <20040510042029-0700@zwiki.org>

To explain my problem I have some code here::

 <h5 class="hiddenStructure">Aktionen</h5>
    <ul class="actionItems">
        <li id="contentaction-contents">
            <a class=""
               href="http://localhost/Members/plone/Wiki_Page.2004-05-05.7066348736/contents"
               accesskey="accesskeys-Wiki contents">
                   Wiki contents
            </a>
        </li>

My question is: Where comes this "Wiki contents" from?

From simon Fri May 14 13:09:28 -0700 2004
From: simon
Date: Fri, 14 May 2004 13:09:28 -0700
Subject: happy weekend
Message-ID: <20040514130928-0700@zwiki.org>

Today's quote is worth a "read":http://zwiki.org ! 

From BobMcElrath Wed May 19 19:21:24 -0700 2004
From: Bob McElrath
Date: Wed, 19 May 2004 19:21:24 -0700
Subject: Re: Stopping users from editing same page and overwriting each others
	changes
Message-ID: <20040520022116.GA10848@mcelrath.org>
In-Reply-To: <1085019476.882.27.camel@zebedee>

Andy Hird [andyh@ekit-inc.com] wrote:
> Hi there, Apologies if this is a FAQ but I didn't see it in the howtos
> or FAQ documentation.
>=20
> I'm hosting severally frequently used pages (website changelogs) with a
> Zwiki page and have hit the situation where there may be several users
> editing the same page at the same time and then the later one who clicks
> save overwrites overwrites the earlier saved information.
>=20
> i.e. they both click on edit for the same revision of some page and then
> one clicks save, their changes are saved, and then at some later time
> another user hits save, and overwrites the previous saved changes.
>=20
> Is there some way of stopping this from happening? Ideally some zwiki
> option I guess which stops the later user from saving their changes
> until they've merged previous saved changes (or more simply edited their
> changes into the later saved page).
>=20
> If not, I'm quite happy to implement it as some sort of option - would
> there be interest in merging the change.=20

I've noticed this too.  I think it occurs when a save comes in while
ZWiki is pre-rendering.

Andy: this should not happen already...it is a bug.



From simon Thu May 20 07:22:10 -0700 2004
From: simon
Date: Thu, 20 May 2004 07:22:10 -0700
Subject: Re: Stopping users from editing same page and overwriting each others
	changes
Message-ID: <20040520072210-0700@zwiki.org>
In-Reply-To: <20040520022116.GA10848@mcelrath.org>

This should not be possible, unless you have a strange customized editform template. Let me know if you can reproduce it.

From DeanG Thu May 20 07:25:00 -0700 2004
From: DeanG
Date: Thu, 20 May 2004 07:25:00 -0700
Subject: Re: Stopping users from editing same page and overwriting each
	others	changes
Message-ID: <20040520072500-0700@zwiki.org>
In-Reply-To: <20040520072210-0700@zwiki.org>

I learned something about IP's yesterday that may support this scenario.  Everyone from my company is seen as from the same IP (through the firewall), so if two of use are editing the same (external) wiki page, a conflict might not be triggered, as (last I knew) the conflict checker checks for different IP's.

From SimonMichael Thu May 20 13:38:56 -0700 2004
From: Simon Michael
Date: Thu, 20 May 2004 13:38:56 -0700
Subject: Re: Stopping users from editing same page and overwriting each
	others	changes
Message-ID: <40AD1673.5040701@joyful.com>
In-Reply-To: <20040520072500-0700@zwiki.org>

Oh good point. Check out this docstring::

    def checkEditConflict(self, timeStamp, REQUEST):
        """
        Warn if this edit would be in conflict with another.

        Edit conflict checking based on timestamps -
       
        things to consider: what if
        - we are behind a proxy so all ip's are the same ?
        - several people use the same cookie-based username ?
        - people use the same cookie-name as an existing member name ?
        - no-one is using usernames ?

        strategies:
        0. no conflict checking

        1. strict - require a matching timestamp. Safest but obstructs a
        user trying to backtrack & re-edit. This was the behaviour of
        early zwiki versions.

        2. semi-careful - record username & ip address with the timestamp,
        require a matching timestamp or matching non-anonymous username
        and ip.  There will be no conflict checking amongst users with the
        same username (authenticated or cookie) connecting via proxy.
        Anonymous users will experience strict checking until they
        configure a username.

        3. relaxed - require a matching timestamp or a matching, possibly
        anonymous, username and ip. There will be no conflict checking
        amongst anonymous users connecting via proxy. This is the current
        behaviour.


From NateJohnson Fri May 21 08:53:09 -0700 2004
From: Nate Johnson
Date: Fri, 21 May 2004 08:53:09 -0700
Subject: Re: Stopping users from editing same page and overwriting each others
	changes
Message-ID: <20040521155307.44726.qmail@web11202.mail.yahoo.com>
In-Reply-To: <20040520022116.GA10848@mcelrath.org>

I mentioned this issue a while ago. Sorry I did
not have the time to investigate it further at
the time. I tested it with three different users
on the telephone, several times (all on the same
intranet) and there did not appear to be any
conflict resolution or warnings at all. -Nate

PS  I also want to request a feature: I would
love to have an automated to-do list. For
instance, when editing a Zwiki page, I want
to enclose a note to myself as an HTML anchor
named "to-do-Finish Explaining This Point-to-do"
and have the system insert that note on a "to-do"
page with a link to that exact spot on the page I
was editing. Then I (or others that want to
help) can later work through the to-do list,
reading the anchor's text and linking directly to
that spot, ideally pulling up the page in the
editform and putting the cursor right at the
anchor.  If the editor then removes the anchor,
the to-do list should show the item as completed,
but still keep record of it (the page, who did it
and when).  This should help a lot with page
maintenance.  Is there any limit to the length of
the the name of an anchor?

This functionality could also make it possible to
keep track of a single users contributions,
inserting links to all their edits on a "user
edits" page, kind of like whynot.net does for
each user, see my page at
http://whynot.net/view_user.php?id=262 for
example. 

what do you think?

nate nate@betterdifferent.com


From unknown Tue May 25 13:21:11 -0700 2004
From: 
Date: Tue, 25 May 2004 13:21:11 -0700
Subject: StudlyCaps
Message-ID: <20040525132111-0700@zwiki.org>

How do I turn off zwiki from rendering StudlyCaps as links in a plone install?  This is my biggest gripes with zwiki at the moment.  There is little control for the admin to select what gets rendered as links.  StudlyCaps are seems rather silly as a means to render links.  For example, if my name is McElroy, zwiki immidiately thinks it is supposed to be a page.  What would be really cool is to have zwiki use the plone ControlPanel to let admins select how the zwiki operates, select WikiWiki markup, StructuredText, reStructuredText, HMTL, StudlyCaps, or any combination thereof.

Hope this doesn't sound to negative, zwiki is otherwise an awesome product and I'm really glad I found it.

//\//\

P.S. Would there be any way to use workflows with zwik?  This would be a really cool feature as I could run a script to check spellings, mail me a notice upon new entry etc.  Anyhow just a tought and not critical.

From unknown Tue May 25 13:32:12 -0700 2004
From: 
Date: Tue, 25 May 2004 13:32:12 -0700
Subject: Adding images
Message-ID: <20040525133212-0700@www.zwiki.org>

I couldn't find any documentation in the how-tos. But is there a way to add an image in the wiki?
Thank You,
 Laura

From SimonMichael Tue May 25 13:46:23 -0700 2004
From: Simon Michael
Date: Tue, 25 May 2004 13:46:23 -0700
Subject: StudlyCaps
Message-ID: <40B3AFB6.4080503@joyful.com>
In-Reply-To: <20040525132111-0700@zwiki.org>

Gripe, gripe, gripe. :) Check out the use_*_links properties at 
http://zwiki.org/QuickReference#6 .

One reason these are not in Plone setup is that they are a per-wiki 
option. I encourage someone to start work on a control panel for them.


From SimonMichael Tue May 25 13:50:30 -0700 2004
From: Simon Michael
Date: Tue, 25 May 2004 13:50:30 -0700
Subject: Adding images
Message-ID: <40B3B0AD.1050700@joyful.com>
In-Reply-To: <20040525133212-0700@www.zwiki.org>


>I couldn't find any documentation in the how-tos. But is there a way to add an image in the wiki?
>  
>

If you have file upload permission (see QuickReference) you will see a 
file/image upload field in the editform.
There's also http://zwiki.org/FAQs#How%20do%20I%20upload%20a%20file?
Perhaps you could add something under http://zwiki.org/Chapter04Editing .


From simon Tue May 25 16:00:17 -0700 2004
From: simon
Date: Tue, 25 May 2004 16:00:17 -0700
Subject: release candidate coming
Message-ID: <20040525160017-0700@zwiki.org>

It's on the way.. sorry all, I am little sluggish after a couple of late hack-a-thons.

From BobMcElrath Tue May 25 16:41:15 -0700 2004
From: Bob McElrath
Date: Tue, 25 May 2004 16:41:15 -0700
Subject: Re: Subclassing/extending ZWikiPage
Message-ID: <20040525234112.GH20680@mcelrath.org>
In-Reply-To: <c90f0j$vbu$1@sea.gmane.org>

Edoardo ''Dado'' Marcora [marcora@caltech.edu] wrote:
> Has anybody been successfull in extending ZWikiPage by subclassing it?

What are you trying to do?

LatexWiki subclasses the PageType's to accomplish stuff.  I'm not sure
why you would want to subclass ZWikiPage.



From BobMcElrath Tue May 25 17:31:45 -0700 2004
From: Bob McElrath
Date: Tue, 25 May 2004 17:31:45 -0700
Subject: Re: Subclassing/extending ZWikiPage
Message-ID: <20040526003143.GI20680@mcelrath.org>
In-Reply-To: <c90o17$hpq$1@sea.gmane.org>

Edoardo ''Dado'' Marcora [marcora@caltech.edu] wrote:
> I would like to have my ZWikiPage have additional properties and methods.=
=2E.
> for example, I would like to have an object w/ ZWikiPage
> behavior/integration into ZWiki that would represent a Journal Article, w=
ith
> fields like Authors, Journal, Date of Publication, etc. + methods to
> retrieve the bibliographic information from online databases (e.g., PubMe=
d).
>=20
> I already such an object has a plain Zope Product, but I would like it to=
 be
> integrated into ZWiki and behave like a ZWiki page.

This does sound like a PageType subclass rather than ZWikiPage.

Take a look at "LatexWiki":http://mcelrath.org/Notes/LatexWiki for an
example of an external product that does exactly this.

I also want to integrate methods to deal with proper journal references.
(for me, mostly arxiv.org and spires)  Would you be willing to share
your code?  It would be much better to create some kind of generic
"bibliography" module that will extend the ZWiki citation mechanism,
rather than create several for different subject specialties.

See my "TODO":http://mcelrath.org/Notes/TODO, search for
"Auto-referencifier".  Also see the citations at the bottom of that page
for an idea of how those should look.



From NateJohnson Tue May 25 18:34:34 -0700 2004
From: Nate Johnson
Date: Tue, 25 May 2004 18:34:34 -0700
Subject: Adding images
Message-ID: <20040526013433.46411.qmail@web11201.mail.yahoo.com>
In-Reply-To: <40B3B0AD.1050700@joyful.com>

The best way to set this up for your users is to
use an all-HTML wiki, and install Epoz so that
you can use Epoz's Insert Image tool(icon). 
However, the Insert Image Tool asks for the URL
of the image and does not allow uploading from
the user's computer.  The user still needs to
upload the file and know how the link to it (the
URL).

It would be awesome if between Epoz and Zwiki we
could make the "post a photo" process more
straight forward for all-HTML Epoz Zwiki's.  What
I want is an improved Insert Image Tool so that
you can browse the local file system, the Zwiki
filesystem (starting in the folder that contains
the page you are editing), OR type in the URL...
All in the same box that pops up when a user
clicks the "insert image" tool.

While I am on the wish list, I would like to
incorporate smart file resizing, so Joe Dumb User
who just got his digital camera doesn't
accidentally but a 3 meg photo on my page.  It
would be nice as the moderator to set some
standard sizes for thumbnails and a maximum size
(eg 1024x768) and file-size (eg 400K) per upload.
 Then when the user selects "insert image" they
have to pick a thumbnail size.  Then the server
automatically makes and displays the thumbnail
(e.g. imagefilename-thumbnail) and links it
directly to the full size photo just uploaded.  A
small text link below says (eg) "click for full
size."

Now if I can just find some money I can help out
with the development.

Nate

ps the site I am building with Zwiki / Epoz :
www.evolvethis.com



--- Simon Michael <zwiki-wiki@zwiki.org> wrote:
> 
> >I couldn't find any documentation in the
> how-tos. But is there a way to add an image in
> the wiki?
> >  
> >
> 
> If you have file upload permission (see
> QuickReference) you will see a 
> file/image upload field in the editform.
> There's also
>
http://zwiki.org/FAQs#How%20do%20I%20upload%20a%20file?
> Perhaps you could add something under
> http://zwiki.org/Chapter04Editing .
> 
> --
> forwarded from
http://zwiki.org/GeneralDiscussion#msg40B3B0AD.1050700@joyful.com


=====
http://betterdifferent.com - solving the world's problems (and your's) through innovative application of communications technology


From simon Tue May 25 21:10:14 -0700 2004
From: simon
Date: Tue, 25 May 2004 21:10:14 -0700
Subject: 0.31rc1 released
Message-ID: <20040525211014-0700@zwiki.org>

http://zwiki.org/ReleaseNotes

Bah, depressingly short change list considering the work involved..! Please hammer on it :)

From unknown Wed May 26 07:51:03 -0700 2004
From: 
Date: Wed, 26 May 2004 07:51:03 -0700
Subject: subpage(s)
Message-ID: <20040526075103-0700@www.zwiki.org>

Hi, for my wiki I need to have a page with the same title e.g. "Introduction", but different content, several times. Currently I made subdirectories in Zope and link to them, but "show_navlinks" does not work with this solution. Any other solution possible ? Thanks Sigbert

From simon Wed May 26 13:05:26 -0700 2004
From: simon
Date: Wed, 26 May 2004 13:05:26 -0700
Subject: 0.31rc2 released
Message-ID: <20040526130526-0700@zwiki.org>

After some moaning, I merged the latest (great) i18n patches and tackled a number of issues brought to light,
Among other things, this should work better when PTS is not installed.

    * updated zh-TW.po and new zh-CN.po (T.C. Chou)

    * updated, utf-8 fr.po (Foenyx)

    * more standard skin i18n (Foenyx)

    * python i18n (Foenyx)

    * prevent dtml-translate tag errors when PTS is not installed

    * work around i18n unit test issues


From SimonMichael Thu May 27 08:35:37 -0700 2004
From: SimonMichael
Date: Thu, 27 May 2004 08:35:37 -0700
Subject: subpage(s)
Message-ID: <20040527083537-0700@www.zwiki.org>
In-Reply-To: <20040526075103-0700@www.zwiki.org>

Hi.. it sounds like a job for two wikis here. Really by definition, one wiki page has one name - that's part of what makes it work.

From SimonMichael Thu May 27 09:54:51 -0700 2004
From: Simon Michael
Date: Thu, 27 May 2004 09:54:51 -0700
Subject: Re: DTML page to ZWiki Input?
Message-ID: <40B61C72.8090502@joyful.com>
In-Reply-To: <loom.20040526T204040-187@post.gmane.org>

Hi Scott..

first a note on mail issues: I'm citing your entire post (and cc'ing 
you) since I'm not sure if you're subscribed to the list or wiki. I 
think that's why it didn't show up on the wiki, or perhaps it's because 
of the unquoted DTML you included generating an error. List and wiki 
posting in general is a bit confusing right now and needs some attention.

I dig your old-school DTML tags! :)

To post something directly to a wiki page, look at the comment or edit 
methods in Editing.py or here:
http://zopewiki.org/zpydoc/ZWiki.Editing.html

Something like::

 <dtml-call "StaffPage.comment(
    text='Name:%s\nEmail:%s\n etc..' % (username,useremail),
    subject_heading='registration',
    REQUEST=REQUEST)">

should do it. Any subscribers to StaffPage will receive mail, etc.

Passing REQUEST is generally a good idea, it passes on the current 
user's authentication. In this case you may not want users to have 
permission to comment on StaffPage, then you'll need to (eg) move this 
call into a separate python script or dtml method which you can grant a 
proxy role.


S.D. wrote:

>A long time ago, I asked about piping the output from a DTML registration page 
>into ZWiki. The sequence of events is as follows:
>
>1. A user visits our site to download (free) software.
>2. The site sends the user to a registration page.
>3. The user enters their registration information and clicks OK.
>4a. The user is transported to the download page from which he or she gleefully 
>grabs software.
>4b. The user's registration information is sent to a ZWiki page (in Plone) 
>where we use it for customer relations purposes.
>
>In Plone 1, I set up two DTML pages: One displays the registration form and the 
>other is the post-registration page that contains the download links. The 
>second page also emails the registration info to our feedback address, where it 
>can be managed in the email client. Here's the email-sending DTML from the 
>second page::
>-----
>< dtml-var standard_html_header>
>
>< h2>< dtml-var title_or_id>< /h2>
>< !--#sendmail mailhost="MailHost"--> 
>To: Feedback Recipient < me@some.edu> 
>From: Zope Feedback Form < me@some.edu> 
>Subject: [Download] Registration Information
>
>Institution Name: < !--#var institutionname-->
>
>Name: < !--#var username-->
>
>Email: < !--#var useremail-->
>
>Country: < !--#var country-->
>
>Type(s): < !--#var type-->
>
>Comments:
>< !--#var comments--> 
>< !--#/sendmail--> 
>
>< p>Thank you for your input, < !--#var username-->!< /p>
>
>< dtml-var standard_html_footer>
>-----
>
>Since all of this activity is contained inside a single Plone instance, I don't 
>need to use email. All I want to do is set up a direct connection between my 
>DTML page and ZWiki.
>
>What is the best way to pipe this kind of info into ZWiki 0.30 inside Zope 2.7 
>and Plone 2.0.3? All suggestions will be very welcome!
>
>Thanks!
>
>Scott
>
>  
>


From simon Thu May 27 09:58:48 -0700 2004
From: simon
Date: Thu, 27 May 2004 09:58:48 -0700
Subject: Re: DTML page to ZWiki Input?
Message-ID: <20040527095848-0700@zwiki.org>
In-Reply-To: <40B61C72.8090502@joyful.com>

Or, you could just give the first wiki page (a read-only registration form, if I understand correctly) the proxy role.

From simon Thu May 27 12:34:12 -0700 2004
From: simon
Date: Thu, 27 May 2004 12:34:12 -0700
Subject: zwiki.org templates updated
Message-ID: <20040527123412-0700@zwiki.org>

We did not have the latest i18n templates here (I keep copies in the zodb for customization). Now you can see the latest i18n work, french is currently the most complete. Er, and some glitches.

From DeanG Thu May 27 12:39:29 -0700 2004
From: DeanG
Date: Thu, 27 May 2004 12:39:29 -0700
Subject: RecentChanges ?
Message-ID: <20040527123929-0700@zwiki.org>

RecentChanges is prompting me for login.  

From SimonMichael Thu May 27 18:07:29 -0700 2004
From: SimonMichael
Date: Thu, 27 May 2004 18:07:29 -0700
Subject: RecentChanges ?
Message-ID: <20040527180729-0700@zwiki.org>
In-Reply-To: <20040527123929-0700@zwiki.org>

Thanks! Some bad permissions that were never initialized in the past. There may be more of these lurking.

From SimonMichael Thu May 27 18:30:08 -0700 2004
From: Simon Michael
Date: Thu, 27 May 2004 18:30:08 -0700
Subject: Re: DTML page to ZWiki Input?
Message-ID: <40B69537.8020908@joyful.com>
In-Reply-To: <loom.20040527T200344-108@post.gmane.org>

S.D. wrote:

>Simon says:
>
>  
>
>>Or, you could just give the first wiki page (a read-only registration form,
>>if I understand correctly) the proxy role.
>>    
>>
>
>That would be the slickest solution: The Registration/Download area would 
>simply be a ZWiki whose default page snagged the pertinent visitor info (name, 
>email address, institution name, comments) and sent that info on, as a comment, 
>to another wiki page that only administrators could see.
>
>Well, not quite that simply because clicking OK on the initial registration 
>page would, from the visitor's perspective, then move on to the (static) 
>download page that contained the links to our software.
>
>As far as proxies go, I don't quite understand the proxy Help page you get in 
>the ZMI.
>-----
>"Proxy roles explicitly list the roles that a DTML Document or Method will 
>execute with. This allows you to carefully control access. Proxy roles can 
>either increase or decrease access."
>-----
>Since we're talking about allowing anonymous users to see the registration 
>page, I assume that means the page should be assigned the "Anonymous" proxy 
>role. Or is that the opposite of what should be done? Will assigning 
>the "Anonymous" role to a publicly viewable page give anonymous visitors 
>Manager-level permissions?
>
>Just now, I tried your first suggestion, sticking the following in a DTML 
>Document page inside a "Registration" Plone folder.
>-----
> < dtml-call "Wikipage01.comment(
>    text='Name:%s\nEmail:%s\n etc..' % (username,useremail),
>    subject_heading='registration',
>    REQUEST=REQUEST)">
>-----
>In a "Wiki" Plone folder, I have a ZWiki page named "Wikipage01." But the 
>Registration DTML document can't find "Wikipage01." Do I need to specify a path 
>to the wiki page?
>
>I apologize for the dumb questions, but I am still trying to get a handle on 
>various objects find one another inside Zope.
>
>Thanks!
>
>Scott
>
>  
>


From simon Fri May 28 10:52:09 -0700 2004
From: simon
Date: Fri, 28 May 2004 10:52:09 -0700
Subject: 0.31rc3 released
Message-ID: <20040528105209-0700@zwiki.org>

Zwiki 0.31rc3 
ReleaseNotes:

        * update pot and po files

        * minor additional i18n, pluralize number of subscribers correctly (foenyx@online.fr)

        * FrenchGrammarAndVocabularyFix1 (foenyx@online.fr)

        * fix a UI regression (simpler replying indicator)

        * fix some permissions preventing anonymous recent changes access

        * fix stx asterisks in add issue form (IssueNo0826)

        * drop the page name from the subscribe to page button to simplify i18n

        * Important fixes to italian subscription messages (Lele Gaifax)

        * don't show a .svn subdirectory in add wiki form (Lele Gaifax)

        * undo page management form layout tweaks (IssueNo0827)

        * fr.po: fix number of subscribers translation

        * chinese translations update (T.C. Chou)

        * Italian messages update (Lele Gaifax)

        * fix rating button spacing

	* remove CMF dependency (IssueNo0824)

From SimonMichael Fri May 28 15:46:42 -0700 2004
From: Simon Michael
Date: Fri, 28 May 2004 15:46:42 -0700
Subject: Re: DTML page to ZWiki Input?
Message-ID: <40B7C06B.1040200@joyful.com>
In-Reply-To: <loom.20040529T001927-35@post.gmane.org>

S.D. wrote:

>Simon suggested:
>
(snip)

>I'm sorry for being so dense, but what is the best way to send this to a ZWiki?
>I've been looking at DTML, ZPT, and Archetypes examples all day today and I
>am rather lost on what to use and how to use it. Documentation is rather hit
>and miss for this stuff. Is there an example of an input page that you know
>of? It would be neat (I think) if I could use Archetypes to set up the input
>form. Is there a good Archetypes starting point you could suggest? Or is
>Archetypes overkill for my simple scenario?
>  
>

Hi Scott.. I was just about to read your last.

Tip: your messages keep getting rejected by the wiki because of the dtml 
examples. Every page on zwiki.org including GeneralDiscussion is a live 
dtml page. Your example snippets don't run so the whole mail-in gets 
rejected. You need to quote dtml examples like this::

 <dtml-var > indented after a double :

or like this:

< dtml-var> with a space after each left angle bracket.


From SimonMichael Fri May 28 16:04:39 -0700 2004
From: Simon Michael
Date: Fri, 28 May 2004 16:04:39 -0700
Subject: Re: DTML page to ZWiki Input?
Message-ID: <40B7C4A0.4040606@joyful.com>
In-Reply-To: <loom.20040529T001927-35@post.gmane.org>

Scott,

> Well, not quite that simply because clicking OK on the initial 
> registration
> page would, from the visitor's perspective, then move on to the (static)
> download page that contained the links to our software.


That's up to you. Use the form tag's action field to say where it should 
go next. A pattern I often use is to put the form and the form handler 
(in dtml) on the same page. http://zwiki.org/UserOptions is an old 
example. If it were me, and I was already using wiki pages, that's what 
I'd do here. You don't need more than two pages.

RegistrationForm - executes some dtml, looking for submitted form data. 
If there is none, displays the form (which posts to itself). If there is 
data, use the dtml-call I posted to add it to the StaffPage, and display 
a thank you message. This page is public, viewable by anonymous but 
read-only. It has the manager proxy role (eg), which means that when it 
runs dtml it will have manager privileges. This is so it can add data to 
the private StaffPage.

StaffPage - this page is private, perhaps in another folder. It can be 
viewed by managers and receives data from RegistrationForm.

> < dtml-call "Wikipage01.comment(
> text='Name:%s\nEmail:%s\n etc..' % (username,useremail),
> subject_heading='registration',
> REQUEST=REQUEST)">
> -----
> In a "Wiki" Plone folder, I have a ZWiki page named "Wikipage01." But the
> Registration DTML document can't find "Wikipage01." Do I need to 
> specify a path
> to the wiki page?


(note the space neutralising the dtml above)

Is Wikipage01 in the same folder or in a parent folder ? If yes, this 
should work (using acquisition). Otherwise you'd  need to give the 
folder path.

>is
>Archetypes overkill for my simple scenario?
>  
>

Yes, I think so.

Like perl, in zope there's many ways to do this. If you're comfortable 
with dtml wiki pages that is the simplest IMHO.


From simon Sat May 29 07:31:51 -0700 2004
From: simon
Date: Sat, 29 May 2004 07:31:51 -0700
Subject: server upgrade, downtime
Message-ID: <20040529073151-0700@zwiki.org>

The server was rebooted and zope/apache failed to come up automatically. This has been fixed.

From simon Sat May 29 13:38:11 -0700 2004
From: simon
Date: Sat, 29 May 2004 13:38:11 -0700
Subject: 0.31rc4 released
Message-ID: <20040529133811-0700@zwiki.org>

Zwiki 0.31.0rc4 
ReleaseNotes:

    * always update backlinks by default when renaming (page management form was not)

    * show current page in contents by default again This is much more convenient for a human user. The drawback is more hits to contents (one for each page) from robots which treat #ref as a separate url.

    * defaultPage (and navigation links) were ignoring the default_page folder property

    * issue tracker: show recent issues by default again

    * standard wikipage.pt: add a left/right layout table around ratingform

    * issuepropertiesform: replace stx markup with html

    * FrenchGrammarAndVocabularyFix2 (foenyx@online.fr)

    * add dtml messages to pot & po files

    * plone editform: don't attempt to translate page names, showing duplicates instead (IssueNo0823)





Archived GeneralDiscussion.


comments:

Zwiki 0.30 released --Simon Michael, Mon, 03 May 2004 23:08:00 -0700 reply
Summary: Page rating, fix epoz support, bugfixes, code cleanups, i18n work, a french translation

http://zwiki.org

Best, -Simon

editing menu -- Wed, 05 May 2004 12:17:04 -0700 reply
Does anybody know, where I can change the menu titles or names like "wiki changes", "wiki contents" or "serch this wiki". Are the hardcoded or defined in any external file?

editing menu --SimonMichael, Wed, 05 May 2004 14:07:16 -0700 reply
They are in the wikipage_macros and possibly wikipage page templates. The skin customizing docs should help.

How does one lock a page ? -- Sat, 01 May 2004 14:57:26 -0700 reply
Allowing anyone to comment (say at the end of each paragraph or bottom of the page) but no content editing by anonymous users.

note Comment moved from LinkingNotes?

How does one lock a page ? --DeanGoodmanson, Thu, 06 May 2004 15:03:42 -0700 reply
See ZWiki:QuickReference#5

site downtime --simon, Fri, 07 May 2004 20:06:47 -0700 reply
None of these strange site hangs for a week. Touch wood..

you could not make this stuff up :) --simon, Fri, 07 May 2004 22:15:32 -0700 reply
http://www.sfweekly.com/issues/2004-04-28/nightcrawler.html/1/index.html

Happy weekend

you could not make this stuff up :) --simon, Fri, 07 May 2004 22:38:53 -0700 reply
braaaaaains!

editing menu -- Mon, 10 May 2004 04:20:29 -0700 reply
Thanks for your answer, but I still couldn't find them.

editing menu -- Mon, 10 May 2004 04:26:53 -0700 reply
To explain my problem I have some code here:

 <h5 class="hiddenStructure">Aktionen</h5>
    <ul class="actionItems">
        <li id="contentaction-contents">
            <a class=""
               href="http://localhost/Members/plone/Wiki_Page.2004-05-05.7066348736/contents"
               accesskey="accesskeys-Wiki contents">
                   Wiki contents
            </a>
        </li>

My question is: Where comes this "Wiki contents" from?

happy weekend --simon, Fri, 14 May 2004 13:09:28 -0700 reply
Today's quote is worth a read !

Re: Stopping users from editing same page and overwriting each others changes --Bob McElrath?, Wed, 19 May 2004 19:21:24 -0700 reply
Andy Hird [andyh@ekit-inc.com]? wrote:

Hi there, Apologies if this is a FAQ but I didn't see it in the howtos or FAQ documentation. =20 I'm hosting severally frequently used pages (website changelogs) with a Zwiki page and have hit the situation where there may be several users editing the same page at the same time and then the later one who clicks save overwrites overwrites the earlier saved information. =20 i.e. they both click on edit for the same revision of some page and then one clicks save, their changes are saved, and then at some later time another user hits save, and overwrites the previous saved changes. =20 Is there some way of stopping this from happening? Ideally some zwiki option I guess which stops the later user from saving their changes until they've merged previous saved changes (or more simply edited their changes into the later saved page). =20 If not, I'm quite happy to implement it as some sort of option - would there be interest in merging the change.=20

I've noticed this too. I think it occurs when a save comes in while ZWiki is pre-rendering.

Andy: this should not happen already...it is a bug.

Re: Stopping users from editing same page and overwriting each others changes --simon, Thu, 20 May 2004 07:22:10 -0700 reply
This should not be possible, unless you have a strange customized editform template. Let me know if you can reproduce it.

Re: Stopping users from editing same page and overwriting each others changes --DeanG, Thu, 20 May 2004 07:25:00 -0700 reply
I learned something about IP's yesterday that may support this scenario. Everyone from my company is seen as from the same IP (through the firewall), so if two of use are editing the same (external) wiki page, a conflict might not be triggered, as (last I knew) the conflict checker checks for different IP's.

Re: Stopping users from editing same page and overwriting each others changes --Simon Michael, Thu, 20 May 2004 13:38:56 -0700 reply
Oh good point. Check out this docstring:

    def checkEditConflict(self, timeStamp, REQUEST):
        """
        Warn if this edit would be in conflict with another.

        Edit conflict checking based on timestamps -

        things to consider: what if
        - we are behind a proxy so all ip's are the same ?
        - several people use the same cookie-based username ?
        - people use the same cookie-name as an existing member name ?
        - no-one is using usernames ?

        strategies:
        0. no conflict checking

        1. strict - require a matching timestamp. Safest but obstructs a
        user trying to backtrack & re-edit. This was the behaviour of
        early zwiki versions.

        2. semi-careful - record username & ip address with the timestamp,
        require a matching timestamp or matching non-anonymous username
        and ip.  There will be no conflict checking amongst users with the
        same username (authenticated or cookie) connecting via proxy.
        Anonymous users will experience strict checking until they
        configure a username.

        3. relaxed - require a matching timestamp or a matching, possibly
        anonymous, username and ip. There will be no conflict checking
        amongst anonymous users connecting via proxy. This is the current
        behaviour.

Re: Stopping users from editing same page and overwriting each others changes --Nate Johnson, Fri, 21 May 2004 08:53:09 -0700 reply
I mentioned this issue a while ago. Sorry I did not have the time to investigate it further at the time. I tested it with three different users on the telephone, several times (all on the same intranet) and there did not appear to be any conflict resolution or warnings at all. -Nate

PS I also want to request a feature: I would love to have an automated to-do list. For instance, when editing a Zwiki page, I want to enclose a note to myself as an HTML anchor named "to-do-Finish Explaining This Point-to-do" and have the system insert that note on a "to-do" page with a link to that exact spot on the page I was editing. Then I (or others that want to help) can later work through the to-do list, reading the anchor's text and linking directly to that spot, ideally pulling up the page in the editform and putting the cursor right at the anchor. If the editor then removes the anchor, the to-do list should show the item as completed, but still keep record of it (the page, who did it and when). This should help a lot with page maintenance. Is there any limit to the length of the the name of an anchor?

This functionality could also make it possible to keep track of a single users contributions, inserting links to all their edits on a "user edits" page, kind of like whynot.net does for each user, see my page at http://whynot.net/view_user.php?id=262 for example.

what do you think?

nate nate@betterdifferent.com

StudlyCaps? -- Tue, 25 May 2004 13:21:11 -0700 reply
How do I turn off zwiki from rendering StudlyCaps? as links in a plone install? This is my biggest gripes with zwiki at the moment. There is little control for the admin to select what gets rendered as links. StudlyCaps? are seems rather silly as a means to render links. For example, if my name is McElroy?, zwiki immidiately thinks it is supposed to be a page. What would be really cool is to have zwiki use the plone ControlPanel? to let admins select how the zwiki operates, select WikiWiki markup, StructuredText, reStructuredText, HMTL, StudlyCaps?, or any combination thereof.

Hope this doesn't sound to negative, zwiki is otherwise an awesome product and I'm really glad I found it.

//\//\

P.S. Would there be any way to use workflows with zwik? This would be a really cool feature as I could run a script to check spellings, mail me a notice upon new entry etc. Anyhow just a tought and not critical.

Adding images -- Tue, 25 May 2004 13:32:12 -0700 reply
I couldn't find any documentation in the how-tos. But is there a way to add an image in the wiki? Thank You, Laura

StudlyCaps? --Simon Michael, Tue, 25 May 2004 13:46:23 -0700 reply
Gripe, gripe, gripe. :) Check out the use_*_links properties at http://zwiki.org/QuickReference#6 .

One reason these are not in Plone setup is that they are a per-wiki option. I encourage someone to start work on a control panel for them.

Adding images --Simon Michael, Tue, 25 May 2004 13:50:30 -0700 reply

I couldn't find any documentation in the how-tos. But is there a way to add an image in the wiki?

If you have file upload permission (see QuickReference) you will see a file/image upload field in the editform. There's also http://zwiki.org/FAQs#How%20do%20I%20upload%20a%20file? Perhaps you could add something under http://zwiki.org/Chapter04Editing .

release candidate coming --simon, Tue, 25 May 2004 16:00:17 -0700 reply
It's on the way.. sorry all, I am little sluggish after a couple of late hack-a-thons.

Re: Subclassing/extending ZWikiPage --Bob McElrath?, Tue, 25 May 2004 16:41:15 -0700 reply
Edoardo ''Dado'' Marcora [marcora@caltech.edu]? wrote:

Has anybody been successfull in extending ZWikiPage by subclassing it?

What are you trying to do?

LatexWiki subclasses the PageType?'s to accomplish stuff. I'm not sure why you would want to subclass ZWikiPage.

Re: Subclassing/extending ZWikiPage --Bob McElrath?, Tue, 25 May 2004 17:31:45 -0700 reply
Edoardo ''Dado'' Marcora [marcora@caltech.edu]? wrote:

I would like to have my ZWikiPage have additional properties and methods.=
=2E.
for example, I would like to have an object w/ ZWikiPage behavior/integration into ZWiki that would represent a Journal Article, w=
ith
fields like Authors, Journal, Date of Publication, etc. + methods to retrieve the bibliographic information from online databases (e.g., PubMe?=
d).
=20 I already such an object has a plain Zope Product, but I would like it to=
be
integrated into ZWiki and behave like a ZWiki page.

This does sound like a PageType? subclass rather than ZWikiPage.

Take a look at LatexWiki for an example of an external product that does exactly this.

I also want to integrate methods to deal with proper journal references. (for me, mostly arxiv.org and spires) Would you be willing to share your code? It would be much better to create some kind of generic "bibliography" module that will extend the ZWiki citation mechanism, rather than create several for different subject specialties.

See my TODO, search for "Auto-referencifier". Also see the citations at the bottom of that page for an idea of how those should look.

Adding images --Nate Johnson, Tue, 25 May 2004 18:34:34 -0700 reply
The best way to set this up for your users is to use an all-HTML wiki, and install Epoz so that you can use Epoz's Insert Image tool(icon). However, the Insert Image Tool asks for the URL of the image and does not allow uploading from the user's computer. The user still needs to upload the file and know how the link to it (the URL).

It would be awesome if between Epoz and Zwiki we could make the "post a photo" process more straight forward for all-HTML Epoz Zwiki's. What I want is an improved Insert Image Tool so that you can browse the local file system, the Zwiki filesystem (starting in the folder that contains the page you are editing), OR type in the URL... All in the same box that pops up when a user clicks the "insert image" tool.

While I am on the wish list, I would like to incorporate smart file resizing, so Joe Dumb User who just got his digital camera doesn't accidentally but a 3 meg photo on my page. It would be nice as the moderator to set some standard sizes for thumbnails and a maximum size (eg 1024x768) and file-size (eg 400K) per upload. Then when the user selects "insert image" they have to pick a thumbnail size. Then the server automatically makes and displays the thumbnail (e.g. imagefilename-thumbnail) and links it directly to the full size photo just uploaded. A small text link below says (eg) "click for full size."

Now if I can just find some money I can help out with the development.

Nate

ps the site I am building with Zwiki / Epoz : www.evolvethis.com

--- Simon Michael <zwiki-wiki@zwiki.org> wrote:

I couldn't find any documentation in the
how-tos. But is there a way to add an image in the wiki?

If you have file upload permission (see QuickReference) you will see a file/image upload field in the editform. There's also

http://zwiki.org/FAQs#How%20do%20I%20upload%20a%20file?
Perhaps you could add something under http://zwiki.org/Chapter04Editing .

-- forwarded from

http://zwiki.org/GeneralDiscussion#msg40B3B0AD.1050700@joyful.com

===== http://betterdifferent.com - solving the world's problems (and your's) through innovative application of communications technology

0.31rc1 released --simon, Tue, 25 May 2004 21:10:14 -0700 reply
http://zwiki.org/ReleaseNotes

Bah, depressingly short change list considering the work involved..! Please hammer on it :)

subpage(s) -- Wed, 26 May 2004 07:51:03 -0700 reply
Hi, for my wiki I need to have a page with the same title e.g. "Introduction", but different content, several times. Currently I made subdirectories in Zope and link to them, but "show_navlinks" does not work with this solution. Any other solution possible ? Thanks Sigbert

0.31rc2 released --simon, Wed, 26 May 2004 13:05:26 -0700 reply
After some moaning, I merged the latest (great) i18n patches and tackled a number of issues brought to light, Among other things, this should work better when PTS is not installed.

  • updated zh-TW.po and new zh-CN.po (T.C. Chou)
  • updated, utf-8 fr.po (Foenyx)
  • more standard skin i18n (Foenyx)
  • python i18n (Foenyx)
  • prevent dtml-translate tag errors when PTS is not installed
  • work around i18n unit test issues

subpage(s) --SimonMichael, Thu, 27 May 2004 08:35:37 -0700 reply
Hi.. it sounds like a job for two wikis here. Really by definition, one wiki page has one name - that's part of what makes it work.

Re: DTML page to ZWiki Input? --Simon Michael, Thu, 27 May 2004 09:54:51 -0700 reply
Hi Scott..

first a note on mail issues: I'm citing your entire post (and cc'ing you) since I'm not sure if you're subscribed to the list or wiki. I think that's why it didn't show up on the wiki, or perhaps it's because of the unquoted DTML you included generating an error. List and wiki posting in general is a bit confusing right now and needs some attention.

I dig your old-school DTML tags! :)

To post something directly to a wiki page, look at the comment or edit methods in Editing.py or here: http://zopewiki.org/zpydoc/ZWiki.Editing.html

Something like:

 <dtml-call "StaffPage.comment(
    text='Name:%s\nEmail:%s\n etc..' % (username,useremail),
    subject_heading='registration',
    REQUEST=REQUEST)">

should do it. Any subscribers to StaffPage? will receive mail, etc.

Passing REQUEST is generally a good idea, it passes on the current user's authentication. In this case you may not want users to have permission to comment on StaffPage?, then you'll need to (eg) move this call into a separate python script or dtml method which you can grant a proxy role.

S.D. wrote:

A long time ago, I asked about piping the output from a DTML registration page into ZWiki. The sequence of events is as follows:

  1. A user visits our site to download (free) software. 2. The site sends the user to a registration page. 3. The user enters their registration information and clicks OK. 4a. The user is transported to the download page from which he or she gleefully grabs software. 4b. The user's registration information is sent to a ZWiki page (in Plone) where we use it for customer relations purposes.

In Plone 1, I set up two DTML pages: One displays the registration form and the other is the post-registration page that contains the download links. The second page also emails the registration info to our feedback address, where it can be managed in the email client. Here's the email-sending DTML from the second page:: ----- < dtml-var standard_html_header>

< h2>< dtml-var title_or_id>< /h2> < !--#sendmail mailhost="MailHost"--> To: Feedback Recipient < me@some.edu> From: Zope Feedback Form < me@some.edu> Subject: [Download]? Registration Information

Institution Name: < !--#var institutionname-->

Name: < !--#var username-->

Email: < !--#var useremail-->

Country: < !--#var country-->

Type(s): < !--#var type-->

Comments: < !--#var comments--> < !--#/sendmail-->

< p>Thank you for your input, < !--#var username-->!< /p>

< dtml-var standard_html_footer> -----

Since all of this activity is contained inside a single Plone instance, I don't need to use email. All I want to do is set up a direct connection between my DTML page and ZWiki.

What is the best way to pipe this kind of info into ZWiki 0.30 inside Zope 2.7 and Plone 2.0.3? All suggestions will be very welcome!

Thanks!

Scott

Re: DTML page to ZWiki Input? --simon, Thu, 27 May 2004 09:58:48 -0700 reply
Or, you could just give the first wiki page (a read-only registration form, if I understand correctly) the proxy role.

zwiki.org templates updated --simon, Thu, 27 May 2004 12:34:12 -0700 reply
We did not have the latest i18n templates here (I keep copies in the zodb for customization). Now you can see the latest i18n work, french is currently the most complete. Er, and some glitches.

RecentChanges? ? --DeanG, Thu, 27 May 2004 12:39:29 -0700 reply
RecentChanges? is prompting me for login.

RecentChanges? ? --SimonMichael, Thu, 27 May 2004 18:07:29 -0700 reply
Thanks! Some bad permissions that were never initialized in the past. There may be more of these lurking.

Re: DTML page to ZWiki Input? --Simon Michael, Thu, 27 May 2004 18:30:08 -0700 reply
S.D. wrote:

Simon says:

Or, you could just give the first wiki page (a read-only registration form, if I understand correctly) the proxy role.

That would be the slickest solution: The Registration/Download area would simply be a ZWiki whose default page snagged the pertinent visitor info (name, email address, institution name, comments) and sent that info on, as a comment, to another wiki page that only administrators could see.

Well, not quite that simply because clicking OK on the initial registration page would, from the visitor's perspective, then move on to the (static) download page that contained the links to our software.

As far as proxies go, I don't quite understand the proxy Help page you get in the ZMI. ----- "Proxy roles explicitly list the roles that a DTML Document or Method will execute with. This allows you to carefully control access. Proxy roles can either increase or decrease access." ----- Since we're talking about allowing anonymous users to see the registration page, I assume that means the page should be assigned the "Anonymous" proxy role. Or is that the opposite of what should be done? Will assigning the "Anonymous" role to a publicly viewable page give anonymous visitors Manager-level permissions?

Just now, I tried your first suggestion, sticking the following in a DTML Document page inside a "Registration" Plone folder. ----- < dtml-call "Wikipage01.comment( text='Name:%s\nEmail:%s\n etc..' % (username,useremail), subject_heading='registration', REQUEST=REQUEST)"> ----- In a "Wiki" Plone folder, I have a ZWiki page named "Wikipage01." But the Registration DTML document can't find "Wikipage01." Do I need to specify a path to the wiki page?

I apologize for the dumb questions, but I am still trying to get a handle on various objects find one another inside Zope.

Thanks!

Scott

0.31rc3 released --simon, Fri, 28 May 2004 10:52:09 -0700 reply
Zwiki 0.31rc3 ReleaseNotes:

  • update pot and po files
  • minor additional i18n, pluralize number of subscribers correctly (foenyx@online.fr)
  • FrenchGrammarAndVocabularyFix1? (foenyx@online.fr)
  • fix a UI regression (simpler replying indicator)
  • fix some permissions preventing anonymous recent changes access
  • fix stx asterisks in add issue form (IssueNo0826?)
  • drop the page name from the subscribe to page button to simplify i18n
  • Important fixes to italian subscription messages (Lele Gaifax)
  • don't show a .svn subdirectory in add wiki form (Lele Gaifax)
  • undo page management form layout tweaks (IssueNo0827?)
  • fr.po: fix number of subscribers translation
  • chinese translations update (T.C. Chou)
  • Italian messages update (Lele Gaifax)
  • fix rating button spacing
  • remove CMF dependency (IssueNo0824?)

Re: DTML page to ZWiki Input? --Simon Michael, Fri, 28 May 2004 15:46:42 -0700 reply
S.D. wrote:

Simon suggested:
(snip)
I'm sorry for being so dense, but what is the best way to send this to a ZWiki? I've been looking at DTML, ZPT, and Archetypes examples all day today and I am rather lost on what to use and how to use it. Documentation is rather hit and miss for this stuff. Is there an example of an input page that you know of? It would be neat (I think) if I could use Archetypes to set up the input form. Is there a good Archetypes starting point you could suggest? Or is Archetypes overkill for my simple scenario?

Hi Scott.. I was just about to read your last.

Tip: your messages keep getting rejected by the wiki because of the dtml examples. Every page on zwiki.org including GeneralDiscussion is a live dtml page. Your example snippets don't run so the whole mail-in gets rejected. You need to quote dtml examples like this:

 <dtml-var > indented after a double :

or like this:

< dtml-var> with a space after each left angle bracket.

Re: DTML page to ZWiki Input? --Simon Michael, Fri, 28 May 2004 16:04:39 -0700 reply
Scott,

Well, not quite that simply because clicking OK on the initial registration page would, from the visitor's perspective, then move on to the (static) download page that contained the links to our software.

That's up to you. Use the form tag's action field to say where it should go next. A pattern I often use is to put the form and the form handler (in dtml) on the same page. http://zwiki.org/UserOptions is an old example. If it were me, and I was already using wiki pages, that's what I'd do here. You don't need more than two pages.

RegistrationForm? - executes some dtml, looking for submitted form data. If there is none, displays the form (which posts to itself). If there is data, use the dtml-call I posted to add it to the StaffPage?, and display a thank you message. This page is public, viewable by anonymous but read-only. It has the manager proxy role (eg), which means that when it runs dtml it will have manager privileges. This is so it can add data to the private StaffPage?.

StaffPage? - this page is private, perhaps in another folder. It can be viewed by managers and receives data from RegistrationForm?.

< dtml-call "Wikipage01.comment( text='Name:%s\nEmail:%s\n etc..' % (username,useremail), subject_heading='registration', REQUEST=REQUEST)"> ----- In a "Wiki" Plone folder, I have a ZWiki page named "Wikipage01." But the Registration DTML document can't find "Wikipage01." Do I need to specify a path to the wiki page?

(note the space neutralising the dtml above)

Is Wikipage01 in the same folder or in a parent folder ? If yes, this should work (using acquisition). Otherwise you'd need to give the folder path.

is Archetypes overkill for my simple scenario?

Yes, I think so.

Like perl, in zope there's many ways to do this. If you're comfortable with dtml wiki pages that is the simplest IMHO.

server upgrade, downtime --simon, Sat, 29 May 2004 07:31:51 -0700 reply
The server was rebooted and zope/apache failed to come up automatically. This has been fixed.

0.31rc4 released --simon, Sat, 29 May 2004 13:38:11 -0700 reply
Zwiki 0.31.0rc4 ReleaseNotes:

  • always update backlinks by default when renaming (page management form was not)
  • show current page in contents by default again This is much more convenient for a human user. The drawback is more hits to contents (one for each page) from robots which treat #ref as a separate url.
  • defaultPage (and navigation links) were ignoring the default_page folder property
  • issue tracker: show recent issues by default again
  • standard wikipage.pt: add a left/right layout table around ratingform
  • issuepropertiesform: replace stx markup with html
  • FrenchGrammarAndVocabularyFix2? (foenyx@online.fr)
  • add dtml messages to pot & po files
  • plone editform: don't attempt to translate page names, showing duplicates instead (IssueNo0823?)