mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-06 23:22:40 +02:00
2019-01-05 Fred Gleason <fredg@paravelsystems.com>
* Modified the 'PyPAD.setConfigFile()' method to return a configparser object.
This commit is contained in:
parent
bb2b97c09a
commit
49f3a4cd52
@ -18277,3 +18277,6 @@
|
|||||||
* Removed the 'rlm_xmpad' RLM.
|
* Removed the 'rlm_xmpad' RLM.
|
||||||
2019-01-05 Fred Gleason <fredg@paravelsystems.com>
|
2019-01-05 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Added a 'PyPAD.Receiver::setTimerCallback()' method.
|
* Added a 'PyPAD.Receiver::setTimerCallback()' method.
|
||||||
|
2019-01-05 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Modified the 'PyPAD.setConfigFile()' method to return a
|
||||||
|
configparser object.
|
||||||
|
@ -786,6 +786,9 @@ class Receiver(object):
|
|||||||
to be an unsigned integer ID that is used to retrieve the
|
to be an unsigned integer ID that is used to retrieve the
|
||||||
configuration from the 'PYPAD_INSTANCES' table in the database
|
configuration from the 'PYPAD_INSTANCES' table in the database
|
||||||
pointed to by '/etc/rd.conf'.
|
pointed to by '/etc/rd.conf'.
|
||||||
|
|
||||||
|
Returns a configparser object created from the specified
|
||||||
|
configuration.
|
||||||
"""
|
"""
|
||||||
if filename[0]=='$': # Get the config from the DB
|
if filename[0]=='$': # Get the config from the DB
|
||||||
db=self.__openDb()
|
db=self.__openDb()
|
||||||
@ -803,6 +806,9 @@ class Receiver(object):
|
|||||||
self.__config_parser.readfp(fp)
|
self.__config_parser.readfp(fp)
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
||||||
|
return self.__config_parser
|
||||||
|
|
||||||
|
|
||||||
def start(self,hostname,port):
|
def start(self,hostname,port):
|
||||||
"""
|
"""
|
||||||
Connect to a Rivendell system and begin processing PAD events.
|
Connect to a Rivendell system and begin processing PAD events.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user