8.1.5. cobbler.web package¶
8.1.5.1. Subpackages¶
8.1.5.2. Submodules¶
8.1.5.3. cobbler.web.field_ui_info module¶
Describes additional web UI properties of Cobbler fields defined in item_*.py.
8.1.5.4. cobbler.web.manage module¶
8.1.5.5. cobbler.web.settings module¶
8.1.5.6. cobbler.web.urls module¶
8.1.5.7. cobbler.web.views module¶
-
cobbler.web.views.
aifile_edit
(request, aifile_name=None, editmode='edit')[source]¶ This is the page where an automatic OS installation file is edited.
-
cobbler.web.views.
aifile_list
(request, page=None)[source]¶ List all automatic OS installation templates and link to their edit pages.
-
cobbler.web.views.
aifile_save
(request)[source]¶ This page processes and saves edits to an automatic OS installation file.
-
cobbler.web.views.
error_page
(request, message)[source]¶ This page is used to explain error messages to the user.
-
cobbler.web.views.
events
(request)[source]¶ This page presents a list of all the events and links to the event log viewer.
-
cobbler.web.views.
generic_copy
(request, what, obj_name=None, obj_newname=None)[source]¶ Copies an object.
-
cobbler.web.views.
generic_domulti
(request, what, multi_mode=None, multi_arg=None)[source]¶ Process operations like profile reassignment, netboot toggling, and deletion which occur on all items that are checked on the list page.
-
cobbler.web.views.
generic_edit
(request, what=None, obj_name=None, editmode='new')[source]¶ Presents an editor page for any type of object. While this is generally standardized, systems are a little bit special.
-
cobbler.web.views.
generic_rename
(request, what, obj_name=None, obj_newname=None)[source]¶ Renames an object.
-
cobbler.web.views.
generic_save
(request, what)[source]¶ Saves an object back using the cobbler API after clearing any ‘generic_edit’ page.
-
cobbler.web.views.
genlist
(request, what, page=None)[source]¶ Lists all object types, complete with links to actions on those objects.
-
cobbler.web.views.
get_fields
(what, is_subobject, seed_item=None)[source]¶ Helper function. Retrieves the field table from the cobbler objects and formats it in a way to make it useful for Django templating. The field structure indicates what fields to display and what the default values are, etc.
-
cobbler.web.views.
get_network_interface_fields
()[source]¶ Create network interface fields UI metadata based on network interface fields metadata
@return list network interface fields UI metadata
-
cobbler.web.views.
hardlink
(request)[source]¶ Hardlinks files between repos and install trees to save space.
-
cobbler.web.views.
modify_list
(request, what, pref, value=None)[source]¶ This function is used in the generic list view to modify the page/column sort/number of items shown per page, and also modify the filters.
This function modifies the session object to store these preferences persistently.
-
cobbler.web.views.
random_mac
(request, virttype='xenpv')[source]¶ Used in an ajax call to fill in a field with a mac address.
-
cobbler.web.views.
replicate
(request)[source]¶ Replicate configuration from the central cobbler server, configured in /etc/cobbler/settings (note: this is uni-directional!)
FIXME: this is disabled because we really need a web page to provide options for this command.
-
cobbler.web.views.
setting_list
(request)[source]¶ This page presents a list of all the settings to the user. They are not editable.
-
cobbler.web.views.
snippet_edit
(request, snippet_name=None, editmode='edit')[source]¶ This page edits a specific snippet.
-
cobbler.web.views.
snippet_list
(request, page=None)[source]¶ This page lists all available snippets and has links to edit them.
-
cobbler.web.views.
sync
(request)[source]¶ Runs ‘cobbler sync’ from the API when the user presses the sync button.