Moar unicode fixes

This commit is contained in:
Noah 2015-02-23 13:10:21 -08:00
förälder e485725b4c
incheckning 21dbede734
24 ändrade filer med 32 tillägg och 15 borttagningar

Visa fil

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import unicode_literals
"""Flask app for Rophako.""" """Flask app for Rophako."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""JSON flat file database system.""" """JSON flat file database system."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Debug and logging functions.""" """Debug and logging functions."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Blog models.""" """Blog models."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Commenting models.""" """Commenting models."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Emoticon models.""" """Emoticon models."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Photo album models.""" """Photo album models."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Visitor tracking models.""" """Visitor tracking models."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""User account models.""" """User account models."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Wiki models.""" """Wiki models."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for user login and out.""" """Endpoints for user login and out."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for admin functions.""" """Endpoints for admin functions."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for the web blog.""" """Endpoints for the web blog."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for contacting the site owner.""" """Endpoints for contacting the site owner."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for the commenting subsystem.""" """Endpoints for the commenting subsystem."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for the photo albums.""" """Endpoints for the photo albums."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for visitor tracking functions.""" """Endpoints for visitor tracking functions."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""Endpoints for the wiki.""" """Endpoints for the wiki."""

Visa fil

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import unicode_literals
"""Dynamic CMS plugin loader.""" """Dynamic CMS plugin loader."""

Visa fil

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os import os
import datetime import datetime

Visa fil

@ -14,6 +14,7 @@ import markdown
import json import json
import urlparse import urlparse
import traceback import traceback
import socket
from rophako.log import logger from rophako.log import logger
from rophako.settings import Config from rophako.settings import Config
@ -190,10 +191,13 @@ def send_email(to, subject, message, sender=None, reply_to=None):
headers.append("Subject: {}".format(subject)) headers.append("Subject: {}".format(subject))
# Prepare the mail for transport. # Prepare the mail for transport.
try:
server = smtplib.SMTP(Config.mail.server, Config.mail.port) server = smtplib.SMTP(Config.mail.server, Config.mail.port)
msg = "\n".join(headers) + "\n\n" + message msg = "\n".join(headers) + "\n\n" + message
server.sendmail(sender, email, msg) server.sendmail(sender, email, msg)
server.quit() server.quit()
except socket.error:
pass
def handle_exception(error): def handle_exception(error):

Visa fil

@ -54,15 +54,6 @@
{% block content %}{% endblock %} {% block content %}{% endblock %}
<hr>
<p class="right">
<strong>Visitor Information:</strong><br>
Unique Visitors: {{ tracking["unique_today"] }} today/{{ tracking["unique_total"] }} total<br>
Page Hits: {{ tracking["hits_today"] }} today/{{ tracking["hits_total"] }} total<br>
<a href="{{ url_for('tracking.visitors') }}">Visitor Details</a> |
<a href="{{ url_for('tracking.referrers') }}">Referring URLs</a>
</p>
<footer> <footer>
<div> <div>
&copy; 2014 Noah Petherbridge. Web design released along with the Rophako CMS &copy; 2014 Noah Petherbridge. Web design released along with the Rophako CMS

Visa fil

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import unicode_literals
"""Locate any orphaned photos. """Locate any orphaned photos.

Visa fil

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import unicode_literals
"""Migrate blog database files from a PerlSiikir site to Rophako. """Migrate blog database files from a PerlSiikir site to Rophako.