Added run script

This commit is contained in:
Raoul Snyman 2010-01-22 13:09:20 +02:00
parent a8a9510c62
commit c842c6d039
4 changed files with 7 additions and 7 deletions

1
run-server Executable file
View File

@ -0,0 +1 @@
/home/raoul/VirtualEnv/ScribeEngine/tags/bin/paster serve development.ini --reload

View File

@ -64,7 +64,7 @@ class Flash(object):
def teaser(text, url):
position = text.find(u'</p>')
if position > 0:
return text[:position]
return text[:position + 4]
elif len(text) > 300:
text = text[:297]
position = len(text) - 1

View File

@ -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())
return re.sub(r'[^a-zA-Z0-9]+', u'-', title.lower()).strip()
def hash_password(password):
"""

View File

@ -200,7 +200,6 @@ hr {
#comments,
#respond {
/*font-size: 1.5em;*/
margin-top: 1.8em;
}