Example #1
0
from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required

from people.decorators import owner_required

from people.views import PeopleListView, PeopleDetailView, PeopleEditView, AccountEditView
from aresource.views import PersonalResourceCreateView, PersonalResourceCreateViewOC, PersonalResourceEditView, PersonalResourceDetailView, PersonalResourceListView
from aresource.models import PersonalResource

urlpatterns = patterns('',
    url(r'user-resources/edit/(?P<pk>[-\d]+)/$', PersonalResourceEditView.as_view(), name='personalresource_edit'),
    url(r'user-resources/add/$', login_required(PersonalResourceCreateView.as_view()), name='personalresource_create'),
    url(r'user-resources/add/one-click/$', login_required(PersonalResourceCreateViewOC), name='personalresource_create_oc'),
    url(r'user-resources/(?P<person>[-\w]+)/$', PersonalResourceListView.as_view(), name='personalresource_list'),
    url(r'user-resources/(?P<person>[-\w]+)/(?P<pk>\d+)/$', PersonalResourceDetailView.as_view(), name='personalresource_detail'),
    url(r'edit-profile/$', login_required(PeopleEditView.as_view()), name='people_edit'),
    url(r'edit-account/$', login_required(AccountEditView.as_view()), name='account_edit'),
    url(r'(?P<user>[-\w]+)/$', PeopleDetailView.as_view(), name='people_detail'),
    url(r'^$', PeopleListView.as_view(), name='people_list'),
)
Example #2
0
from aresource.views import PersonalResourceCreateView, PersonalResourceCreateViewOC, PersonalResourceEditView, PersonalResourceDetailView, PersonalResourceListView
from aresource.models import PersonalResource

urlpatterns = patterns(
    '',
    url(r'user-resources/edit/(?P<pk>[-\d]+)/$',
        PersonalResourceEditView.as_view(),
        name='personalresource_edit'),
    url(r'user-resources/add/$',
        login_required(PersonalResourceCreateView.as_view()),
        name='personalresource_create'),
    url(r'user-resources/add/one-click/$',
        login_required(PersonalResourceCreateViewOC),
        name='personalresource_create_oc'),
    url(r'user-resources/(?P<person>[-\w]+)/$',
        PersonalResourceListView.as_view(),
        name='personalresource_list'),
    url(r'user-resources/(?P<person>[-\w]+)/(?P<pk>\d+)/$',
        PersonalResourceDetailView.as_view(),
        name='personalresource_detail'),
    url(r'edit-profile/$',
        login_required(PeopleEditView.as_view()),
        name='people_edit'),
    url(r'edit-account/$',
        login_required(AccountEditView.as_view()),
        name='account_edit'),
    url(r'(?P<user>[-\w]+)/$',
        PeopleDetailView.as_view(),
        name='people_detail'),
    url(r'^$', PeopleListView.as_view(), name='people_list'),
)
Example #3
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# 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, url
from people.views import PeopleListView, PeopleCreateView, PeopleDetailView, \
    PeopleUpdateView, PeopleUpdateAuthView, PeopleSelectView

urlpatterns = patterns('',
    url(r'^$', PeopleListView.as_view(),
        name='people_list'),
    url(r'^_create/$', PeopleCreateView.as_view(),
        name='people_create'),
    url(r'^(?P<pk>\d+)/$', PeopleDetailView.as_view(),
        name='people_detail'),
    url(r'^(?P<pk>\d+)/_update$', PeopleUpdateView.as_view(),
        name='people_update'),
    url(r'^(?P<pk>\d+)/_updateauth$', PeopleUpdateAuthView.as_view(),
        name='people_update_auth'),

    # People selection
    url(r'^_select', PeopleSelectView.as_view(),
        name='people_select'),



)