diff --git a/run-server b/run-server index ea30ee6..534e752 100755 --- a/run-server +++ b/run-server @@ -1 +1 @@ -/home/raoul/VirtualEnv/ScribeEngine/tags/bin/paster serve development.ini --reload +/home/raoul/VirtualEnv/ScribeEngine/trunk/bin/paster serve development.ini --reload diff --git a/scribeengine/lib/utils.py b/scribeengine/lib/utils.py index 69154ef..a2c0d9e 100644 --- a/scribeengine/lib/utils.py +++ b/scribeengine/lib/utils.py @@ -67,7 +67,7 @@ def generate_url(title): ``title`` The title of the blog post. """ - return re.sub(r'[^a-zA-Z0-9]+', u'-', title.lower()).strip() + return re.sub(r'[^a-zA-Z0-9]+', u'-', title.lower()).strip('-') def hash_password(password): """ diff --git a/setup.py b/setup.py index 16176a5..b630fab 100644 --- a/setup.py +++ b/setup.py @@ -5,9 +5,21 @@ except ImportError: use_setuptools() from setuptools import setup, find_packages +try: + from bzrlib.branch import Branch + b = Branch.open_containing('.')[0] + b.lock_read() + try: + revno = b.revno() + finally: + b.unlock() +except: + revno = 0 + + setup( name='ScribeEngine', - version='0.1', + version='0.1.%s' % str(revno), description='', author='', author_email='',