[Python-checkins] devinabox: Tweak the base class.

brett.cannon python-checkins at python.org
Mon Feb 28 23:03:51 CET 2011


brett.cannon pushed fb4d6ba4ed64 to devinabox:

http://hg.python.org/devinabox/rev/fb4d6ba4ed64
changeset:   33:fb4d6ba4ed64
user:        Brett Cannon <brett at python.org>
date:        Sat Feb 26 21:52:49 2011 -0800
summary:
  Tweak the base class.

files:
  make_a_box.py

diff --git a/make_a_box.py b/make_a_box.py
--- a/make_a_box.py
+++ b/make_a_box.py
@@ -54,6 +54,12 @@
         """Directory to put everything."""
         raise NotImplementedError
 
+    @abc.abstractproperty
+    def size(self):
+        """Roughly how big will the thing being provided be."""
+
+    # docs points to any documentation index for the provider
+
     def _prompt(self, message):
         """Prompt the user to perform an action, waiting for a response."""
         input("{} [press Enter when done]".format(message))
@@ -66,10 +72,6 @@
     def build(self):
         """Optional step to "build" something."""
 
-    def update(self):
-        """Update what is provided."""
-        pass
-
 
 class HgProvider(Provider):
 

--
Repository URL: http://hg.python.org/devinabox


More information about the Python-checkins mailing list