Namenskorrektur II

This commit is contained in:
lars 2008-08-23 13:11:19 +00:00
parent c0258314f4
commit 23d54c5ac7
75 changed files with 108 additions and 108 deletions

View file

@ -16,7 +16,7 @@
inkscape:version="0.44.1"
version="1.0"
sodipodi:docname="Web-Interface_A.svg"
sodipodi:docbase="/mnt/phobos/age/svn/codekasten/fotokiste/Entwurf">
sodipodi:docbase="/mnt/phobos/age/svn/codekasten/fotokiosk/Entwurf">
<defs
id="defs4">
<inkscape:perspective
@ -91,7 +91,7 @@
sodipodi:role="line"
id="tspan2406"
x="139.44901"
y="153.06456">Logo für Glasmensch/Fotokiste</tspan></text>
y="153.06456">Logo für Glasmensch/Fotokiosk</tspan></text>
<path
style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 370.95884,121.74075 L 370.95884,121.74075"
@ -151,7 +151,7 @@
id="tspan3227"
sodipodi:role="line"
x="250.97425"
y="207.33772">fotokiste@glasmensch.org</tspan><tspan
y="207.33772">fotokiosk@glasmensch.org</tspan><tspan
id="tspan3229"
sodipodi:role="line"
x="250.97425"
@ -193,7 +193,7 @@
<g
id="g3371"
transform="translate(-1546.9999,7)"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite2.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite2.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<g
@ -218,7 +218,7 @@
sodipodi:role="line"
id="tspan3275"
x="139.44901"
y="153.06456">Logo für Glasmensch/Fotokiste</tspan></text>
y="153.06456">Logo für Glasmensch/Fotokiosk</tspan></text>
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 370.95884,121.74075 L 370.95884,121.74075"
@ -278,7 +278,7 @@
id="tspan3297"
sodipodi:role="line"
x="250.97425"
y="207.33772">fotokiste@glasmensch.org</tspan><tspan
y="207.33772">fotokiosk@glasmensch.org</tspan><tspan
id="tspan3299"
sodipodi:role="line"
x="250.97425"
@ -401,7 +401,7 @@
<g
transform="translate(-5.250016,11.000021)"
id="g3593"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite4.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite4.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<rect
@ -423,7 +423,7 @@
y="153.06456"
x="139.44901"
id="tspan3599"
sodipodi:role="line">Logo für Glasmensch/Fotokiste</tspan></text>
sodipodi:role="line">Logo für Glasmensch/Fotokiosk</tspan></text>
<path
inkscape:connection-end="#rect2402"
inkscape:connection-start="#rect2402"
@ -435,7 +435,7 @@
<g
transform="translate(87.319509,447)"
id="g3615"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite4.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite4.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<rect
@ -461,7 +461,7 @@
id="tspan3623"
sodipodi:role="line"
x="250.97425"
y="207.33772">fotokiste@glasmensch.org</tspan><tspan
y="207.33772">fotokiosk@glasmensch.org</tspan><tspan
id="tspan3625"
sodipodi:role="line"
x="250.97425"
@ -474,13 +474,13 @@
id="path3627"
d="M -1987.7229,140.74075 L -1987.7229,140.74075"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite1.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite1.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<g
transform="translate(34.000061,-2.073679)"
id="g3766"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite4.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite4.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<rect
@ -507,7 +507,7 @@
<g
transform="translate(34.000061,-12.327179)"
id="g3825"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite4.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite4.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<g
@ -605,7 +605,7 @@
inkscape:connector-type="polyline"
inkscape:connection-start="#rect2402"
inkscape:connection-end="#rect2402"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite1.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite1.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90" />
<text
@ -615,7 +615,7 @@
y="22.189388"
id="text3925"
transform="scale(0.7616089,1.3130099)"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite1.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite1.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"><tspan
sodipodi:role="line"
@ -629,7 +629,7 @@
y="-7.1308522"
id="text3969"
transform="scale(0.8404344,1.1898608)"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite2.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite2.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"><tspan
sodipodi:role="line"
@ -646,7 +646,7 @@
x="-414.0744"
y="3.3554201"
id="text4149"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite3.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite3.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"><tspan
sodipodi:role="line"
@ -659,7 +659,7 @@
id="tspan4153">Empfänger eingeben</tspan></text>
<g
id="g4226"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite3.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite3.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<g
@ -684,7 +684,7 @@
y="153.06456"
x="139.44901"
id="tspan3410"
sodipodi:role="line">Logo für Glasmensch/Fotokiste</tspan></text>
sodipodi:role="line">Logo für Glasmensch/Fotokiosk</tspan></text>
<path
inkscape:connection-end="#rect2402"
inkscape:connection-start="#rect2402"
@ -745,7 +745,7 @@
id="tspan3432"
sodipodi:role="line"
x="250.97425"
y="207.33772">fotokiste@glasmensch.org</tspan><tspan
y="207.33772">fotokiosk@glasmensch.org</tspan><tspan
id="tspan3434"
sodipodi:role="line"
x="250.97425"
@ -978,7 +978,7 @@
x="369.77896"
y="-21.66836"
id="text4360"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite4.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite4.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"><tspan
sodipodi:role="line"
@ -992,7 +992,7 @@
<g
transform="matrix(1.145262,0,0,1,-2316.482,288.0289)"
id="g2014"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiste/Entwurf/Seite4.png"
inkscape:export-filename="/home/lars/subversion/codekasten/fotokiosk/Entwurf/Seite4.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<rect

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -1,4 +1,4 @@
fotokiste
fotokiosk
This is a TurboGears (http://www.turbogears.org) project. It can be
started by running the start-fotokiste.py script.
started by running the start-fotokiosk.py script.

View file

@ -2,7 +2,7 @@
# This is where all of your settings go for your development environment
# Settings that are the same for both development and production
# (such as template engine, encodings, etc.) all go in
# fotokiste/config/app.cfg
# fotokiosk/config/app.cfg
# DATABASE
@ -33,7 +33,7 @@ server.socket_port=80
# log_debug_info_filter.on = False
server.environment="development"
autoreload.package="fotokiste"
autoreload.package="fotokiosk"
# Auto-Reload after code modification
# autoreload.on = True
@ -46,13 +46,13 @@ tg.strict_parameters = True
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
# log format messages, you need to use *() for formatting variables.
# Deployment independent log configuration is in fotokiste/config/log.cfg
# Deployment independent log configuration is in fotokiosk/config/log.cfg
[logging]
[[loggers]]
[[[fotokiste]]]
[[[fotokiosk]]]
level='DEBUG'
qualname='fotokiste'
qualname='fotokiosk'
handlers=['debug_out']
[[[allinfo]]]

View file

@ -1,5 +1,5 @@
Metadata-Version: 1.0
Name: fotokiste
Name: fotokiosk
Version: 1.0
Summary: UNKNOWN
Home-page: UNKNOWN

View file

@ -0,0 +1,22 @@
README.txt
setup.py
fotokiosk/__init__.py
fotokiosk/commands.py
fotokiosk/controllers.py
fotokiosk/json.py
fotokiosk/model.py
fotokiosk/release.py
fotokiosk.egg-info/PKG-INFO
fotokiosk.egg-info/SOURCES.txt
fotokiosk.egg-info/dependency_links.txt
fotokiosk.egg-info/entry_points.txt
fotokiosk.egg-info/not-zip-safe
fotokiosk.egg-info/paster_plugins.txt
fotokiosk.egg-info/requires.txt
fotokiosk.egg-info/sqlobject.txt
fotokiosk.egg-info/top_level.txt
fotokiosk/config/__init__.py
fotokiosk/templates/__init__.py
fotokiosk/tests/__init__.py
fotokiosk/tests/test_controllers.py
fotokiosk/tests/test_model.py

View file

@ -0,0 +1,3 @@
[console_scripts]
start-fotokiosk = fotokiosk.commands:start

View file

@ -0,0 +1,2 @@
db_module=fotokiosk.model
history_dir=$base/fotokiosk/sqlobject-history

View file

@ -0,0 +1 @@
fotokiosk

View file

@ -40,14 +40,14 @@ def start():
else:
try:
configfile = pkg_resources.resource_filename(
pkg_resources.Requirement.parse("fotokiste"),
pkg_resources.Requirement.parse("fotokiosk"),
"config/default.cfg")
except pkg_resources.DistributionNotFound:
raise ConfigurationError("Could not find default configuration.")
turbogears.update_config(configfile=configfile,
modulename="fotokiste.config")
modulename="fotokiosk.config")
from fotokiste.controllers import Root
from fotokiosk.controllers import Root
turbogears.start_server(Root())

View file

@ -2,9 +2,9 @@
import turbogears as tg
from turbogears import controllers, expose, flash, redirect
# from fotokiste import model
# from fotokiosk import model
# import logging
# log = logging.getLogger("fotokiste.controllers")
# log = logging.getLogger("fotokiosk.controllers")
class SamplePicture(object):
@ -19,18 +19,18 @@ import re
import datetime
import random
IMAGE_GALLERY_PATH = os.path.join(os.getcwd(), 'fotokiste', 'static', 'gallery')
IMAGE_GALLERY_PATH = os.path.join(os.getcwd(), 'fotokiosk', 'static', 'gallery')
IMAGE_SUFFIX = ".jpg"
IMAGE_STORE = os.path.join(tempfile.gettempdir(), "fotokiste" + IMAGE_SUFFIX)
IMAGE_STORE = os.path.join(tempfile.gettempdir(), "fotokiosk" + IMAGE_SUFFIX)
GALLERY_NUM = 12
VIDEO_URL = "http://fotokiste:8081/?action=stream"
SNAPSHOT_URL = "http://fotokiste:8081/?action=snapshot"
VIDEO_URL = "http://fotokiosk:8081/?action=stream"
SNAPSHOT_URL = "http://fotokiosk:8081/?action=snapshot"
ALLOWED_MAILADDRESS_CHARACTERS = "\w._%@-"
ALLOWED_MAILTEXT_CHARACTERS = "\w@_\-\.\s\n\#\(\)\[\]\{\}\|\>\<\,\+/\'\"\?\!\:=%\$^&\*"
MAIL_ADDRESS_REGEX = r"^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,6}$"
# TODO: this path is relative - to be fixed!
MAIL_SIGNATURE_FILE = os.path.join(os.getcwd(), "mail_signature.txt")
MAIL_FROM_ADDRESS = '"Frieda-Fotokiste" <fotokiste@glasmensch.org>'
MAIL_FROM_ADDRESS = '"Frieda-Fotokiosk" <fotokiosk@glasmensch.org>'
MAIL_SUBJECT = "Ein überwachungskritisches Foto aus der Frieda!"
MAIL_ATTACHMENT_FILENAME = "frieda" + IMAGE_SUFFIX
SMTP_HOST = "localhost"
@ -152,7 +152,7 @@ def send_mail(address, text):
class Root(controllers.RootController):
@expose(template="fotokiste.templates.start")
@expose(template="fotokiosk.templates.start")
def index(self, **kargs):
# TODO: this should generate a selection of random pictures
@ -171,13 +171,13 @@ class Root(controllers.RootController):
return merged_dicts({ "gallery": gallery }, DEFAULT_DICT)
@expose(template="fotokiste.templates.ausloeser")
@expose(template="fotokiosk.templates.ausloeser")
def ausloeser(self, **kargs):
flash("Das Bild wird in 5 Sekunden aufgenommen!")
return merged_dicts({}, DEFAULT_DICT)
@expose(template="fotokiste.templates.mailtext")
@expose(template="fotokiosk.templates.mailtext")
def mailtext(self, mailaddress="", mailtext="", already_captured="no", already_stored="no", **kargs):
# store the picture if necessary
if already_captured != "yes":
@ -204,7 +204,7 @@ class Root(controllers.RootController):
}, DEFAULT_DICT)
@expose(template="fotokiste.templates.senden")
@expose(template="fotokiosk.templates.senden")
def senden(self, mailaddress="", mailtext="", already_stored="no", senden=None):
# filter input
mailaddress = filter_mailaddress(mailaddress)

View file

@ -8,7 +8,7 @@ from sqlobject import SQLObject, SQLObjectNotFound, RelatedJoin
# (see http://www.sqlobject.org/SQLObject.html#column-types for more)
from sqlobject import StringCol, UnicodeCol, IntCol, DateTimeCol
__connection__ = hub = PackageHub('fotokiste')
__connection__ = hub = PackageHub('fotokiosk')

View file

@ -1,4 +1,4 @@
# Release information about fotokiste
# Release information about fotokiosk
version = "1.0"

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View file

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View file

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View file

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View file

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -15,7 +15,7 @@ function createImageLayer() {
img.style.height = "320px";
img.onload = imageOnload;
img.onclick = imageOnclick;
img.src = "http://fotokiste:8081/?action=snapshot&n=" + (++imageNr);
img.src = "http://fotokiosk:8081/?action=snapshot&n=" + (++imageNr);
var webcam = document.getElementById("live_pic");
webcam.insertBefore(img, webcam.firstChild);
}

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -9,7 +9,7 @@
<body>
<div id="live_pic"><img src="../static/images/fotokiste-default.png"
<div id="live_pic"><img src="../static/images/fotokiosk-default.png"
py:attrs="src=video_url"/></div>
</body>

View file

@ -17,7 +17,7 @@
<input class="button" type="submit" name="senden" value="Zur&uuml;ck" />
</form>
</td><td>
<div id="mail_pic"><img src="../static/images/fotokiste-default.png"
<div id="mail_pic"><img src="../static/images/fotokiosk-default.png"
py:attrs="src=tg.url('/get_current_shot')"/></div>
</td>
<td>

View file

@ -5,7 +5,7 @@
<head py:match="item.tag=='{http://www.w3.org/1999/xhtml}head'" py:attrs="item.items()">
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title py:replace="''">panoptische Fotokiste</title>
<title py:replace="''">panoptische Fotokiosk</title>
<meta py:replace="item[:]" name="description" content="master template"/>
<style type="text/css" media="screen">
#pageLogin
@ -34,7 +34,7 @@
<div id="header">
<img src="../static/images/header.png')"
py:attrs="src=tg.url('/static/images/header.png')"
alt="panoptische Fotokiste" />
alt="panoptische Fotokiosk" />
</div>

View file

@ -10,7 +10,7 @@
<table>
<tr><td>
<div id="mail_pic"><img src="../static/images/fotokiste-default.png"
<div id="mail_pic"><img src="../static/images/fotokiosk-default.png"
py:attrs="src=tg.url('/get_current_shot')"/></div>
</td><td>
<div id="mail_info">
@ -30,7 +30,7 @@
<div id="footer">
<p>
<img src="${tg.url('/static/images/logo.png')}" alt="Sense.Lab e.V." /> <br/>
Die Fotokiste ist ein sense.lab-Projekt und ein Modul der Glasmensch-Ausstellung.<br/>
Die Fotokiosk ist ein sense.lab-Projekt und ein Modul der Glasmensch-Ausstellung.<br/>
Alle Inhalte k&ouml;nnen im Sinne einer Creative Commons Lizenz (BY-SA) beliebig weiter verwendet werden.
</p>
</div>

