def get_app_manifest(self):
     '''
     Returns a dict of all available apps to current user
     '''
     
     output = cached.getEntities('apps/local', search=['disabled=false','visible=true'], count=-1)
             
     return output
Beispiel #2
0
 def get_app_manifest(self):
     '''
     Returns a dict of all available apps to current user
     '''
     output = cached.getEntities('apps/local',
                                 search=['disabled=false', 'visible=true'],
                                 count=-1)
     return output
 def getLocalApp(self, appid, flush_cache=True):
     """
     Fetch details on a locally installed app, optionally ensuring the cache is flushed first
     """
     local_apps = cached.getEntities('apps/local', count=-1, __memoized_flush_cache=flush_cache)
     appid = appid.lower()
     for id, app in local_apps.iteritems():
         if id.lower() == appid:
             return app
     return None
Beispiel #4
0
 def get_app_manifest(self):
     output = cached.getEntities('apps/local', search=['disabled=false','visible=true'], count=-1)
     return output 
    def memotest(self):

        logger.debug("TEST: first call to getEntities")
        cached.getEntities('saved/searches', 'search')
        logger.debug("TEST: second call to getEntities should be cached")
        cached.getEntities('saved/searches', 'search')
        logger.debug("TEST: third call to getEntities should be cached")
        cached.getEntities('saved/searches', search="search")
        logger.debug("TEST: fourth call to getEntities should be cached")
        cached.getEntities('saved/searches', search="search")
        logger.debug("TEST: fourth call to getEntities should be cached")
        cached.getEntities('saved/searches', search={1:2,3:4,5:6})
        logger.debug("TEST: fourth call to getEntities should be cached")
        cached.getEntities('saved/searches', search={1:2,3:4,5:6})
Beispiel #6
0
    def memotest(self):

        logger.debug("TEST: first call to getEntities")
        cached.getEntities('saved/searches', 'search')
        logger.debug("TEST: second call to getEntities should be cached")
        cached.getEntities('saved/searches', 'search')
        logger.debug("TEST: third call to getEntities should be cached")
        cached.getEntities('saved/searches', search="search")
        logger.debug("TEST: fourth call to getEntities should be cached")
        cached.getEntities('saved/searches', search="search")
        logger.debug("TEST: fourth call to getEntities should be cached")
        cached.getEntities('saved/searches', search={1:2,3:4,5:6})
        logger.debug("TEST: fourth call to getEntities should be cached")
        cached.getEntities('saved/searches', search={1:2,3:4,5:6})
 def get_app_manifest(self):
     output = cached.getEntities("apps/local", search=["disabled=false", "visible=true"], count=-1)
     return output
Beispiel #8
0
 def get_app_manifest(self):
     output = cached.getEntities('apps/local', search=['disabled=false','visible=true'], count=-1)
     return output