[Zope-CMF] Coments on Z2.5b1 with CMF and friends

Joseph Wayne Norton norton@alum.mit.edu
Mon, 03 Dec 2001 14:09:46 +0900


Tres -

Here's a tiny patch for this issue.  I made a similiar change a while
back but had never posted this to the collector.

- j

At Sun, 02 Dec 2001 21:17:27 -0500,
Tres Seaver wrote:
> > 
> > CMF Wiki
> > --------
> > Looks good, integrates well. Needs a way to set the Wiki Title w/o using
> > ZMI.
> 
> 
> Yep, this is a peeve of mine as well.  CMFWiki is "unsupported" at the
> moment (and likely to remain so), but I will fix this one just because
> it irritates me.
> 
> 


Index: CMFWiki/skins/wiki/wikipage_editcomment_handler.py
===================================================================
RCS file: /cvs-repository/CMF/CMFWiki/skins/wiki/wikipage_editcomment_handler.py,v
retrieving revision 1.1
diff -c -r1.1 wikipage_editcomment_handler.py
*** CMFWiki/skins/wiki/wikipage_editcomment_handler.py  7 Aug 2001 21:06:31 -0000       1.1
--- CMFWiki/skins/wiki/wikipage_editcomment_handler.py  3 Dec 2001 00:59:41 -0000
***************
*** 9,15 ****
  ##
  text = None
  type = None
! title = ''
  mode = None
  comment = None
  log = None
--- 9,15 ----
  ##
  text = None
  type = None
! title = None
  mode = None
  comment = None
  log = None
***************
*** 22,28 ****
      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())
\ No newline at end of file
--- 22,29 ----
      context.comment(comment, ack_requested)
  else:
      text = REQUEST['text']
+     title = REQUEST.get('title',None)
      log = REQUEST.get('log', '')
!     context.edit(text=text,type=type,title=title,log=log,timeStamp=timeStamp)
  
! RESPONSE.redirect('%s' % context.absolute_url())
Index: CMFWiki/skins/zpt_wiki/wikipage_edit_form.pt
===================================================================
RCS file: /cvs-repository/CMF/CMFWiki/skins/zpt_wiki/wikipage_edit_form.pt,v
retrieving revision 1.3
diff -c -r1.3 wikipage_edit_form.pt
*** CMFWiki/skins/zpt_wiki/wikipage_edit_form.pt        8 Nov 2001 20:56:12 -0000       1.3
--- CMFWiki/skins/zpt_wiki/wikipage_edit_form.pt        3 Dec 2001 00:59:41 -0000
***************
*** 41,46 ****
--- 41,55 ----
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr bgcolor="eeeeee">
          <td colspan="2" align="center">
+           <textarea wrap="soft" name="title"
+                     rows="1" cols="80"
+                     tal:attributes="cols request/zwiki_width  | default"
+                     tal:content="here/title"
+                   ></textarea>
+         </td>
+       </tr>
+       <tr bgcolor="eeeeee">
+         <td colspan="2" align="center">
            <textarea wrap="soft" name="text"
                      rows="18" cols="80"
                      tal:attributes="rows request/zwiki_height | default;