Submitted by : Bill Page at: 2005-01-24T21:29:19+00:00 (12 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

If the page type of an issue is changed to Plain Text, then no category, severity, status, ... fields appear on the page. It is necessary to change the page type to something else in order to change status etc.

The Plain text format is desireable for handling difficult formatting of emails.

patch to plaintext.py --Bill Page, Tue, 25 Jan 2005 01:02:32 -0800 reply

The following patch adds the IssueForm? to pages of type Plain text:

diff --exclude='*.pyc' -Naur test/Products/ZWiki/pagetypes/plaintext.py main/Products/ZWiki/pagetypes/plaintext.py
--- test/Products/ZWiki/pagetypes/plaintext.py  2004-11-17 14:57:59.000000000 -0600
+++ main/Products/ZWiki/pagetypes/plaintext.py  2005-01-25 01:47:04.000000000 -0600
@@ -18,6 +18,8 @@

     def render(self, page, REQUEST={}, RESPONSE=None, **kw):
         t = page.preRendered()
+        if page.isIssue() and kw.get('show_issueproperties',1):
+            t = page.addIssueFormTo(t)
         t = page.renderMidsectionIn(t,**kw)
         t = page.addSkinTo(t,**kw)
         return t

sister --Thu, 07 Jul 2005 17:45:02 -0700 reply

submitted the patch to darcs --betabug, Fri, 23 Feb 2007 12:43:32 +0000 reply

Status: open => closed

works fine on my test system