Yay, here I go again. (Update: and again) There were a few small wrinkles in Synoptic 0.91 (and 0.91.1) for which I felt it warranted to push out a followup release, aptly called 0.91.2. It fixes the following things:
- Depend only on Python 2.4 by reverting to Python Paste’s WSGI httpd.
- Speed up page load by serving all javascript as one big clump.
- Change JS/CSS load order to fix history slider size.
- (new in 0.91.1) unbreak daemon mode in Python2.4
- (new in 0.91.1) launch browser from background thread, to avoid deadlock.
Download from PyPI
I just installed 0.91.4 with easy_install. I have sqlalchemy 0.5.0beta1 which is missing Query.min and Query.max. This fixes the problem for me.
index 775d276..cff1a05 100644
—- a/src/__init__.py
+++ b/src/__init__.py
@@ -285,13 +285,15 @@ class Application(ApplicationBase):
now = time()
from simplejson import dumps
+ from sqlalchemy import asc, desc
return request.respond(
dumps({
- "min": request.dbsession.query(ItemVersion)
- .min(ItemVersion.timestamp),
- "max": max(now, request.dbsession.query(ItemVersion)
- .max(ItemVersion.timestamp)),
- "now": time(),
+ "min": request.dbsession.query(ItemVersion).
+ order_by(asc(ItemVersion.timestamp))[0].timestamp,
+ "max": max(now,
+ request.dbsession.query(ItemVersion).
+ order_by(desc(ItemVersion.timestamp))[0].timestamp),
+ "now": now,
}),
Thanks! I’ve committed this to git. It’ll be in the next release.
Andreas
Post new comment