# -*- coding: UTF-8 -*-

from django.conf.urls.defaults import patterns, url
from django.views.generic import ListView
from django.views.generic.detail import DetailView
from django.shortcuts import redirect

from macom.diagrama.models import System, Module, Interface, Dependency
from macom.web.views import SystemDetailView, ModuleDetailView, \
    InterfaceDetailView, system_diagram, module_diagram, interface_diagram, systems_dependencies_diagram, \
    systems_no_thirdparty_dependencies_diagram, dependency_diagram

urlpatterns = patterns('',
     url(r'^$', lambda x: redirect('web:system_list')),
     url(r'^system/(?P<pk>\d+)/diagram', system_diagram, name='system_diagram'),
     url(r'^system/(?P<pk>\d+)', SystemDetailView.as_view(), name='system_detail'),
     url(r'^system[s]?/diagram/dependencies$', systems_dependencies_diagram, name='systems_dependencies_diagram'),
     url(r'^system[s]?/diagram/dependencies/no-thirdparty$', systems_no_thirdparty_dependencies_diagram, name='systems_no_thirdparty_dependencies_diagram'),
     url(r'^system[s/]?$', ListView.as_view(model=System), name='system_list'),
     url(r'^module/(?P<pk>\d+)/diagram', module_diagram, name='module_diagram'),
     url(r'^module/(?P<pk>\d+)', ModuleDetailView.as_view(), name='module_detail'),
     url(r'^module[s/]?$', ListView.as_view(model=Module), name='module_list'),
     url(r'^interface/(?P<pk>\d+)/diagram', interface_diagram, name='interface_diagram'),
     url(r'^interface/(?P<pk>\d+)', InterfaceDetailView.as_view(), name='interface_detail'),
     url(r'^interface[s/]?$', ListView.as_view(model=Interface), name='interface_list'),
     url(r'^dependency/(?P<pk>\d+)/diagram', dependency_diagram, name='dependency_diagram'),
     url(r'^dependency/(?P<pk>\d+)', DetailView.as_view(model=Dependency), name='dependency_detail'),
     url(r'^dependency[s/]?$' , ListView.as_view(model=Dependency), name='dependency_list'),
)

e9025b520b56586ebf7cf8e01e6b6cba84a82356
<mask token>

<mask token>
urlpatterns = patterns('', url('^$', lambda x: redirect('web:system_list')),
    url('^system/(?P<pk>\\d+)/diagram', system_diagram, name=
    'system_diagram'), url('^system/(?P<pk>\\d+)', SystemDetailView.as_view
    (), name='system_detail'), url('^system[s]?/diagram/dependencies$',
    systems_dependencies_diagram, name='systems_dependencies_diagram'), url
    ('^system[s]?/diagram/dependencies/no-thirdparty$',
    systems_no_thirdparty_dependencies_diagram, name=
    'systems_no_thirdparty_dependencies_diagram'), url('^system[s/]?$',
    ListView.as_view(model=System), name='system_list'), url(
    '^module/(?P<pk>\\d+)/diagram', module_diagram, name='module_diagram'),
    url('^module/(?P<pk>\\d+)', ModuleDetailView.as_view(), name=
    'module_detail'), url('^module[s/]?$', ListView.as_view(model=Module),
    name='module_list'), url('^interface/(?P<pk>\\d+)/diagram',
    interface_diagram, name='interface_diagram'), url(
    '^interface/(?P<pk>\\d+)', InterfaceDetailView.as_view(), name=
    'interface_detail'), url('^interface[s/]?$', ListView.as_view(model=
    Interface), name='interface_list'), url(
    '^dependency/(?P<pk>\\d+)/diagram', dependency_diagram, name=
    'dependency_diagram'), url('^dependency/(?P<pk>\\d+)', DetailView.
    as_view(model=Dependency), name='dependency_detail'), url(
    '^dependency[s/]?$', ListView.as_view(model=Dependency), name=
    'dependency_list'))

