def render(self, context, instance, placeholder): #print self.render_template instance.entity = getattr(instance, "entity", None) or work_out_entity(context, None) instance.type = getattr(instance, "type", "plugin") try: render_template = instance.render_template except AttributeError: pass get_vacancies_and_studentships(instance) context.update({ 'everything': instance, 'placeholder': placeholder, }) return context
def vacancies_and_studentships(request, slug=getattr(default_entity, "slug", None)): instance, context, entity = common_settings(request, slug) main_page_body_file = "arkestra/universal_plugin_lister.html" instance.type = "main_page" get_vacancies_and_studentships(instance) meta = {"description": "Vacancies and studentships",} title = str(entity) + " vacancies & studentships" pagetitle = str(entity) + " vacancies & studentships" return render_to_response( "contacts_and_people/entity_information.html", {"entity":entity, "title": title, "meta": meta, "pagetitle": pagetitle, "main_page_body_file": main_page_body_file, 'everything': instance, }, context, )
def all_current_vacancies(request, slug=getattr(default_entity, "slug", None)): instance, context, entity = common_settings(request, slug) instance.type = "sub_page" instance.view = "current" instance.display = "vacancies" instance.limit_to = None get_vacancies_and_studentships(instance) meta = {"description": "All current vacancies",} title = str(entity) + " current vacancies" pagetitle = str(entity) + " current vacancies" main_page_body_file = "arkestra/universal_plugin_lister.html" return render_to_response( "contacts_and_people/entity_information.html", {"entity":entity, "title": title, "meta": meta, "pagetitle": pagetitle, "main_page_body_file": main_page_body_file, 'everything': instance, }, context, )