Commit b1cf86dc authored by Dave Kliczbor's avatar Dave Kliczbor
Browse files

Version used in ZKK15

parents
Schildergenerator
=================
A web page to quickly create and print signs using a common design.
Especially useful for events.
Dependencies
------------
* python-flask python-genshi python-pythonmagick
* pdflatex latex-beamer
* libapache2-mod-wsgi (if not used in debug mode)
Config
------
* copy config.py.example to config.py and edit it to your needs.
* copy schildergen.wsgi.example to schildergen.wsgi and edit it.
Apache Config
-------------
See also http://flask.pocoo.org/docs/deploying/mod_wsgi/
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
WSGIRestrictStdout Off
<VirtualHost *:443>
ServerAdmin admin@server.test
DocumentRoot /path/to/schildergen
ServerName server.name.org
AddDefaultCharset utf-8
ErrorLog /path/to/log
CustomLog /path/to/log
SSLEngine on
SSLCertificateFile /path/to/www.example.com.cert
SSLCertificateKeyFile /path/to/www.example.com.key
WSGIDaemonProcess schildergen user=www-data group=www-data threads=2
WSGIScriptAlias / /path/to/schildergen.wsgi
<Directory /path/to/schildergen.wsgi>
AllowOverride All
WSGIProcessGroup schildergen
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
Contributors
============
* Dave Kliczbor <dave@fsinfo.cs.tu-dortmund.de>
* Lars Beckers <larsb@fsmpi.rwth-aachen.de>
* Moritz Holtz <moritz@fsmpi.rwth-aachen.de>
* Konstantin Kotenko <konstantin@fsmpi.rwth-aachen.de>
Image Sources
-------------
* USNPS pictograms taken from the Open Icon Library: http://sourceforge.net/projects/openiconlibrary/
#### BASIC CONFIGURATION
# Secret key (used for session cookie encryption). Needs to be set to some random string.
# Yes, just smash your keyboard for some random characters. No, don't publish them anywhere.
# Yes, you will need this. If you get random RuntimeErrors, you did not set this.
app_secret = ''
## You will need to use absolute paths!
# Base directory. You need to set this again in schilder.wsgi if you use WSGI.
basedir = '/home/dave/Development/schildergenerator'
# Temp directory for imagemagick/pdflatex work files (needs to be writeable)
tmpdir = '/tmp'
## All following directories derive from basedir, you don't really need to alter them
# Data directory (needs to be writeable)
datadir = basedir + '/data'
# HTML template directory
templatedir = basedir + '/templates'
# TeX template directory
textemplatedir = basedir + '/tex'
# TeX support file directory (all files that might be needed by a tex template)
texsupportdir = textemplatedir + '/support'
# PDF data directory (needs to be writeable)
pdfdir = datadir + '/pdf'
# Image data directory (needs to be writeable)
imagedir = datadir + '/images'
# Upload temp directory (needs to be writeable)
uploaddir = datadir + '/upload'
# allowed image upload file extensions
allowed_extensions = set(['png', 'jpg', 'jpeg', 'gif'])
#### PRINTER OPTIONS
# CUPS printer names
printers = {
'Human readable printer description' : 'CUPS-ID-String',
'Color Printer in room 1337' : 'Brother_ColorLaserJet_6V',
'B/W Printer in room 0' : 'HP_HL-38281',
}
printserver = 'localhost'
# additional lpr options. Use an empty list if not needed.
lproptions=['-Fa4g', '-N1', '-o fitplot']
#### DEVELOPERS ONLY
# Listening interface and port, usually '127.0.0.1' or '0.0.0.0'
# Only effective if started from command line (instead via webserver/WSGI),
# therefore these options would only be interesting to a developer.
listen = '127.0.0.1'
port = 5432
{"headline": "Headline", "text": "Additional text.", "pdfname": "Headline-417648766.schild.pdf", "img": "pictograms-nps-showers.png", "textemplate": "headline-top_arrowup_image-right.tex"}
\ No newline at end of file
{"headline": "Headline", "text": "Additional text.", "pdfname": "Headline1053846357.schild.pdf", "img": "__none", "textemplate": "headline-top_arrowright_text-right.tex"}
\ No newline at end of file
{"headline": "Headline", "text": "Additional text.", "pdfname": "Headline2075177871.schild.pdf", "img": "pictograms-nps-showers.png", "textemplate": "headline-top_arrowup_text-right.tex"}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment