hassanakbar4 / tractive-test

0 stars 0 forks source link

private="yes" still shows "Expires" in footer #302

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 9 years ago

component_Version 2 cli resolution_overtaken by events type_defect | by miek@miek.nl


When using

<rfc private="yes"> the Expires: in the top block is gone, but it still show in the center footer of each page.

The following (untested) patch should fix this:

% diff -u writers/paginated_txt.py.orig writers/paginated_txt.py
--- writers/paginated_txt.py.orig   2015-09-19 12:12:47.891087542 +0100
+++ writers/paginated_txt.py    2015-09-19 12:12:59.931087168 +0100
@@ -184,7 +184,7 @@
             self.left_footer = '%s & %s' % (surnames[0], surnames[1],)
         elif len(surnames) > 2:
             self.left_footer = '%s, et al.' % surnames[0]
-        if self.draft:
+        if self.draft and not self.pis['private']:
             self.center_footer = 'Expires %s' % self.expire_string
         else:
             self.center_footer = self.boilerplate.get(

Issue migrated from trac:302 at 2021-10-20 18:20:52 +0500