3.3. View Functions¶
Below are the various view functions in Eve W-Space.
3.3.1. core¶
3.3.2. Map¶
- 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.create_map(request, *args, **kwargs)[source]¶
This function creates a map and then redirects to the new map.
- 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.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_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.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.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.site_spawns(request, map_id, ms_id, sig_id)[source]¶
Returns the spawns for a given signature and system.
- 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
Returns the html for system menu
3.3.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.
3.3.4. account¶
3.3.5. Alerts¶
3.3.6. API¶
3.3.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.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.