View file

@ -3,7 +3,7 @@
py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>Willkommen in der Fotokiste!</title>
<title>Willkommen in der Fotokiosk!</title>
<script type="text/javascript" src="../static/javascript/mjp-streamer.js"
py:attrs="src=tg.url('/static/javascript/mjp-streamer.js')" />
<title>Bild versenden</title>
@ -14,10 +14,10 @@
<tr>
<td>
<div id="live_pic"><noscript><img width="400" height="320"
src="../static/images/fotokiste-default.jpg"
src="../static/images/fotokiosk-default.jpg"
py:attrs="src=video_url"/></noscript></div>
<div id="default_pic"><img width="400" height="320"
src="../static/images/fotokiste-default.jpg" /></div>
src="../static/images/fotokiosk-default.jpg" /></div>
</td>
<td valign="center">
<form action="${tg.url('/mailtext')}" method="post">
@ -77,7 +77,7 @@
</div>
<div id="footer">
<p>
Die Fotokiste ist ein sense.lab-Projekt und ein Modul der Glasmensch-Ausstellung.<br/>
Die Fotokiosk ist ein sense.lab-Projekt und ein Modul der Glasmensch-Ausstellung.<br/>
Alle Inhalte k&ouml;nnen im Sinne einer Creative Commons Lizenz (BY-SA) beliebig weiter verwendet werden.
</p>
</div>

View file

@ -1,7 +1,7 @@
import unittest
import turbogears
from turbogears import testutil
from fotokiste.controllers import Root
from fotokiosk.controllers import Root
import cherrypy
cherrypy.root = Root()

View file

@ -5,7 +5,7 @@
# which is very fast.
from turbogears import testutil, database
# from fotokiste.model import YourDataClass, User
# from fotokiosk.model import YourDataClass, User
# database.set_db_uri("sqlite:///:memory:")

View file

@ -1,22 +0,0 @@
README.txt
setup.py
fotokiste/__init__.py
fotokiste/commands.py
fotokiste/controllers.py
fotokiste/json.py
fotokiste/model.py
fotokiste/release.py
fotokiste.egg-info/PKG-INFO
fotokiste.egg-info/SOURCES.txt
fotokiste.egg-info/dependency_links.txt
fotokiste.egg-info/entry_points.txt
fotokiste.egg-info/not-zip-safe
fotokiste.egg-info/paster_plugins.txt
fotokiste.egg-info/requires.txt
fotokiste.egg-info/sqlobject.txt
fotokiste.egg-info/top_level.txt
fotokiste/config/__init__.py
fotokiste/templates/__init__.py
fotokiste/tests/__init__.py
fotokiste/tests/test_controllers.py
fotokiste/tests/test_model.py

View file

@ -1,3 +0,0 @@
[console_scripts]
start-fotokiste = fotokiste.commands:start

View file

@ -1,2 +0,0 @@
db_module=fotokiste.model
history_dir=$base/fotokiste/sqlobject-history

View file

@ -1 +0,0 @@
fotokiste

View file

@ -4,7 +4,7 @@
Hallo,
diese Mail wurde Ihnen mit der panoptischen Fotokiste vom Frieda Hoffest 2008 in Rostock geschickt.
diese Mail wurde Ihnen mit der panoptischen Fotokiosk vom Frieda Hoffest 2008 in Rostock geschickt.
Die Personen auf dem Foto möchten damit ein Zeichen gegen zunehmend verschärfte Überwachungsbestrebungen setzen und sie mit den folgenden Punkten auf Ihre Handlungsmöglichkeiten aufmerksam machen.

View file

