------------------------------------------------------------
revno: 6715
committer: Barry Warsaw <[email protected]>
branch nick: restful
timestamp: Wed 2009-04-01 16:22:40 -0500
message:
  Checkpointing restful annotations.
renamed:
  src/mailman/docs/version.txt => src/mailman/docs/system.txt
modified:
  buildout.cfg
  src/mailman/core/system.py
  src/mailman/interfaces/system.py

=== modified file 'buildout.cfg'
--- buildout.cfg        2009-04-01 20:14:24 +0000
+++ buildout.cfg        2009-04-01 21:22:40 +0000
@@ -13,7 +13,7 @@
     argparse
     lazr.config
     lazr.delegates
-    /Users/barry/projects/lazr/lazr.restful
+    lazr.restful
     locknix
     mailman
     munepy

=== modified file 'src/mailman/core/system.py'
--- src/mailman/core/system.py  2009-04-01 20:14:24 +0000
+++ src/mailman/core/system.py  2009-04-01 21:22:40 +0000
@@ -26,7 +26,9 @@
 
 
 import sys
+
 from zope.interface import implements
+from zope.location.interfaces import ILocation
 
 from mailman import version
 from mailman.interfaces.system import ISystem
@@ -34,14 +36,16 @@
 
 
 class System:
-    implements(ISystem)
+    implements(ISystem, ILocation)
 
     @property
     def mailman_version(self):
+        """See `ISystem`."""
         return version.MAILMAN_VERSION_FULL
 
     @property
     def python_version(self):
+        """See `ISystem`."""
         return sys.version
 
 

=== renamed file 'src/mailman/docs/version.txt' => 'src/mailman/docs/system.txt'
=== modified file 'src/mailman/interfaces/system.py'
--- src/mailman/interfaces/system.py    2009-04-01 20:14:24 +0000
+++ src/mailman/interfaces/system.py    2009-04-01 21:22:40 +0000
@@ -25,15 +25,24 @@
     ]
 
 
-from zope.interface import Interface, Attribute
+from lazr.restful.declarations import export_as_webservice_entry, exported
+from zope.schema import TextLine
+
+from mailman.i18n import _
 
 
 
 class ISystem(Interface):
     """Information about the Mailman system."""
 
-    mailman_version = Attribute(
-        """The GNU Mailman version, as a string.""")
-
-    python_version = Attribute(
-        """The version of Python running Mailman, as a string.""")
+    export_as_webservice_entry()
+
+    mailman_version = exported(TextLine(
+        title=_('Mailman version'),
+        description=_('The GNU Mailman version.'),
+        ))
+
+    python_version = exported(TextLine(
+        title=_('Python version'),
+        description=_('The Python version.'),
+        ))



--
Primary development focus
https://code.launchpad.net/~mailman-coders/mailman/3.0

Your team Mailman Checkins is subscribed to branch lp:mailman.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/3.0/+edit-subscription.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to