from django.conf.urls.defaults import patterns, url
from django.views.generic import ListView
from django.views.generic.detail import DetailView
from django.shortcuts import redirect
from macom.diagrama.models import System, Module, Interface, Dependency
from macom.web.views import SystemDetailView, ModuleDetailView, InterfaceDetailView, system_diagram, module_diagram, interface_diagram, systems_dependencies_diagram, systems_no_thirdparty_dependencies_diagram, dependency_diagram
urlpatterns = patterns('', url('^$', lambda x: redirect('web:system_list')),
    url('^system/(?P<pk>\\d+)/diagram', system_diagram, name=
    'system_diagram'), url('^system/(?P<pk>\\d+)', SystemDetailView.as_view
    (), name='system_detail'), url('^system[s]?/diagram/dependencies$',
    systems_dependencies_diagram, name='systems_dependencies_diagram'), url
    ('^system[s]?/diagram/dependencies/no-thirdparty$',
    systems_no_thirdparty_dependencies_diagram, name=
    'systems_no_thirdparty_dependencies_diagram'), url('^system[s/]?$',
    ListView.as_view(model=System), name='system_list'), url(
    '^module/(?P<pk>\\d+)/diagram', module_diagram, name='module_diagram'),
    url('^module/(?P<pk>\\d+)', ModuleDetailView.as_view(), name=
    'module_detail'), url('^module[s/]?$', ListView.as_view(model=Module),
    name='module_list'), url('^interface/(?P<pk>\\d+)/diagram',
    interface_diagram, name='interface_diagram'), url(
    '^interface/(?P<pk>\\d+)', InterfaceDetailView.as_view(), name=
    'interface_detail'), url('^interface[s/]?$', ListView.as_view(model=
    Interface), name='interface_list'), url(
    '^dependency/(?P<pk>\\d+)/diagram', dependency_diagram, name=
    'dependency_diagram'), url('^dependency/(?P<pk>\\d+)', DetailView.
    as_view(model=Dependency), name='dependency_detail'), url(
    '^dependency[s/]?$', ListView.as_view(model=Dependency), name=
    'dependency_list'))

# -*- coding: UTF-8 -*-

from django.conf.urls.defaults import patterns, url
from django.views.generic import ListView
from django.views.generic.detail import DetailView
from django.shortcuts import redirect

from macom.diagrama.models import System, Module, Interface, Dependency
from macom.web.views import SystemDetailView, ModuleDetailView, \
    InterfaceDetailView, system_diagram, module_diagram, interface_diagram, systems_dependencies_diagram, \
    systems_no_thirdparty_dependencies_diagram, dependency_diagram

urlpatterns = patterns('',
     url(r'^$', lambda x: redirect('web:system_list')),
     url(r'^system/(?P<pk>\d+)/diagram', system_diagram, name='system_diagram'),
     url(r'^system/(?P<pk>\d+)', SystemDetailView.as_view(), name='system_detail'),
     url(r'^system[s]?/diagram/dependencies$', systems_dependencies_diagram, name='systems_dependencies_diagram'),
     url(r'^system[s]?/diagram/dependencies/no-thirdparty$', systems_no_thirdparty_dependencies_diagram, name='systems_no_thirdparty_dependencies_diagram'),
     url(r'^system[s/]?$', ListView.as_view(model=System), name='system_list'),
     url(r'^module/(?P<pk>\d+)/diagram', module_diagram, name='module_diagram'),
     url(r'^module/(?P<pk>\d+)', ModuleDetailView.as_view(), name='module_detail'),
     url(r'^module[s/]?$', ListView.as_view(model=Module), name='module_list'),
     url(r'^interface/(?P<pk>\d+)/diagram', interface_diagram, name='interface_diagram'),
     url(r'^interface/(?P<pk>\d+)', InterfaceDetailView.as_view(), name='interface_detail'),
     url(r'^interface[s/]?$', ListView.as_view(model=Interface), name='interface_list'),
     url(r'^dependency/(?P<pk>\d+)/diagram', dependency_diagram, name='dependency_diagram'),
     url(r'^dependency/(?P<pk>\d+)', DetailView.as_view(model=Dependency), name='dependency_detail'),
     url(r'^dependency[s/]?$' , ListView.as_view(model=Dependency), name='dependency_list'),
)
