Search Render Python Module¶
This is the render object for the search interface.
-
class
pacifica.policy.search_render.
LimitedSizeDict
(*args, **kwds)[source]¶ Limited caching dictionary.
-
class
pacifica.policy.search_render.
SearchRender
[source]¶ Search render class to contain methods.
-
__weakref__
¶ list of weak references to the object (if defined)
-
classmethod
generate
(obj_cls, objs, trans_ids=False, render_release=False)[source]¶ generate the institution object.
-
classmethod
get_prop_release
(prop_id)[source]¶ Get the proposal release from transactions on that prop.
-
classmethod
get_transactions_from_institutions
(inst_id)[source]¶ Get a list of transactions from an institution.
-
classmethod
get_transactions_from_instruments
(inst_id)[source]¶ Get a list of transactions for a instrument.
-
classmethod
get_transactions_from_proposals
(prop_id)[source]¶ Get a list of transactions for a proposal.
-
classmethod
get_transactions_from_science_theme
(science_theme)[source]¶ Get a list of transactions for a science theme.
-
classmethod
merge_get_args
(get_args)[source]¶ Change a hash of get args and global get args into string for url.
-
-
pacifica.policy.search_render.
trans_access_url
(trans_obj)[source]¶ Figure out the access url for the transaction.
-
pacifica.policy.search_render.
trans_has_doi
(trans_obj)[source]¶ Return true if the transaction has a doi otherwise false.
-
pacifica.policy.search_render.
trans_inst_groups
(trans_obj)[source]¶ Render the instrument groups for a transaction.
-
pacifica.policy.search_render.
trans_institutions
(trans_obj)[source]¶ Render the institutions for a transaction.
-
pacifica.policy.search_render.
trans_instruments
(trans_obj)[source]¶ Render the instruments for a transaction.
-
pacifica.policy.search_render.
trans_kvp
(trans_obj)[source]¶ Generate a list of key value pairs for transaction.
-
pacifica.policy.search_render.
trans_proposals
(trans_obj)[source]¶ Render the proposals for a transaction.
-
pacifica.policy.search_render.
trans_science_themes
(trans_obj)[source]¶ Render the science theme from a proposal.
-
pacifica.policy.search_render.
trans_users
(trans_obj)[source]¶ Render the users list for transactions.