8.1.5. cobbler.web package

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.accept_remote_user(request, nextsite)[source]
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.buildiso(request)[source]
cobbler.web.views.check(request)[source]

Shows a page with the results of ‘cobbler check’

cobbler.web.views.do_login(request)[source]
cobbler.web.views.do_logout(request)[source]
cobbler.web.views.error_page(request, message)[source]

This page is used to explain error messages to the user.

cobbler.web.views.eventlog(request, event=0)[source]

Shows the log for a given event.

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_delete(request, what, obj_name=None)[source]

Deletes 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

Hardlinks files between repos and install trees to save space.

cobbler.web.views.import_prompt(request)[source]
cobbler.web.views.import_run(request)[source]
cobbler.web.views.index(request)[source]

This is the main greeting page for cobbler web.

cobbler.web.views.login(request, next=None, message=None, expired=False)[source]
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.reposync(request)[source]

Syncs all repos that are configured to be synced.

cobbler.web.views.setting_edit(request, setting_name=None)[source]
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.setting_save(request)[source]
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.snippet_save(request)[source]

This snippet saves a snippet once edited.

cobbler.web.views.sync(request)[source]

Runs ‘cobbler sync’ from the API when the user presses the sync button.

cobbler.web.views.task_created(request)[source]

Let’s the user know what to expect for event updates.

cobbler.web.views.test_user_authenticated(request)[source]

8.1.5.8. Module contents