Пример #1
0
"""myEWB communities URLs

This file is part of myEWB
Copyright 2009 Engineers Without Borders (Canada) Organisation and/or volunteer contributors

Last modified on 2009-08-07
@author Joshua Gorner
"""

from django.conf.urls.defaults import *

from communities.models import Community

from groups.bridge import ContentBridge
from base_groups.helpers import group_url_patterns

#bridge = ContentBridge(Community, 'communities')
bridge = ContentBridge(Community, Community._meta.verbose_name)

urlpatterns = group_url_patterns(Community)
urlpatterns += bridge.include_urls('group_topics.urls.groups',
                                   r'^(?P<group_slug>[-\w]+)/posts/')
urlpatterns += bridge.include_urls('whiteboard.urls',
                                   r'^(?P<group_slug>[-\w]+)/whiteboard/')
Пример #2
0
Last modified on 2009-08-06
@author Joshua Gorner
"""

from django.conf.urls.defaults import *

from networks.models import Network

from groups.bridge import ContentBridge
from base_groups.helpers import group_url_patterns

#bridge = ContentBridge(Network, 'networks')
bridge = ContentBridge(Network, Network._meta.verbose_name)

urlpatterns = patterns('networks.views', 
    url(r'^national/$', 'national_office', name='national_office'),
)

urlpatterns += group_url_patterns(Network, url(r'^ajax/(?P<network_type>[-\w]+)/$', 'ajax_search', name='ajax_search_network',))

urlpatterns += patterns('networks.views', 
    url(r'^(?P<group_slug>[-\w]+)/new/$', 'new_member', name='new_network_member'),
    url(r'^(?P<group_slug>[-\w]+)/(?P<username>\w+)/delete/$', 'delete_member', name='delete_network_member'),
    url(r'^(?P<group_slug>[-\w]+)/location/$', 'edit_network_location', name='edit_network_location',),
    url(r'^(?P<group_slug>[-\w]+)/bulkimport/$', 'bulk_import', name='network_bulk_import',),
    url(r'^(?P<group_slug>[-\w]+)/bulkremove/$', 'bulk_remove', name='network_bulk_remove',),
)
    
urlpatterns += bridge.include_urls('group_topics.urls.groups', r'^(?P<group_slug>[-\w]+)/posts/')
urlpatterns += bridge.include_urls('whiteboard.urls', r'^(?P<group_slug>[-\w]+)/whiteboard/')
Пример #3
0
Copyright 2009 Engineers Without Borders (Canada) Organisation and/or volunteer contributors

Last modified on 2009-08-06
@author Joshua Gorner
"""

from django.conf.urls.defaults import *

from networks.models import Network

from groups.bridge import ContentBridge
from base_groups.helpers import group_url_patterns

# bridge = ContentBridge(Network, 'networks')
bridge = ContentBridge(Network, Network._meta.verbose_name)

urlpatterns = group_url_patterns(
    Network, url(r"^ajax/(?P<network_type>[-\w]+)/$", "ajax_search", name="ajax_search_network")
)

urlpatterns += patterns(
    "networks.views",
    url(r"^(?P<group_slug>[-\w]+)/new/$", "new_member", name="new_network_member"),
    url(r"^(?P<group_slug>[-\w]+)/(?P<username>\w+)/delete/$", "delete_member", name="delete_network_member"),
    url(r"^(?P<group_slug>[-\w]+)/location/$", "edit_network_location", name="edit_network_location"),
    url(r"^(?P<group_slug>[-\w]+)/bulk/$", "bulk_import", name="network_bulk_import"),
)

urlpatterns += bridge.include_urls("group_topics.urls.groups", r"^(?P<group_slug>[-\w]+)/posts/")
urlpatterns += bridge.include_urls("whiteboard.urls", r"^(?P<group_slug>[-\w]+)/whiteboard/")
Пример #4
0
"""myEWB communities URLs

This file is part of myEWB
Copyright 2009 Engineers Without Borders (Canada) Organisation and/or volunteer contributors

Last modified on 2009-08-07
@author Joshua Gorner
"""

from django.conf.urls.defaults import *

from communities.models import Community

from groups.bridge import ContentBridge
from base_groups.helpers import group_url_patterns

#bridge = ContentBridge(Community, 'communities')
bridge = ContentBridge(Community, Community._meta.verbose_name)

urlpatterns = group_url_patterns(Community)    
urlpatterns += bridge.include_urls('group_topics.urls.groups', r'^(?P<group_slug>[-\w]+)/posts/')
urlpatterns += bridge.include_urls('whiteboard.urls', r'^(?P<group_slug>[-\w]+)/whiteboard/')
Пример #5
0
from groups.bridge import ContentBridge
from base_groups.helpers import group_url_patterns

#bridge = ContentBridge(Network, 'networks')
bridge = ContentBridge(Network, Network._meta.verbose_name)

urlpatterns = patterns(
    'networks.views.network',
    url(r'^national/$', 'national_office', name='national_office'),
)

urlpatterns += group_url_patterns(
    Network,
    url(
        r'^ajax/(?P<network_type>[-\w]+)/$',
        'ajax_search',
        name='ajax_search_network',
    ))

urlpatterns += patterns(
    'networks.views.network',
    url(r'^(?P<group_slug>[-\w]+)/new/$',
        'new_member',
        name='new_network_member'),
    url(r'^(?P<group_slug>[-\w]+)/(?P<username>\w+)/delete/$',
        'delete_member',
        name='delete_network_member'),
    url(
        r'^(?P<group_slug>[-\w]+)/location/$',
        'edit_network_location',