(anonymous guest) (logged out)

Copyright (C) by the contributors. Some rights reserved, license BY-SA.

Sponsored by the Wiki Symposium and the Nuveon GmbH.

 

Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-24) was last changed on 16-Oct-2007 15:19 by ChuckSmith  

This page was created on 02-Sep-2006 13:00 by Christoph

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 25 added 20 lines
I really don't see it why our implementations are wrong. The descriptions of the "memento pattern" say that it actually holds the whole state of the object in question. So, with a MoinMoin macro like this:
{{{
[[TableOfContents(3)]]
}}}
we have two choices -- encode the object's state in some weird, geeky base64-ed code:
<<dda7d0fa6d68b30c5803e5427987a509>>
or note that the exact text of the makro call also perfectly describes its state, and in a human-readable manner on top of that! We can also skip the reduntant characters:
<<TableOfContents(3)>>
As I see it, it perfectly meets all the definitions of a memento pattern that I found. And I see no reason why this can't also be saved like htis -- after all, Creole doesn't define how the pages have to be stored, does it?
Note also, that while your approach doesn't allow to copy the text from wiki to wiki, it also doesn't allow you to copy it from page to page on the same wiki or even rename the page (unless there is a separate action for that).
Since the markup is not transferable between wikis, the exact text that appears between << and >> is totally irrelevant.
-- RadomirDopieralski, 2007-02-23
Version Date Modified Size Author Changes ... Change note
24 16-Oct-2007 15:19 11.61 kB ChuckSmith to previous restore
23 16-Oct-2007 12:53 11.624 kB 201.12.178.33 to previous | to last
22 01-Jun-2007 16:31 11.61 kB ChristophSauer to previous | to last two angle brackets for placeholder is fine
21 05-May-2007 14:04 11.313 kB ChristophSauer to previous | to last changing markup here would make distinction clear between plugin
« This page (revision-24) was last changed on 16-Okt-2007 15:19 by ChuckSmith