Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
67b2a2fe
Commit
67b2a2fe
authored
Feb 27, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better variable names
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
315a4846
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
weblate/sitemaps.py
weblate/sitemaps.py
+10
-10
weblate/urls.py
weblate/urls.py
+3
-3
No files found.
weblate/sitemaps.py
View file @
67b2a2fe
...
...
@@ -22,22 +22,22 @@ from django.contrib.sitemaps import GenericSitemap, Sitemap
from
weblate.trans.models
import
Project
,
SubProject
,
Translation
from
weblate.accounts.models
import
Profile
project_dict
=
{
PROJECT_DICT
=
{
'queryset'
:
Project
.
objects
.
all_acl
(
None
),
'date_field'
:
'get_last_change'
,
}
subproject_dict
=
{
SUBPROJECT_DICT
=
{
'queryset'
:
SubProject
.
objects
.
all_acl
(
None
),
'date_field'
:
'get_last_change'
,
}
translation_dict
=
{
TRANSLATION_DICT
=
{
'queryset'
:
Translation
.
objects
.
all_acl
(
None
),
'date_field'
:
'get_last_change'
,
}
user_dict
=
{
USER_DICT
=
{
'queryset'
:
Profile
.
objects
.
all
(),
'date_field'
:
'get_last_change'
,
}
...
...
@@ -98,12 +98,12 @@ class EngageLangSitemap(Sitemap):
)
sitemaps
=
{
'project'
:
GenericSitemap
(
project_dict
,
priority
=
0.8
),
'engage'
:
EngageSitemap
(
project_dict
,
priority
=
1.0
),
SITEMAPS
=
{
'project'
:
GenericSitemap
(
PROJECT_DICT
,
priority
=
0.8
),
'engage'
:
EngageSitemap
(
PROJECT_DICT
,
priority
=
1.0
),
'engagelang'
:
EngageLangSitemap
(),
'subproject'
:
GenericSitemap
(
subproject_dict
,
priority
=
0.6
),
'translation'
:
GenericSitemap
(
translation_dict
,
priority
=
0.2
),
'user'
:
GenericSitemap
(
user_dict
,
priority
=
0.1
),
'subproject'
:
GenericSitemap
(
SUBPROJECT_DICT
,
priority
=
0.6
),
'translation'
:
GenericSitemap
(
TRANSLATION_DICT
,
priority
=
0.2
),
'user'
:
GenericSitemap
(
USER_DICT
,
priority
=
0.1
),
'pages'
:
PagesSitemap
(),
}
weblate/urls.py
View file @
67b2a2fe
...
...
@@ -28,7 +28,7 @@ from weblate.trans.feeds import (
ProjectChangesFeed
,
ChangesFeed
,
LanguageChangesFeed
)
from
weblate.trans.views.changes
import
ChangesView
from
weblate.sitemaps
import
sitemaps
from
weblate.sitemaps
import
SITEMAPS
import
weblate.accounts.urls
# URL regexp for language code
...
...
@@ -638,12 +638,12 @@ urlpatterns = patterns(
url
(
r'^sitemap\
.xml$
',
'
django
.
contrib
.
sitemaps
.
views
.
index
',
{'
sitemaps
':
sitemaps
}
{'
sitemaps
':
SITEMAPS
}
),
url(
r'
^
sitemap
-
(
?
P
<
section
>
.
+
)
\
.
xml
$
',
'
django
.
contrib
.
sitemaps
.
views
.
sitemap
',
{'
sitemaps
':
sitemaps
}
{'
sitemaps
':
SITEMAPS
}
),
# Media files
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment