allow editing mostrecent
audio
This commit is contained in:
parent
20bc2325cf
commit
6490c567ff
1 changed files with 8 additions and 0 deletions
|
@ -26,6 +26,14 @@ class AudioForm(Form):
|
|||
"(in seconds) or a human-readable "
|
||||
"string like '1h2m' or '1d12h'")
|
||||
|
||||
def populate_from_audiospec(self, audiospec):
|
||||
if 'nick' in audiospec:
|
||||
self.nick.data = audiospec['nick']
|
||||
if 'path' in audiospec:
|
||||
self.path.data = audiospec['path']
|
||||
if 'maxage' in audiospec:
|
||||
self.maxage.data = audiospec['maxage']
|
||||
|
||||
|
||||
def audio_receive(form):
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue