Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reports Portlet 1.2

git-svn-id: http://zenpacks.zenoss.org/svn/zenpacks@355 db08cffe-75b9-45d1-af1a-46ad9ef135f6
  • Loading branch information...
commit 036ab57b86aa371e5f0272949a9ce815e0fe21a3 1 parent d78ffc1
Matt Ray authored
View
5 ZenPacks.fdeckert.reports/ZenPacks/fdeckert/reports/lib/reportsPortlet.js
@@ -56,8 +56,10 @@ var FavoriteReportsPortlet = YAHOO.zenoss.Subclass.create(
args = args || {};
id = 'id' in args? args.id : getUID('FavoriteReports');
title = 'title' in args? args.title: "Favorite Reports",
+ b=args.datasource;
datasource = 'datasource' in args? args.datasource : new YAHOO.zenoss.portlet.StaticDatasource.Table (
- {html:'', postContent: [], });
+ {html:'', postContent: [] }
+ );
bodyHeight = 'bodyHeight' in args? args.bodyHeight:200;
refreshTime = 'refreshTime' in args? args.refreshTime: 60;
this.superclass.__init__(
@@ -133,6 +135,7 @@ var FavoriteReportsPortlet = YAHOO.zenoss.Subclass.create(
short=parts[parts.length-1];
data[i] = Array (removelink+"<a class=\"prettylink\" href=\""+url+"\" title=\""+this.datasource.postContent[i]+"\">"+short+"</a>");
}
+
if ('dataSource' in this) {
this.dataSource.liveData = data;
View
12 ZenPacks.fdeckert.reports/ZenPacks/fdeckert/reports/tests/__init__.py
@@ -0,0 +1,12 @@
+# ##########################################################################
+#
+# This program is part of Zenoss Core, an open source monitoring platform.
+# Copyright (C) 2008, Zenoss Inc.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 as published by
+# the Free Software Foundation.
+#
+# For complete information please visit: http://www.zenoss.com/oss/
+#
+# ##########################################################################
View
2  ZenPacks.fdeckert.reports/setup.py
@@ -3,7 +3,7 @@
# or saved. Do not modify them directly here.
# NB: PACKAGES is deprecated
NAME = "ZenPacks.fdeckert.reports"
-VERSION = "1.1"
+VERSION = "1.2"
AUTHOR = "Florian Deckert"
LICENSE = ""
NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.fdeckert']
Please sign in to comment.
Something went wrong with that request. Please try again.