PageRenderTime 3638ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 3557ms

/webuguu/vfs/urls.py

https://code.google.com/p/uguu/
Python | 18 lines | 14 code | 4 blank | 0 comment | 0 complexity | c45aecc2ac63fd51f229d93359b718e8 MD5 | raw file
 1from django.conf.urls.defaults import *
 2
 3urlpatterns = patterns('django.views.generic.simple',
 4    (r'^$',     'direct_to_template', {'template': 'vfs/index.html'}),
 5)
 6
 7urlpatterns += patterns('webuguu.vfs.views',
 8    (r'^net/$',                                             'net'),
 9    (r'^net/(?P<network>\w+)/$',                            'network'),
10    (r'^(?P<proto>\w+)/(?P<hostname>([\.\-\w])+)/$',                'host'),
11    (r'^(?P<proto>\w+)/(?P<hostname>([\.\-\w])+)/(?P<port>\d+)/$',  'share'),
12    (r'^(?P<proto>\w+)/(?P<hostname>([\.\-\w])+)/(?P<port>\d+)/(?P<path>.*)/$',  'share'),
13)
14
15urlpatterns += patterns('django.views.generic.simple',
16    (r'^(?P<proto>\w+)/$',      'redirect_to', {'url': '..'}),
17)
18