Changeset e0fb71efb4ad4bde8f19a9654d44f7d8d1c7e439


Ignore:
Timestamp:
07.06.2013 20:05:28 (7 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0
Children:
d81f8f4fb296d16d6d8c66a196202fb109362c67
Parents:
9b426fe275ea304fd3dff1a8f3e3e960f1dee07a
git-author:
Stanislaw Klekot <dozzie@…> (07.06.2013 20:05:28)
git-committer:
Stanislaw Klekot <dozzie@…> (07.06.2013 20:05:28)
Message:

Replaced resolving dashwiki.wiki.views.handle_wiki with named URLs.

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/markup/templatetags/dashwiki_to_html.py

    re91ffc re0fb71  
    3030    try: 
    3131      from django.core.urlresolvers import reverse 
    32       target = reverse( 
    33         'dashwiki.wiki.views.handle_wiki', 
    34         kwargs = {'page_name': target}, 
    35       ) 
     32      target = reverse('display_wiki_page', kwargs = {'page_name': target}) 
    3633    except ImportError, e: 
    3734      # ignore error in importing django.core.urlresolvers -- it probably 
  • dashwiki/users/templates/login.html

    re91ffc re0fb71  
    1919{% if success %} 
    2020<p> 
    21 Go to <a href="{% url dashwiki.wiki.views.handle_wiki "WikiStart" %}">home page</a>. 
     21Go to <a href="{% url home_page %}">home page</a>. 
    2222</p> 
    2323{% else %} 
  • dashwiki/users/templates/logout.html

    re91ffc re0fb71  
    1818 
    1919<p> 
    20 Go to <a href="{% url dashwiki.wiki.views.handle_wiki "WikiStart" %}">main page</a>. 
     20Go to <a href="{% url home_page %}">main page</a>. 
    2121</p> 
    2222 
  • dashwiki/wiki/templates/create_wiki.html

    re91ffc re0fb71  
    2323{% if created %} 
    2424<p> 
    25   Now <a href="{% url dashwiki.wiki.views.handle_wiki page_name %}?edit=true">go edit 
     25  Now <a href="{% url display_wiki_page page_name %}?edit=true">go edit 
    2626  the page</a>. 
    2727</p> 
  • dashwiki/wiki/templates/list_history.html

    re91ffc re0fb71  
    1818    <td>{{ page.author }}</td> 
    1919{% if page.content %} 
    20     <td><a href="{% url dashwiki.wiki.views.handle_wiki page.name %}?rev={{ page.revision }}">{{ page.name }}</a></td> 
     20    <td><a href="{% url display_wiki_page page.name %}?rev={{ page.revision }}">{{ page.name }}</a></td> 
    2121    <td>{{ page.revision }}</td> 
    2222{% else %} 
  • dashwiki/wiki/templates/list_pages.html

    re91ffc re0fb71  
    99<ul> 
    1010  {% for page in pages %} 
    11     <li><a href="{% url dashwiki.wiki.views.handle_wiki page %}">{{ page }}</a></li> 
     11    <li><a href="{% url display_wiki_page page %}">{{ page }}</a></li> 
    1212  {% endfor %} 
    1313</ul> 
  • dashwiki/wiki/templates/remove_wiki.html

    re91ffc re0fb71  
    2424</p> 
    2525<p> 
    26 Go back to <a href="{% url dashwiki.wiki.views.handle_wiki "WikiStart" %}">home page</a>. 
     26Go back to <a href="{% url home_page %}">home page</a>. 
    2727</p> 
    2828 
  • dashwiki/wiki/urls.py

    re91ffc re0fb71  
    33urlpatterns = patterns('dashwiki.wiki.views', 
    44  (r'^$', 'display_wiki', {'page_name': 'WikiStart'}), 
    5   (r'^(?P<page_name>[A-Z][a-zA-Z0-9_/]+)', 'handle_wiki'), 
     5  (r'^(?P<page_name>[A-Z][a-zA-Z0-9_/]+)', 'handle_wiki', {}, 'display_wiki_page'), 
    66) 
  • index.cgi

    raafdd7 re0fb71  
    1313 
    1414# your Django project containing the settings.py 
    15 sys.path += ["%s/%s" % (mypath, myproject)] 
     15#sys.path += ["%s/%s" % (mypath, myproject)] 
     16sys.path += [mypath] 
    1617 
    1718# settings of your django page module 
  • templates/template.html

    re91ffc re0fb71  
    1111  <div id="navbar"> 
    1212    <ul id="left-navbar"> 
    13       <li><a href="{% url dashwiki.wiki.views.handle_wiki "WikiStart" %}"><img src="{% url static_files path='home.png' %}" alt=""/>Home Page</a></li> 
     13      <li><a href="{% url home_page %}"><img src="{% url static_files path='home.png' %}" alt=""/>Home Page</a></li> 
    1414      <li><a href="{% url dashwiki.wiki.views.list_pages %}">All pages</a></li> 
    1515      <li><a href="{% url dashwiki.wiki.views.list_history %}">All changes</a></li> 
Note: See TracChangeset for help on using the changeset viewer.