endi.panels.company_index package¶
Submodules¶
endi.panels.company_index.event module¶
- endi.panels.company_index.event.coming_events_panel(context, request)¶
Return the list of the upcoming events
- endi.panels.company_index.event.includeme(config)¶
endi.panels.company_index.task module¶
- class endi.panels.company_index.task.RecentTaskPanel(context, request)¶
Bases :
objectPanel returning the company’s tasklist Parameters to be supplied as a cookie or in request.POST
pseudo params: tasks_per_page, see _get_tasks_per_page() tasks_page_nb: -only in POST- the page we display
- query()¶
Build sqlalchemy query to all tasks of a company, in reverse status_date order.
- endi.panels.company_index.task.includeme(config)¶
Add all panels to our main config object
endi.panels.company_index.utils module¶
- endi.panels.company_index.utils.get_items_per_page(request, cookie_name)¶
Infers the nb of items per page from a request. If value supplied in POST, we redefine it in a cookie.
- cookie_name is a string representation of a base 10 int
expected to be 5, 15 or 50.
- endi.panels.company_index.utils.get_page_number(request, post_arg)¶
Return the page number the user is asking
- endi.panels.company_index.utils.get_post_int(request, key, default)¶
Retrieve an int from the post datas :param key: the key the data should be retrieved from :param default: a default value
- endi.panels.company_index.utils.make_get_list_url(listname)¶
- Return a url builder for the pagination
- param listname:
the name of the list
Module contents¶
- endi.panels.company_index.includeme(config)¶