3.2. View Functions

Below are the various view functions in Eve W-Space.

3.2.1. core

core.views.config_view(request, *args, **kwargs)[source]

Gets the configuration page.

core.views.home_view(request, *args, **kwargs)[source]

The home view detects whether a user has a default map and either directs them to that map or displays a home page template.

3.2.2. Map

Map.views.activate_signature(request, *args, **kwargs)[source]

Marks a site activated.

Map.views.add_destination(request, dest_user=None)[source]

Add a destination.

Map.views.add_personal_destination(request)[source]

Add a personal destination.

Map.views.add_signature(request, *args, **kwargs)[source]

This function processes the Add Signature form. GET gets the form and POST submits it and returns either a blank form or one with errors. All requests should be AJAX.

Map.views.add_sigtype(request, *args, **kwargs)[source]

Adds a signature type.

Map.views.add_spawns(request, *args, **kwargs)[source]

Adds a site spawn.

Map.views.add_system(request, *args, **kwargs)[source]
AJAX view to add a system to a current_map. Requires POST containing:
topMsID: map_system ID of the parent map_system bottomSystem: Name of the new system topType: WormholeType name of the parent side bottomType: WormholeType name of the new side timeStatus: Wormhole time status integer value massStatus: Wormhole mass status integer value topBubbled: 1 if Parent side bubbled bottomBubbled: 1 if new side bubbled friendlyName: Friendly name for the new map_system
Map.views.bulk_sig_import(request, *args, **kwargs)[source]

GET gets a bulk signature import form. POST processes it, creating sigs with blank info and type for each sig ID detected.

Map.views.collapse_system(request, *args, **kwargs)[source]

Mark the system as collapsed.

Map.views.create_map(request, *args, **kwargs)[source]

This function creates a map and then redirects to the new map.

Map.views.delete_destination(request, dest_id)[source]

Deletes a destination.

Map.views.delete_map(request, *args, **kwargs)[source]

Deletes a map.

Map.views.delete_signature(request, *args, **kwargs)[source]

Deletes a signature.

Map.views.delete_sigtype(request, *args, **kwargs)[source]

Deletes a signature type.

Map.views.delete_spawns(request, *args, **kwargs)[source]

Deletes a site spawn.

Map.views.destination_list(request, map_id, *args, **kwargs)[source]

Returns the destinations of interest tuple for K-space systems and a blank response for w-space systems.

Map.views.destination_settings(request, user=None)[source]

Returns the destinations section.

Map.views.edit_map(request, *args, **kwargs)[source]

Alters a map.

Map.views.edit_signature(request, *args, **kwargs)[source]

GET gets a pre-filled edit signature form. POST updates the signature with the new information and returns a blank add form.

Map.views.edit_sigtype(request, *args, **kwargs)[source]

Alters a signature type.

Map.views.edit_spawns(request, *args, **kwargs)[source]

Alters a site spawn.

Map.views.edit_system(request, *args, **kwargs)[source]

A GET request gets the edit system dialog pre-filled with current information. A POST request saves the posted data as the new information.

POST values are friendlyName, info, and occupied.
Map.views.edit_wormhole(request, *args, **kwargs)[source]

A GET request gets the edit wormhole dialog pre-filled with current info. A POST request saves the posted data as the new info. POST values are topType, bottomType, massStatus, timeStatus, topBubbled, and bottomBubbled.

Map.views.escalate_site(request, *args, **kwargs)[source]

Marks a site as having been escalated.

Map.views.general_settings(request, *args, **kwargs)[source]

Returns and processes the general settings section.

Map.views.get_map(request, *args, **kwargs)[source]

Get the map and determine if we have permissions to see it. If we do, then return a TemplateResponse for the map. If map does not exist, return 404. If we don’t have permission, return PermissionDenied.

Map.views.get_signature_list(request, *args, **kwargs)[source]

Determines the proper escalationThreshold time and renders system_signatures.html

Map.views.global_permissions(request, *args, **kwargs)[source]

Returns and processes the global permissions section.

Map.views.manual_add_system(request, *args, **kwargs)[source]

A GET request gets a blank add system form with the provided MapSystem as top system. The form is then POSTed to the add_system view.

Map.views.manual_location(request, *args, **kwargs)[source]

Takes a POST request form AJAX with a System ID and marks the user as being active in that system.

Map.views.map_refresh(request, *args, **kwargs)[source]

Returns an HttpResponse with the updated systemJSON for an asynchronous map refresh.

Map.views.map_settings(request, *args, **kwargs)[source]

Returns and processes the settings section for a map.

Map.views.mark_scanned(request, *args, **kwargs)[source]

