old_contents: # -*- encoding: utf-8 -*-
  from django.conf.urls.defaults import *
  
  url_prefix = 'tiny_mce/images/'
  
  urlpatterns = patterns('tinymce_images.view',
      #url(r'download/$', tiny_views.download),
      #url(r'^$', tiny_views.all),
      url(r'^new_folder/(?P<name>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'new_folder', {}, 'new_folder'),
      url(r'^show_path/(?P<type>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'show_path', {}, 'show_path'),
      url(r'^show_tree/(?P<type>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'show_tree', {}, 'show_tree'),
      url(r'^show_dir/(?P<type>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'show_dir', {}, 'show_dir'), 
      url(r'^del_folder/(?P<path>[a-zA-Z0-9_/]*)$', 'del_folder', {}, 'del_folder'), 
      url(r'^upload_file/$', 'upload_file', {}, 'upload_file'),
      url(r'^del_file/$', 'del_file', {}, 'del_file'),
      url(r'^sid/$', 'sid', {}, 'sid'),
  
      url(r'^connector/$',
          'django.views.generic.simple.direct_to_template',
          {'template': 'connector_url.js',
           'mimetype': 'text/javascript',
           'connector_url': '/%s' % url_prefix},
          name='connector_url' ),
  )
  
  urlpatterns = patterns("",
      url(r'^%s' % url_prefix, include(urlpatterns)),
  )
  
  
new_contents: # -*- encoding: utf-8 -*-
  from django.conf.urls.defaults import *
  
  url_prefix = 'tiny_mce/images/'
  
  urlpatterns = patterns('tinymce_images.view',
      #url(r'download/$', tiny_views.download),
      #url(r'^$', tiny_views.all),
      url(r'^new_folder/(?P<name>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'new_folder', {}, 'new_folder'),
      url(r'^show_path/(?P<type>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'show_path', {}, 'show_path'),
      url(r'^show_tree/(?P<type>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'show_tree', {}, 'show_tree'),
      url(r'^show_dir/(?P<type>\w+)/(?P<path>[a-zA-Z0-9_/]*)$', 'show_dir', {}, 'show_dir'), 
      url(r'^del_folder/(?P<path>[a-zA-Z0-9_/]*)$', 'del_folder', {}, 'del_folder'), 
      url(r'^upload_file/$', 'upload_file', {}, 'upload_file'),
      url(r'^del_file/$', 'del_file', {}, 'del_file'),
      url(r'^sid/$', 'sid', {}, 'sid'),
  
  )
  
  urlpatterns = patterns("",
      url(r'^%s' % url_prefix, include(urlpatterns)),
      url(r'^%sconnector/$' % url_prefix,
          'django.views.generic.simple.direct_to_template',
          {'template': 'connector_url.js',
           'mimetype': 'text/javascript',
           'connector_url': '/%s' % url_prefix},
          name='connector_url' ),
  
  )
  
  
subject: fix urls