Esempio n. 1
0
 def validatedatatier(self, datatier):
     if lexicon.datatier(datatier):
         dtlist = popCommonDB.getDataTierList(DBUSER)
         dtlist = map(lambda x: x["COLLNAME"], dtlist)
         dtlist.append('ALL')
         if datatier in dtlist:
             return True
     raise Paramvalidationexception('datatier', 'param must be a valid datatier name')
Esempio n. 2
0
 def validatedatatier(self, datatier):
     if lexicon.datatier(datatier):
         dtlist = popCommonDB.getDataTierList(DBUSER)
         dtlist = map(lambda x: x["COLLNAME"], dtlist)
         dtlist.append('ALL')
         if datatier in dtlist:
             return True
     raise Paramvalidationexception('datatier',
                                    'param must be a valid datatier name')
Esempio n. 3
0
def dataTiers(request):
    data = popCommonDB.getDataTierList(DBUSER)
    jdata = {'DATA': data}
    jsondata = json.dumps(jdata)
    return HttpResponse(jsondata)
Esempio n. 4
0
                       url(r'^$'    , render.renderTemplate, {'tmplPath': 'popularity/index.html', 'contextRequests': {"siteslist": popCommonDB.getSitesList(DBUSER)}    }, "popularityindex"    ),
                       
                       # Plots
                       url(r'^dataTier$'       , render.renderTemplate, {'tmplPath': 'popularity/dataTierPlot.html'   , 'contextRequests': {"siteslist": sitelist}    }, "datatierplot"   ),
                       url(r'^dataSetPlot$'    , render.renderTemplate, {'tmplPath': 'popularity/dataSetPlot.html'    , 'contextRequests': {"siteslist": sitelist}    }, "datasetplot"    ),
                       url(r'^dataSetNamePlot$', render.renderTemplate, {'tmplPath': 'popularity/dataSetNamePlot.html', 'contextRequests': {"siteslist": sitelist}    }, "datasetnameplot"),

                       url(r'^customDSPlot$'          , render.renderTemplate, {'tmplPath': 'popularity/customDataSetPlot.html'         , 'contextRequests': {"siteslist": sitelist}    }, "customdsplot" ),
                       url(r'^customDTPlot$'          , render.renderTemplate, {'tmplPath': 'popularity/customDataTierPlot.html'        , 'contextRequests': {"siteslist": sitelist}    }, "customdtplot" ),
                       url(r'^customProcessedDSPlot$' , render.renderTemplate, {'tmplPath': 'popularity/customProcessedDataSetPlot.html', 'contextRequests': {"siteslist": sitelist}    }, "customdsnplot"),

                       url(r'^dataTierBar$'    , render.renderTemplate, {'tmplPath': 'popularity/dataTierBar.html', 'contextRequests': {"siteslist": sitelist}    }, "datatierbarplot"    ),


                       # Tables
                       url(r'^userStat$'    , render.renderTemplate, {'tmplPath': 'popularity/userStat.html', 'contextRequests': {"datatiers":  map(lambda x: x["COLLNAME"], popCommonDB.getDataTierList(DBUSER))}    }, "userstat"    ),

                       url(r'^corruptedFiles$'             , render.renderTemplate, {'tmplPath': 'popularity/corruptedFiles.html'               }, "corruptedfiles"             ),
                       url(r'^corruptedFilesSiteSummary$'  , render.renderTemplate, {'tmplPath': 'popularity/corruptedFilesSiteSummary.html'    }, "corruptedfilesSiteSummary"  ),
                       url(r'^corruptedFilesDSSummary$'    , render.renderTemplate, {'tmplPath': 'popularity/corruptedFilesDSSummary.html'      }, "corruptedfilesDSSummary"    ),

                       url(r'^dataSetTable$'      , render.renderTemplate, {'tmplPath': 'popularity/dataSetTable.html'    , 'contextRequests': {"siteslist": sitelist} }, "datasettable"     ),
                       url(r'^dataSetNameTable$'  , render.renderTemplate, {'tmplPath': 'popularity/dataSetNameTable.html', 'contextRequests': {"siteslist": sitelist} }, "datasetnametable" ),
                       url(r'^dataTierTable$'     , render.renderTemplate, {'tmplPath': 'popularity/index.html'           , 'contextRequests': {"siteslist": sitelist} }, "datatiertable"    ),

                       # Plots JSON
                       url(r'^getDSdata' , getter.getTimeEvolutionPlotData, {'MView':'DS'      }, "getDSPlotData" ),
                       url(r'^getDTdata' , getter.getTimeEvolutionPlotData, {'MView':'DataTier'}, "getDTPlotData" ),
                       url(r'^getDSNdata', getter.getTimeEvolutionPlotData, {'MView':'DSName'  }, "getDSNPlotData"),

                       url(r'^getSingleDSstat', getter.getDataSetStat         , {}, "getSingleDSPlotStat" ),
