fix wrong attr name in Station's properties outputs and inputs

This commit is contained in:
bkfox 2016-12-29 20:48:57 +01:00
parent 331152b0e9
commit b011df7dcd
3 changed files with 8 additions and 6 deletions

View File

@ -49,11 +49,13 @@ Python modules:
* `bleach`: 'aircox.cms` (comments sanitization) * `bleach`: 'aircox.cms` (comments sanitization)
* `dateutils`: `aircox.programs` (used for tests) * `dateutils`: `aircox.programs` (used for tests)
* `Pillow`: `aircox.cms` (needed by `wagtail`) * `Pillow`: `aircox.cms` (needed by `wagtail`)
* Django's required database modules * Django's required database modules (remember to install `mysqlclient` if you plan to use a MySql database server)
External applications: External applications:
* `liquidsoap`: `aircox` (generation of the audio streams) * `liquidsoap`: `aircox` (generation of the audio streams)
* `sox`: `aircox` (check sounds quality and metadatas) * `sox`: `aircox` (check sounds quality and metadatas)
* `gunicorn`: WSGI server to be used in production (installed along as dependency)
* `supervisord`: supervisor
* note there might be external dependencies for python's Pillow too * note there might be external dependencies for python's Pillow too
* sqlite, mysql or any database library that you need to run a database, that is supported by Django (+ eventual python deps) * sqlite, mysql or any database library that you need to run a database, that is supported by Django (+ eventual python deps)

View File

@ -212,7 +212,7 @@ class Station(Nameable):
Return all active input ports of the station Return all active input ports of the station
""" """
return self.port_set.filter( return self.port_set.filter(
direction = Port.Direction.Input, direction = Port.Direction.input,
active = True active = True
) )
@ -222,7 +222,7 @@ class Station(Nameable):
Return all active output ports of the station Return all active output ports of the station
""" """
return self.port_set.filter( return self.port_set.filter(
direction = Port.Direction.Output, direction = Port.Direction.output,
active = True, active = True,
) )

View File

@ -21,7 +21,7 @@ autostart = true
autorestart = true autorestart = true
stdout_logfile = /srv/apps/aircox/logs/server.log stdout_logfile = /srv/apps/aircox/logs/server.log
redirect_stderr = true redirect_stderr = true
environment=AIRCOX_DEBUG="False",PATH="/srv/apps/aircox/venv/bin" environment=AIRCOX_DEBUG="False"
[program:aircox_sounds_monitor] [program:aircox_sounds_monitor]
command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py sounds_monitor -qsm command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py sounds_monitor -qsm
@ -31,7 +31,7 @@ autostart = true
autorestart = true autorestart = true
stdout_logfile = /srv/apps/aircox/logs/sounds_monitor.log stdout_logfile = /srv/apps/aircox/logs/sounds_monitor.log
redirect_stderr = true redirect_stderr = true
environment=AIRCOX_DEBUG="False",PATH="/srv/apps/aircox/venv/bin" environment=AIRCOX_DEBUG="False"
[program:aircox_streamer] [program:aircox_streamer]
command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py streamer -crm command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py streamer -crm
@ -41,6 +41,6 @@ autostart = true
autorestart = true autorestart = true
stdout_logfile = /srv/apps/aircox/logs/streamer.log stdout_logfile = /srv/apps/aircox/logs/streamer.log
redirect_stderr = true redirect_stderr = true
environment=AIRCOX_DEBUG="False",PATH="/srv/apps/aircox/venv/bin" environment=AIRCOX_DEBUG="False"