Пример #1
0
 ),
 # Translation memory
 url(r"^memory/$", weblate.memory.views.MemoryView.as_view(), name="memory"),
 url(
     r"^memory/upload/$",
     weblate.memory.views.UploadView.as_view(),
     name="memory-upload",
 ),
 url(
     r"^memory/download/$",
     weblate.memory.views.DownloadView.as_view(),
     name="memory-download",
 ),
 url(
     r"^(?P<manage>manage)/memory/$",
     management_access(weblate.memory.views.MemoryView.as_view()),
     name="memory",
 ),
 # This is hacky way of adding second name to a URL
 url(
     r"^manage/memory/$",
     management_access(weblate.memory.views.MemoryView.as_view()),
     name="manage-memory",
 ),
 url(
     r"^(?P<manage>manage)/memory/upload/$",
     management_access(weblate.memory.views.UploadView.as_view()),
     name="memory-upload",
 ),
 url(
     r"^(?P<manage>manage)/memory/download/$",
Пример #2
0
     weblate.memory.views.DeleteView.as_view(),
     name='memory-delete',
 ),
 url(
     r'^memory/upload/$',
     weblate.memory.views.UploadView.as_view(),
     name='memory-upload',
 ),
 url(
     r'^memory/download/$',
     weblate.memory.views.DownloadView.as_view(),
     name='memory-download',
 ),
 url(
     r'^(?P<manage>manage)/memory/$',
     management_access(weblate.memory.views.MemoryView.as_view()),
     name='memory',
 ),
 url(
     r'^(?P<manage>manage)/memory/delete/$',
     management_access(weblate.memory.views.DeleteView.as_view()),
     name='memory-delete',
 ),
 url(
     r'^(?P<manage>manage)/memory/upload/$',
     management_access(weblate.memory.views.UploadView.as_view()),
     name='memory-upload',
 ),
 url(
     r'^(?P<manage>manage)/memory/download/$',
     management_access(weblate.memory.views.DownloadView.as_view()),