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.

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:

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: