[CMF-checkins] CVS: CMF/CMFWiki/skins/wiki_plone - README.txt:1.1 wiki_allpages.pt:1.1 wiki_icon.gif:1.1 wiki_recentchanges.pt:1.1 wiki_toc.pt:1.1 wikipage_advanced_form.pt:1.1 wikipage_backlinks.pt:1.1 wikipage_comment_form.pt:1.1 wikipage_compare_versions.pt:1.1 wikipage_create_form.pt:1.1 wikipage_edit_form.pt:1.1 wikipage_header.pt:1.1 wikipage_history.pt:1.1 wikipage_icon.gif:1.1 wikipage_toc.pt:1.1 wikipage_view.pt:1.1

Alexander Limi cvs-admin at zope.org
Sat Oct 25 01:36:15 EDT 2003


Update of /cvs-repository/CMF/CMFWiki/skins/wiki_plone
In directory cvs.zope.org:/tmp/cvs-serv24400/skins/wiki_plone

Added Files:
	README.txt wiki_allpages.pt wiki_icon.gif 
	wiki_recentchanges.pt wiki_toc.pt wikipage_advanced_form.pt 
	wikipage_backlinks.pt wikipage_comment_form.pt 
	wikipage_compare_versions.pt wikipage_create_form.pt 
	wikipage_edit_form.pt wikipage_header.pt wikipage_history.pt 
	wikipage_icon.gif wikipage_toc.pt wikipage_view.pt 
Log Message:
This is just the original Plone skin for CMFWiki, it works well, 
but is not going to be part of Plone Core anymore. I'm donating it to 
whoever wants to maintain it. I hope I'm not being rude when I check 
this into the CMF repository. It's not hooked up to anything yet, but
can easily be in the Install.py - check if the site is a Plone site,
and install this skin if it is.

Feel free to contact me if you have any questions.

-- Alexander Limi, 25. Oct 2003
   http://www.plonesolutions.com


=== Added File CMF/CMFWiki/skins/wiki_plone/README.txt ===
This is just the original Plone skin for CMFWiki, it works well, 
but is not going to be part of Plone Core anymore. I'm donating it to 
whoever wants to maintain it. I hope I'm not being rude when I check 
this into the CMF repository. It's not hooked up to anything yet, but
can easily be in the Install.py - check if the site is a Plone site,
and install this skin if it is.

Feel free to contact me if you have any questions.

-- Alexander Limi, 25. Oct 2003
   http://www.plonesolutions.com


=== Added File CMF/CMFWiki/skins/wiki_plone/wiki_allpages.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main"
     tal:define="pages python: here.wiki_listpages( sort_order='id' )"
>

<h1> All Pages </h1>

<p> All pages in this CMFWikiWeb.  See also
    <a href="wiki_recentchanges">Recent Changes</a>.
</p>

<table class="listing">

 <tr>
  <th align="left">Page</th>
  <th align="left">Size</th>
  <th align="left">Last modified</th>
 </tr>

 <tr tal:repeat="page pages">

  <td>
   <a href="PageID"
      tal:attributes="href page/getId"
      tal:content="page/getId"
   >PageID</a>
  </td>
  <td align="right" tal:content="page/getSize">
    1234
  </td>
  <td tal:content="page/bobobase_modification_time">
    2001/01/01 08:00:00 CST
  </td>
 </tr>
</table>

<p> (<span tal:content="python: len( pages )">123</span> pages) </p>


</div>

</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wiki_icon.gif ===
  <Binary-ish file>

=== Added File CMF/CMFWiki/skins/wiki_plone/wiki_recentchanges.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main"
     tal:define="pages python: here.wiki_listpages( sort_order='modified' )">

<h1> <span tal:replace="here/getId">PageID</span> Changes </h1>

<p> Wiki page changes, most recent to least.  See also
    <a href="wiki_allpages">All Pages</a>.
</p>

<table class="listing">

  <tr>
    <th align="left"> Page </th>
    <th align="left"> Size </th>
    <th align="left"> By </th>
    <th align="left"> Modified </th>
  </tr>


  <tbody tal:repeat="page pages">

    <tr>

     <td>
      <a href="PageID"
         tal:attributes="href page/getId"
         tal:content="page/getId"
      >PageID</a>
     </td>
     <td align="left" tal:content="page/getSize">
       1234
     </td>
     <td tal:content="python: (page.last_editor or page.Creator())[:15]">
        LAST EDITOR
     </td>
     <td tal:content="python: page.bobobase_modification_time().aCommon()">
       2001/01/01 08:00:00 CST
     </td>
    </tr>
    <tr tal:condition="page/last_log">
      <td colspan="4">
        <font color="gray">
          <span tal:replace="python: page.last_log[:70]"> LAST LOG </span>
        </font>
      </td>
    </tr>
  </tbody>
</table>

<p> (<span tal:content="python: len( pages )">123</span> pages) </p>


</div>

</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wiki_toc.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>

<div metal:fill-slot="main"
     tal:define="callresults here/FrontPage/wiki_map;
                 nesting     python: callresults[0];
                 singletons  python: callresults[1];
                ">

    <h1> <span tal:replace="here/getId">PageID</span> contents</h1>

    <!-- this should really not depend on nesting coming back as HTML,
         but I don't have time to fix it right now - chrism
      -->
    <p tal:content="structure nesting"> Nesting goes here. </p>

    <h1><span tal:replace="here/getId">PageID</span> singletons</h1>

    <small>(singletons have no parents and no offspring)</small>

    <ul>
     <li tal:repeat="single singletons">
      <a href="single"
         name="single"
         tal:attributes="href single; name single"
         tal:content="single" >single</a>
     </li>
    </ul>

</div>

</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_advanced_form.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>

<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">

    <div tal:replace="structure here/wikipage_header">
    </div>

</div>

<div metal:fill-slot="main"
     tal:define="global pgowners
                   python: ( modules['string'].join( here.page_owners() )
                                or 'Anonymous User' )">

    <div tal:condition="not: wiki_header_present|nothing">
      <span tal:condition="nothing"> In case master has no "header" macro. </span>
      <div tal:replace="structure here/wikipage_header"> </div>
    </div>

    <table>

     <tr>
      <th align="left" bgcolor="ffffcc">
          <em tal:content="here/getId"> PageID </em> Attributes
      </th>
     </tr>

     <tr>
      <td colspan="2">

        <table width="100%">

         <tr>

          <th> Name: </th>
          <td tal:content="here/getId"> PageID </td>

          <th> Local Owner(s): </th>
          <td tal:content="pgowners"> owners </td>

         </tr>
         <tr>
          <th> Type: </th>
          <td tal:content="here/page_type"> page_type </td>
         </tr>
        </table>

      </td>
     </tr>

     <tr>
      <th align="left" bgcolor="ffffcc">
          <em tal:content="here/getId"> PageID </em> Rename and Delete
      </th>
     </tr>

     <tr>
      <td tal:define="isFP    python: here.getId() == 'FrontPage';
                      mover   python: here.isAllowed( 'move' );
                      showRD  python: mover and not isFP;
                     ">
       <span tal:condition="isFP">
        <font color="gray"> No Delete or Rename forms for FrontPage - it
                            can not be removed.
        </font>
       </span>

       <span tal:condition="python: not mover">
            You can not rename or delete this page.
            <span tal:replace="python: here.whichWho('move')">
            movers </span> do so.
       </span>

       <table width="100%" cellspacing="7" tal:condition="showRD" >
        <tr>


         <td width="50%" nowrap="nowrap" bgcolor="eeeeee">

           Rename <strong tal:content="here/getId">PageID</strong> to: <br/>

           <form method="POST"
                 action="wikipage_deleterename_handler"
                 enctype="multipart/form-data"
		 tal:attributes="action string:${here/getId}/wikipage_deleterename_handler">

           <input type="text" name="new_id" size="25"
                  tal:attributes="value here/getId" /> &nbsp;

           <input type="submit" name="Rename" value="Rename" />

           </form>

         </td>


         <td align="center" width="50%" nowrap="nowrap" bgcolor="eeeeee">

           <form method="POST"
                 action="wikipage_deleterename_handler"
                 enctype="multipart/form-data"
		 tal:attributes="action string:${here/getId}/wikipage_deleterename_handler">

           <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" />

           </form>

         </td>

        </tr>
       </table>

      </td>
     </tr>

     <tr>
      <th align="left" bgcolor="ffffcc">
          <em tal:content="here/getId"> PageID </em> Regulations
      </th>
     </tr>

     <tr>
      <td>
       <p> 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 <span tal:condition="here/isRegSetter"> set </span>
           <span tal:condition="python: not here.isRegSetter()"> see </span>
           the page regulations below.</p>

       <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"
	     tal:attributes="action string:${here/getId}/wikipage_advanced_handler">

        <table class="group">
         <tr>

          <td><br/></td>

          <th tal:repeat="op here/regOps"
              tal:content="python: modules['string'].capitalize( op )" >
            Operation
          </th>

         </tr>

         <tr>

          <td> <br/> </td>

          <td align="center" valign="top"
              tal:repeat="op here/regOps"
          >
           <font size="-1"
                   tal:content="python: here.wikipage_regop_description( op )"
           >
              Operation description
           </font>
          </td>
         </tr>

         <tr>

          <th align="right" valign="bottom">
                Role categories:
          </th>

          <td align="center" valign="middle"
              tal:repeat="op here/regOps">

           <select size="1"
                   tal:attributes="name python: '%s-category:string' % op;
                                   disabled python: not here.isRegSetter();
                                  "
                   tal:define="opcat python: here.opCategory( op )"
           >
            <option tal:repeat="cat here/regCategories"
                    tal:attributes="value cat;
                                    selected python: cat == opcat;
                                   "
                    tal:content="python: modules['string'].capitalize( cat )"
            >
             Category
            </option>
           </select>
          </td>
         </tr>

         <tr>

          <th align="right" valign="middle">
              Additional allowed users:
          </th>

          <td align="center"
              tal:repeat="op here/regOps"
          >
           <textarea rows="2" cols="8"
                     name="usernames:lines"
                     tal:attributes="name python: '%s-usernames:lines' % op;
                                     readonly here/isRegSetter;
                                     onkeydown python: ( not here.isRegSetter()
                                                    and 'this.blur();; return false'
                                                     or nothing
                                                       )
                                       "
                        tal:content="python: modules['string'].join(
                                       here.opUsernames( op ), '\n' )"
                ></textarea>
            </td>
          </tr>

          <tr>

           <th align="right" valign="middle">
              Propagate to offspring:
           </th>

           <td align="center"
               tal:repeat="op here/regOps"
           >
            <input type="hidden"
                   name="propagate-op:default"
                   value="off"
                   tal:attributes="name python: 'propagate-%s:default' % op"
            />
            <input type="checkbox"
                   name="propagate-op"
                   value="on"
                   tal:attributes="name python: 'propagate-%s' % op;
                                   readonly here/isRegSetter;
                                   onkeydown python: ( not here.isRegSetter()
                                                 and 'this.blur();; return false'
                                                  or nothing
                                                     )
                                  "
            />
           </td>

          </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"
                tal:define="sub here/subOwner">

              <span tal:repeat="who python: ('creator','original_owner','both')">
               <input type="radio" name="who_owns_subs"
                      value="owner"
                      tal:attributes="value who;
                                      disabled python: not here.isRegSetter();
                                      checked python: who == sub;
                                     "
               />
               <span tal:replace="python: here.wikipage_owners_description( who )">
                  Owner description.  </span>
               <br/>
              </span>
           </td>

          </tr>

          <tr tal:condition="here/isRegSetter">
           <td colspan="5"> <hr/> </td>
          </tr>

          <tr tal:condition="here/isRegSetter">
            <td align="right" colspan="3">
              <input type="submit"
                     class="context"
                     name="regulate"
                     value="Set Regulations"
                     tal:attributes="value string:Set ${here/getId} Regulations"
              />
            </td>
            <td colspan="2"><br/></td>
          </tr>

        </table>
       </form>

      </td>
     </tr>
    </table>


</div>

</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_backlinks.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>

<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">

    <div tal:replace="structure here/wikipage_header">
    </div>

</div>

<div metal:fill-slot="main"
     tal:define="thispage    here/getId;
                 thisparents here/getParents;
                 mover       python: here.isAllowed( 'move' )">

    <div tal:condition="not: wiki_header_present|nothing">

        <span tal:condition="nothing"> In case master has no "header" macro. </span>
        <div tal:replace="structure here/wikipage_header"> </div>

    </div>

    <h2> Backlinks and Nesting Information </h2>

    <p> <a href="thispage" tal:attributes="href here/wiki_page_url"
        ><span tal:replace="thispage">thispage</span></a>
        is linked to from the following pages:
    </p>

    <p tal:condition="python: not mover">
        <font color="gray"> (You're not allowed to change this page's lineage)
        </font>
    </p>

    <form action="wikipage_reparent_handler">

    <table>

     <tr>
      <th align="left" width="10%"> Parent? </th>
      <th align="left" width="90%"> Backlink </th>
     </tr>

     <tr tal:repeat="link here/backlinks">
      <td> <input type="checkbox"
                  name="parents"
                  value="referrer"
                  tal:attributes="value link/pageid;
                                  checked link/isparent;
                                  disabled python: not mover" />
      </td>
      <td> <a href="../thispage"
              tal:attributes="href python: '%s/%s' % (here.wiki_base_url(),
                                                      link['pageid'])"
              tal:content="link/pageid"
           >referrer</a>
      </td>
     </tr>

     <tr tal:condition="mover">
      <td colspan="2" align="left">
        <input type="submit" class="context" value="Re-parent" />
        <input type="reset"  class="standalone" value="Reset Form" />
      </td>
     </tr>
    </table>
    </form>

    <div tal:replace="nothing">
      No time for this right now, but this is broken - chrism
      <p>
    <a href=""
       name="nesting"
       tal:attributes="href string:../${here/getId}"
       tal:content="here/getId"></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.)</p>

    <span tal:replace="python:here.wiki_context(request, with_siblings=1)" />

    </div>


</div>
</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_comment_form.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>

<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">

    <div tal:replace="structure here/wikipage_header">
    </div>

</div>

<div metal:fill-slot="main">

    <div tal:condition="not: wiki_header_present|nothing">

            <span tal:condition="nothing"> In case master has no "header" macro. </span>
            <div tal:replace="structure here/wikipage_header"> </div>

    </div>

    <div tal:define="commentator python:here.isAllowed('comment', REQUEST=request);
                         editor python:here.isAllowed('edit', REQUEST=request)">

         <h1>Submit a Comment for <span tal:replace="here/getId">page</span> </h1>

         <p tal:condition="python:not commentator">
           <strong> You are not allowed to comment on <span tal:replace="here/getId">
            this page</span>. </strong>
           (<span tal:replace="python:here.whichWho('comment')" /> may add
           a comment to this page.)
         </p>

        <div tal:condition="commentator">

            <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 '&gt;' prefixed citation lines will be bracketed with
                &lt;pre&gt; ... &lt;/pre&gt;, to prevent unruly flowing.  Please be
                sparing with cited text!
            </p>

            <p tal:condition="python:not editor">
                <em>Note that you can't change your comments, once submitted.
                See <a href="wikipage_advanced_form">Advanced Actions</a>
                for page policy. </em> </p>

            <form method="post"
                  class="group"
                  action="wikipage_editcomment_handler"
                  enctype="multipart/form-data"
	          tal:attributes="action string:${here/getId}/wikipage_editcomment_handler">

                <span class="legend">Comment details</span>

                <input type="hidden" name="page" tal:attributes="value here/getId" />

                <strong> Enter your comment on <span tal:replace="python: here.getId()[:40]">
                         page </span> </strong>

                Format: <strong tal:content="here/page_type"> page_type </strong>

                (See <a href="HowDoIEdit" target="_blank">HowDoIEdit</a>
                for help.)


                <br />
                <textarea wrap="soft" name="comment"
                          rows="7" cols="80"
                          tal:attributes="cols request/zwiki_width missing | default"
                ></textarea>

                <p>

                    <input type="submit"
                           class="context"
                           name="Comment"
                           value="Submit Comment" />

                    <input type="checkbox"
                           class="noborder"
                           name="ack_requested"
                           value="on" />
                           Request Editor Remark?

                </p>


            </form>

            <strong> Citation Source </strong> (You can copy from this text field into your comment - it's not editable) <br>
            <!-- Readonly *and* onkeydown for browser diversity: -->
            <textarea wrap="soft" name="text"
                      rows="15" cols="80" readonly="readonly"
                      onkeydown="this.blur(); return false;"
                      tal:attributes="rows request/zwiki_height | default;
                                      cols request/zwiki_width  | default"
                      tal:content="here/prep_citation"></textarea>

        </div>

    </div>

</div>

</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_compare_versions.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">
  <div tal:replace="structure here/wikipage_header">
  </div>
</div>

<metal:block fill-slot="main"
       tal:define="callresults python:here.history_compare_versions(request.get('keys',''));
          dt1 python:callresults[0];
          dt2 python:callresults[1];
          historyComparisonResults python:callresults[2];">

<table tal:condition="historyComparisonResults">
<tr>
  <td align="left" valign="top">
Changes to <span tal:replace="here/getId" /> as of
  </td>
  <td align="left" valign="top">
<span tal:replace="python:dt1.strftime('%Y-%m-%d %H:%M')" />
  </td>
</tr>
<tr>
  <td align="left" valign="top">
  to get to <span tal:replace="here/getId" /> as of
  </td>
  <td align="left" valign="top">
<span tal:replace="python:dt2.strftime('%Y-%m-%d %H:%M')" />
  </td>
</tr>
</table>

<br />

<span tal:condition="historyComparisonResults"
         tal:replace="structure historyComparisonResults" />

<p tal:condition="not:historyComparisonResults">
This object does not provide comparison support.
</p>

</metal:block>
</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_create_form.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">

<metal:block metal:fill-slot="base">
  <base href="" tal:attributes="href string:${here/absolute_url}/" />
</metal:block>

<body>

<div metal:fill-slot="header"
     tal:define="global noedit python: not here.isAllowed('create');
                 global page request/page|nothing;
		         global text python:request.get('text', '');">

    <div tal:replace="structure here/wikipage_header">
    </div>

</div>

<div metal:fill-slot="main">

    <form method="post"
          action="wikipage_create_handler"
    	  enctype="multipart/form-data">

        <input type="hidden" name="page" value="page" tal:attributes="value page"/>

        Format: <span tal:replace="here/page_type">page type</span><br />

        <textarea name="text"
                  rows="20"
		          tal:attributes="readonly python:test(noedit, 'readonly', None);"
                  tal:content="text">wiki content</textarea>


        <span tal:condition="noedit">Create Disabled</span>

        <input type="submit"
               class="context"
               name="CreatePage"
               value="#"
               tal:attributes="value string: Create $page"
	           tal:condition="not: noedit" />

        <div tal:condition="not: noedit">

            <strong>Log Message</strong> <br />
	        <textarea name="log"></textarea>

	        <p>
            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>.
	        </p>
        </div>

    </form>

</div>

</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_edit_form.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">
  <div tal:replace="structure here/wikipage_header">
  </div>
</div>

<div metal:fill-slot="main"
     tal:define="editor python:here.isAllowed( 'edit' )">

    <div tal:condition="not: wiki_header_present|nothing">

        <span tal:condition="nothing"> In case master has no "header" macro. </span>
        <div tal:replace="structure here/wikipage_header"> </div>
    </div>

    <h1>
        <span tal:condition="python: not editor"> View </span>
        <span tal:condition="editor"> Edit </span>
        the <span tal:content="here/getId"> PageName </span> wiki page
    </h1>

    <p tal:condition="python: not editor">
        <strong> You can view the page source, below, but not edit it. </strong>
        (<span tal:replace="python: here.whichWho('edit')" />
        edit this page.)
    </p>

    <div tal:condition="editor">

        <form method="POST"
              action="wikipage_editcomment_handler"
              enctype="multipart/form-data"
	      tal:attributes="action string:${here/getId}/wikipage_editcomment_handler">

            <input type="hidden" name="timeStamp"
                   tal:attributes="value here/editTimestamp" />
            <input type="hidden" name="page"
                   tal:attributes="value here/getId" />

            <p>Format: <strong tal:content="here/page_type"> page_type </strong></p>

            Title:<br />
            <input name="title"
                   tal:attributes="value here/title" />

            <br />
            Body:<br />
            <textarea wrap="soft" name="text"
                      rows="18" cols="80"
                      tal:attributes="rows request/zwiki_height | default;
                                      cols request/zwiki_width  | default"
                      tal:content="here/text"
                      ></textarea>


              <input type="submit"
                     class="context"
                     name="edit"
                     value="Save"
              />
             <p>Log Message</p>

               <textarea wrap="soft" name="log"
                         rows="3"
                         cols="80"></textarea>

               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>.
        </form>

</div>

</div>
</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_header.pt ===
<tal:block omit-tag="">
<span tal:replace="structure python: here.wiki_context( request, with_siblings=0 )" />

<p>
    <small>
        This is the <span tal:replace="here/id">Id</span>
        page of the
        <span tal:replace="here/aq_parent/id">Parent</span> wiki.
    </small>
</p>

 
<p>
    <small>
        Last 
        <a href="wikipage_history"
           tal:attributes="href python: here.wiki_page_url() + '/' +
                                here.getTypeInfo().getActionById( 'history' )">
        edited</a>
        
        <span tal:condition="here/last_editor">
            by <b tal:content="here/last_editor">some editor</b>
        </span>
        
        on 
        
        <span tal:replace="python: here.bobobase_modification_time().aCommon()" />
    </small>
</p>
</tal:block>

=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_history.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">

<body>

<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">

    <div tal:replace="structure here/wikipage_header">
    </div>

</div>

<div metal:fill-slot="main">


    <div tal:condition="not: wiki_header_present|nothing">

        <span tal:condition="nothing"> In case master has no "header" macro. </span>
        <div tal:replace="structure here/wikipage_header"> </div>

    </div>

    <div tal:define="mode python: request.get( 'mode', 'condensed' );
                     editor python: here.isAllowed('edit');
                     b_start python: int( request.get( 'b_start', 0 ) );
                     b_size  python: int( request.get( 'b_size', 20 ) );
                     b_end   python: b_start + b_size;
                     batch   python: here.get_page_history( mode=mode
                                                          , batchsize=b_size
                                                          , first=b_start
                                                          , last=b_end
                                                          );
                     b_more  python: len( batch ) >= b_size">

        <h1>
            <span tal:replace="python: modules['string'].capitalize( mode )">Mode</span>

            Change History for
            <span tal:replace="here/getId">
                Page ID
            </span>
        </h1>

        <p> This is a <span tal:replace="mode">condensed</span> record of
            <span tal:replace="here/getId">Page ID</span>'s historical
            versions.  You can view old versions by clicking on the
            links<span tal:condition="python: not editor"> and view difference-style
            comparisons between them.</span><span tal:condition="editor">, view
            difference-style comparisons between them, and bring copies of old
            versions out of the past to serve as the current one.</span>
        </p>

        <div tal:condition="python: mode=='condensed'">
            <p> 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>
            <p> You can visit <a href="wikipage_history"
                  tal:attributes="href string: wikipage_history?mode=complete"
                >the complete listing</a>, instead of this condensed one.
            </p>
        </div>

        <div tal:condition="python: mode!='condensed'">
          <p>
          You can also visit <a href="wikipage_history">a
          condensed listing</a>, which omits intermediate page versions.
          </p>
        </div>

        <form method="post" tal:attributes="action here/absolute_url">

            <!-- list navigation -->
            <div class="listingBar"
                 tal:condition="python: (b_start > 0) or b_more">
                <span class="previous"
                      tal:condition="python: b_start > 0">

                    <span tal:define="b_prev python: max( b_start-b_size, 0 );
                                      q_mode string:mode=${mode};
                                      q_start string:b_start=${b_prev};
                                      q_size  string:b_size=${b_size};
                                      q       string:${q_mode}&${q_start}&${q_size};
                                     ">
                    <a href="wikipage_history"
                       tal:attributes="href string:wikipage_history?${q}"
                    > &laquo; More Recent Revisions </a>
                    </span>
                </span>

                <span class="next"
                      tal:condition="b_more">
                    <span tal:define="q_mode string:mode=${mode};
                                     q_start string:b_start=${b_end};
                                     q_size  string:b_size=${b_size};
                                     q       string:${q_mode}&${q_start}&${q_size};
                                    ">
                    <a href="wikipage_history"
                       tal:attributes="href string:wikipage_history?${q}"
                    > Less Recent Revisions &raquo; </a>
                    </span>
                </span>
            </div>

            <!-- result listing -->
            <table class="listing">
                <thead>
                    <tr>
                        <th>Index</th>
                        <th>Date/Author</th>
                        <th>Action Performed</th>
                        <th>Log Message</th>
                        <th>Revision</th>
                    </tr>
                </thead>

                <tbody>
                    <tr tal:repeat="trans batch">

                        <td>
                            <!-- Do we want this?
                            <span style="color: gray">-<span tal:replace="trans/tacked_on_index">?</span></span>
                            -->
                            <input type="checkbox"
                                   class="noborder"
                                   name="keys:list"
                                   tal:attributes="value trans/key" />
                        </td>

                        <td>
                            <a href="history"
                              tal:attributes="href
                                string:${here/absolute_url}/HistoricalRevisions/${trans/key}"
                            ><span tal:replace="python: trans['time'].Mon()">Jan</span>
                             <span tal:replace="python: trans['time'].day()">01</span>
                             <span tal:replace="python: trans['time'].Time()">08:00:00</span>
                             by
                             <span tal:condition="trans/user_name"
                                   tal:replace="trans/user_name">user</span>
                            </a>

                            <span tal:condition="python: trans['tacked_on_index'] == 0">
                                <strong>(Current)</strong>
                            </span>
                        </td>

                        <span tal:define="descr python:modules['string'].split( trans['description']
                                                                                 , '\012\012'
                                                                                 )">
                            <td>
                                <span tal:replace="python:descr[0]">method</span>
                            </td>

                            <td>
                                <span tal:repeat="more python:descr[1:]">
                                        <span tal:replace="more" />
                                </span>
                            </td>
                        </span>

                        <td>
                            <span tal:condition="exists: trans/revision"
                                  tal:replace="trans/revision">
                            Revision
                            </span>

                            <span tal:condition="not: exists: trans/revision">
                            &nbsp;
                            </span>
                        </td>
                    </tr>
                </tbody>

            </table>

            <input type="submit"
                   class="context"
                   name="wikipage_compare_versions:method"
                   value="Compare" />
            <span tal:condition="editor">
                 &nbsp; &nbsp;
                 <input type="submit"
                        class="context"
                        name="wikipage_copyhistory_handler:method"
                        value="Copy to present" />
            </span>


        </form>

    </div>

