I've made some modifications to ZWikiPage.py which alter handling of recently created but not-yet-edited pages. It's a new property called never_saved which is set in new() and reset in edit(). My standard_wiki_header then tests for never_saved and redirects to editform if set. The only tricky bit about the implementation is that since editform uses standard_wiki_header, to avoid recursion I had to do this:

<dtml-if "never_saved==1">
 <dtml-if "REQUEST.has_key(first_time_edit)">
  <dtml-comment>avoid!</dtml-comment>
 <dtml-else>
  <dtml-call "RESPONSE.redirect(_['URL0'] + /editform?first_time_edit=1)">
 </dtml-if>
</dtml-if>

Seems to do the trick; now just clicking on the ol' ? jumps me straight to the edit form, which is just what the doctor ordered.

This change doesn't manage to avoid creating objects when a spider visits, but at least you can do searches for created but not yet edited objects without wiki badge abuse. --GTK

Cool.. marking pages like this with ZwikiModification


The logical extension to this would be not to create new pages, until they are edited, as in the WikiWikiWeb. See NeverCreated for solution. --EdwardKreis


DeanGoodmanson, 2002/10/25 21:50 GMT (via web):
This htink this page, and NeverCreated, can go into the ZwikiFeatureMuseum as they are (I think) no longer relevant.

subtopics: