Added run script
This commit is contained in:
parent
a8a9510c62
commit
c842c6d039
1
run-server
Executable file
1
run-server
Executable file
@ -0,0 +1 @@
|
||||
/home/raoul/VirtualEnv/ScribeEngine/tags/bin/paster serve development.ini --reload
|
@ -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
|
||||
|
@ -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):
|
||||
"""
|
||||
|
@ -200,7 +200,6 @@ hr {
|
||||
|
||||
#comments,
|
||||
#respond {
|
||||
/*font-size: 1.5em;*/
|
||||
margin-top: 1.8em;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user