</div>


</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_icon.gif ===
  <Binary-ish file>

=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_toc.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>

<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">

  <div tal:replace="structure here/wikipage_header">
  </div>

</div>

<div metal:fill-slot="main"
     tal:define="callresults here/wiki_map;
                 nesting     python: callresults[0];
                 singletons  python: callresults[1];">


    <div tal:condition="not: wiki_header_present|nothing">
      <span tal:condition="nothing"> In case master has no "header" macro. </span>
      <div tal:replace="structure here/wikipage_header"> </div>
    </div>

    <h1><span tal:replace="here/getId">PageID</span> contents</h1>

    <!-- this should really not depend on nesting coming back as HTML,
         but I don't have time to fix it right now - chrism  -->
    <p tal:content="structure nesting"> Nesting goes here. </p>

    <h1><span tal:replace="here/getId">PageID</span> singletons</h1>

    <small>(singletons have no parents and no offspring)</small>

    <ul>
     <li tal:repeat="single singletons">
      <a href="single"
         name="single"
         tal:attributes="href single; name single"
         tal:content="single" >single</a>
     </li>
    </ul>


</div>

</body>
</html>


=== Added File CMF/CMFWiki/skins/wiki_plone/wikipage_view.pt ===
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
       xmlns:metal="http://xml.zope.org/namespaces/metal"
       metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="header"
     tal:define="global wiki_header_present python:1">
  <div tal:replace="structure here/wikipage_header">
  </div>
</div>

<div metal:fill-slot="main">

<div class="Desktop">

<div tal:condition="not: wiki_header_present|nothing">
  <span tal:condition="nothing"> In case master has no "header" macro. </span>
  <div tal:replace="structure here/wikipage_header"> </div>
</div>

<div tal:replace="structure here/render"> </div>

</div>

</div>
</body>
</html>




More information about the CMF-checkins mailing list