Skip to content

Commit

Permalink
remove RSS/ATOM feeds. Most people don't even remember it exists...
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfox committed Jan 13, 2024
1 parent 9083c6d commit d853639
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 200 deletions.
6 changes: 0 additions & 6 deletions core/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ def dispatch(self, request, *args, **kwargs):
return super(PydiciNonPublicdMixin, self).dispatch(request, *args, **kwargs)


class PydiciNonPublicFeedMixin(object):
@method_decorator(pydici_non_public)
def __call__(self, request, *args, **kwargs):
return super(PydiciNonPublicFeedMixin, self).__call__(request, *args, **kwargs)


def pydici_subcontractor(function=None):
"""
Decorator for views that restrict access to subcontractor users or internal users. It relies on consultant subcontractor flag
Expand Down
7 changes: 0 additions & 7 deletions core/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,6 @@
PYDICI_NON_HTML_PAGES = ("/leads/csv/all",
"/leads/csv/active",
"/leads/mail/text",
"/feeds/latest/",
"/feeds/mine/",
"/feeds/new/",
"/feeds/won/",
"/feeds/latestStaffing/",
"/feeds/myLatestStaffing/",
"/feeds/archivedMission/",
"/staffing/timesheet/detailed/?",
"/staffing/timesheet/detailed/2010/11",
)
Expand Down
77 changes: 0 additions & 77 deletions leads/feeds.py

This file was deleted.

12 changes: 0 additions & 12 deletions pydici/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

from core.utils import get_parameter

# Feeds definition
from leads.feeds import LatestLeads, NewLeads, MyLatestLeads, WonLeads
from staffing.feeds import LatestStaffing, MyLatestStaffing, ArchivedMission

# URLs from pydici modules
from crm.urls import crm_urls
from people.urls import people_urls
Expand Down Expand Up @@ -54,14 +50,6 @@
re_path(r'^media/(?P<path>.*)$', django.views.static.serve,
{'document_root': os.path.join(settings.PYDICI_ROOTDIR, 'media')}),

# Feeds
re_path(r'^feeds/latest/?$', LatestLeads(), name='latest'),
re_path(r'^feeds/new/?$', NewLeads(), name='new'),
re_path(r'^feeds/won/?$', WonLeads(), name='won'),
re_path(r'^feeds/mine/?$', MyLatestLeads(), name='mine'),
re_path(r'^feeds/latestStaffing/?$', LatestStaffing(), name='latestStaffing'),
re_path(r'^feeds/myLatestStaffing/?$', MyLatestStaffing(), name='myLatestStaffing'),
re_path(r'^feeds/archivedMission/?$', ArchivedMission(), name='archivedMission'),
])

# Add select2 url
Expand Down
81 changes: 0 additions & 81 deletions staffing/feeds.py

This file was deleted.

17 changes: 0 additions & 17 deletions templates/core/pydici.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@
{% block extracss %}{% endblock %}

<link href="{{ MEDIA_URL }}css/pydici.css" rel="stylesheet">

{% block pydici_rss %}
<link rel="alternate" type="application/atom+xml" title="{% trans 'ATOM feed of last modified leads' %}"
href="{% url 'latest' %}" />
<link rel="alternate" type="application/atom+xml" title="{% trans 'ATOM feed of last created leads' %}"
href="{% url 'new' %}" />
<link rel="alternate" type="application/atom+xml" title="{% trans 'ATOM feed of last won leads' %}"
href="{% url 'won' %}" />
<link rel="alternate" type="application/atom+xml" title="{% trans 'ATOM feed of my leads' %}"
href="{% url 'mine' %}" />
<link rel="alternate" type="application/atom+xml" title="{% trans 'ATOM feed of latest staffing forecast' %}"
href="{% url 'latestStaffing' %}" />
<link rel="alternate" type="application/atom+xml" title="{% trans 'ATOM feed of my latest staffing forecast' %}"
href="{% url 'myLatestStaffing' %}" />
<link rel="alternate" type="application/atom+xml" title="{% trans 'ATOM feed of last archived Mission' %}"
href="{% url 'archivedMission' %}" />
{% endblock %}

</head>

Expand Down

0 comments on commit d853639

Please sign in to comment.