Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/e/s/ESP-Website-HEAD/esp/esp/program/modules/handlers/onsiteclasslist.py   ESP-Website(Download)
        sect['rooms'] = (' ,'.join(sec.prettyrooms()))[:12]
        return sect
    section_data.depend_on_model(lambda: ResourceAssignment)
    section_data.depend_on_cache(lambda: ClassSubject.get_teachers, lambda **kwargs: {})
    section_data=staticmethod(section_data)

src/e/s/ESP-Website-HEAD/esp/esp/program/models/__init__.py   ESP-Website(Download)
        rt, created = RegistrationType.objects.get_or_create(name=name, defaults = {'category': category})
        return rt
    get_cached.depend_on_model(lambda: RegistrationType)
    get_cached = staticmethod(get_cached)
 
            result[item.name] = item
        return result
    get_map.depend_on_model(lambda: RegistrationType)
    get_map = staticmethod(get_map)
 

src/e/s/ESP-Website-HEAD/esp/esp/users/models/__init__.py   ESP-Website(Download)
        """
        return [x[0] for x in ESPUser.getAllUserTypes(use_tag=use_tag)]
    getTypes.depend_on_model(Tag)
    getTypes = staticmethod(getTypes)
 
            user_types = json.loads(Tag.getTag('user_types', default=json.dumps(user_types)))
        return user_types
    getAllUserTypes.depend_on_model(Tag)
    getAllUserTypes = staticmethod(getAllUserTypes)
 

src/e/s/ESP-Website-HEAD/esp/esp/program/modules/handlers/studentregcore.py   ESP-Website(Download)
    def printer_names():
        return Printer.objects.all().values_list('name', flat=True)
    printer_names.depend_on_model(lambda: Printer)
    printer_names = staticmethod(printer_names) # stolen from program.models.getLastProfile, not sure if this is actually the right way to do this?
 

src/e/s/ESP-Website-HEAD/esp/esp/web/models.py   ESP-Website(Download)
        return NavBarCategory.default()
 
    from_request.depend_on_model(lambda: NavBarCategory) 
    from_request = staticmethod(from_request)
 

src/e/s/ESP-Website-HEAD/esp/esp/utils/template.py   ESP-Website(Download)
        contents = Loader.get_override_contents(template_name)
        return hashlib.md5(contents.encode("utf-8")).hexdigest()
    get_template_hash.depend_on_model(lambda: TemplateOverride)
    get_template_hash = staticmethod(get_template_hash)