Ejemplo n.º 1
0
"""
Track specification using ChartDirector. 
"""

# lots of constants and other names
from itertools import *
from trackutil import *
from genetrack import logger
from StringIO import StringIO

import pychartdir

# load and set the chartdirector license
CHARTDIRECTOR_LICENSE = os.getenv('CHARTDIRECTOR_LICENSE', '')
if CHARTDIRECTOR_LICENSE:
    pychartdir.setLicenseCode( CHARTDIRECTOR_LICENSE ) 
else:
    logger.warn('chartdirector license not found')
    
# a few handy constants
TRANSPARENT  = pychartdir.Transparent
TOPCENTER    = pychartdir.TopCenter
NOVALUE      = pychartdir.NoValue
CIRCLESYMBOL = pychartdir.CircleSymbol
CROSS        = pychartdir.CrossShape(0.1)
CENTER       = pychartdir.Center
PNG          = pychartdir.PNG

# a few default colors

BLACK, RED, GREY = COLORS.BLACK, COLORS.RED, COLORS.GREY
Ejemplo n.º 2
0
import operator
import util
import base
import gc
import sys
import blue
import trinity
import log
import uicls
import uiconst
import copy
import uiutil
from service import ROLE_IGB
import pychartdir as chart

chart.setLicenseCode('DIST-0000-05de-f7ec-ffbeURDT-232Q-M544-C2XM-BD6E-C452')
GRAPH_MEMORY = 1
GRAPH_PERFORMANCE = 2
GRAPH_HEAP = 3
MAX_LOG_CAPACITY = 10000
LOGTYPE_MAPPING = {
    0: ('info', '0xffeeeeee'),
    1: ('notice', '0xff22dd22'),
    2: ('warning', '0xffcccc00'),
    3: ('error', '0xffcc0000')
}
LOGUPDATETIME = 2000


class Monitor(service.Service):
    __exportedcalls__ = {
Ejemplo n.º 3
0
import uthread
import operator
import util
import base
import gc
import sys
import blue
import trinity
import log
import uicls
import uiconst
import copy
import uiutil
from service import ROLE_IGB
import pychartdir as chart
chart.setLicenseCode('DIST-0000-05de-f7ec-ffbeURDT-232Q-M544-C2XM-BD6E-C452')
GRAPH_MEMORY = 1
GRAPH_PERFORMANCE = 2
GRAPH_HEAP = 3
MAX_LOG_CAPACITY = 10000
LOGTYPE_MAPPING = {0: ('info', '0xffeeeeee'),
 1: ('notice', '0xff22dd22'),
 2: ('warning', '0xffcccc00'),
 3: ('error', '0xffcc0000')}
LOGUPDATETIME = 2000

class Monitor(service.Service):
    __exportedcalls__ = {'Show': [],
     'ShowOutstandingTab': [ROLE_IGB],
     'ShowLogTab': []}
    __dependencies__ = ['settings']