from django.views.decorators.cache import cache_page
from version.views import *

__author__ = 'fanjunwei003'
from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()



urlpatterns = patterns('version/',
                       url(r'^$', home),
                       url(r'^login.py$', login),
                       url(r'^logout.py$', logout),
                       url(r'^main.py$', main),
                       url(r'^manageBranch.py$', manageBranch),
                       url(r'^saveBranch.py$', saveBranch),
                       url(r'^getBranches.py$', getBranches),
                       url(r'^delBranches.py$', delBranches),

                       url(r'^manageSubBranch.py$', manageSubBranch),
                       url(r'^searchBranchesName.py$', searchBranchesName),
                       url(r'^getSubBranches.py$', getSubBranches),
                       url(r'^saveSubBranch.py$', saveSubBranch),
                       url(r'^delSubBranches.py$', delSubBranches),

                       url(r'^manageVersion.py$', manageVersion),
                       url(r'^getVersions.py$', getVersions),
                       url(r'^searchSubBranchesName.py$', searchSubBranchesName),
                       url(r'^searchVersionFullName.py$', searchVersionFullName),
                       url(r'^saveVersion.py$', saveVersion),
                       url(r'^getAutoBaseVersionName.py$', getAutoBaseVersionName),
                       url(r'^delVersion.py$', delVersion),

                       url(r'^browseVersion.py$',browseVersionForTemplates),
                       url(r'^getVersionForBrowse.py$', getVersionForBrowse),
                       url(r'^log.py$', versionLog),
                       url(r'^version_names.py$', version_names),
                       url(r'^download/(?P<version_full_name>.*?)$', download),
 )
