Project

General

Profile

Revision aed0c054

IDaed0c054fb8060402541dfef262cf63688c8e3a5
Parent 07b61154
Child 6216260a

Added by Aurelien BOMPARD over 13 years ago

  • Amélioration des menus de choix dans VigiGraph * Présentation légèrement différente de la barre d'outils

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5628 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigigraph/controllers/rpc.py
31 31
from vigilo.models.tables import PerfDataSource
32 32
from vigilo.models.tables import Graph, GraphGroup
33 33
from vigilo.models.tables.grouphierarchy import GroupHierarchy
34
from vigilo.models.tables import Change
34 35

  
35 36
from vigilo.models.tables.secondary_tables import SUPITEM_GROUP_TABLE
36 37
from vigilo.models.tables.secondary_tables import GRAPH_GROUP_TABLE
......
724 725
                ).filter(Host.name == host
725 726
                ).all()
726 727
        return indicators
728

  
729
    @expose('json')
730
    def dbmtime(self):
731
        change = Change.by_table_name(u"Graph")
732
        if change is None:
733
            return {"mtime": None}
734
        mtime = change.last_modified.replace(microsecond=0)
735
        return {"mtime": mtime}
736

  

Also available in: Unified diff