User manual
© 2011 Racktivity NV 110/160
Antwerpsesteenweg 19 - 9080 Lochristi - Belgium - www.racktivity.com v 2014.5.14
Monitormodule Live Data Macro
Multi Bar Chart Macro
Multi Line Graph Macro
Notification Macro
Oscilloscope Macro
Page Tree Macro
Page Validator Macro
Pdu Live Data Macro
Pie Chart Macro
Port Data Macro
Power per Customer Detailed Report Macro
Power per Customer Report Macro
Protovis Macro
RGraph Macro
Racktivity Tree Macro
Redirect Macro
Schematics Macro
Script Macro
Sensor Data Macro
Stacked Area Chart Macro
Style Macro
Table Macro
Widget Macro
Wizard Macro
Input / output or both presentation macro
Actions Macro
The Actions macro allows users to create a button that performs a certain action. The
button information is located in a tasklet that gets executed by the generic service.
Parameters
None.
Action Tasklets
The tasklets are located under:
/opt/qbase5/pyapps/dcpm/impl/portal/pylabsmacro/actions/
Currently we have a sample tasklet called "test1.py" which contains the information of
two buttons. Below is the tasklet code:
__author__ = "incubaid"
def main(q, i, params, tags):
l ={"action": [
{"name": "Print", "description": "Print this page", "uri":
"javascript:print();", "target": "", "icon": "ui-icon-print"},
{"name": "Google", "description": "Go To Google", "uri":
"http://www.google.com", "target": "_blank", "icon": "ui-icon-link"}










