REFACTOR: Rename frontend
This commit is contained in:
parent
b1e4a725a0
commit
64f7e9b27e
|
@ -9,6 +9,7 @@ import os
|
|||
|
||||
from mopidy import config, ext
|
||||
|
||||
from .frontend import PummeluffFrontend
|
||||
from .web import CardRequestHandler
|
||||
|
||||
|
||||
|
@ -44,6 +45,8 @@ class Extension(ext.Extension):
|
|||
'''
|
||||
Setup the extension.
|
||||
'''
|
||||
registry.add('frontend', PummeluffFrontend)
|
||||
|
||||
registry.add('http:app', {
|
||||
'name': self.ext_name,
|
||||
'factory': app_factory,
|
||||
|
|
|
@ -57,13 +57,13 @@ class CardReader(Thread):
|
|||
reader.cleanup()
|
||||
|
||||
|
||||
class Frontend(pykka.ThreadingActor, core.CoreListener):
|
||||
class PummeluffFrontend(pykka.ThreadingActor, core.CoreListener):
|
||||
'''
|
||||
Pummeluff frontend which basically reads cards from the RFID reader.
|
||||
'''
|
||||
|
||||
def __init__(self, config, core):
|
||||
super(Frontend, self).__init__()
|
||||
super(PummeluffFrontend, self).__init__()
|
||||
self.core = core
|
||||
self.stop_event = Event()
|
||||
self.card_reader = CardReader(self.stop_event)
|
||||
|
|
Loading…
Reference in a new issue