Esempio n. 5
0
        "xrdUserDataTable"),
    url(r'^DSStatInTimeWindow$', views.getDSStatInTimeWindow, {'MView': 'DS'},
        "xrdDSStatInTimeWindow"),
    url(r'^DataTierStatInTimeWindow$', views.getDSStatInTimeWindow,
        {'MView': 'DataTier'}, "xrdDataTierStatInTimeWindow"),
    url(r'^DSNameStatInTimeWindow$', views.getDSStatInTimeWindow,
        {'MView': 'DSName'}, "xrdDSNameStatInTimeWindow"),
    url(r'^UserDSStatInTimeWindow$', views.getDSStatInTimeWindow,
        {'MView': 'UserDS'}, "xrdUserDSStatInTimeWindow"),
    url(
        r'^xrduserstattable$', views.xrdRenderTemplate, {
            'tmplPath': 'xrdPopularity/xrdUserStatTable.html',
            'contextRequests': {
                'datatiers':
                map(lambda x: x["COLLNAME"],
                    popCommonDB.getDataTierList(DBUSER))
            }
        }, "xrdUserStatTable"),
    url(r'^xrduserstat$', views.getUserStat, {}, "xrdUserStat"),
    url(r'^xrdlocalglobaluserstattable$', views.xrdRenderTemplate,
        {'tmplPath': 'xrdPopularity/xrdLocalGlobalUserStatTable.html'},
        "xrdLocalGlobalUserStatTable"),
    url(r'^xrdlocalglobaluserstat$', views.getLocalGlobalUserStat, {},
        "xrdLocalGlobalUserStat"),

    ####################
    ## XRD Popularity Plot
    ###################

    # this renders plots for xrd popularity ds
    #FIXME probably remove
Esempio n. 6
0
                       

                       ## this renders tables

                       url(r'^xrddatasettable$'    , views.xrdRenderTemplate, {'tmplPath': 'xrdPopularity/xrdDataSetTable.html'    }, "xrdDataSetTable"    ),
                       url(r'^xrddatatiertable$'   , views.xrdRenderTemplate, {'tmplPath': 'xrdPopularity/xrdDataTierTable.html'   }, "xrdDataTierTable"   ),
                       url(r'^xrddatasetnametable$', views.xrdRenderTemplate, {'tmplPath': 'xrdPopularity/xrdDataSetNameTable.html'}, "xrdDataSetNameTable"),
                       url(r'^xrduserdatatable$'    , views.xrdRenderTemplate, {'tmplPath': 'xrdPopularity/xrdUserDataTable.html'    }, "xrdUserDataTable"    ),


                       url(r'^DSStatInTimeWindow$'      , views.getDSStatInTimeWindow, {'MView':'DS'      }, "xrdDSStatInTimeWindow"      ),
                       url(r'^DataTierStatInTimeWindow$', views.getDSStatInTimeWindow, {'MView':'DataTier'}, "xrdDataTierStatInTimeWindow"),
                       url(r'^DSNameStatInTimeWindow$'  , views.getDSStatInTimeWindow, {'MView':'DSName'  }, "xrdDSNameStatInTimeWindow"  ),
                       url(r'^UserDSStatInTimeWindow$'  , views.getDSStatInTimeWindow, {'MView':'UserDS'  }, "xrdUserDSStatInTimeWindow"  ),

                       url(r'^xrduserstattable$', views.xrdRenderTemplate, {'tmplPath': 'xrdPopularity/xrdUserStatTable.html', 'contextRequests': {'datatiers': map(lambda x: x["COLLNAME"], popCommonDB.getDataTierList(DBUSER))} }, "xrdUserStatTable"),
                       url(r'^xrduserstat$' , views.getUserStat, {}, "xrdUserStat"),

                       url(r'^xrdlocalglobaluserstattable$', views.xrdRenderTemplate, {'tmplPath': 'xrdPopularity/xrdLocalGlobalUserStatTable.html'}, "xrdLocalGlobalUserStatTable"),
                       url(r'^xrdlocalglobaluserstat$' , views.getLocalGlobalUserStat, {}, "xrdLocalGlobalUserStat"),


                       ####################
                       ## XRD Popularity Plot
                       ###################

                       
                                              
                       # this renders plots for xrd popularity ds
                       #FIXME probably remove
                       #url(r'^xrdplotmostpopulardatatier$', views.xrdRenderTemplate, {'tmplPath': 'xrdPopularity/xrdMostPopularSomething.html'}, "xrdPlotMostPopularDataTier"),
Esempio n. 7
0
def validateDataTier(datatier):
    dtlist = popCommonDB.getDataTierList()
    return datatier in dtlist
Esempio n. 8
0
def validateDataTier(datatier):
    dtlist = popCommonDB.getDataTierList()
    return datatier in dtlist