Exemplo n.º 1
0
#
# You should have received a copy of the GNU Affero General Public License
# along with Eskollz.  If not, see <http://www.gnu.org/licenses/>
###############################################################################
from django.conf.urls import patterns, include, url
from folder.views import FolderCreateView, FolderList, FolderDetails, \
    FolderUpdateView

""" Main urls for teacher zone """


#pylint: disable=C0103
urlpatterns = patterns('',

    url(r'^/_create/$',
        FolderCreateView.as_view(),
        name='folder_create_root'),
    url(r'^/$',
        FolderList.as_view(),
        name='folder_list_root'),
    url(r'^(?P<folderid>[0-9]+)/$',
        FolderDetails.as_view(),
        name='folder_details'),
    url(r'list/(?P<folderid>[0-9]+)/update/$',
        FolderUpdateView.as_view(),
        name='folder_update'),
    url(r'list/(?P<folderid>[0-9]+)/_create/',
        FolderCreateView.as_view(),
        name='folder_create_child'),
)