forked from indymedia/epicyon
Clearer logic
parent
e5b5928a64
commit
80f4692813
17
daemon.py
17
daemon.py
|
@ -10880,17 +10880,16 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
citationsButtonPress = True
|
citationsButtonPress = True
|
||||||
print('citationstest: 0b ' + str(citationsButtonPress))
|
print('citationstest: 0b ' + str(citationsButtonPress))
|
||||||
|
|
||||||
# process the received text fields from the POST
|
if not citationsButtonPress:
|
||||||
if not fields.get('message') and \
|
# process the received text fields from the POST
|
||||||
not fields.get('imageDescription'):
|
if not fields.get('message') and \
|
||||||
if not citationsButtonPress:
|
not fields.get('imageDescription'):
|
||||||
return -1
|
return -1
|
||||||
if fields.get('submitPost'):
|
if fields.get('submitPost'):
|
||||||
if fields['submitPost'] != self.server.translate['Submit']:
|
if fields['submitPost'] != self.server.translate['Submit']:
|
||||||
if not citationsButtonPress:
|
|
||||||
return -1
|
return -1
|
||||||
else:
|
else:
|
||||||
return 2
|
return 2
|
||||||
|
|
||||||
if not fields.get('imageDescription'):
|
if not fields.get('imageDescription'):
|
||||||
fields['imageDescription'] = None
|
fields['imageDescription'] = None
|
||||||
|
|
Loading…
Reference in New Issue