mirror of https://gitlab.com/bashrc2/epicyon
Test for exported theme
parent
b168fde295
commit
74116db628
23
daemon.py
23
daemon.py
|
@ -4136,6 +4136,17 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
welcomeScreenIsComplete(self.server.baseDir, nickname,
|
welcomeScreenIsComplete(self.server.baseDir, nickname,
|
||||||
self.server.domain)
|
self.server.domain)
|
||||||
onFinalWelcomeScreen = True
|
onFinalWelcomeScreen = True
|
||||||
|
elif 'name="submitExportTheme"' in postBytesStr:
|
||||||
|
print('submitExportTheme')
|
||||||
|
themeDownloadPath = actorStr
|
||||||
|
if exportTheme(self.server.baseDir,
|
||||||
|
self.server.themeName):
|
||||||
|
themeDownloadPath += \
|
||||||
|
'/exports/' + self.server.themeName + '.zip'
|
||||||
|
self._redirect_headers(themeDownloadPath,
|
||||||
|
cookie, callingDomain)
|
||||||
|
self.server.POSTbusy = False
|
||||||
|
return
|
||||||
|
|
||||||
# extract all of the text fields into a dict
|
# extract all of the text fields into a dict
|
||||||
fields = \
|
fields = \
|
||||||
|
@ -4148,18 +4159,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
print('WARN: profile update, no text ' +
|
print('WARN: profile update, no text ' +
|
||||||
'fields could be extracted from POST')
|
'fields could be extracted from POST')
|
||||||
|
|
||||||
if fields.get('submitExportTheme'):
|
|
||||||
print('submitExportTheme')
|
|
||||||
themeDownloadPath = actorStr
|
|
||||||
if exportTheme(self.server.baseDir,
|
|
||||||
self.server.themeName):
|
|
||||||
themeDownloadPath += \
|
|
||||||
'/exports/' + self.server.themeName + '.zip'
|
|
||||||
self._redirect_headers(themeDownloadPath,
|
|
||||||
cookie, callingDomain)
|
|
||||||
self.server.POSTbusy = False
|
|
||||||
return
|
|
||||||
|
|
||||||
# load the json for the actor for this user
|
# load the json for the actor for this user
|
||||||
actorFilename = \
|
actorFilename = \
|
||||||
baseDir + '/accounts/' + \
|
baseDir + '/accounts/' + \
|
||||||
|
|
Loading…
Reference in New Issue