[pypy-commit] buildbot sort-nightly-directories: skeleton class for 'sort by last mod time'

mattip noreply at buildbot.pypy.org
Thu Mar 21 05:19:27 CET 2013


Author: Matti Picus <matti.picus at gmail.com>
Branch: sort-nightly-directories
Changeset: r749:da80658bb619
Date: 2013-03-20 20:26 -0700
http://bitbucket.org/pypy/buildbot/changeset/da80658bb619/

Log:	skeleton class for 'sort by last mod time'

diff --git a/bot2/pypybuildbot/pypylist.py b/bot2/pypybuildbot/pypylist.py
--- a/bot2/pypybuildbot/pypylist.py
+++ b/bot2/pypybuildbot/pypylist.py
@@ -103,6 +103,19 @@
     def display_in_italic(self):
         return self.vcs == 'latest'
 
+class PyPyDirectory(object):
+    def __init__(self, filename):
+        self.filename = filename
+        try:
+            self.parse_filename()
+        except ValueError:
+            self.last_mod_time = 0
+
+    def parse_filename(self):
+        raise ValueError
+
+    def key(self):
+        return (self.last_mod_time)
 
 class PyPyList(File):
 


More information about the pypy-commit mailing list