Python : Send background colours to more pages.

This commit is contained in:
Schimon Jehudah, Adv. 2024-11-05 11:44:37 +02:00
parent 36f7da35d9
commit 65ac97b618

12
fasi.py
View file

@ -171,7 +171,8 @@ class HttpInstance:
xmpp_uri = XmppUtilities.get_xmpp_uri(jid_bare, jid_kind) xmpp_uri = XmppUtilities.get_xmpp_uri(jid_bare, jid_kind)
# Graphic files # Graphic files
filename, filepath, filetype, selection = FileUtilities.handle_photo(jid_bare, jid_vcard, link_href) filename, filepath, filetype, selection = FileUtilities.handle_photo(
jid_bare, jid_vcard, link_href)
#except Exception as e: #except Exception as e:
else: else:
@ -205,6 +206,7 @@ class HttpInstance:
'page_number' : page_number, 'page_number' : page_number,
'previous' : previous, 'previous' : previous,
'request' : request, 'request' : request,
'selection' : selection,
'subject' : subject, 'subject' : subject,
'title' : title, 'title' : title,
'url' : request.url._url, 'url' : request.url._url,
@ -276,7 +278,8 @@ class HttpInstance:
links = XmppUtilities.get_query_uri_links(jid_bare, jid_kind, node_name) links = XmppUtilities.get_query_uri_links(jid_bare, jid_kind, node_name)
# Graphic files # Graphic files
filename, filepath, filetype, selection = FileUtilities.handle_photo(jid_bare, jid_vcard, link_href) filename, filepath, filetype, selection = FileUtilities.handle_photo(
jid_bare, jid_vcard, link_href)
#except Exception as e: #except Exception as e:
else: else:
@ -323,6 +326,7 @@ class HttpInstance:
'page_number' : page_number, 'page_number' : page_number,
'previous' : previous, 'previous' : previous,
'request' : request, 'request' : request,
'selection' : selection,
'title' : title, 'title' : title,
'url' : request.url._url, 'url' : request.url._url,
'vcard_info' : vcard_info, 'vcard_info' : vcard_info,
@ -455,7 +459,8 @@ class HttpInstance:
node_note = xmpp_uri node_note = xmpp_uri
# Graphic files # Graphic files
filename, filepath, filetype, selection = FileUtilities.handle_photo(jid_bare, jid_vcard, link_href) filename, filepath, filetype, selection = FileUtilities.handle_photo(
jid_bare, jid_vcard, link_href)
#except Exception as e: #except Exception as e:
else: else:
@ -490,6 +495,7 @@ class HttpInstance:
'page_number' : page_number, 'page_number' : page_number,
'previous' : previous, 'previous' : previous,
'request' : request, 'request' : request,
'selection' : selection,
'title' : node_title, 'title' : node_title,
'url' : request.url._url, 'url' : request.url._url,
'xmpp_uri' : xmpp_uri} 'xmpp_uri' : xmpp_uri}