[CMF-checkins] CVS: Products/CMFWiki/skins/wiki - WikiHelp.stx:1.1 wiki_allpages.dtml:1.1 wiki_recentchanges.dtml:1.1 wiki_toc.dtml:1.1 wiki_view.dtml:1.1 wikipage_advanced_form.dtml:1.1 wikipage_advanced_handler.py:1.1 wikipage_alternatecreate_form.dtml:1.1 wikipage_backlinks.dtml:1.1 wikipage_comment_form.dtml:1.1 wikipage_compare_versions.dtml:1.1 wikipage_copyhistory_handler.py:1.1 wikipage_create_form.dtml:1.1 wikipage_create_handler.dtml:1.1 wikipage_deleterename_handler.py:1.1 wikipage_edit_form.dtml:1.1 wikipage_editcomment_handler.py:1.1 wikipage_header.dtml:1.1 wikipage_history.dtml:1.1 wikipage_icon.gif:1.1 wikipage_recentchanges.py:1.1 wikipage_reparent_handler.py:1.1 wikipage_toc.dtml:1.1 wikipage_view.dtml:1.1 DTML_wiki_copy_page_to_present.dtml:NONE PSCOREDUMPS_wiki_copy_page_to_present_handler.py:NONE UNUSED_search_this_wiki.dtml:NONE UNUSED_show_wiki_search_results.dtml:NONE add_wiki_comment.dtml:NONE add_wiki_page_handler.dtml:NONE advanced_wiki_actions.dtml:NONE! all_wiki_pages.dtml:NONE folder_get_wiki_toc.dtml:NONE get_wiki_front_page.dtml:NONE get_wiki_toc.dtml:NONE index_html.dtml:NONE page_recent_wiki_changes.dtml:NONE recent_wiki_changes.dtml:NONE standard_wiki_footer.dtml:NONE standard_wiki_header.dtml:NONE standard_wiki_page.dtml:NONE title_prefix.dtml:NONE view_wiki_backlinks.dtml:NONE view_wiki_backlinks_new.dtml:NONE view_wiki_help.stx:NONE view_wiki_history.dtml:NONE view_wiki_page.dtml:NONE wiki_advanced_handler.py:NONE wiki_compare_versions.dtml:NONE wiki_copy_page_to_present_handler.py:NONE wiki_create_handler.py:NONE wiki_createform.dtml:NONE wiki_createform_with_doalternate.dtml:NONE wiki_deleterename_handler.py:NONE wiki_editcomment_handler.py:NONE wiki_editform.dtml:NONE wiki_reparent_handler.py:NONE wikipageicon.gif:NONE

Tres Seaver tseaver@zope.com
Tue, 7 Aug 2001 17:06:32 -0400


Update of /cvs-repository/Products/CMFWiki/skins/wiki
In directory cvs.zope.org:/tmp/cvs-serv7840/skins/wiki

Added Files:
	WikiHelp.stx wiki_allpages.dtml wiki_recentchanges.dtml 
	wiki_toc.dtml wiki_view.dtml wikipage_advanced_form.dtml 
	wikipage_advanced_handler.py 
	wikipage_alternatecreate_form.dtml wikipage_backlinks.dtml 
	wikipage_comment_form.dtml wikipage_compare_versions.dtml 
	wikipage_copyhistory_handler.py wikipage_create_form.dtml 
	wikipage_create_handler.dtml wikipage_deleterename_handler.py 
	wikipage_edit_form.dtml wikipage_editcomment_handler.py 
	wikipage_header.dtml wikipage_history.dtml wikipage_icon.gif 
	wikipage_recentchanges.py wikipage_reparent_handler.py 
	wikipage_toc.dtml wikipage_view.dtml 
Removed Files:
	DTML_wiki_copy_page_to_present.dtml 
	PSCOREDUMPS_wiki_copy_page_to_present_handler.py 
	UNUSED_search_this_wiki.dtml 
	UNUSED_show_wiki_search_results.dtml add_wiki_comment.dtml 
	add_wiki_page_handler.dtml advanced_wiki_actions.dtml 
	all_wiki_pages.dtml folder_get_wiki_toc.dtml 
	get_wiki_front_page.dtml get_wiki_toc.dtml index_html.dtml 
	page_recent_wiki_changes.dtml recent_wiki_changes.dtml 
	standard_wiki_footer.dtml standard_wiki_header.dtml 
	standard_wiki_page.dtml title_prefix.dtml 
	view_wiki_backlinks.dtml view_wiki_backlinks_new.dtml 
	view_wiki_help.stx view_wiki_history.dtml view_wiki_page.dtml 
	wiki_advanced_handler.py wiki_compare_versions.dtml 
	wiki_copy_page_to_present_handler.py wiki_create_handler.py 
	wiki_createform.dtml wiki_createform_with_doalternate.dtml 
	wiki_deleterename_handler.py wiki_editcomment_handler.py 
	wiki_editform.dtml wiki_reparent_handler.py wikipageicon.gif 
Log Message:


 - Rationalize DTML-based skin using "standard" naming scheme;  clean
   out the 'standard_wiki_{header,footer}' cruft, etc.

 - Add ZPT-based skin.


=== Added File Products/CMFWiki/skins/wiki/WikiHelp.stx ===
<!--antidecapitationkludge-->
<h3>What is this?</h3>
<p>  This is the CMFWiki version of a "WikiWikiWeb":WikiWikiWeb, which is a
  kind of collaborative website.  Wikis try to put as little as possible in
  the way of people sharing useful content in a manageable way.</p>

<p>  If you're allowed to edit a page, you can change it on the spot by
  clicking "Edit this page".  You may be also able to add comments to
  the bottom of the page.  In either case, intuitive
  "TextFormattingRules":TextFormattingRules are followed to simplify the
  process of writing and linking pages.</p>

<p>  The idea is to keep the text that people edit simple, so it's
  readable as is, and, most importantly, editable by anyone, without
  sacrificing niceness of the formatted presentation.</p>

<ul><li><p>Try your Wiki's SandBox to play with wiki page editing...</p>

</li>
<li><p>"HowDoINavigate":HowDoINavigate describes getting around.</p>

</li>
<li><p>"HowDoIEdit":HowDoIEdit describes creating your own pages and
    changing existing ones - including this peculiar use of the
    "WikiName":WikiName.</p>

</li>
<li><p>See "ZWiki":ZWiki for an explanation of the Zope software upon which CMFWiki is based</p>

</li>
<li><p>The main "WikiWikiWeb":WikiWikiWeb may help convey the background of
    wiki usage and etiquette.</p>

</li></ul>



=== Added File Products/CMFWiki/skins/wiki/wiki_allpages.dtml ===
<dtml-var standard_html_header>
All pages in this CMFWikiWeb.  See also 
<a href="wiki_recentchanges">Recent Changes</a>.
<p>
<table border="0">
<tr><td><b>Page</b></td><td><b>Size</b></td><td><b>Last modified</b></td></tr>
<dtml-in "objectValues(spec='CMF Wiki Page')" sort=id>
<tr><td>
<a href="&dtml-id;">&dtml-id;</a>
</td><td align="right">
<dtml-var getSize>
</td><td>
<dtml-var bobobase_modification_time>
</td></tr>
<dtml-if sequence-end>
</table>
<p>(<dtml-var sequence-number> pages)
</dtml-if>
</dtml-in>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wiki_recentchanges.dtml ===
<dtml-var standard_html_header>
All pages in this CMFWikiWeb, most recently changed first.  See also
<a href="wiki_allpages">All Pages</a>.
<p>

<table border="0">
<tr>
  <th align="left" valign="top"> Page </th>
  <th align="right" valign="top"> Size </th>
  <td align="center" valign="top"> &nbsp;
    <strong> Last modified <strong>
    <br> &nbsp; (<dtml-var "ZopeTime().timezone()">)
  </t>
  <th align="left" valign="top"> Who </th>
</tr>
<dtml-in "objectValues(spec='CMF Wiki Page')"
         sort=bobobase_modification_time reverse>
  <tr>
   <dtml-let theid="id()">
    <dtml-if "_.len(theid) > 40">
      <td colspan=5 valign="top"> [<dtml-var name=theid>]</a> </td>
      </tr><tr> <td> &nbsp; </td>
    <dtml-else>
      <td valign="top"> <a href="&dtml-theid;">&dtml-theid;</a></a> </td>
    </dtml-if>
   </dtml-let>
    <td valign="top" align="right"> <dtml-var getSize> </td>
    <td valign="top" nowrap>
      &nbsp; <dtml-var "bobobase_modification_time().aCommon()">
    </td>
    <td valign="top">
      <dtml-if last_editor> <dtml-var last_editor> </dtml-if> </td>
    <dtml-if last_log>
      </tr><tr><td colspan=2> &nbsp; </td>
               <td colspan=2> <font color=gray>
                              <dtml-var last_log size=70 html_quote> </font>
               </td></tr>
    </dtml-if>
  </tr>
 <dtml-if sequence-end>
</table>
<p>(<dtml-var sequence-number> pages)
 </dtml-if>
</dtml-in>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wiki_toc.dtml ===
<dtml-var standard_html_header>
<dtml-let callresults="FrontPage.wiki_map()"
          nesting="callresults[0]"
          singletons="callresults[1]">
<h3><i>&dtml-getId;</i> Contents</h3>
<p>
<!-- this should really not depend on nesting coming back as HTML,
but I don't have time to fix it right now - chrism -->
<dtml-var nesting> 
</p>
<p>
<font size="+1"><b><i>&dtml-getId;</i> Singletons</b></font>
(no parents and no offspring):
<ul>
<dtml-in singletons>
<a href="&dtml-sequence-item;"
   name="&dtml-sequence-item;">&dtml-sequence-item;</a>
</dtml-in>

</ul>
</dtml-let>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wiki_view.dtml ===
<dtml-var standard_html_header>
<dtml-with FrontPage>
<dtml-var wikipage_header>
<dtml-var render>
</dtml-with>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_advanced_form.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>

    <form method="POST"
          action="wikipage_deleterename_handler"
          enctypE="multipart/form-data">

<table border=1>
  <tr>
    <th align="left" bgcolor="ffffcc">
      <em> <dtml-var id size=40> </em> Attributes
    </th>
  </tr>
  <tr>
    <td colspan=2>
      <table width="100%">
        <tr>
          <th> Name: </th>
          <td> <dtml-var id size=45> </td>
         <dtml-let owners="this().page_owners()"
                   plural="((_.len(owners) > 1) and 's' or '')"
               niceowners="((owners and _.string.join(owners, ', '))
                            or 'Anonymous User')">
           <th> Local Owner&dtml-plural;: </th>
           <td> &dtml-niceowners; </td>
         </dtml-let>
        </tr>
        <tr>
          <th> Type: </th>
          <td> &dtml-page_type; </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <th align="left" bgcolor="ffffcc">
      <em> <dtml-var id size=40> </em> Rename and Delete
    </th>
  </tr>
  <tr>
    <td>
     <dtml-if "(getId() == 'FrontPage')">
       <font color="gray"> No Delete or Rename forms for FrontPage - it
                           can not be removed.
       </font>
     <dtml-elif "not isAllowed('move')">
        You can not rename or delete this page.
        <dtml-var "whichWho[opCategory('move')]"> do so.
     <dtml-else>
      <table width="100%" cellspacing=7>
        <tr>
          <td width="50%" nowrap bgcolor="eeeeee">
            Rename <strong><dtml-var id></strong> to:
            <br>
              <input type="text" name="new_id" size="25" value="&dtml-id;">
              &nbsp; <input type="submit" name="Rename" value="Rename">
          </td>
          <td align="center" width="50%" nowrap bgcolor="eeeeee">
            <input type="hidden" name="confirm_delete:int:default" value="0">
            <input type="checkbox" name="confirm_delete:boolean">
              Confirm delete &nbsp;
            <input type="submit" name="Delete" value="Delete">
          </td>
        </tr>
      </table>
     </dtml-if>
    </td>
  </tr>
    </form>
  <tr>
    <th align="left" bgcolor="ffffcc">
      <em> <dtml-var id size=40> </em> Regulations
    </th>
  </tr>

  <tr>
    <td>
  This is where wiki page and folder owners choose who can do which of
  the common wiki operations on the page.  The operations include
  editing the page, creating new pages from it, commenting on it, and
  resituating it (renaming it, deleting, or changing its designated
  parents).   You can <dtml-if isRegSetter> set <dtml-else> see </dtml-if>
  the page regulations below.

  <p>
  <strong> See <a href="RegulatingYourPages" target="_blank">
  RegulatingYourPages</a> for more info.</strong.>
  </p>
    <form method="POST"
          action="wikipage_advanced_handler"
          enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="5"
           bgcolor="eeeeee">
      <tr>
        <td> &nbsp; </td>
       <dtml-in regOps>
        <th> <dtml-var sequence-item capitalize> </th>
       </dtml-in>
      </tr>

      <tr>
        <th rowspan=2 align="right" valign="bottom">
            Role categories:
        </th>
       <dtml-in regOps>
        <td align="center" valign="top">
         <dtml-if "_['sequence-item'] == 'create'">
           <font size="-1"> ... new pages from this one. </font>
         <dtml-elif "_['sequence-item'] == 'edit'">
           <font size="-1"> Change the text. </font>
         <dtml-elif "_['sequence-item'] == 'comment'">
           <font size="-1"> Append text to end. </font>
         <dtml-elif "_['sequence-item'] == 'move'">
           <font size="-1"> Rename, delete, reparent. </font>
         </dtml-if>
        </td>
       </dtml-in>
      </tr>
      <tr>
       <dtml-in regOps>
        <dtml-let op="_['sequence-item']"
               opcat="opCategory(op)">
        <td align="center" valign="middle">
          <select name="&dtml-op;-category:string" size="1"
             <dtml-unless isRegSetter> DISABLED </dtml-unless> >
          <dtml-in regCategories>
           <dtml-let cat="_['sequence-item']"
                     cur="opcat == cat">
            <option value="&dtml-cat;"
                    <dtml-if cur>SELECTED</dtml-if>>
              <dtml-if "cat == 'nonanon'"> Non-Anon
              <dtml-else>&dtml.capitalize-cat;</dtml-if></option>
           </dtml-let>
          </dtml-in>
          </select>
        </td>
        </dtml-let>
       </dtml-in>
      </tr>

      <tr>
        <th align="right" valign="middle">
          Additional allowed users:
        </th>
       <dtml-in regOps>
        <dtml-let op="_['sequence-item']"
           usernames="_.string.join(opUsernames(op), '\n')">
        <td align="center">
          <textarea rows=2 cols=8
                    name="&dtml-op;-usernames:lines"
               <dtml-unless isRegSetter>
                 readonly
                 onkeydown="this.blur(); return false;"
               </dtml-unless>
            >&dtml-usernames;</textarea>
        </td>
        </dtml-let>
       </dtml-in>
      </tr>
      <tr>
        <th align="right" valign="middle">
          Propagate to offspring:
        </th>
       <dtml-in regOps>
        <dtml-let propop="'propagate-' + _['sequence-item']">
        <td align="center">
            <input type="hidden" name="&dtml-propop;:default" value="off">
            <input type="checkbox" name="&dtml-propop;" value="ON"
               <dtml-unless isRegSetter>
                 readonly
                 onkeydown="this.blur(); return false;"
               </dtml-unless> >
        </td>
        </dtml-let>
       </dtml-in>
      </tr>
      <tr>
        <td colspan=5> <hr>
        </td>
      </tr>
      <tr>
        <th align="right" valign="top">
          Who owns pages created <br>
          from this one:
        </th>
        <td colspan=4>
          <input type="radio" name="who_owns_subs" value="creator"
                 <dtml-unless isRegSetter> DISABLED </dtml-unless>
                 <dtml-if "subOwner()=='creator'"> CHECKED </dtml-if>>
              Only creator of new page
          <br>
          <input type="radio" name="who_owns_subs" value="original_owner"
                 <dtml-unless isRegSetter> DISABLED </dtml-unless>
                 <dtml-if "subOwner()=='original_owner'">CHECKED</dtml-if>>
              Only original page owner(s)
          <br>
          <input type="radio" name="who_owns_subs" value="both"
                 <dtml-unless isRegSetter> DISABLED </dtml-unless>
                 <dtml-if "subOwner()=='both'">CHECKED</dtml-if>>
              Both original page owner(s) and sub-page creators
        </td>
      </tr>
     <dtml-if isRegSetter>
      <tr>
        <td colspan=5> <hr>
        </td>
      </tr>
      <tr>
        <td align="right" colspan=3> 
          <input type="SUBMIT" name="regulate"
                 VALUE="Set <dtml-var id size=40> Regulations">
        </td>
      </tr>
     </dtml-if>
    </table>
   </form>
  </td></tr>
  </table>
</form>

<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_advanced_handler.py ===
## Script (Python) "wikipage_advanced_handler"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=REQUEST
##title=
##
context.setRegulations(d=REQUEST)

REQUEST.RESPONSE.redirect('%s?portal_status_message=Advanced+actions+updated.'
                         % context.absolute_url())

=== Added File Products/CMFWiki/skins/wiki/wikipage_alternatecreate_form.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>
<dtml-let noedit="not isAllowed('create')"
          page="REQUEST.get('page')"
          text="REQUEST.get('text', '')">

  <dtml-if noedit> <font color="gray"> </dtml-if>

    <h3> Create <em>&dtml-page;</em> CMFWiki Page </h3>

  <dtml-if noedit> </font> </dtml-if>

  <dtml-if noedit>
    <strong> <dtml-var "whichWho('create')">
      create new pages from <dtml-var "this().getId()">.
    </strong>
  <dtml-elif doalternate>
    Create this page as a file or an image upload, below.  Use the 
    <a href="wikipage_createform?doalternate=&page=&dtml.url_quote-page;&text=&dtml.url_quote-text;">
    regular edit form</a> to create it as a normal ZWiki page, instead.
  <dtml-else>
    Fill in the text and hit the <em> Create <dtml-var page> </em> button.
    Use <a href="wikipage_createform?doalternate=1&page=&dtml.url_quote-page;&text=&dtml.url_quote-text;">
    this form</a> to upload the page as a file or image, instead.
  </dtml-if noedit>

  <form method="POST"
        action="wikipage_create_handler"
        enctype="multipart/form-data">
  <input type=hidden name=page value="&dtml-page;">

  <table width="100%" border="0" cellspacing="0" cellpadding="5"
         <dtml-if doalternate> bgcolor="eeeeee" </dtml-if> >

   <dtml-if doalternate>
    <tr>
      <td align="right">
        <strong> File </strong>
        <input type="radio" name="filetype" value="file" checked>
        <br> or <strong> Image </strong>
        <input type="radio" name="filetype" value="image">
      </td>
      <td align="left" valign="middle" colspan=2>
        <input type="file" name="file" size="25" value="">
      </td>
    </tr>
    <tr>
      <th align="right" valign="center"> <em>Title</em> </th>
      <td align="left" valign="center">
      <input type="text" name="title" size="40">
      </td>
      <td colspan=2 align="right" valign="bottom">
        <input type="submit" name="CreateFile" value="Create File or Image">
      </td>
    </tr>
   <dtml-else>
    <!-- Readonly *and* onkeydown for bowser diversity. -->
    <tr bgcolor=<dtml-if noedit>"pink"<dtml-else>"eeeeee"</dtml-if> >
      <td colspan=2 align="center">
        <textarea wrap="soft" name="text"
                  rows=<dtml-var zwiki_height missing=18>
                  cols=<dtml-var zwiki_width missing=80>
                <dtml-if noedit>
                  readonly
                  onkeydown="this.blur(); return false;"
                </dtml-if>
><dtml-var text html_quote></textarea>
      </td>
    </tr>
    <tr bgcolor=<dtml-if noedit>"pink"<dtml-else>"eeeeee"</dtml-if> >
      <td valign="middle" align="left">
        <br> Format: <em> <dtml-var page_type> </em>
      </td>
     <dtml-if noedit>
      <th valign="middle" align="center">Create Disabled
     <dtml-else>
      <td valign="middle" align="right">
        <input type="submit" name="CreatePage"
         value="Create <dtml-var page size=20>">
     </dtml-if>
      </td>
    </tr>
    <dtml-if "not noedit">
     <tr bgcolor="eeeeee">
       <th colspan=2 align="center"> Log Message </td>
     </tr>
     <tr bgcolor="eeeeee">
       <td colspan=2 align="center">
         <textarea wrap="soft" name="log"
                   rows=3
                   cols=80
></textarea>
       </td>
     </tr>
     <tr bgcolor="eeeeee">
       <td colspan=2>
         Log for landmark changes - enter a note characterizing your
         change.  It will be connected with the page version,
         exposing the version for browsing in the condensed
         <a href="wikipage_history">page history</a>.
       </td>
     </tr>
    </dtml-if> <dtml-comment> "not noedit" </dtml-comment>
   </dtml-if> <dtml-comment> doalternate </dtml-comment>
  </table>
 </form>
</dtml-let>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_backlinks.dtml ===
<dtml-var standard_html_header>
<dtml-var expr="wikipage_header(this(),REQUEST,RESPONSE,title_url='..')">

<h2> Backlinks and Nesting Information </h2>

<form action="wikipage_reparent_handler">

<a href="../<dtml-var id>"><dtml-var id></a> is linked on the following pages:
<p>

<dtml-if "not isAllowed('move')">
 <font color="gray"> (You're not allowed to change this page's lineage)</font>
<br>
</dtml-if>

<dtml-let thispage="getId()"
       thisparents="getParents()"
     maybedisabled="((not isAllowed('move'))
                     and 'DISABLED') or ''">
<strong> Parent? &nbsp;&nbsp; Backlink </strong>
<br>
<dtml-in backlinks mapping>
   <input type=checkbox name="parents" value="<dtml-var pageid>"
          <dtml-if isparent>CHECKED</dtml-if> &dtml-maybedisabled;>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <a href="../&dtml-pageid;">&dtml-pageid;</a>
   <br>
</dtml-in>
</dtml-let>

<p>
<dtml-if "isAllowed('move')">
  <input type="submit" value="Reparent">
  <input type="reset" value="Reset Form">
</dtml-if>
</p>
</form>

<dtml-comment No time for this right now, but this is broken - chrism>
<p> <a name="nesting"><a href="../<dtml-var id>"><dtml-var id></a></a> nesting
context in the Wiki folder, including offspring, ancestors, and siblings.
(Branches are abbreviated with '...' elipses after the first time they're
spelled out.)

<dtml-var "wiki_context(REQUEST, with_siblings=1)">
</dtml-comment>

<p>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_comment_form.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>

<dtml-let nocomment="not isAllowed('comment', REQUEST=REQUEST)"
             noedit="not isAllowed('edit', REQUEST=REQUEST)"
         commentcat="opCategory('comment')">

 <dtml-if nocomment> <font color="gray"> </dtml-if>
 <h3> Submit a Comment for <em>&dtml-getId;</em> </h3>
 <dtml-if nocomment> </font> </dtml-if>
 <dtml-if nocomment>
   <strong> You are not allowed to comment on &dtml-getId;. </strong>
   (<dtml-var "whichWho(opCategory('comment'))"> may add a comment to this page.)
 <dtml-else>

  <p>
   Submit a comment to be appended to the page.  Your comment 
   will be automatically prefaced with your username and the current
   time, and be formatted according to the
   <a href="TextFormattingRules" target="_blank">TextFormattingRules</a>.
  </p><p>
   The current page source is provided for cut-and-paste citing.
   Groups of '>' prefixed citation lines will be bracketed with
   &lt;pre&gt; ... &lt;/pre&gt;, to prevent unruly flowing.  Please be
   sparing with cited text!
  </p>
 <dtml-if noedit>
  <p> <em>Note that you can't change your comments, once submitted.
   See <a href="wikipage_advanced_form">Advanced Actions</a>
   for page policy. </p>
 </dtml-if>

<p>

  <form method="POST"
        action="wikipage_editcomment_handler"
        enctype="multipart/form-data">
  <input type=hidden name=page value="&dtml-getId;">

  <table width="100%" border="0" cellspacing="0" cellpadding="5">
    <tr bgcolor="eeeeee">
      <td colspan=2 align="center">
        <strong> Comment on <dtml-var id size=40>; </strong> <br>
        <textarea wrap="soft" name="comment"
                  rows=7
                  cols=<dtml-var zwiki_width missing=80>
></textarea>
      </td>
    </tr>
    <tr bgcolor="eeeeee">
      <td valign="middle" align="left">
        See <a href="HowDoIEdit" target="_blank">HowDoIEdit</a>
        for help. <br> <dtml-var page_type>
      </td>
      <td valign="middle" align="right">
        <table> <tr>
          <td>
            <input type="checkbox" name="ack_requested" value="ON">
                   Request Editor Remark? &nbsp;
          </td>
          <td>
            <input type="submit"
                   name="Comment"
                   value="Submit Comment">
          </td> </tr> </table>
      </td>
    </tr>
    <tr>
      <td colspan=2 align="center">
        <strong> Citation Source </strong> (For copying - not editable) <br>
        <!-- Readonly *and* onkeydown for bowser diversity: -->
        <textarea wrap="soft" name="text"
                  rows=<dtml-var zwiki_height missing=15>
                  cols=<dtml-var zwiki_width missing=80>
                  readonly
                  onkeydown="this.blur(); return false;"
><dtml-var "prep_citation()"></textarea>
      </td>
    </tr>
  </table>
   </form>
  </dtml-if>
</dtml-let>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_compare_versions.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>

<dtml-let callresults="history_compare_versions(REQUEST['keys'])"
          dt1="callresults[0]"
          dt2="callresults[1]"
          historyComparisonResults="callresults[2]">

<dtml-if historyComparisonResults>
<table>
<tr>
  <td align="left" valign="top">
  <div class="form-label">
Changes to <dtml-var id> as of
  </div>
  </td>
  <td align="left" valign="top">
  <div class="form-text">
<dtml-var dt1 fmt="%Y-%m-%d %H:%M">
  </div>
  </td>
</tr>
<tr>
  <td align="left" valign="top">
  <div class="form-label">
  to get to <dtml-var id> as of
  </div>
  </td>
  <td align="left" valign="top">
  <div class="form-text">
<dtml-var dt2 fmt="%Y-%m-%d %H:%M">
  </div>
  </td>
</tr>
</table>

<br />

<dtml-var historyComparisonResults>

<dtml-else>
<p class="form-text">
This object does not provide comparison support.
</p>
</dtml-if>
</dtml-let>

<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_copyhistory_handler.py ===
## Script (Python) "wikipage_copyhistory_handler"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=REQUEST
##title=
##
keys = REQUEST['keys']
url = context.absolute_url()
context.history_copy_page_to_present(keys)
REQUEST.RESPONSE.redirect('%s' % url)

=== Added File Products/CMFWiki/skins/wiki/wikipage_create_form.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>
<dtml-let noedit="not isAllowed('create')"
          page="REQUEST.get('page')"
          text="REQUEST.get('text', '')">

  <dtml-if noedit> <font color="gray"> </dtml-if>

    <h3> Create <em>&dtml-page;</em> CMFWiki Page </h3>

  <dtml-if noedit> </font> </dtml-if>

  <dtml-if noedit>
    <strong> <dtml-var "whichWho('create')">
      create new pages from <dtml-var "this().getId()">.
    </strong>
  <dtml-else>
    Fill in the text and hit the <em> Create <dtml-var page> </em> button. 
  </dtml-if noedit>

  <form method="POST"
        action="wikipage_create_handler"
        enctype="multipart/form-data">
  <input type=hidden name=page value="&dtml-page;">

  <table width="100%" border="0" cellspacing="0" cellpadding="5">

    <!-- Readonly *and* onkeydown for bowser diversity. -->
    <tr bgcolor=<dtml-if noedit>"pink"<dtml-else>"eeeeee"</dtml-if> >
      <td colspan=2 align="center">
        <textarea wrap="soft" name="text"
                  rows=<dtml-var zwiki_height missing=18>
                  cols=<dtml-var zwiki_width missing=80>
                <dtml-if noedit>
                  readonly
                  onkeydown="this.blur(); return false;"
                </dtml-if>
><dtml-var text html_quote></textarea>
      </td>
    </tr>
    <tr bgcolor=<dtml-if noedit>"pink"<dtml-else>"eeeeee"</dtml-if> >
      <td valign="middle" align="left">
        <br> Format: <em> <dtml-var page_type> </em>
      </td>
     <dtml-if noedit>
      <th valign="middle" align="center">Create Disabled
     <dtml-else>
      <td valign="middle" align="right">
        <input type="submit" name="CreatePage"
         value="Create <dtml-var page size=20>">
     </dtml-if>
      </td>
    </tr>
    <dtml-if "not noedit">
     <tr bgcolor="eeeeee">
       <th colspan=2 align="center"> Log Message </td>
     </tr>
     <tr bgcolor="eeeeee">
       <td colspan=2 align="center">
         <textarea wrap="soft" name="log"
                   rows=3
                   cols=80
></textarea>
       </td>
     </tr>
     <tr bgcolor="eeeeee">
       <td colspan=2>
         Log for landmark changes - enter a note characterizing your
         change.  It will be connected with the page version,
         exposing the version for browsing in the condensed
         <a href="wikipage_history">page history</a>.
       </td>
     </tr>
    </dtml-if> <dtml-comment> "not noedit" </dtml-comment>
  </table>
 </form>
</dtml-let>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_create_handler.dtml ===
<dtml-call expr="create_page( page=REQUEST['page']
                            , text=REQUEST['text']
                            , log=REQUEST['log']
                            )">
<dtml-call expr="REQUEST['RESPONSE'].redirect( absolute_url() +
                     '?portal_status_message=Page+added.' )">


=== Added File Products/CMFWiki/skins/wiki/wikipage_deleterename_handler.py ===
## Script (Python) "wikipage_deleterename_handler"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=REQUEST, RESPONSE
##title=
##
if REQUEST.has_key('Delete'):
    if not REQUEST.get('confirm_delete'):
        raise ValueError, ("You must check the 'confirm delete'"
                           " box to commit the deletion.")
    context.delete()
    url = REQUEST.get('URL2') + '/FrontPage'
    
elif REQUEST.has_key('Rename'):
    url = context.rename(REQUEST.get('new_id'))
    
RESPONSE.redirect('%s' % url)

=== Added File Products/CMFWiki/skins/wiki/wikipage_edit_form.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>

<dtml-let noedit="not isAllowed('edit')">
    <h3>
      <dtml-if noedit> View <dtml-else> Edit </dtml-if>
      <em>&dtml-id;</em> CMFWiki Page
    </h3>
    <dtml-if noedit>
      <strong> You can view the page source, below, but not edit it. </strong>
      (<dtml-var "whichWho(opCategory('edit'))"> edit this page.)
    </dtml-if>

  <dtml-if "not noedit">

    <form method="POST"
          action="wikipage_editcomment_handler"
          enctype="multipart/form-data">
    <input type=hidden name=timeStamp value="&dtml-editTimestamp;">
    <input type=hidden name=page value="&dtml-getId;">

    <table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr bgcolor=<dtml-if noedit>"pink"<dtml-else>"eeeeee"</dtml-if> >
        <td colspan=2 align="center">
          <textarea wrap="soft" name="text"
                    rows=<dtml-var zwiki_height missing=18>
                    cols=<dtml-var zwiki_width missing=80>
                  <dtml-if noedit>
                    readonly
                    onkeydown="this.blur(); return false;"
                  </dtml-if> ><dtml-var text html_quote></textarea>
        </td>
      </tr>
      <tr bgcolor=<dtml-if noedit>"pink"<dtml-else>"eeeeee"</dtml-if> >
        <td valign="middle" align="left">
          <br> Format: <em> <dtml-var page_type> </em>
        </td>
       <dtml-if noedit>
        <th valign="middle" align="center"> Edit Disabled
       <dtml-else>
        <td valign="middle" align="right">
          <input type="submit"
                 name="edit"
                 value="Edit <dtml-var id size=20>">
       </dtml-if>
        </td>
      </tr>
      <dtml-if "not noedit">
       <tr bgcolor="eeeeee">
         <th colspan=2 align="center"> Log Message </td>
       </tr>
       <tr bgcolor="eeeeee">
         <td colspan=2 align="center">
           <textarea wrap="soft" name="log"
                     rows="3"
                     cols="80"></textarea>
         </td>
       </tr>
       <tr bgcolor="eeeeee">
         <td colspan=2>
           Log for landmark changes - enter a note characterizing your
           change.  It will be connected with the page version,
           exposing the version for browsing in the condensed
           <a href="wikipage_history">page history</a>.
         </td>
       </tr>
      </dtml-if> <dtml-comment> "not noedit" </dtml-comment>
    </table>
   </form>
  </dtml-if>
</dtml-let>
<dtml-var standard_html_footer>



=== Added File Products/CMFWiki/skins/wiki/wikipage_editcomment_handler.py ===
## Script (Python) "wikipage_editcomment_handler"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=REQUEST, RESPONSE
##title=
##
text = None
type = None
title = ''
mode = None
comment = None
log = None
ack_requested = None
timeStamp = REQUEST.get('timeStamp', None)

if REQUEST.has_key('comment'):
    comment = REQUEST['comment']
    ack_requested = REQUEST.get('ack_requested', None)
    context.comment(comment, ack_requested)
else:
    text = REQUEST['text']
    log = REQUEST.get('log', '')
    context.edit(text=text,type=type, title=title,log=log,timeStamp=timeStamp)

RESPONSE.redirect('%s' % context.absolute_url())

=== Added File Products/CMFWiki/skins/wiki/wikipage_header.dtml ===
<dtml-let history="getTypeInfo().getActionById( 'history' )">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <small>
        <dtml-var id size=30> page of
        <dtml-with aq_parent> <dtml-var id size=25> </dtml-with>
      </small>
    </td>
    <td align="right">
        <small>
          Last 
          <a href="&dtml-history;">edited</a>
            <dtml-if last_editor> by <b><dtml-var last_editor></b> </dtml-if>
          on <dtml-var bobobase_modification_time fmt=aCommon> </small>
      </small>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr align="left" bgcolor="#eeeeee">
    <td>
      <dtml-var "wiki_context(REQUEST, with_siblings=0)">
    </td>
  </tr>
</table>
</dtml-let>


=== Added File Products/CMFWiki/skins/wiki/wikipage_history.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>

<dtml-let mode="REQUEST.get('mode', 'condensed')"
     batchsize="_.int(REQUEST.get('HistoryBatchSize', 30))"
         first="_.int(REQUEST.get('first_transaction', 0))"
          last="first + batchsize"
  transactions="this().get_page_history(mode=mode, batchsize=batchsize,
                                        first=first, last=last)"
          more="_.len(transactions) >= batchsize"
        noedit="not isAllowed('edit')">

<h3> &dtml-id; &dtml.capitalize-mode; Change History </h3>

This is a &dtml-mode; record of &dtml-id;'s historical versions.  You
can view old versions by clicking on the links<dtml-if noedit> and
view difference-style comparisons between them.  <dtml-else>, view
difference-style comparisons between them, and bring copies of old
versions out of the past to serve as the current one.</dtml-if>

<p>
<dtml-if "mode == 'condensed'">
  This condensed listing omits "interim" versions: versions of the
  page that lack a log message, and that were replaced with a new
  version by the same editor, within thirty minutes after the edits
  were committed.

  <p> You can visit
  <a href="wikipage_history?mode=complete&first_transaction=&dtml-first;">
  the complete listing</a>, instead of this &dtml-mode; one.
<dtml-else "mode == 'condensed'">
  You can also visit <a href="wikipage_history">a
  condensed listing</a>, which omits intermediate page versions.
</dtml-if>

<form action="&dtml-absolute_url;" method="POST">

<table>

  <dtml-if first>       
     <tr>
      <td colspan=3 align=center>
        <dtml-let next="_.max(first-batchsize, 0)">
          <a href="&dtml-URL;?mode=&dtml-mode;&first_transaction:int=&dtml.-next;&HistoryBatchSize:int=&dtml.-batchsize;">
            (More Recent Revisions -
             ...<dtml-var "transactions[0]['tacked_on_index']">)
          </a>
        </dtml-let>
     </td></tr>
  </dtml-if>

  <dtml-in transactions mapping>
    <tr>
      <td align="right" valign="top" NOWRAP>
        <font color="gray">-<dtml-var tacked_on_index></font>
      </td>
      <td valign="top">
        <input type="checkbox" value="&dtml-key;" name="keys:list">
      </td>
      <td valign="top">
          <dtml-if "tacked_on_index == 0">
            <strong>(Current)</strong> </dtml-if>
          <a href="&dtml-absolute_url;/HistoricalRevisions/&dtml-key;">
             <dtml-var time fmt=Mon> 
             <dtml-var time fmt=day>
             <dtml-var time fmt=Time>
             <dtml-if user_name>&dtml-user_name;</dtml-if>
          </a>
          <dtml-let descr="_.string.split(description, '\012\012')">
            <font color="gray"> <dtml-var "descr[0]"> </font>
            <dtml-in "descr[1:]">
              <br><dtml-var sequence-item html_quote>
            </dtml-in>
          </dtml-let>
          <dtml-if revision><br>Revision: <em>&dtml-revision;</em></dtml-if>
      </td>
    </tr>
  </dtml-in>

  <dtml-if more>
     <tr>
      <td colspan=3 align=center>
        <dtml-with expr="_(newlast=first+batchsize)">
            <a href="manage_UndoForm?first_transaction:int=&dtml.-last;&HistoryBatchSize:int=&dtml.-batchsize;">
            <a href="&dtml-URL;?mode=&dtml-mode;&first_transaction:int=&dtml.-last;&HistoryBatchSize:int=&dtml.-batchsize;">
               (Less Recent Revisions - 
                <dtml-var "transactions[-1]['tacked_on_index']">...)
        </dtml-with>
     </td></tr>
  </dtml-if>

    <tr>
      <td> &nbsp; </td>
      <td> &nbsp; </td>
      <td>
        <input type="submit" name="wikipage_compare_versions:method"
               value="Compare">
       <dtml-if "not noedit">
         &nbsp; &nbsp;
         <input type="submit" name="wikipage_copyhistory_handler:method"
                value="Copy to present">
       </dtml-if>
      </td>
    </tr>

  </table>
  </form>
</dtml-let>

<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_icon.gif ===
  <Binary-ish file>

=== Added File Products/CMFWiki/skins/wiki/wikipage_recentchanges.py ===
## Script (Python) "wikipage_recentchanges"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
context.REQUEST['RESPONSE'].redirect(
   '%s/wiki_recentchanges' % context.aq_parent.absolute_url() )

=== Added File Products/CMFWiki/skins/wiki/wikipage_reparent_handler.py ===
## Script (Python) "wikipage_reparent_handler"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=REQUEST
##title=
##
#from Products.PythonScripts.standard import special_formats

parents = REQUEST.get('parents')
context.reparent(parents)

REQUEST.RESPONSE.redirect('%s' % context.absolute_url())

=== Added File Products/CMFWiki/skins/wiki/wikipage_toc.dtml ===
<dtml-var standard_html_header>
<dtml-let callresults="wiki_map()"
          nesting="callresults[0]"
          singletons="callresults[1]">
<h3><i>&dtml-getId;</i> Contents</h3>
<p>
<!-- this should really not depend on nesting coming back as HTML,
but I don't have time to fix it right now - chrism -->
<dtml-var nesting> 
</p>
<p>
<font size="+1"><b><i>&dtml-getId;</i> Singletons</b></font>
(no parents and no offspring):
<ul>
<dtml-in singletons>
<a href="&dtml-sequence-item;"
   name="&dtml-sequence-item;">&dtml-sequence-item;</a>
</dtml-in>

</ul>
</dtml-let>
<dtml-var standard_html_footer>


=== Added File Products/CMFWiki/skins/wiki/wikipage_view.dtml ===
<dtml-var standard_html_header>
<dtml-var wikipage_header>
<dtml-var render>
<dtml-var standard_html_footer>

=== Removed File Products/CMFWiki/skins/wiki/DTML_wiki_copy_page_to_present.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/PSCOREDUMPS_wiki_copy_page_to_present_handler.py ===

=== Removed File Products/CMFWiki/skins/wiki/UNUSED_search_this_wiki.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/UNUSED_show_wiki_search_results.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/add_wiki_comment.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/add_wiki_page_handler.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/advanced_wiki_actions.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/all_wiki_pages.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/folder_get_wiki_toc.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/get_wiki_front_page.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/get_wiki_toc.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/index_html.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/page_recent_wiki_changes.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/recent_wiki_changes.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/standard_wiki_footer.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/standard_wiki_header.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/standard_wiki_page.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/title_prefix.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/view_wiki_backlinks.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/view_wiki_backlinks_new.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/view_wiki_help.stx ===

=== Removed File Products/CMFWiki/skins/wiki/view_wiki_history.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/view_wiki_page.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_advanced_handler.py ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_compare_versions.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_copy_page_to_present_handler.py ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_create_handler.py ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_createform.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_createform_with_doalternate.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_deleterename_handler.py ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_editcomment_handler.py ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_editform.dtml ===

=== Removed File Products/CMFWiki/skins/wiki/wiki_reparent_handler.py ===

=== Removed File Products/CMFWiki/skins/wiki/wikipageicon.gif ===