mirror of https://gitlab.com/bashrc2/epicyon
Extract fields from theme designer post
parent
62ff00401a
commit
d1d8427cdd
10
daemon.py
10
daemon.py
|
@ -2161,9 +2161,17 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.POSTbusy = False
|
self.server.POSTbusy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
fields = {}
|
||||||
|
if ' boundary=' in self.headers['Content-type']:
|
||||||
|
boundary = self.headers['Content-type'].split('boundary=')[1]
|
||||||
|
if ';' in boundary:
|
||||||
|
boundary = boundary.split(';')[0]
|
||||||
|
fields = \
|
||||||
|
extractTextFieldsInPOST(themeParams, boundary, debug)
|
||||||
|
|
||||||
# get the parameters from the theme designer screen
|
# get the parameters from the theme designer screen
|
||||||
themeDesignerParams = {}
|
themeDesignerParams = {}
|
||||||
for variableName, key in themeParams.items():
|
for variableName, key in fields.items():
|
||||||
if variableName.startswith('themeSetting_'):
|
if variableName.startswith('themeSetting_'):
|
||||||
variableName = variableName.replace('themeSetting_', '')
|
variableName = variableName.replace('themeSetting_', '')
|
||||||
themeDesignerParams[variableName] = key
|
themeDesignerParams[variableName] = key
|
||||||
|
|
Loading…
Reference in New Issue