Package: zope-zwiki
Version: 0.37.0-2
Severity: wishlist

Zwiki's mail-out functionality only sends out changes to the pages
SandBox and TestPage to their direct subscribers.  These changes are
not sent to subscribers to the whole Wiki.

In some environments, Wikis are set up with "garden gate" security:
for example, pages labelled "Private" will not be read by those who
do not know they're supposed to read them.  This patch applies the
same handling to mail-out of pages whose names contain Private as
is currently applied to SandBox and TestPage.

Also, it provides a wiki-wide property of an absolute wiki-wide
subscription, suitable for site administrators who want to log or track
all changes.

--- zope-zwiki-0.37.0/ZWiki/Mail.py     2005-01-02 18:42:19.000000000
-0500
+++ Mail.py     2005-01-08 22:54:45.000000000 -0500
@@ -45,7 +45,10 @@
             else:
                 return []
         else:
-            return list(self.subscriber_list)
+           if hasattr(self.folder(),'complete_subscriber_list'):
+               return 
list(self.subscriber_list)+stripList(self.folder().complete_subscriber_list)
+           else:
+                return list(self.subscriber_list)
 
     def _setSubscribers(self, subscriberlist, parent=0):
         """
@@ -598,7 +601,7 @@
         if not text: return
         to = None
         recipients = self.subscriberList()
-        if not self.title_or_id() in self.quietPages():
+        if not ((self.title_or_id() in self.quietPages()) or 
(self.title_or_id().find('Private') != -1)):
             recipients += self.wikiSubscriberList()
             to = ';'
         recipients = self.emailAddressesFrom(recipients)


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages zope-zwiki depends on:
ii  debconf [debconf-2.0]         1.4.41     Debian configuration management sy
ii  zope                          2.6.4-1.6  Open Source Web Application Server

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to