Exemplo n.º 1
0
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.
"""
This file contains all the URLs that e_cidadania will inherit when the user
access to '/spaces/'.
"""
from django.conf.urls import *
from django.utils.translation import ugettext_lazy as _

from apps.ecidadania.debate.views import ListDebates, ViewDebate

urlpatterns = patterns(
    'apps.ecidadania.debate.views',
    url(r'^$', ListDebates.as_view(), name='list-debates'),
    url(r'^(?P<debate_id>\d+)/', ViewDebate.as_view(), name='view-debate'),
    url(_(r'^add/'), 'add_new_debate', name='add-debate'),
    url(_(r'^update_position/'),
        'update_position',
        name='update-note-position'),
    url(_(r'^update_note/'), 'update_note', name='update-note'),
    url(_(r'^create_note/'), 'create_note', name='create-note'),
    url(_(r'^delete_note/'), 'delete_note', name='delete-note'),

    # Editing debates is not allowed at this time
    #(r'^(?P<debate_id>\d+)', 'edit_debate'),

    #(r'^(?P<debate_id>\d+)', 'delete_debate'),
)
Exemplo n.º 2
0
# along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.

"""
This file contains all the URLs that e_cidadania will inherit when the user
access to '/spaces/'.
"""
from django.conf.urls import *
from django.utils.translation import ugettext_lazy as _

from apps.ecidadania.debate.views import ListDebates, ViewDebate

urlpatterns = patterns('apps.ecidadania.debate.views',

    url(r'^$', ListDebates.as_view(), name='list-debates'),

    url(r'^(?P<debate_id>\d+)/', ViewDebate.as_view(), name='view-debate'),

    url(_(r'^add/'), 'add_new_debate', name='add-debate'),

    url(_(r'^update_position/'), 'update_position', name='update-note-position'),

    url(_(r'^update_note/'), 'update_note', name='update-note'),

    url(_(r'^create_note/'), 'create_note', name='create-note'),

    url(_(r'^delete_note/'), 'delete_note', name='delete-note'),

    # Editing debates is not allowed at this time
    #(r'^(?P<debate_id>\d+)', 'edit_debate'),

    #(r'^(?P<debate_id>\d+)', 'delete_debate'),
Exemplo n.º 3
0
# e-cidadania 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 e-cidadania. If not, see <http://www.gnu.org/licenses/>.

"""
This file contains all the URLs that e_cidadania will inherit when the user
access to '/spaces/'.
"""
from django.conf.urls import *
from django.contrib.auth.decorators import permission_required
from apps.ecidadania.debate.views import ListDebates, ViewDebate, DeleteDebate, edit_debate
from apps.ecidadania.debate.url_names import *

urlpatterns = patterns(
    "apps.ecidadania.debate.views",
    url(r"^$", ListDebates.as_view(), name=DEBATE_LIST),
    url(r"^(?P<debate_id>\d+)/", ViewDebate.as_view(), name=DEBATE_VIEW),
    url(r"^add/", "add_new_debate", name=DEBATE_ADD),
    url(r"^update_position/", "update_position", name=NOTE_UPDATE_POSITION),
    url(r"^update_note/", "update_note", name=NOTE_UPDATE),
    url(r"^create_note/", "create_note", name=NOTE_ADD),
    url(r"^delete_note/", "delete_note", name=NOTE_DELETE),
    # Editing debates is not allowed at this time
    url(r"^edit/(?P<debate_id>\d+)/", "edit_debate", name=DEBATE_EDIT),
    url(r"^delete/(?P<debate_id>\d+)", DeleteDebate.as_view(), name=DEBATE_DELETE),
)
Exemplo n.º 4
0
# 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 e-cidadania. If not, see <http://www.gnu.org/licenses/>.
"""
This file contains all the URLs that e_cidadania will inherit when the user
access to '/spaces/'.
"""
from django.conf.urls import *
from django.contrib.auth.decorators import permission_required
from apps.ecidadania.debate.views import ListDebates, ViewDebate, DeleteDebate, edit_debate
from apps.ecidadania.debate.url_names import *

urlpatterns = patterns(
    'apps.ecidadania.debate.views',
    url(r'^$', ListDebates.as_view(), name=DEBATE_LIST),
    url(r'^(?P<debate_id>\d+)/', ViewDebate.as_view(), name=DEBATE_VIEW),
    url(r'^add/', 'add_new_debate', name=DEBATE_ADD),
    url(r'^update_position/', 'update_position', name=NOTE_UPDATE_POSITION),
    url(r'^update_note/', 'update_note', name=NOTE_UPDATE),
    url(r'^create_note/', 'create_note', name=NOTE_ADD),
    url(r'^delete_note/', 'delete_note', name=NOTE_DELETE),

    # Editing debates is not allowed at this time
    url(r'^edit/(?P<debate_id>\d+)/', 'edit_debate', name=DEBATE_EDIT),
    url(r'^delete/(?P<debate_id>\d+)',
        DeleteDebate.as_view(),
        name=DEBATE_DELETE),
)