@ -4,7 +4,7 @@
# as a command-line option to your start script.
# Settings that are the same for both development and production
# (such as template engine, encodings, etc.) all go in
# fotokiste/config/app.cfg
# fotokiosk/config/app.cfg
# DATABASE
@ -59,7 +59,7 @@ server.environment="production"
# Logging configuration generally follows the style of the standard
# Python logging module configuration. Note that when specifying
# log format messages, you need to use *() for formatting variables.
# Deployment independent log configuration is in fotokiste/config/log.cfg
# Deployment independent log configuration is in fotokiosk/config/log.cfg
[logging]
[[handlers]]
@ -72,9 +72,9 @@ level='INFO'
formatter='message_only'
[[loggers]]
[[[fotokiste]]]
[[[fotokiosk]]]
level='ERROR'
qualname='fotokiste'
qualname='fotokiosk'
handlers=['error_out']
[[[access]]]

View file

@ -4,18 +4,18 @@ from setuptools import setup, find_packages
from turbogears.finddata import find_package_data
import os
execfile(os.path.join("fotokiste", "release.py"))
execfile(os.path.join("fotokiosk", "release.py"))
packages=find_packages()
package_data = find_package_data(where='fotokiste',
package='fotokiste')
package_data = find_package_data(where='fotokiosk',
package='fotokiosk')
if os.path.isdir('locales'):
packages.append('locales')
package_data.update(find_package_data(where='locales',
exclude=('*.po',), only_in_packages=False))
setup(
name="fotokiste",
name="fotokiosk",
version=version,
# uncomment the following lines if you fill them out in release.py
#description=description,
@ -68,7 +68,7 @@ setup(
test_suite='nose.collector',
entry_points = {
'console_scripts': [
'start-fotokiste = fotokiste.commands:start',
'start-fotokiosk = fotokiosk.commands:start',
],
},
# Uncomment next line and create a default.cfg file in your project dir

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python2.4
# -*- coding: utf-8 -*-
"""Start script for the fotokiste TurboGears project.
"""Start script for the fotokiosk TurboGears project.
This script is only needed during development for running from the project
directory. When the project is installed, easy_install will create a
@ -8,7 +8,7 @@ proper start script.
"""
import sys
from fotokiste.commands import start, ConfigurationError
from fotokiosk.commands import start, ConfigurationError
if __name__ == "__main__":
try:

View file

@ -1,19 +1,19 @@
#!/bin/sh
set -u
FOTOKISTE_DIR="/usr/local/src/fotokiste"
FOTOKISTE_EXEC="start-fotokiste.py"
PID_FILE="/var/run/fotokiste.pid"
LOG_FILE="/var/log/fotokiste.log"
MJPG_STREAMER=/usr/local/src/mjpg-streamer/start-fotokiste.sh
FOTOKIOSK_DIR="/usr/local/src/fotokiosk"
FOTOKIOSK_EXEC="start-fotokiosk.py"
PID_FILE="/var/run/fotokiosk.pid"
LOG_FILE="/var/log/fotokiosk.log"
MJPG_STREAMER=/usr/local/src/mjpg-streamer/start-fotokiosk.sh
LOG_FILE_MJPG=/var/log/mjpg-streamer.log
PID_FILE_MJPG=/var/run/mjpg-streamer.pid
case "$1" in
start)
echo -n "Starting Fotokiste ... "
echo -n "Starting Fotokiosk ... "
"$MJPG_STREAMER" &>"$LOG_FILE_MJPG" </dev/null &
echo "$!" >"$PID_FILE_MJPG"
cd "$FOTOKISTE_DIR"; python "$FOTOKISTE_EXEC" </dev/null &>"$LOG_FILE" &
cd "$FOTOKIOSK_DIR"; python "$FOTOKIOSK_EXEC" </dev/null &>"$LOG_FILE" &
echo "$!" >"$PID_FILE"
echo done
X &

View file

@ -21,9 +21,9 @@ args='(sys.stdout,)'
formatter='full_content'
[[loggers]]
[[[fotokiste]]]
[[[fotokiosk]]]
level='DEBUG'
qualname='fotokiste'
qualname='fotokiosk'
handlers=['test_out']
[[[turbogears]]]