Commits

Philip Jenvey committed a463df4

o added unicode support and .hgignore
o remove .egg-info/ files that shouldn't be version controlled
From Yannick Gingras <ygingras@ygingras.net>

  • Participants
  • Parent commits a6c41a6

Comments (0)

Files changed (7)

+syntax:glob
+.svn
+.coverage
+*.pyc
+*.egg-link
+ez_setup
+container_file
+container_dbm*
+*~
+build/
+dist/
+easy-install.pth
+site.py

QuickWiki.egg-info/dependency_links.txt

-

QuickWiki.egg-info/entry_points.txt

-
-    [paste.app_factory]
-    main=quickwiki.config.middleware:make_app
-    [paste.app_install]
-    main=paste.script.appinstall:Installer
-    

QuickWiki.egg-info/paster_plugins.txt

-Pylons
-WebHelpers
-PasteScript

QuickWiki.egg-info/top_level.txt

-quickwiki

quickwiki/model/__init__.py

 # table names, you'll need a metadata for each database.
 metadata = MetaData()
 
-wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)")
+wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)", re.UNICODE)
 
 pages_table = Table('pages', metadata,
-    Column('title', types.String(40), primary_key=True),
-    Column('content', types.String(), default='')
+    Column('title', types.Unicode(40), primary_key=True),
+    Column('content', types.Unicode(), default='')
 )
 
 class Page(object):

quickwiki/templates/list-titles.mako

 % for title in c.titles:
 <li>
-  <span id="page-${title}">${title}</span>
+  <span id="page-${unicode(title)}">${title}</span>
   &nbsp;[${h.link_to('visit', h.url_for(title=title, action="index"))}]
-  ${h.draggable_element("page-"+ str(title), revert=True)}
+  ${h.draggable_element("page-"+ unicode(title), revert=True)}
 </li>
 % endfor