Takes a POST request from AJAX with a system ID and marks that system as scanned.

Map.views.mark_signature_cleared(request, *args, **kwargs)[source]

Marks a signature as having its NPCs cleared.

Map.views.remove_system(request, *args, **kwargs)[source]

Removes the supplied map_system from a map.

Map.views.resurrect_system(request, *args, **kwargs)[source]

Unmark the system as collapsed.

Map.views.set_interest(request, *args, **kwargs)[source]

Takes a POST request from AJAX with an action and marks that system as having either utcnow or None as interesttime. The action can be either “set” or “remove”.

Map.views.sigtype_settings(request, *args, **kwargs)[source]

Returns the signature types section.

Map.views.site_spawns(request, map_id, ms_id, sig_id)[source]

Returns the spawns for a given signature and system.

Map.views.sites_settings(request, *args, **kwargs)[source]

Returns the site spawns section.

Map.views.system_details(request, *args, **kwargs)[source]

Returns a html div representing details of the System given by ms_id in map map_id

Map.views.system_menu(request, *args, **kwargs)[source]

Returns the html for system menu

Map.views.system_tooltips(request, *args, **kwargs)[source]

Returns the system tooltips for map_id

Map.views.wormhole_tooltips(request, *args, **kwargs)[source]

Takes a POST request from AJAX with a Wormhole ID and renders the wormhole tooltip for that ID to response.

3.2.3. POS

POS.views.add_pos(request, *args, **kwargs)[source]

GET gets the add POS dialog, POST processes it.

POS.views.edit_pos(request, *args, **kwargs)[source]

GET gets the edit POS dialog, POST processes it.

POS.views.remove_pos(request, *args, **kwargs)[source]

Removes the POS. Raises PermissionDenied if it is a CorpPOS.

POS.views.test_fit(request, *args, **kwargs)[source]

Temporary test method for filling a POS fit from DScan.

3.2.4. account

3.2.5. Alerts

Alerts.views.edit_subscriptions(request)[source]

” GET: Get the edit subscritpions dialog. POST: Process the edit subscriptions dialog.

Alerts.views.send_ping(request)[source]

” GET: Get the send ping dialog. POST: Process the send ping dialog.

3.2.6. API

3.2.7. SiteTracker

SiteTracker.views.approve_fleet_site(request, fleetID, *args, **kwargs)[source]

Approve a pending site while the fleet is active.

SiteTracker.views.boss_panel(request, fleetID, *args, **kwargs)[source]

Return the HTML for the boss control panel popup.

SiteTracker.views.claim_site(request, fleetID, siteID, memberID)[source]

Claims the site (making it pending) if called by member. Fully grants credit for the site if called by current boss.

SiteTracker.views.create_fleet(request, *args, **kwargs)[source]

Takes a system ID via POST and makes a sitetracker fleet with the requesting user as initial and current boss. Then adds the requestor to the fleet as a member.

SiteTracker.views.credit_site(request, fleetID, *args, **kwargs)[source]
Credit a site to the given fleet. Takes POST input:
type = short_name of site type
SiteTracker.views.disband_fleet(request, fleetID, *args, **kwargs)[source]

Disband the fleet.

SiteTracker.views.join_fleet(request, *args, **kwargs)[source]

Join the current user to the fleet.

SiteTracker.views.kick_member(request, fleetID, *args, **kwargs)[source]

Removes a member from the fleet.

SiteTracker.views.leave_fleet(request, *args, **kwargs)[source]

Leaves the given fleet. If fleetID is not provided, leave all fleets.

SiteTracker.views.promote_member(request, *args, **kwargs)[source]

Promote the given member to boss. Boss permisison not required since we allow for siezure from an AFK boss.

SiteTracker.views.refresh_boss_member(request, fleetID, *args, **kwargs)[source]

Returns an updated details view for a boss panel member.

SiteTracker.views.refresh_fleets(request, *args, **kwargs)[source]

Return a template with tags for the myfleets and availfleets lists.

SiteTracker.views.remove_site(request, fleetID, *args, **kwargs)[source]

Uncredit a site to the given fleet.

SiteTracker.views.status_bar(request, *args, **kwargs)[source]

Return a template with just the ST status bar tag.

SiteTracker.views.unclaim_site(request, fleetID, siteID, memberID)[source]

Unclaims a site during a running fleet.

3.2.8. Recruitment

3.2.9. Teamspeak

3.2.10. Jabber

3.2.11. Cart

Project Versions

Table Of Contents

Previous topic

3.1. Data Models

Next topic

3.3. Utility Functions

This Page