All GET functions under the same performance group

main
Bob Mottram 2021-10-20 10:38:37 +01:00
parent 175a0fc0ee
commit 21a3f18132
1 changed files with 116 additions and 168 deletions

284
daemon.py
View File

@ -5897,7 +5897,7 @@ class PubServer(BaseHTTPRequestHandler):
if self.server.debug:
print('Sent manifest: ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_progressiveWebAppManifest', 'send manifest',
'_GET', '_progressiveWebAppManifest',
self.server.debug)
def _getFavicon(self, callingDomain: str,
@ -6040,7 +6040,7 @@ class PubServer(BaseHTTPRequestHandler):
print('font sent from cache: ' +
path + ' ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getFonts', 'send font from cache',
'_GET', '_getFonts cache',
self.server.debug)
return
else:
@ -6058,7 +6058,7 @@ class PubServer(BaseHTTPRequestHandler):
print('font sent from file: ' +
path + ' ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getFonts', 'send font from file',
'_GET', '_getFonts',
self.server.debug)
return
if debug:
@ -6111,7 +6111,7 @@ class PubServer(BaseHTTPRequestHandler):
print('Sent rss2 feed: ' +
path + ' ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getRSS2feed', 'blog rss2',
'_GET', '_getRSS2feed',
debug)
return
if debug:
@ -6172,7 +6172,7 @@ class PubServer(BaseHTTPRequestHandler):
print('Sent rss2 feed: ' +
path + ' ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getRSS2site', 'blog rss2',
'_GET', '_getRSS2site',
debug)
return
if debug:
@ -6212,7 +6212,7 @@ class PubServer(BaseHTTPRequestHandler):
print('Sent rss2 newswire feed: ' +
path + ' ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getNewswireFeed', 'newswire rss2',
'_GET', '_getNewswireFeed',
debug)
return
if debug:
@ -6251,8 +6251,7 @@ class PubServer(BaseHTTPRequestHandler):
print('Sent rss2 categories feed: ' +
path + ' ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getHashtagCategoriesFeed',
'categories rss2', debug)
'_GET', '_getHashtagCategoriesFeed', debug)
return
if debug:
print('Failed to get rss2 categories feed: ' +
@ -6300,8 +6299,7 @@ class PubServer(BaseHTTPRequestHandler):
print('Sent rss3 feed: ' +
path + ' ' + callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getRSS3feed',
'blog rss3', debug)
'_GET', '_getRSS3feed', debug)
return
if debug:
print('Failed to get rss3 feed: ' +
@ -6428,8 +6426,7 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showPersonOptions',
'person options', debug)
'_GET', '_showPersonOptions', debug)
return
if '/users/news/' in path:
@ -6480,8 +6477,7 @@ class PubServer(BaseHTTPRequestHandler):
lastModifiedTimeStr)
self._write(mediaBinary)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showMedia',
'show media', self.server.debug)
'_GET', '_showMedia', self.server.debug)
return
self._404()
@ -6525,8 +6521,7 @@ class PubServer(BaseHTTPRequestHandler):
None, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_getOntology',
'get ontology', self.server.debug)
'_GET', '_getOntology', self.server.debug)
return
self._404()
@ -6553,8 +6548,7 @@ class PubServer(BaseHTTPRequestHandler):
False, None)
self._write(mediaBinary)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showEmoji',
'show emoji', self.server.debug)
'_GET', '_showEmoji', self.server.debug)
return
self._404()
@ -6589,8 +6583,7 @@ class PubServer(BaseHTTPRequestHandler):
False, None)
self._write(mediaBinary)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showIcon',
'icon shown cache', self.server.debug)
'_GET', '_showIcon', self.server.debug)
return
else:
if os.path.isfile(mediaFilename):
@ -6605,8 +6598,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(mediaBinary)
self.server.iconsCache[mediaStr] = mediaBinary
fitnessPerformance(GETstartTime, self.server.fitness,
'_showIcon',
'icon shown file', self.server.debug)
'_GET', '_showIcon', self.server.debug)
return
self._404()
@ -6647,8 +6639,8 @@ class PubServer(BaseHTTPRequestHandler):
False, None)
self._write(mediaBinary)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showHelpScreenImage',
'help image shown', self.server.debug)
'_GET', '_showHelpScreenImage',
self.server.debug)
return
self._404()
@ -6672,8 +6664,8 @@ class PubServer(BaseHTTPRequestHandler):
False, None)
self._write(mediaBinary)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showCachedAvatar',
'avatar shown', self.server.debug)
'_GET', '_showCachedAvatar',
self.server.debug)
return
self._404()
@ -6753,8 +6745,8 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain)
self.server.GETbusy = False
fitnessPerformance(GETstartTime, self.server.fitness,
'_hashtagSearch',
'hashtag search', self.server.debug)
'_GET', '_hashtagSearch',
self.server.debug)
def _hashtagSearchRSS2(self, callingDomain: str,
path: str, cookie: str,
@ -6810,8 +6802,8 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain)
self.server.GETbusy = False
fitnessPerformance(GETstartTime, self.server.fitness,
'_hashtagSearchRSS2',
'hashtag rss feed', self.server.debug)
'_GET', '_hashtagSearchRSS2',
self.server.debug)
def _announceButton(self, callingDomain: str, path: str,
baseDir: str,
@ -6959,8 +6951,8 @@ class PubServer(BaseHTTPRequestHandler):
str(pageNumber) + timelineBookmark
self._redirect_headers(actorPathStr, cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_announceButton',
'show announce', self.server.debug)
'_GET', '_announceButton',
self.server.debug)
def _undoAnnounceButton(self, callingDomain: str, path: str,
baseDir: str,
@ -7066,8 +7058,8 @@ class PubServer(BaseHTTPRequestHandler):
str(pageNumber) + timelineBookmark
self._redirect_headers(actorPathStr, cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_undoAnnounceButton',
'unannounce', self.server.debug)
'_GET', '_undoAnnounceButton',
self.server.debug)
def _followApproveButton(self, callingDomain: str, path: str,
cookie: str,
@ -7120,8 +7112,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(originPathStrAbsolute,
cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_followApproveButton',
'follow approve shown', self.server.debug)
'_GET', '_followApproveButton',
self.server.debug)
self.server.GETbusy = False
def _newswireVote(self, callingDomain: str, path: str,
@ -7177,8 +7169,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(originPathStrAbsolute,
cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_newswireVote',
'vote for newswite item', self.server.debug)
'_GET', '_newswireVote',
self.server.debug)
self.server.GETbusy = False
def _newswireUnvote(self, callingDomain: str, path: str,
@ -7232,8 +7224,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(originPathStrAbsolute,
cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_newswireUnvote',
'unvote for newswite item', self.server.debug)
'_GET', '_newswireUnvote',
self.server.debug)
self.server.GETbusy = False
def _followDenyButton(self, callingDomain: str, path: str,
@ -7279,8 +7271,8 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain)
self.server.GETbusy = False
fitnessPerformance(GETstartTime, self.server.fitness,
'_followDenyButton',
'follow deny shown', self.server.debug)
'_GET', '_followDenyButton',
self.server.debug)
def _likeButton(self, callingDomain: str, path: str,
baseDir: str, httpPrefix: str,
@ -7445,8 +7437,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(actorPathStr, cookie,
callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_likeButton',
'like shown', self.server.debug)
'_GET', '_likeButton',
self.server.debug)
def _undoLikeButton(self, callingDomain: str, path: str,
baseDir: str, httpPrefix: str,
@ -7601,8 +7593,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(actorPathStr, cookie,
callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_undoLikeButton',
'unlike shown', self.server.debug)
'_GET', '_undoLikeButton',
self.server.debug)
def _bookmarkButton(self, callingDomain: str, path: str,
baseDir: str, httpPrefix: str,
@ -7734,8 +7726,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(actorPathStr, cookie,
callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_bookmarkButton',
'bookmark shown', self.server.debug)
'_GET', '_bookmarkButton',
self.server.debug)
def _undoBookmarkButton(self, callingDomain: str, path: str,
baseDir: str, httpPrefix: str,
@ -7867,8 +7859,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(actorPathStr, cookie,
callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_undoBookmarkButton',
'unbookmark shown', self.server.debug)
'_GET', '_undoBookmarkButton',
self.server.debug)
def _deleteButton(self, callingDomain: str, path: str,
baseDir: str, httpPrefix: str,
@ -7974,8 +7966,8 @@ class PubServer(BaseHTTPRequestHandler):
self._redirect_headers(actor + '/' + timelineStr,
cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_deleteButton',
'delete shown', self.server.debug)
'_GET', '_deleteButton',
self.server.debug)
def _muteButton(self, callingDomain: str, path: str,
baseDir: str, httpPrefix: str,
@ -8083,8 +8075,7 @@ class PubServer(BaseHTTPRequestHandler):
timelineStr + timelineBookmark,
cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_muteButton',
'post muted', self.server.debug)
'_GET', '_muteButton', self.server.debug)
def _undoMuteButton(self, callingDomain: str, path: str,
baseDir: str, httpPrefix: str,
@ -8190,8 +8181,7 @@ class PubServer(BaseHTTPRequestHandler):
timelineBookmark,
cookie, callingDomain)
fitnessPerformance(GETstartTime, self.server.fitness,
'_undoMuteButton',
'unmute activated', self.server.debug)
'_GET', '_undoMuteButton', self.server.debug)
def _showRepliesToPost(self, authorized: bool,
callingDomain: str, path: str,
@ -8307,8 +8297,8 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showRepliesToPost',
'post replies empty', self.server.debug)
'_GET', '_showRepliesToPost',
self.server.debug)
else:
if self._secureMode():
msg = json.dumps(repliesJson, ensure_ascii=False)
@ -8319,8 +8309,7 @@ class PubServer(BaseHTTPRequestHandler):
callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showRepliesToPost',
'post replies empty json',
'_GET', '_showRepliesToPost json',
self.server.debug)
else:
self._404()
@ -8407,8 +8396,8 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showRepliesToPost',
'post replies done', self.server.debug)
'_GET', '_showRepliesToPost',
self.server.debug)
else:
if self._secureMode():
msg = json.dumps(repliesJson,
@ -8420,8 +8409,8 @@ class PubServer(BaseHTTPRequestHandler):
None, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showRepliesToPost',
'post replies json', self.server.debug)
'_GET', '_showRepliesToPost json',
self.server.debug)
else:
self._404()
self.server.GETbusy = False
@ -8516,8 +8505,8 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showRoles',
'show roles', self.server.debug)
'_GET', '_showRoles',
self.server.debug)
else:
if self._secureMode():
rolesList = getActorRolesList(actorJson)
@ -8529,8 +8518,8 @@ class PubServer(BaseHTTPRequestHandler):
None, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showRoles',
'show roles json', self.server.debug)
'_GET', '_showRoles json',
self.server.debug)
else:
self._404()
self.server.GETbusy = False
@ -8630,8 +8619,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showSkills',
'show skills',
'_GET', '_showSkills',
self.server.debug)
else:
if self._secureMode():
@ -8648,8 +8636,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showSkills',
'show skills json',
'_GET', '_showSkills json',
self.server.debug)
else:
self._404()
@ -8713,8 +8700,8 @@ class PubServer(BaseHTTPRequestHandler):
proxyType, cookie, debug,
includeCreateWrapper)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showIndividualAtPost',
'show', self.server.debug)
'_GET', '_showIndividualAtPost',
self.server.debug)
return result
def _showPostFromFile(self, postFilename: str, likedBy: str,
@ -8780,8 +8767,8 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showPostFromFile',
'show status', self.server.debug)
'_GET', '_showPostFromFile',
self.server.debug)
else:
if self._secureMode():
if not includeCreateWrapper and \
@ -8802,8 +8789,8 @@ class PubServer(BaseHTTPRequestHandler):
None, callingDomain, False)
self._write(msg)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showPostFromFile',
'show status json', self.server.debug)
'_GET', '_showPostFromFile json',
self.server.debug)
else:
self._404()
self.server.GETbusy = False
@ -8854,8 +8841,8 @@ class PubServer(BaseHTTPRequestHandler):
proxyType, cookie, debug,
includeCreateWrapper)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showIndividualPost',
'show post', self.server.debug)
'_GET', '_showIndividualPost',
self.server.debug)
return result
def _showNotifyPost(self, authorized: bool,
@ -8895,8 +8882,8 @@ class PubServer(BaseHTTPRequestHandler):
proxyType, cookie, debug,
includeCreateWrapper)
fitnessPerformance(GETstartTime, self.server.fitness,
'_showNotifyPost',
'show notify', self.server.debug)
'_GET', '_showNotifyPost',
self.server.debug)
return result
def _showInbox(self, authorized: bool,
@ -8938,8 +8925,7 @@ class PubServer(BaseHTTPRequestHandler):
if GETstartTime:
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showInbox',
'show inbox json',
'_GET', '_showInbox',
self.server.debug)
if self._requestHTTP():
nickname = path.replace('/users/', '')
@ -8970,8 +8956,7 @@ class PubServer(BaseHTTPRequestHandler):
if GETstartTime:
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showInbox',
'show inbox page',
'_GET', '_showInbox2',
self.server.debug)
fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader
@ -9025,8 +9010,7 @@ class PubServer(BaseHTTPRequestHandler):
if GETstartTime:
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showInbox',
'show inbox html',
'_GET', '_showInbox3',
self.server.debug)
if msg:
msg = msg.encode('utf-8')
@ -9038,8 +9022,7 @@ class PubServer(BaseHTTPRequestHandler):
if GETstartTime:
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showInbox',
'show inbox',
'_GET', '_showInbox4',
self.server.debug)
else:
# don't need authorized fetch here because
@ -9052,8 +9035,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showInbox',
'show inbox json',
'_GET', '_showInbox5',
self.server.debug)
self.server.GETbusy = False
return True
@ -9180,7 +9162,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showDMs', 'show dms',
'_GET', '_showDMs',
self.server.debug)
else:
# don't need authorized fetch here because
@ -9194,7 +9176,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showDMs', 'show dms json',
'_GET', '_showDMs json',
self.server.debug)
self.server.GETbusy = False
return True
@ -9321,7 +9303,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showReplies', 'show replies 2',
'_GET', '_showReplies',
self.server.debug)
else:
# don't need authorized fetch here because there is
@ -9335,7 +9317,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showReplies', 'show replies 2 json',
'_GET', '_showReplies json',
self.server.debug)
self.server.GETbusy = False
return True
@ -9461,7 +9443,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showMediaTimeline', 'show media 2',
'_GET', '_showMediaTimeline',
self.server.debug)
else:
# don't need authorized fetch here because there is
@ -9475,8 +9457,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showMediaTimeline',
'show media 2 json',
'_GET', '_showMediaTimeline json',
self.server.debug)
self.server.GETbusy = False
return True
@ -9602,8 +9583,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showBlogsTimeline',
'show blogs 2',
'_GET', '_showBlogsTimeline',
self.server.debug)
else:
# don't need authorized fetch here because there is
@ -9618,8 +9598,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showBlogsTimeline',
'show blogs 2 json',
'_GET', '_showBlogsTimeline json',
self.server.debug)
self.server.GETbusy = False
return True
@ -9753,8 +9732,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showNewsTimeline',
'show news 2',
'_GET', '_showNewsTimeline',
self.server.debug)
else:
# don't need authorized fetch here because there is
@ -9769,8 +9747,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showNewsTimeline',
'show news 2 json',
'_GET', '_showNewsTimeline json',
self.server.debug)
self.server.GETbusy = False
return True
@ -9902,8 +9879,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showFeaturesTimeline',
'show news 2',
'_GET', '_showFeaturesTimeline',
self.server.debug)
else:
# don't need authorized fetch here because there is
@ -9918,8 +9894,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showFeaturesTimeline',
'show news 2 json',
'_GET', '_showFeaturesTimeline json',
self.server.debug)
self.server.GETbusy = False
return True
@ -10010,8 +9985,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showSharesTimeline',
'show shares 2',
'_GET', '_showSharesTimeline',
self.server.debug)
self.server.GETbusy = False
return True
@ -10095,8 +10069,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showWantedTimeline',
'show wanted 2',
'_GET', '_showWantedTimeline',
self.server.debug)
self.server.GETbusy = False
return True
@ -10217,8 +10190,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showBookmarksTimeline',
'show bookmarks 2',
'_GET', '_showBookmarksTimeline',
self.server.debug)
else:
# don't need authorized fetch here because
@ -10232,8 +10204,8 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showBookmarksTimeline',
'show bookmarks 2',
'_GET',
'_showBookmarksTimeline json',
self.server.debug)
self.server.GETbusy = False
return True
@ -10356,8 +10328,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showOutboxTimeline',
'show outbox',
'_GET', '_showOutboxTimeline',
self.server.debug)
else:
if self._secureMode():
@ -10370,8 +10341,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showOutboxTimeline',
'show outbox',
'_GET', '_showOutboxTimeline json',
self.server.debug)
else:
self._404()
@ -10487,8 +10457,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showModTimeline',
'show moderation',
'_GET', '_showModTimeline',
self.server.debug)
else:
# don't need authorized fetch here because
@ -10502,8 +10471,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showModTimeline',
'show moderation json',
'_GET', '_showModTimeline json',
self.server.debug)
self.server.GETbusy = False
return True
@ -10616,8 +10584,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showSharesFeed',
'show profile 2',
'_GET', '_showSharesFeed',
self.server.debug)
self.server.GETbusy = False
return True
@ -10632,8 +10599,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showSharesFeed',
'show profile 2 json',
'_GET', '_showSharesFeed json',
self.server.debug)
else:
self._404()
@ -10742,8 +10708,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.GETbusy = False
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showFollowingFeed',
'show profile 3',
'_GET', '_showFollowingFeed',
self.server.debug)
return True
else:
@ -10756,8 +10721,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showFollowingFeed',
'show profile 3 json',
'_GET', '_showFollowingFeed json',
self.server.debug)
else:
self._404()
@ -10867,8 +10831,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.GETbusy = False
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showFollowersFeed',
'show profile 4',
'_GET', '_showFollowersFeed',
self.server.debug)
return True
else:
@ -10881,8 +10844,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showFollowersFeed',
'show profile 4 json',
'_GET', '_showFollowersFeed json',
self.server.debug)
else:
self._404()
@ -11007,8 +10969,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showPersonProfile',
'show profile posts',
'_GET', '_showPersonProfile',
self.server.debug)
else:
if self._secureMode():
@ -11028,8 +10989,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showPersonProfile',
'show profile posts json',
'_GET', '_showPersonProfile json',
self.server.debug)
else:
self._404()
@ -11108,8 +11068,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showInstanceActor',
'actor',
'_GET', '_showInstanceActor',
self.server.debug)
return True
@ -11168,8 +11127,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showBlogPage',
'blog page',
'_GET', '_showBlogPage',
self.server.debug)
return True
self._404()
@ -11233,8 +11191,7 @@ class PubServer(BaseHTTPRequestHandler):
divertPath, None, callingDomain)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_redirectToLoginScreen',
'show login screen',
'_GET', '_redirectToLoginScreen',
self.server.debug)
return True
return False
@ -11266,8 +11223,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(msg)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_getStyleSheet',
'show profile.css',
'_GET', '_getStyleSheet',
self.server.debug)
return True
self._404()
@ -11308,8 +11264,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(mediaBinary)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showQRcode',
'account qrcode',
'_GET', '_showQRcode',
self.server.debug)
return True
self._404()
@ -11354,8 +11309,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(mediaBinary)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_searchScreenBanner',
'search screen banner',
'_GET', '_searchScreenBanner',
self.server.debug)
return True
self._404()
@ -11398,8 +11352,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(mediaBinary)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_columnImage',
side + ' col image',
'_GET', '_columnImage ' + side,
self.server.debug)
return True
self._404()
@ -11446,8 +11399,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(bgBinary)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showBackgroundImage',
'background shown',
'_GET', '_showBackgroundImage',
self.server.debug)
return True
self._404()
@ -11492,8 +11444,8 @@ class PubServer(BaseHTTPRequestHandler):
self._write(bgBinary)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_GET',
'_showDefaultProfileBackground',
'background shown',
self.server.debug)
return True
break
@ -11531,8 +11483,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(mediaBinary)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showShareImage',
'share files shown',
'_GET', '_showShareImage',
self.server.debug)
return True
@ -11601,8 +11552,7 @@ class PubServer(BaseHTTPRequestHandler):
self._write(mediaBinary)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showAvatarOrBanner',
'avatar background shown',
'_GET', '_showAvatarOrBanner',
self.server.debug)
return True
@ -11654,8 +11604,7 @@ class PubServer(BaseHTTPRequestHandler):
cookie, callingDomain)
fitnessPerformance(GETstartTime,
self.server.fitness,
'_confirmDeleteEvent',
'calendar delete shown',
'_GET', '_confirmDeleteEvent',
self.server.debug)
return True
msg = msg.encode('utf-8')
@ -11740,8 +11689,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.GETbusy = False
fitnessPerformance(GETstartTime,
self.server.fitness,
'_showNewPost',
'new post made',
'_GET', '_showNewPost',
self.server.debug)
return True
return False