Example #1
0
# Copyright (c) 2010 by Yaco Sistemas <*****@*****.**>
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.oldbrowser.views',
    url({'en': r'^browserinfo$',
         'es': r'^informacion_de_navegador$'},
         'browser_info', name='browser_info'),
)
Example #2
0
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.event.views',
    url(r'^$', 'event_list', name='event_list'),
    url({'en': r'^history/$',
         'es': r'^historico/$'}, 'event_historic', name='event_historic'),
    url(r'^(?P<event_slug>[\w-]+)/$', 'event_view', name='event_view'),
    url(r'^(?P<year>[\d-]+)/(?P<month>[\d-]+)/(?P<day>[\d-]+)/$', 'event_list', name='event_list'),
    url({'en': r'^calendar/ajax/$',
         'es': r'^calendario/ajax/$'},
         'events_calendar', name='events_calendar'),
)
Example #3
0
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.subscription.views',
    url(r'^(?P<basecontent_id>\d+)/$',
        'subscription_form',
        name='subscription_form'),
    url(
        {
            'en': r'^(?P<basecontent_slug>[\w-]+)/subscribers/$',
            'es': r'^(?P<basecontent_slug>[\w-]+)/subscriptores/$'
        },
        'subscriber_listing',
        name='subscriber_listing'),
)
Example #4
0
# Copyright (c) 2010 by Yaco Sistemas <*****@*****.**>
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns(
    "plugins.oldbrowser.views",
    url({"en": r"^browserinfo$", "es": r"^informacion_de_navegador$"}, "browser_info", name="browser_info"),
)
Example #5
0
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.filebrowser.views',
    url(r'^$', 'repositories', name='filebrowser_repositories'),
    url(r'^(?P<repository_name>[\w-]+)/$', 'root', name='filebrowser_root'),
    url(
        {
            'en': r'^(?P<repository_name>[\w-]+)/listing/$',
            'es': r'^(?P<repository_name>[\w-]+)/listado/$'
        },
        'listing',
        name='filebrowser_root_listing'),
    url(
        {
            'en': r'^(?P<repository_name>[\w-]+)/listing/(?P<path>.*)$',
            'es': r'^(?P<repository_name>[\w-]+)/listado/(?P<path>.*)$'
        },
        'listing',
        name="filebrowser_dir_listing"),
    url(
        {
            'en': r'^(?P<repository_name>[\w-]+)/download/(?P<path>.*)$',
            'es': r'^(?P<repository_name>[\w-]+)/descargar/(?P<path>.*)$'
        },
        'download',
        name='filebrowser_download'),
    url(
        {
Example #6
0
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'merengue.action.views',
    url({
        'en': r'site/(?P<name>.*)/',
        'es': r'sitio/(?P<name>.*)/'
    },
        'site_action',
        name='site_action'),
    url(
        {
            'en': r'user/(?P<username>.*)/(?P<name>.*)/',
            'es': r'usuario/(?P<username>.*)/(?P<name>.*)/'
        },
        'user_action',
        name='user_action'),
    url(
        {
            'en':
            r'content/(?P<content_type_id>\d+)/(?P<object_id>\d+)/(?P<name>.*)/',
            'es':
            r'contenido/(?P<content_type_id>\d+)/(?P<object_id>\d+)/(?P<name>.*)/'
Example #7
0
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


SLUG_RE = r'[-_\w]+'

urlpatterns = patterns('plugins.ezdashboard.views',
    url(r'^$', 'dashboard', name='dashboard'),
    url({'en': r'^catalog/$',
         'es': r'^catalogo/$'},
         'gadgets_list', name='catalog'),
    url(r'^meta/(?P<gadget_name>%s)/$' % SLUG_RE, 'gadget_meta',
        name='meta'),
    url({'en': r'^content/(?P<gadget_name>%s)/$' % SLUG_RE,
         'es': r'^contenido/(?P<gadget_name>%s)/$' % SLUG_RE},
         'gadget_view',
        name='content'),
)
Example #8
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.voting.views',
    url(
        {
            'en': r'^vote/(?P<object_id>\d+)/$',
            'es': r'^votar/(?P<object_id>\d+)/$'
        },
        'vote_object',
        name='vote_object'),
)
Example #9
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.voting.views',
    url({'en': r'^vote/(?P<object_id>\d+)/$',
         'es': r'^votar/(?P<object_id>\d+)/$'},
         'vote_object', name='vote_object'),
)
Example #10
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'merengue.collection.views',
    url(
        {
            'en': r'ajax/get_collection_fields/$',
            'es': r'ajax/campos_de_coleccion/$'
        },
        'get_collection_fields',
        name='get_collection_fields'),
)
Example #11
0
from merengue.urlresolvers import merengue_url as url


js_info_dict = {
        'packages': ('django.conf',
                     'django.contrib.admin',
                     'searchform',
                    ),
}

handler404 = 'merengue.perms.defaults.page_not_found'

urlpatterns = patterns('',
    # actions
    url({'en': r'^actions/',
         'es': r'^acciones/'},
         include('merengue.action.urls')),

    # blocks
    url({'en': r'^blocks/',
         'es': r'^bloques/'},
         include('merengue.block.urls')),

    # login and logout
    url(r'^login/$', 'merengue.portal.views.login', name="merengue_login"),
    url(r'^logout/$', 'merengue.portal.views.logout', name="merengue_logout"),

    url({'en': r'^password/reset/$',
         'es': r'^contrasena/cambiar/$'},
         'merengue.portal.views.password_reset', name="password_reset"),
    url({'en': r'^password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
Example #12
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'merengue.collab.views',
    url(
        {
            'en':
            r'ajax/comments/(?P<content_type_id>\d+)/(?P<content_id>\d+)/$',
            'es':
            r'ajax/comentarios/(?P<content_type_id>\d+)/(?P<content_id>\d+)/$'
        },
        'ajax_admin_comments',
        name='ajax_admin_comments'),
    url(
        {
            'en':
            r'ajax/comments/(?P<content_type_id>\d+)/(?P<content_id>\d+)/list/$',
            'es':
            r'ajax/comentarios/(?P<content_type_id>\d+)/(?P<content_id>\d+)/list/$'
        },
        'ajax_list_comments',
        name='ajax_list_comments'),
    url(
        {
Example #13
0
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns('merengue.action.views',
    url({'en': r'site/(?P<name>.*)/',
         'es': r'sitio/(?P<name>.*)/'},
        'site_action', name='site_action'),
    url({'en': r'user/(?P<username>.*)/(?P<name>.*)/',
         'es': r'usuario/(?P<username>.*)/(?P<name>.*)/'},
         'user_action', name='user_action'),
    url({'en': r'content/(?P<content_type_id>\d+)/(?P<object_id>\d+)/(?P<name>.*)/',
         'es': r'contenido/(?P<content_type_id>\d+)/(?P<object_id>\d+)/(?P<name>.*)/'},
         'content_action', name='content_action'),
)
Example #14
0
# Copyright (c) 2010 by Yaco Sistemas <*****@*****.**>
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('',
    url({'en': r'^submit/([\w-]+)/(\d+)/$',
         'es': r'^enviar/([\w-]+)/(\d+)/$'},
         'plugins.contactform.views.contact_form_submit', name='contact_form_submit'),
)
Example #15
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.


from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns('plugins.twitter.views',
    url(r'ajax/get_user_tweets/(?P<block_id>\d+)', 'get_user_tweets', name='get_user_tweets'),
    url(r'ajax/get_hashtag_tweets/(?P<block_id>\d+)', 'get_hashtag_tweets', name='get_hashtag_tweets'),
                       )
Example #16
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.feedback.views',
    url(
        {
            'en':
            r'^send_comment/(?P<content_type>\d+)/(?P<content_id>\d+)/(?P<parent_id>\d+)/$',
            'es':
            r'^enviar_comentario/(?P<content_type>\d+)/(?P<content_id>\d+)/(?P<parent_id>\d+)/$'
        },
        'content_comment_add',
        name='comment_add_parent'),
    url(
        {
            'en': r'^send_comment/(?P<content_type>\d+)/(?P<content_id>\d+)/$',
            'es':
            r'^enviar_comentario/(?P<content_type>\d+)/(?P<content_id>\d+)/$'
        },
        'content_comment_add',
        name='comment_add'),
    url(
        {
            'en': r'^change_comment_visiblity/(?P<comment_id>\d+)/$',
Example #17
0
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url
'''
Example urls ::

    /cms/seo/sitemap.xml
    /cms/seo/portal_links/1/sitemap.xml
    /cms/seo/menu_portal/1/sitemap.xml
    /cms/seo/sections/1/contents/1/sitemap.xml
    /cms/seo/portal_links/1/sections/1/contents/1/sitemap.xml
    /cms/seo/portal_links/0/menu_portal/0/sections/1/contents/1/sitemap.xml
'''

urlpatterns = patterns(
    'merengue.seo.views',
    url(
        r'^(?:portal_links/(?P<with_portal_links>[0:1])/)?'
        r'(?:menu_portal/(?P<with_menu_portal>[0:1])/)?'
        r'(?:sections/(?P<with_sections>[0:1])/)?'
        r'(?:menu_section/(?P<with_menu_section>[0:1])/)?'
        r'(?:contents/(?P<with_contents>[0:1])/)?'
        r'sitemap.xml$',
        'sitemap',
        name='sitemap'),
)
Example #18
0
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.registration.views',
    url(r'^$', 'register_view', name='register_view'),
    url({'en': r'^confirm/(?P<username>[\w.@+-]+)/(?P<registration_hash>[a-f0-9]+)/$',
         'es': r'^confirmar/(?P<username>[\w.@+-]+)/(?P<registration_hash>[a-f0-9]+)/$'}, 'confirm_register_view', name='confirm_register_view'),
    url({'en': r'^password_recovery/$',
         'es': r'^recuperar_clave/$'}, 'password_recovery_view', name='password_recovery_view'),
    url({'en': r'^password_recovery/confirm/(?P<username>[\w.@+-]+)/(?P<recovery_hash>[a-f0-9]+)/$',
         'es': r'^recuperar_clave/confirmar/(?P<username>[\w.@+-]+)/(?P<recovery_hash>[a-f0-9]+)/$'}, 'confirm_password_recovery', name='confirm_password_recovery'),
    url(r'^ajax/check_username/$', 'ajax_check_username', name='ajax_check_username'),
)
Example #19
0
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from django.contrib import admin

from merengue.urlresolvers import merengue_url as url


admin.autodiscover()


urlpatterns = patterns('merengue.base.views',
    url({'en': r'^admin_redirect/(?P<content_type>\d+)/(?P<content_id>\d+)/(?P<url>.*)$',
         'es': r'^redireccion_admin/(?P<content_type>\d+)/(?P<content_id>\d+)/(?P<url>.*)$'},
        'admin_link'),
    url({'en': r'^public_redirect/(?P<app_label>\w+)/(?P<model_name>\w+)/(?P<content_id>\d+)/$',
         'es': r'^redireccion_publica/(?P<app_label>\w+)/(?P<model_name>\w+)/(?P<content_id>\d+)/$'},
        'public_link'),
    url({'en': r'^view/(?P<app_label>\w+)/(?P<model_name>\w+)/(?P<content_id>\d+)/(?P<content_slug>[\w-]+)/$',
         'es': r'^ver/(?P<app_label>\w+)/(?P<model_name>\w+)/(?P<content_id>\d+)/(?P<content_slug>[\w-]+)/$'},
        'public_view'),
    (r'^ajax/autocomplete/tags/(?P<app_name>.*)/(?P<model>.*)/$', 'ajax_autocomplete_tags'),
)
Example #20
0
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'merengue.perms.views',
    url({
        'en': r'^access-request/$',
        'es': r'^peticion-de-acceso/$'
    },
        'access_request',
        name='access_request'),
)
Example #21
0
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('merengue.section.views',
    url(r'^$', 'section_index', name='section_index'),
    url({'en': r'ajax/save_menu_order/$',
         'es': r'ajax/guardar_orden_de_menu/$'},
         'save_menu_order', name='save_menu_order'),
    url({'en': r'ajax/insert_section/$',
         'es': r'ajax/insertar_seccion/$'},
         'insert_document_section_after', name='insert_document_section_after'),
    url({'en': r'ajax/delete_section/$',
         'es': r'ajax/borrar_seccion/$'},
         'document_section_delete', name='document_section_delete'),
    url({'en': r'ajax/edit_section/$',
         'es': r'ajax/editar_seccion/$'},
         'document_section_edit', name='document_section_edit'),
    url({'en': r'ajax/move_section/$',
         'es': r'ajax/mover_seccion/$'},
         'document_section_move', name='document_section_move'),
Example #22
0
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns('merengue.block.views',
    url(r'^$', 'blocks_index', name='blocks_index'),
    url({'en': r'order/ajax/',
         'es': r'orden/ajax/'},
        'blocks_reorder', name='blocks_reorder'),
    url(r'ajax/config/(?P<block_id>\d+)$', 'generate_blocks_configuration',
        name='generate_blocks_configuration'),
    url(r'ajax/config_for_content/(?P<block_id>\d+)$', 'generate_blocks_configuration_for_content',
        name='generate_blocks_configuration_for_content'),
    url(r'ajax/remove-block/(?P<block_id>\d+)/$', 'remove_block',
        name='remove_block'),
    url(r'ajax/invalidate-cache/(?P<block_id>\d+)/$', 'invalidate_cache',
        name='invalidate_cache'),
    url(r'ajax/add-block/$', 'add_block',
        name='add_block'),
)
Example #23
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'merengue.multimedia.views',
    url(r'^videos/(?P<video_id>[\w-]+)/video.xml$',
        'video_xml',
        name='video_xml'),
)
Example #24
0
# Copyright (c) 2010 by Yaco Sistemas <*****@*****.**>
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns

from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.piwik.views',
    url(r'^$', 'index', name='stats_index'),
    url(r'^ranking/$', 'ranking', name='stats_ranking'),
    url({'en': r'^my-contents/$',
         'es': r'^mis-contenidos/$'}, 'ranking_by_owner', name='ranking_by_owner'),
)
Example #25
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('merengue.multimedia.views',
    url(r'^videos/(?P<video_id>[\w-]+)/video.xml$', 'video_xml', name='video_xml'),
)
Example #26
0
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.event.views',
    url(r'^$', 'event_list', name='event_list'),
    url({
        'en': r'^history/$',
        'es': r'^historico/$'
    },
        'event_historic',
        name='event_historic'),
    url(r'^(?P<event_slug>[\w-]+)/$', 'event_view', name='event_view'),
    url(r'^(?P<year>[\d-]+)/(?P<month>[\d-]+)/(?P<day>[\d-]+)/$',
        'event_list',
        name='event_list'),
    url({
        'en': r'^calendar/ajax/$',
        'es': r'^calendario/ajax/$'
    },
        'events_calendar',
Example #27
0
js_info_dict = {
    'packages': (
        'django.conf',
        'django.contrib.admin',
        'searchform',
    ),
}

handler404 = 'merengue.perms.defaults.page_not_found'

urlpatterns = patterns(
    '',
    # actions
    url({
        'en': r'^actions/',
        'es': r'^acciones/'
    }, include('merengue.action.urls')),

    # blocks
    url({
        'en': r'^blocks/',
        'es': r'^bloques/'
    }, include('merengue.block.urls')),

    # login and logout
    url(r'^login/$', 'merengue.portal.views.login', name="merengue_login"),
    url(r'^logout/$', 'merengue.portal.views.logout', name="merengue_logout"),
    url({
        'en': r'^password/reset/$',
        'es': r'^contrasena/cambiar/$'
    },
Example #28
0
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    "merengue.block.views",
    url(r"^$", "blocks_index", name="blocks_index"),
    url({"en": r"order/ajax/", "es": r"orden/ajax/"}, "blocks_reorder", name="blocks_reorder"),
    url(r"ajax/config/(?P<block_id>\d+)$", "generate_blocks_configuration", name="generate_blocks_configuration"),
    url(
        r"ajax/config_for_content/(?P<block_id>\d+)$",
        "generate_blocks_configuration_for_content",
        name="generate_blocks_configuration_for_content",
    ),
    url(r"ajax/remove-block/(?P<block_id>\d+)/$", "remove_block", name="remove_block"),
    url(r"ajax/invalidate-cache/(?P<block_id>\d+)/$", "invalidate_cache", name="invalidate_cache"),
    url(r"ajax/add-block/$", "add_block", name="add_block"),
)
Example #29
0
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.feedback.views',
    url({'en': r'^send_comment/(?P<content_type>\d+)/(?P<content_id>\d+)/(?P<parent_id>\d+)/$',
         'es': r'^enviar_comentario/(?P<content_type>\d+)/(?P<content_id>\d+)/(?P<parent_id>\d+)/$'},
        'content_comment_add', name='comment_add_parent'),
    url({'en': r'^send_comment/(?P<content_type>\d+)/(?P<content_id>\d+)/$',
         'es': r'^enviar_comentario/(?P<content_type>\d+)/(?P<content_id>\d+)/$'},
         'content_comment_add', name='comment_add'),
    url({'en': r'^change_comment_visiblity/(?P<comment_id>\d+)/$',
         'es': r'^cambiar_visibilidad_de_comentario/(?P<comment_id>\d+)/$'},
         'content_comment_change_visibity', name='comment_change_visibity'),
    url({'en': r'^content_comment_delete/(?P<comment_id>\d+)/$',
         'es': r'^eliminar_contenido_de_comentario/(?P<comment_id>\d+)/$'},
         'content_comment_delete', name='comment_delete'),
)
Example #30
0
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns

from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.piwik.views',
    url(r'^$', 'index', name='stats_index'),
    url(r'^ranking/$', 'ranking', name='stats_ranking'),
    url({
        'en': r'^my-contents/$',
        'es': r'^mis-contenidos/$'
    },
        'ranking_by_owner',
        name='ranking_by_owner'),
)
Example #31
0
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'merengue.places.views',
    url({
        'en': r'^ajax/nearby/$',
        'es': r'^ajax/cercano/$'
    },
        'places_ajax_nearby',
        name='places_ajax_nearby'),
    url(
        {
            'en':
            r'^merengue_content_info/(?P<content_type>\d+)/(?P<content_id>\d+)/$',
            'es':
            r'^merengue_informacion_contenido/(?P<content_type>\d+)/(?P<content_id>\d+)/$'
        },
        'content_info',
        name='content_info'),
)
Example #32
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns('merengue.collection.views',
    url({'en': r'ajax/get_collection_fields/$',
         'es': r'ajax/campos_de_coleccion/$'},
         'get_collection_fields', name='get_collection_fields'),
)
Example #33
0
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

SLUG_RE = r'[-_\w]+'

urlpatterns = patterns(
    'plugins.ezdashboard.views',
    url(r'^$', 'dashboard', name='dashboard'),
    url({
        'en': r'^catalog/$',
        'es': r'^catalogo/$'
    },
        'gadgets_list',
        name='catalog'),
    url(r'^meta/(?P<gadget_name>%s)/$' % SLUG_RE, 'gadget_meta', name='meta'),
    url(
        {
            'en': r'^content/(?P<gadget_name>%s)/$' % SLUG_RE,
            'es': r'^contenido/(?P<gadget_name>%s)/$' % SLUG_RE
        },
        'gadget_view',
        name='content'),
)
Example #34
0
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('merengue.perms.views',
    url({'en': r'^access-request/$',
         'es': r'^peticion-de-acceso/$'},
        'access_request', name='access_request'),
)
Example #35
0
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns(
    "plugins.filebrowser.views",
    url(r"^$", "repositories", name="filebrowser_repositories"),
    url(r"^(?P<repository_name>[\w-]+)/$", "root", name="filebrowser_root"),
    url(
        {"en": r"^(?P<repository_name>[\w-]+)/listing/$", "es": r"^(?P<repository_name>[\w-]+)/listado/$"},
        "listing",
        name="filebrowser_root_listing",
    ),
    url(
        {
            "en": r"^(?P<repository_name>[\w-]+)/listing/(?P<path>.*)$",
            "es": r"^(?P<repository_name>[\w-]+)/listado/(?P<path>.*)$",
        },
        "listing",
        name="filebrowser_dir_listing",
    ),
    url(
        {
            "en": r"^(?P<repository_name>[\w-]+)/download/(?P<path>.*)$",
            "es": r"^(?P<repository_name>[\w-]+)/descargar/(?P<path>.*)$",
        },
        "download",
        name="filebrowser_download",
    ),
    url(
Example #36
0
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.forum.views',
    url(r'^$', 'forum_index', name='forum_index'),
    url(
        {
            'en': r'^change_comment_visiblity/(?P<comment_id>\d+)/$',
            'es': r'^cambiar_visibilidad_del_comentario/(?P<comment_id>\d+)/$'
        },
        'forum_comment_change_visibity',
        name='forum_comment_change_visibity'),
    url(
        {
            'en': r'^comment_delete/(?P<comment_id>\d+)/$',
            'es': r'^eliminar_comentario/(?P<comment_id>\d+)/$'
        },
        'forum_comment_delete',
        name='forum_comment_delete'),
    url({
        'en': r'^create_thread$',
        'es': r'^crear_hilo$'
    },
        'create_new_thread',
        name='create_new_thread'),
    url(
        {
            'en':
            r'^add_comment/(?P<forum_slug>[\w-]+)/(?P<thread_slug>[\w-]+)/(?P<parent_id>\d+)/$',
            'es':
Example #37
0
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

'''
Example urls ::

    /cms/seo/sitemap.xml
    /cms/seo/portal_links/1/sitemap.xml
    /cms/seo/menu_portal/1/sitemap.xml
    /cms/seo/sections/1/contents/1/sitemap.xml
    /cms/seo/portal_links/1/sections/1/contents/1/sitemap.xml
    /cms/seo/portal_links/0/menu_portal/0/sections/1/contents/1/sitemap.xml
'''

urlpatterns = patterns('merengue.seo.views',
    url(r'^(?:portal_links/(?P<with_portal_links>[0:1])/)?'
          r'(?:menu_portal/(?P<with_menu_portal>[0:1])/)?'
          r'(?:sections/(?P<with_sections>[0:1])/)?'
          r'(?:menu_section/(?P<with_menu_section>[0:1])/)?'
          r'(?:contents/(?P<with_contents>[0:1])/)?'
          r'sitemap.xml$', 'sitemap', name='sitemap'),
)
Example #38
0
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.filebrowser.views',
    url(r'^$', 'repositories', name='filebrowser_repositories'),
    url(r'^(?P<repository_name>[\w-]+)/$', 'root', name='filebrowser_root'),
    url({'en': r'^(?P<repository_name>[\w-]+)/listing/$',
         'es': r'^(?P<repository_name>[\w-]+)/listado/$'},
         'listing', name='filebrowser_root_listing'),
    url({'en': r'^(?P<repository_name>[\w-]+)/listing/(?P<path>.*)$',
         'es': r'^(?P<repository_name>[\w-]+)/listado/(?P<path>.*)$'},
         'listing', name="filebrowser_dir_listing"),
    url({'en': r'^(?P<repository_name>[\w-]+)/download/(?P<path>.*)$',
         'es': r'^(?P<repository_name>[\w-]+)/descargar/(?P<path>.*)$'},
         'download', name='filebrowser_download'),
    url({'en': r'^(?P<repository_name>[\w-]+)/upload/(?P<path>.*)$',
         'es': r'^(?P<repository_name>[\w-]+)/subir/(?P<path>.*)$'},
         'upload', name='filebrowser_upload'),
    url({'en': r'^(?P<repository_name>[\w-]+)/create/folder/(?P<path>.*)$',
         'es': r'^(?P<repository_name>[\w-]+)/crear/carpeta/(?P<path>.*)$'},
         'createdir', name='filebrowser_createdir'),
    url({'en': r'^(?P<repository_name>[\w-]+)/action/(?P<path>.*)$',
         'es': r'^(?P<repository_name>[\w-]+)/accion/(?P<path>.*)$'},
         'action', name='filebrowser_action'),
    url({'en': r'^search/files/$',
         'es': r'^buscar/ficheros/$'},
         'search', name='filebrowser_search'),

    # documents
Example #39
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('merengue.places.views',
    url({'en': r'^ajax/nearby/$',
         'es': r'^ajax/cercano/$'},
         'places_ajax_nearby', name='places_ajax_nearby'),
    url({'en': r'^merengue_content_info/(?P<content_type>\d+)/(?P<content_id>\d+)/$',
         'es': r'^merengue_informacion_contenido/(?P<content_type>\d+)/(?P<content_id>\d+)/$'},
         'content_info', name='content_info'),
)
Example #40
0
from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.forum.views',
    url(r'^$', 'forum_index', name='forum_index'),
    url({'en': r'^change_comment_visiblity/(?P<comment_id>\d+)/$',
         'es': r'^cambiar_visibilidad_del_comentario/(?P<comment_id>\d+)/$'},
         'forum_comment_change_visibity', name='forum_comment_change_visibity'),
    url({'en': r'^comment_delete/(?P<comment_id>\d+)/$',
         'es': r'^eliminar_comentario/(?P<comment_id>\d+)/$'},
         'forum_comment_delete', name='forum_comment_delete'),
    url({'en': r'^create_thread$',
         'es': r'^crear_hilo$'},
         'create_new_thread', name='create_new_thread'),
    url({'en': r'^add_comment/(?P<forum_slug>[\w-]+)/(?P<thread_slug>[\w-]+)/(?P<parent_id>\d+)/$',
         'es': r'^anadir_comentario/(?P<forum_slug>[\w-]+)/(?P<thread_slug>[\w-]+)/(?P<parent_id>\d+)/$'},
        'forum_comment_add', name='forum_child_comment_add'),
    url({'en': r'^add_comment/(?P<forum_slug>[\w-]+)/(?P<thread_slug>[\w-]+)/$',
         'es': r'^anadir_comentario/(?P<forum_slug>[\w-]+)/(?P<thread_slug>[\w-]+)/$'},
         'forum_comment_add', name='forum_comment_add'),
    url(r'^(?P<forum_slug>[\w-]+)/$', 'forum_view', name='forum_view'),
    url({'en': r'^(?P<forum_slug>[\w-]+)/create_thread$',
         'es': r'^(?P<forum_slug>[\w-]+)/crear_hilo$'},
         'create_new_thread', name='create_new_thread'),
    url(r'^(?P<forum_slug>[\w-]+)/(?P<thread_slug>[\w-]+)/$', 'thread_view', name='thread_view'),
)
Example #41
0
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url

urlpatterns = patterns(
    'plugins.registration.views',
    url(r'^$', 'register_view', name='register_view'),
    url(
        {
            'en':
            r'^confirm/(?P<username>[\w.@+-]+)/(?P<registration_hash>[a-f0-9]+)/$',
            'es':
            r'^confirmar/(?P<username>[\w.@+-]+)/(?P<registration_hash>[a-f0-9]+)/$'
        },
        'confirm_register_view',
        name='confirm_register_view'),
    url({
        'en': r'^password_recovery/$',
        'es': r'^recuperar_clave/$'
    },
        'password_recovery_view',
        name='password_recovery_view'),
Example #42
0
# Copyright (c) 2010 by Yaco Sistemas
#
# This file is part of Merengue.
#
# Merengue is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Merengue 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 Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Merengue.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import patterns
from merengue.urlresolvers import merengue_url as url


urlpatterns = patterns('plugins.subscription.views',
    url(r'^(?P<basecontent_id>\d+)/$', 'subscription_form', name='subscription_form'),
    url({'en': r'^(?P<basecontent_slug>[\w-]+)/subscribers/$',
         'es': r'^(?P<basecontent_slug>[\w-]+)/subscriptores/$'},
         'subscriber_listing', name='subscriber_listing'),
)