[Checkins] SVN: grokui.admin/trunk/src/grokui/admin/interfaces.py Populate SecurityNotifier interface.

Uli Fouquet uli at gnufix.de
Tue Dec 23 06:07:49 EST 2008


Log message for revision 94277:
  Populate SecurityNotifier interface.

Changed:
  U   grokui.admin/trunk/src/grokui/admin/interfaces.py

-=-
Modified: grokui.admin/trunk/src/grokui/admin/interfaces.py
===================================================================
--- grokui.admin/trunk/src/grokui/admin/interfaces.py	2008-12-23 11:04:24 UTC (rev 94276)
+++ grokui.admin/trunk/src/grokui/admin/interfaces.py	2008-12-23 11:07:48 UTC (rev 94277)
@@ -14,8 +14,41 @@
 """Interfaces for the admin UI."""
 
 from zope.interface import Interface
+from zope.schema import TextLine, Bool
 
 class ISecurityNotifier(Interface):
     """A notifier the looks up security warnings somewhere.
     """
 
+    lookup_url = TextLine(
+        title=u"Lookup URL",
+        description=u"URL to use when doing lookups",
+        required=True,
+        default=u'http://grok.zope.org/releasinfo/'
+        )
+        
+    enabled = Bool(
+        title=u"Enabled",
+        description=u"Notifier instance is enabled or disabled",
+        required=True,
+        default=False
+        )
+    
+    def enable():
+        """Enable security notifications.
+        """
+
+    def disable():
+        """Disable security notifications.
+        """
+
+    def getNotification():
+        """Get the current security notification.
+        """
+
+    def setLookupURL(url):
+        """Set the url to lookup notifications.
+
+        Beside HTTP all protocols supported by `urllib2` like
+        ``file://`` should be supported.
+        """



More information about the Checkins mailing list