forked from indymedia/epicyon
Add debug
parent
0e09c7c9c5
commit
239c0f2dd2
|
@ -10910,6 +10910,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if not fields.get('location'):
|
if not fields.get('location'):
|
||||||
fields['location'] = None
|
fields['location'] = None
|
||||||
|
|
||||||
|
if not citationsButtonPress:
|
||||||
# Store a file which contains the time in seconds
|
# Store a file which contains the time in seconds
|
||||||
# since epoch when an attempt to post something was made.
|
# since epoch when an attempt to post something was made.
|
||||||
# This is then used for active monthly users counts
|
# This is then used for active monthly users counts
|
||||||
|
@ -10967,6 +10968,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
else:
|
else:
|
||||||
return -1
|
return -1
|
||||||
elif postType == 'newblog':
|
elif postType == 'newblog':
|
||||||
|
print('citationstest: 1 ' + str(citationsButtonPress))
|
||||||
# citations button on newblog screen
|
# citations button on newblog screen
|
||||||
if citationsButtonPress:
|
if citationsButtonPress:
|
||||||
messageJson = \
|
messageJson = \
|
||||||
|
@ -10982,7 +10984,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
fields['message'],
|
fields['message'],
|
||||||
filename, attachmentMediaType,
|
filename, attachmentMediaType,
|
||||||
fields['imageDescription'])
|
fields['imageDescription'])
|
||||||
|
print('citationstest: 2')
|
||||||
if messageJson:
|
if messageJson:
|
||||||
|
print('citationstest: 3 ' + str(messageJson))
|
||||||
messageJson = messageJson.encode('utf-8')
|
messageJson = messageJson.encode('utf-8')
|
||||||
self._set_headers('text/html',
|
self._set_headers('text/html',
|
||||||
len(messageJson),
|
len(messageJson),
|
||||||
|
@ -10990,6 +10994,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._write(messageJson)
|
self._write(messageJson)
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
|
print('citationstest: 4')
|
||||||
return -1
|
return -1
|
||||||
# submit button on newblog screen
|
# submit button on newblog screen
|
||||||
messageJson = \
|
messageJson = \
|
||||||
|
|
Loading…
Reference in New Issue