Exemplo n.º 1
0
# This file is part of e-cidadania.
#
# e-cidadania 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.
#
# 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/>.

from django.conf.urls import *
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from apps.ecidadania.news.views import DeletePost, ViewPost, AddPost, EditPost
from apps.ecidadania.news.url_names import *


urlpatterns = patterns(
    "apps.ecidadania.news.views",
    url(r"^add/$", AddPost.as_view(), name=POST_ADD),
    url(r"^(?P<post_id>\d+)/delete/$", DeletePost.as_view(), name=POST_DELETE),
    url(r"^(?P<post_id>\d+)/edit/$", EditPost.as_view(), name=POST_EDIT),
    url(r"^(?P<post_id>\d+)", ViewPost.as_view(), name=POST_VIEW),
)
Exemplo n.º 2
0
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# 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/>.

from django.conf.urls import *
from django.conf import settings

from apps.ecidadania.news.views import DeletePost, ViewPost, AddPost, EditPost
from apps.ecidadania.news.url_names import *


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

    url(r'^add/$', AddPost.as_view(), name=POST_ADD),

    url(r'^(?P<post_id>\d+)/delete/$', DeletePost.as_view(),
        name=POST_DELETE),

    url(r'^(?P<post_id>\d+)/edit/$', EditPost.as_view(), name=POST_EDIT),

    url(r'^(?P<post_id>\d+)', ViewPost.as_view(), name=POST_VIEW),

)
Exemplo n.º 3
0
# This file is part of e-cidadania.
#
# e-cidadania 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.
#
# 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/>.

from django.conf.urls import *
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from apps.ecidadania.news.views import DeletePost, ViewPost, AddPost, EditPost

urlpatterns = patterns(
    'apps.ecidadania.news.views',
    url(_(r'^add/$'), AddPost.as_view(), name='add-post'),
    url(_(r'^(?P<post_id>\d+)/delete/$'),
        DeletePost.as_view(),
        name='delete-post'),
    url(_(r'^(?P<post_id>\d+)/edit/$'), EditPost.as_view(), name='edit-post'),
    url(r'^(?P<post_id>\d+)', ViewPost.as_view(), name='view-post'),
)
Exemplo n.º 4
0
# e-cidadania 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.
#
# 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/>.

from django.conf.urls import *
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from apps.ecidadania.news.views import DeletePost, ViewPost, AddPost, EditPost

urlpatterns = patterns('apps.ecidadania.news.views',
    
    url(_(r'^add/$'), AddPost.as_view(), name='add-post'),
    
    url(_(r'^(?P<post_id>\d+)/delete/$'), DeletePost.as_view(), name='delete-post'),
    
    url(_(r'^(?P<post_id>\d+)/edit/$'), EditPost.as_view(), name='edit-post'),
    
    url(r'^(?P<post_id>\d+)', ViewPost.as_view(), name='view-post'),

)
Exemplo n.º 5
0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from django.conf.urls import *
from django.conf import settings

from apps.ecidadania.news.views import DeletePost, ViewPost, AddPost, EditPost
from apps.ecidadania.news.url_names import *


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

    url(r'^add/$', AddPost.as_view(), name=POST_ADD),

    url(r'^(?P<post_id>\d+)/delete/$', DeletePost.as_view(),
        name=POST_DELETE),

    url(r'^(?P<post_id>\d+)/edit/$', EditPost.as_view(), name=POST_EDIT),

    url(r'^(?P<post_id>\d+)', ViewPost.as_view(), name=POST_VIEW),

)
Exemplo n.º 6
0
#
# This file is part of e-cidadania.
#
# e-cidadania 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.
#
# 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/>.

from django.conf.urls import *
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from apps.ecidadania.news.views import DeletePost, ViewPost, AddPost, EditPost
from apps.ecidadania.news.url_names import *

urlpatterns = patterns(
    'apps.ecidadania.news.views',
    url(r'^add/$', AddPost.as_view(), name=POST_ADD),
    url(r'^(?P<post_id>\d+)/delete/$', DeletePost.as_view(), name=POST_DELETE),
    url(r'^(?P<post_id>\d+)/edit/$', EditPost.as_view(), name=POST_EDIT),
    url(r'^(?P<post_id>\d+)', ViewPost.as_view(), name=POST_VIEW),
)