def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("create content") admin_menu.add_menu_entry(parent=menu_section_entry, url_name="PageAdmin-new_content_page", name="new content page", title="Create a new content page.", get_pagetree=True) admin_menu.add_menu_entry(parent=menu_section_entry, url_name="PageAdmin-new_plugin_page", name="new plugin page", title="Create a new plugin page.", get_pagetree=True) menu_section_entry = admin_menu.get_or_create_section("change content") admin_menu.add_menu_entry( parent=menu_section_entry, url_name="PageAdmin-bulk_editor", name="bulk editor", title="Edit one attribute for all model items at once.", ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("cleanup") admin_menu.add_menu_entry(parent=menu_section_entry, name="cleanup update journal", title="Delete dead links from update journal", url_name="UpdateJournal-cleanup") return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("tools") admin_menu.add_menu_entry(parent=menu_section_entry, name="filemanager", title="Filemanager for static/media files", url_name="Filemanager-index") return "\n".join(output)
def install(request): """ install PyLucid admin views """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("tools") admin_menu.add_menu_entry( parent=menu_section_entry, name="user profile", title="Your user profile (e.g. change your password)", url_name="Auth-profile_index") return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("tools") admin_menu.add_menu_entry( parent=menu_section_entry, url_name="Update-status", name="update virtualenv", title="Update virtual environment source packages", ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("change content") admin_menu.add_menu_entry( parent=menu_section_entry, url_name="FindAndReplace-find_and_replace", name="find and replace", title="Find and replace in all existing page content", ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("create content") admin_menu.add_menu_entry( parent=menu_section_entry, url_name="Blog-new_blog_entry", name="new blog entry", title="Create a new blog entry.", ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into AdminMenu """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("system") admin_menu.add_menu_entry( parent=menu_section_entry, url_name="package_info-used_packages", name="package info", title="Liste all used python packages", ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("Kurs Anmeldung") admin_menu.add_menu_entry( parent=menu_section_entry, url_name="KursAnmeldung-get_emails", name="get all emails", title="Get a list of all email addresses", ) admin_menu.add_menu_entry( parent=menu_section_entry, url_name="KursAnmeldung-csv_export", name="csv export", title="csv export", ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("edit look") admin_menu.add_menu_entry( parent=menu_section_entry, url_name="Design-switch", name="switch design", title="Switch the page design, temporary.", ) admin_menu.add_menu_entry( parent=menu_section_entry, url_name="Design-clone", name="clone design", title="Clone a existing page design with all associated components.", ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("internals") admin_menu.add_menu_entry( parent=menu_section_entry, name="form generator", title="Form generator from existing models.", url_name="Internal-form_generator" ) admin_menu.add_menu_entry( parent=menu_section_entry, name="show internals", title="Display some internal information.", url_name="Internal-show_internals" ) admin_menu.add_menu_entry( parent=menu_section_entry, name="model_graph", title="Display a model UML graph.", url_name="Internal-model_graph" ) return "\n".join(output)
def install(request): """ insert PyLucid admin views into PageTree """ output = [] admin_menu = AdminMenu(request, output) menu_section_entry = admin_menu.get_or_create_section("tools") admin_menu.add_menu_entry(parent=menu_section_entry, name="highlight code", title="highlight sourcecode with pygments", url_name="Tools-highlight_code") menu_section_entry = admin_menu.get_or_create_section("edit look") admin_menu.add_menu_entry( parent=menu_section_entry, name="override template", title= "Overwrite a filesystem template with a new database headfile entry", url_name="Tools-override_template") menu_section_entry = admin_menu.get_or_create_section("cleanup") admin_menu.add_menu_entry(parent=menu_section_entry, name="cleanup log table", title="Cleanup the log table", url_name="Tools-cleanup_log") admin_menu.add_menu_entry(parent=menu_section_entry, name="cleanup session table", title="Cleanup the session table", url_name="Tools-cleanup_session") admin_menu.add_menu_entry( parent=menu_section_entry, name="cleanup cache", title="Remove everything from the Django's cache framework.", url_name="Tools-cleanup_cache") return "\n".join(output)