示例#1
0
# This file is part of OrgWolf.
#
# OrgWolf is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#######################################################################

from django.conf.urls import patterns, url

from orgwolf.views import AngularView
from wolfmail.views import MessageView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    'wolfmail.views',
    url(r'^inbox/(?:\d+)?/?$', AngularView.as_view()),
    url(r'^message(?:/(?P<pk>\d+))?/?$', MessageView.as_view(), name='messages')
)
示例#2
0
文件: urls.py 项目: m3wolf/orgwolf
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#######################################################################

from django.conf.urls import url

from gtd import views as gtd_views
from orgwolf.views import AngularView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

# from gtd.views import NodeView, TodoStateView, FocusAreaView, ContextView

urlpatterns = [

    # urls for angular pages
    url(r'^projects/?$', AngularView.as_view(), name='projects'),
    url(r'^actions(?:/\d+/[-A-Za-z0-9_]+)?/?$',
        AngularView.as_view(), name='list_display'),
    
    # Urls for api entry points
    url(r'^nodes(?:/(?P<pk>\d+))?/?$',
        gtd_views.NodeView.as_view(), name='node_object'),
    url(r'^todostates(?:/(?P<pk>\d+))?/?$',
        gtd_views.TodoStateView.as_view(), name='todo_state'),
    url(r'^focusareas/?$', gtd_views.FocusAreaView.as_view(), name='focus_area_api'),
    url(r'^contexts/?$', gtd_views.ContextView.as_view(), name='context_api',),
    url(r'^locations/?$', gtd_views.LocationView.as_view(), name='location_api',),
]
示例#3
0
from orgwolf.views import (FeedbackView, AngularView, AccountAssociationView,
                           UserView, home)

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = [

    # Redirect to other apps
    url(r'^gtd/', include('gtd.urls')),
    url(r'^wolfmail/', include('wolfmail.urls')),

    # Angular entry points
    url(r'^$', home, name='home'),
    url(r'^search/?', AngularView.as_view(), name="search"),
    url(r'^calendar/?', AngularView.as_view()),
    url(r'^accounts/settings/?$', AngularView.as_view()),

    # API entry points
    url(r'^feedback/?$', FeedbackView.as_view(), name='feedback'),
    # url(r'^providers/?$', orgwolf.views.socialauth_providers),
    # url(r'^accountassociations(?:/(?P<id>\d+))?/?$', AccountAssociationView.as_view()),
    url(r'^user/current/?$', UserView.as_view(), name='current_user'),

    # Authentication stuff
    url(r'^accounts/login/$', LoginView.as_view(), name='login'),
    url(r'^accounts/logout/$', LogoutView.as_view(), name="logout"),

    #Uncomment the admin/doc line below to enable admin documentation
    # url(r'^admin/doc/',
示例#4
0
#
# OrgWolf is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#######################################################################

from django.conf.urls import url

from orgwolf.views import AngularView
from wolfmail.views import MessageView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = [
    url(r'^inbox/(?:\d+)?/?$', AngularView.as_view()),
    url(r'^message(?:/(?P<pk>\d+))?/?$',
        MessageView.as_view(),
        name='messages'),
]
示例#5
0
from orgwolf.views import FeedbackView, AngularView, AccountAssociationView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns(
    '',

    # Redirect to other apps
    url(r'^gtd/', include('gtd.urls')),
    url(r'^wolfmail/', include('wolfmail.urls')),

    # Angular entry points
    url(r'^$', 'orgwolf.views.home', name='home'),
    url(r'^search/?', AngularView.as_view(), name="search"),
    url(r'^calendar/?', AngularView.as_view()),
    url(r'^accounts/settings/?$', AngularView.as_view()),

    # API entry points
    url(r'^feedback/?$', FeedbackView.as_view(), name='feedback'),
    url(r'^providers/?$', 'orgwolf.views.socialauth_providers'),
    url(r'^providers/gmail/?$', 'orgwolf.views.google_auth'),
    url(r'^accountassociations(?:/(?P<id>\d+))?/?$', AccountAssociationView.as_view()),

    # Authentication stuff
    url(r'^accounts/login/$', login, name='login'),
    url(r'^accounts/logout/$', logout),

    #Uncomment the admin/doc line below to enable admin documentation
    # url(r'^admin/doc/',
示例#6
0
from django.conf.urls import url

from gtd import views as gtd_views
from orgwolf.views import AngularView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

# from gtd.views import NodeView, TodoStateView, FocusAreaView, ContextView

urlpatterns = [

    # urls for angular pages
    url(r'^projects/?$', AngularView.as_view(), name='projects'),
    url(r'^actions(?:/\d+/[-A-Za-z0-9_]+)?/?$',
        AngularView.as_view(),
        name='list_display'),
    url(r'^review(?:/\d+/[-A-Za-z0-9_]+)?/?$',
        AngularView.as_view(),
        name='weekly_review'),

    # Urls for api entry points
    url(r'^nodes(?:/(?P<pk>\d+))?/?$',
        gtd_views.NodeView.as_view(),
        name='node_object'),
    url(r'^todostates(?:/(?P<pk>\d+))?/?$',
        gtd_views.TodoStateView.as_view(),
        name='todo_state'),
    url(r'^focusareas/?$',