mirror of https://gitlab.com/bashrc2/epicyon
Set end time for events
parent
5dd2910e11
commit
cfd15a6206
11
daemon.py
11
daemon.py
|
@ -526,6 +526,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
schedule_post = False
|
||||
event_date = None
|
||||
event_time = None
|
||||
event_end_time = None
|
||||
location = None
|
||||
conversation_id = None
|
||||
city = get_spoofed_city(self.server.city,
|
||||
|
@ -552,7 +553,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
subject,
|
||||
schedule_post,
|
||||
event_date,
|
||||
event_time,
|
||||
event_time, event_end_time,
|
||||
location, False,
|
||||
self.server.system_language,
|
||||
conversation_id,
|
||||
|
@ -18835,6 +18836,8 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
fields['eventDate'] = None
|
||||
if not fields.get('eventTime'):
|
||||
fields['eventTime'] = None
|
||||
if not fields.get('eventEndTime'):
|
||||
fields['eventEndTime'] = None
|
||||
if not fields.get('location'):
|
||||
fields['location'] = None
|
||||
if not fields.get('languagesDropdown'):
|
||||
|
@ -18905,6 +18908,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
fields['schedulePost'],
|
||||
fields['eventDate'],
|
||||
fields['eventTime'],
|
||||
fields['eventEndTime'],
|
||||
fields['location'], False,
|
||||
fields['languagesDropdown'],
|
||||
conversation_id,
|
||||
|
@ -18999,6 +19003,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
fields['schedulePost'],
|
||||
fields['eventDate'],
|
||||
fields['eventTime'],
|
||||
fields['eventEndTime'],
|
||||
fields['location'],
|
||||
fields['languagesDropdown'],
|
||||
conversation_id,
|
||||
|
@ -19162,6 +19167,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
fields['schedulePost'],
|
||||
fields['eventDate'],
|
||||
fields['eventTime'],
|
||||
fields['eventEndTime'],
|
||||
fields['location'],
|
||||
fields['languagesDropdown'],
|
||||
conversation_id,
|
||||
|
@ -19223,6 +19229,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
fields['schedulePost'],
|
||||
fields['eventDate'],
|
||||
fields['eventTime'],
|
||||
fields['eventEndTime'],
|
||||
fields['location'],
|
||||
fields['languagesDropdown'],
|
||||
conversation_id,
|
||||
|
@ -19296,6 +19303,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
fields['schedulePost'],
|
||||
fields['eventDate'],
|
||||
fields['eventTime'],
|
||||
fields['eventEndTime'],
|
||||
fields['location'],
|
||||
fields['languagesDropdown'],
|
||||
conversation_id,
|
||||
|
@ -19361,6 +19369,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
True, fields['schedulePost'],
|
||||
fields['eventDate'],
|
||||
fields['eventTime'],
|
||||
fields['eventEndTime'],
|
||||
fields['location'],
|
||||
fields['languagesDropdown'],
|
||||
conversation_id,
|
||||
|
|
|
@ -472,6 +472,7 @@ def _desktop_reply_to_post(session, post_id: str,
|
|||
say_str = 'Sending reply'
|
||||
event_date = None
|
||||
event_time = None
|
||||
event_end_time = None
|
||||
location = None
|
||||
_say_command(say_str, say_str, screenreader, system_language, espeak)
|
||||
if send_post_via_server(signing_priv_key_pem, __version__,
|
||||
|
@ -484,7 +485,7 @@ def _desktop_reply_to_post(session, post_id: str,
|
|||
cached_webfingers, person_cache, is_article,
|
||||
system_language, languages_understood,
|
||||
low_bandwidth, content_license_url,
|
||||
event_date, event_time, location,
|
||||
event_date, event_time, event_end_time, location,
|
||||
debug, post_id, post_id,
|
||||
conversation_id, subject) == 0:
|
||||
say_str = 'Reply sent'
|
||||
|
@ -545,6 +546,7 @@ def _desktop_new_post(session,
|
|||
say_str = 'Sending'
|
||||
event_date = None
|
||||
event_time = None
|
||||
event_end_time = None
|
||||
location = None
|
||||
_say_command(say_str, say_str, screenreader, system_language, espeak)
|
||||
if send_post_via_server(signing_priv_key_pem, __version__,
|
||||
|
@ -557,7 +559,7 @@ def _desktop_new_post(session,
|
|||
cached_webfingers, person_cache, is_article,
|
||||
system_language, languages_understood,
|
||||
low_bandwidth, content_license_url,
|
||||
event_date, event_time, location,
|
||||
event_date, event_time, event_end_time, location,
|
||||
debug, None, None,
|
||||
conversation_id, subject) == 0:
|
||||
say_str = 'Post sent'
|
||||
|
@ -1278,6 +1280,7 @@ def _desktop_new_dm_base(session, to_handle: str,
|
|||
|
||||
event_date = None
|
||||
event_time = None
|
||||
event_end_time = None
|
||||
location = None
|
||||
|
||||
say_str = 'Sending'
|
||||
|
@ -1292,7 +1295,7 @@ def _desktop_new_dm_base(session, to_handle: str,
|
|||
cached_webfingers, person_cache, is_article,
|
||||
system_language, languages_understood,
|
||||
low_bandwidth, content_license_url,
|
||||
event_date, event_time, location,
|
||||
event_date, event_time, event_end_time, location,
|
||||
debug, None, None,
|
||||
conversation_id, subject) == 0:
|
||||
say_str = 'Direct message sent'
|
||||
|
|
39
epicyon.py
39
epicyon.py
|
@ -130,6 +130,10 @@ parser.add_argument('--eventTime', type=str,
|
|||
default=None,
|
||||
help='Time for an event when sending a c2s post' +
|
||||
' HH:MM')
|
||||
parser.add_argument('--eventEndTime', type=str,
|
||||
default=None,
|
||||
help='Time when an event ends when sending a c2s post' +
|
||||
' HH:MM')
|
||||
parser.add_argument('--eventLocation', type=str,
|
||||
default=None,
|
||||
help='Location for an event when sending a c2s post')
|
||||
|
@ -1445,7 +1449,12 @@ if args.message:
|
|||
|
||||
if args.eventTime:
|
||||
if ':' not in args.eventTime or len(args.eventTime) != 5:
|
||||
print('Event time format should be HH:MM')
|
||||
print('Event start time format should be HH:MM')
|
||||
sys.exit()
|
||||
|
||||
if args.eventEndTime:
|
||||
if ':' not in args.eventEndTime or len(args.eventEndTime) != 5:
|
||||
print('Event end time format should be HH:MM')
|
||||
sys.exit()
|
||||
|
||||
if not args.password:
|
||||
|
@ -1523,7 +1532,8 @@ if args.message:
|
|||
args.language, languages_understood,
|
||||
args.low_bandwidth,
|
||||
args.content_license_url,
|
||||
args.eventDate, args.eventTime, args.eventLocation,
|
||||
args.eventDate, args.eventTime, args.eventEndTime,
|
||||
args.eventLocation,
|
||||
args.debug,
|
||||
reply_to, reply_to, args.conversationId, subject)
|
||||
for i in range(10):
|
||||
|
@ -3155,6 +3165,7 @@ if args.testdata:
|
|||
test_schedule_post = False
|
||||
test_event_date = None
|
||||
test_event_time = None
|
||||
test_event_end_time = None
|
||||
test_location = None
|
||||
test_is_article = False
|
||||
conversation_id = None
|
||||
|
@ -3171,7 +3182,8 @@ if args.testdata:
|
|||
test_media_type, test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3185,7 +3197,8 @@ if args.testdata:
|
|||
test_media_type, test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3199,7 +3212,8 @@ if args.testdata:
|
|||
test_media_type, test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3213,7 +3227,8 @@ if args.testdata:
|
|||
test_media_type, test_image_description, test_city,
|
||||
'someone', test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3228,7 +3243,8 @@ if args.testdata:
|
|||
'Description of image', test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3242,7 +3258,8 @@ if args.testdata:
|
|||
test_media_type, test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3256,7 +3273,8 @@ if args.testdata:
|
|||
test_media_type, test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3270,7 +3288,8 @@ if args.testdata:
|
|||
test_media_type, test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time, test_event_end_time,
|
||||
test_location,
|
||||
test_is_article, args.language, conversation_id,
|
||||
low_bandwidth, args.content_license_url,
|
||||
languages_understood)
|
||||
|
|
5
inbox.py
5
inbox.py
|
@ -3185,6 +3185,7 @@ def _bounce_dm(senderPostId: str, session, http_prefix: str,
|
|||
schedule_post = False
|
||||
event_date = None
|
||||
event_time = None
|
||||
event_end_time = None
|
||||
location = None
|
||||
conversation_id = None
|
||||
low_bandwidth = False
|
||||
|
@ -3197,8 +3198,8 @@ def _bounce_dm(senderPostId: str, session, http_prefix: str,
|
|||
image_description, city,
|
||||
in_reply_to, in_reply_to_atom_uri,
|
||||
subject, debug, schedule_post,
|
||||
event_date, event_time, location,
|
||||
system_language, conversation_id,
|
||||
event_date, event_time, event_end_time,
|
||||
location, system_language, conversation_id,
|
||||
low_bandwidth,
|
||||
content_license_url,
|
||||
languages_understood, bounce_is_chat)
|
||||
|
|
36
posts.py
36
posts.py
|
@ -1837,10 +1837,8 @@ def create_public_post(base_dir: str,
|
|||
in_reply_to: str,
|
||||
in_reply_to_atom_uri: str, subject: str,
|
||||
schedule_post: bool,
|
||||
event_date: str, event_time: str,
|
||||
location: str,
|
||||
is_article: bool,
|
||||
system_language: str,
|
||||
event_date: str, event_time: str, event_end_time: str,
|
||||
location: str, is_article: bool, system_language: str,
|
||||
conversation_id: str, low_bandwidth: bool,
|
||||
content_license_url: str,
|
||||
languages_understood: []) -> {}:
|
||||
|
@ -1851,8 +1849,8 @@ def create_public_post(base_dir: str,
|
|||
event_uuid = None
|
||||
category = None
|
||||
join_mode = None
|
||||
end_date = None
|
||||
end_time = None
|
||||
end_date = event_date
|
||||
end_time = event_end_time
|
||||
maximum_attendee_capacity = None
|
||||
replies_moderation_option = None
|
||||
anonymous_participation_enabled = None
|
||||
|
@ -1919,7 +1917,7 @@ def create_blog_post(base_dir: str,
|
|||
image_description: str, city: str,
|
||||
in_reply_to: str, in_reply_to_atom_uri: str,
|
||||
subject: str, schedule_post: bool,
|
||||
event_date: str, event_time: str,
|
||||
event_date: str, event_time: str, event_end_time: str,
|
||||
location: str, system_language: str,
|
||||
conversation_id: str, low_bandwidth: bool,
|
||||
content_license_url: str,
|
||||
|
@ -1933,7 +1931,7 @@ def create_blog_post(base_dir: str,
|
|||
image_description, city,
|
||||
in_reply_to, in_reply_to_atom_uri, subject,
|
||||
schedule_post,
|
||||
event_date, event_time, location,
|
||||
event_date, event_time, event_end_time, location,
|
||||
True, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -1959,6 +1957,7 @@ def create_news_post(base_dir: str,
|
|||
schedule_post = False
|
||||
event_date = None
|
||||
event_time = None
|
||||
event_end_time = None
|
||||
location = None
|
||||
blog = \
|
||||
create_public_post(base_dir,
|
||||
|
@ -1969,7 +1968,7 @@ def create_news_post(base_dir: str,
|
|||
image_description, city,
|
||||
in_reply_to, in_reply_to_atom_uri, subject,
|
||||
schedule_post,
|
||||
event_date, event_time, location,
|
||||
event_date, event_time, event_end_time, location,
|
||||
True, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -2038,7 +2037,7 @@ def create_unlisted_post(base_dir: str,
|
|||
image_description: str, city: str,
|
||||
in_reply_to: str, in_reply_to_atom_uri: str,
|
||||
subject: str, schedule_post: bool,
|
||||
event_date: str, event_time: str,
|
||||
event_date: str, event_time: str, event_end_time: str,
|
||||
location: str, system_language: str,
|
||||
conversation_id: str, low_bandwidth: bool,
|
||||
content_license_url: str,
|
||||
|
@ -2057,8 +2056,9 @@ def create_unlisted_post(base_dir: str,
|
|||
image_description, city,
|
||||
False, False,
|
||||
in_reply_to, in_reply_to_atom_uri, subject,
|
||||
schedule_post, event_date, event_time, location,
|
||||
None, None, None, None, None,
|
||||
schedule_post, event_date,
|
||||
event_time, event_end_time, location,
|
||||
None, None, None, event_date, event_end_time,
|
||||
None, None, None, None, None, system_language,
|
||||
conversation_id, low_bandwidth,
|
||||
content_license_url, languages_understood)
|
||||
|
@ -2075,7 +2075,8 @@ def create_followers_only_post(base_dir: str,
|
|||
in_reply_to: str,
|
||||
in_reply_to_atom_uri: str,
|
||||
subject: str, schedule_post: bool,
|
||||
event_date: str, event_time: str,
|
||||
event_date: str,
|
||||
event_time: str, event_end_time: str,
|
||||
location: str, system_language: str,
|
||||
conversation_id: str, low_bandwidth: bool,
|
||||
content_license_url: str,
|
||||
|
@ -2094,7 +2095,7 @@ def create_followers_only_post(base_dir: str,
|
|||
False, False,
|
||||
in_reply_to, in_reply_to_atom_uri, subject,
|
||||
schedule_post, event_date, event_time, location,
|
||||
None, None, None, None, None,
|
||||
None, None, None, event_date, event_end_time,
|
||||
None, None, None, None, None, system_language,
|
||||
conversation_id, low_bandwidth,
|
||||
content_license_url, languages_understood)
|
||||
|
@ -2149,6 +2150,7 @@ def create_direct_message_post(base_dir: str,
|
|||
subject: str, debug: bool,
|
||||
schedule_post: bool,
|
||||
event_date: str, event_time: str,
|
||||
event_end_time: str,
|
||||
location: str, system_language: str,
|
||||
conversation_id: str, low_bandwidth: bool,
|
||||
content_license_url: str,
|
||||
|
@ -2175,7 +2177,7 @@ def create_direct_message_post(base_dir: str,
|
|||
False, False,
|
||||
in_reply_to, in_reply_to_atom_uri, subject,
|
||||
schedule_post, event_date, event_time, location,
|
||||
None, None, None, None, None,
|
||||
None, None, None, event_date, event_end_time,
|
||||
None, None, None, None, None, system_language,
|
||||
conversation_id, low_bandwidth,
|
||||
content_license_url, languages_understood)
|
||||
|
@ -2567,7 +2569,7 @@ def send_post_via_server(signing_priv_key_pem: str, project_version: str,
|
|||
languages_understood: [],
|
||||
low_bandwidth: bool,
|
||||
content_license_url: str,
|
||||
event_date: str, event_time: str,
|
||||
event_date: str, event_time: str, event_end_time: str,
|
||||
location: str,
|
||||
debug: bool = False,
|
||||
in_reply_to: str = None,
|
||||
|
@ -2655,7 +2657,7 @@ def send_post_via_server(signing_priv_key_pem: str, project_version: str,
|
|||
in_reply_to_atom_uri, subject,
|
||||
False,
|
||||
event_date, event_time, location,
|
||||
None, None, None, None, None,
|
||||
None, None, None, event_date, event_end_time,
|
||||
None, None, None, None, None, system_language,
|
||||
conversation_id, low_bandwidth,
|
||||
content_license_url, languages_understood)
|
||||
|
|
45
tests.py
45
tests.py
|
@ -753,6 +753,7 @@ def create_server_alice(path: str, domain: str, port: int,
|
|||
test_schedule_post = False
|
||||
test_event_date = None
|
||||
test_event_time = None
|
||||
test_event_end_time = None
|
||||
test_location = None
|
||||
test_is_article = False
|
||||
conversation_id = None
|
||||
|
@ -768,7 +769,8 @@ def create_server_alice(path: str, domain: str, port: int,
|
|||
test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -783,7 +785,8 @@ def create_server_alice(path: str, domain: str, port: int,
|
|||
test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -799,7 +802,8 @@ def create_server_alice(path: str, domain: str, port: int,
|
|||
test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -912,6 +916,7 @@ def create_server_bob(path: str, domain: str, port: int,
|
|||
test_schedule_post = False
|
||||
test_event_date = None
|
||||
test_event_time = None
|
||||
test_event_end_time = None
|
||||
test_location = None
|
||||
test_is_article = False
|
||||
conversation_id = None
|
||||
|
@ -927,7 +932,8 @@ def create_server_bob(path: str, domain: str, port: int,
|
|||
test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -943,7 +949,8 @@ def create_server_bob(path: str, domain: str, port: int,
|
|||
test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -958,7 +965,8 @@ def create_server_bob(path: str, domain: str, port: int,
|
|||
test_image_description, test_city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -2825,6 +2833,7 @@ def _test_create_person_account(base_dir: str):
|
|||
test_schedule_post = False
|
||||
test_event_date = None
|
||||
test_event_time = None
|
||||
test_event_end_time = None
|
||||
test_location = None
|
||||
test_is_article = False
|
||||
followers_only = False
|
||||
|
@ -2848,7 +2857,8 @@ def _test_create_person_account(base_dir: str):
|
|||
'Not suitable for Vogons', 'London, England',
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -2873,7 +2883,8 @@ def _test_create_person_account(base_dir: str):
|
|||
'Not suitable for Vogons', 'London, England',
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -3075,6 +3086,7 @@ def test_client_to_server(base_dir: str):
|
|||
str(test_date.year) + '-' + str(test_date.month) + '-' + \
|
||||
str(test_date.day)
|
||||
event_time = '11:45'
|
||||
event_end_time = '12:30'
|
||||
location = "Kinshasa"
|
||||
send_result = \
|
||||
send_post_via_server(signing_priv_key_pem, __version__,
|
||||
|
@ -3088,7 +3100,7 @@ def test_client_to_server(base_dir: str):
|
|||
cached_webfingers, person_cache, is_article,
|
||||
system_language, languages_understood,
|
||||
low_bandwidth, content_license_url,
|
||||
event_date, event_time, location,
|
||||
event_date, event_time, event_end_time, location,
|
||||
True, None, None,
|
||||
conversation_id, None)
|
||||
print('send_result: ' + str(send_result))
|
||||
|
@ -4539,6 +4551,7 @@ def _test_reply_to_public_post(base_dir: str) -> None:
|
|||
test_schedule_post = False
|
||||
test_event_date = None
|
||||
test_event_time = None
|
||||
test_event_end_time = None
|
||||
test_location = None
|
||||
test_is_article = False
|
||||
conversation_id = None
|
||||
|
@ -4552,7 +4565,8 @@ def _test_reply_to_public_post(base_dir: str) -> None:
|
|||
image_description, city, test_in_reply_to,
|
||||
test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -5464,6 +5478,7 @@ def _test_links_within_post(base_dir: str) -> None:
|
|||
test_schedule_post = False
|
||||
test_event_date = None
|
||||
test_event_time = None
|
||||
test_event_end_time = None
|
||||
test_location = None
|
||||
test_is_article = False
|
||||
conversation_id = None
|
||||
|
@ -5478,7 +5493,8 @@ def _test_links_within_post(base_dir: str) -> None:
|
|||
image_description, city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -5516,7 +5532,8 @@ def _test_links_within_post(base_dir: str) -> None:
|
|||
False, None,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
@ -6472,6 +6489,7 @@ def _test_can_replyto(base_dir: str) -> None:
|
|||
test_schedule_post = False
|
||||
test_event_date = None
|
||||
test_event_time = None
|
||||
test_event_end_time = None
|
||||
test_location = None
|
||||
test_is_article = False
|
||||
conversation_id = None
|
||||
|
@ -6486,7 +6504,8 @@ def _test_can_replyto(base_dir: str) -> None:
|
|||
image_description, city,
|
||||
test_in_reply_to, test_in_reply_to_atom_uri,
|
||||
test_subject, test_schedule_post,
|
||||
test_event_date, test_event_time, test_location,
|
||||
test_event_date, test_event_time,
|
||||
test_event_end_time, test_location,
|
||||
test_is_article, system_language, conversation_id,
|
||||
low_bandwidth, content_license_url,
|
||||
languages_understood)
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "لا يتم تشفير الرسائل المباشرة من طرف إلى طرف. لا تشارك أي معلومات حساسة للغاية هنا.",
|
||||
"Transcript": "نص",
|
||||
"Color contrast is too low": "تباين الألوان منخفض جدًا",
|
||||
"View Larger Map": "عرض خريطة أكبر"
|
||||
"View Larger Map": "عرض خريطة أكبر",
|
||||
"Start Time": "وقت البدء",
|
||||
"End Time": "وقت النهاية"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Els missatges directes no estan xifrats d'extrem a extrem. No compartiu cap informació molt sensible aquí.",
|
||||
"Transcript": "Transcripció",
|
||||
"Color contrast is too low": "El contrast de color és massa baix",
|
||||
"View Larger Map": "Veure mapa més gran"
|
||||
"View Larger Map": "Veure mapa més gran",
|
||||
"Start Time": "L'hora d'inici",
|
||||
"End Time": "Temps esgotat"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Nid yw negeseuon uniongyrchol wedi'u hamgryptio o'r dechrau i'r diwedd. Peidiwch â rhannu unrhyw wybodaeth hynod sensitif yma.",
|
||||
"Transcript": "Trawsgrifiad",
|
||||
"Color contrast is too low": "Mae cyferbyniad lliw yn rhy isel",
|
||||
"View Larger Map": "Gweld Map Mwy"
|
||||
"View Larger Map": "Gweld Map Mwy",
|
||||
"Start Time": "Amser Dechrau",
|
||||
"End Time": "Amser Gorffen"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Direktnachrichten sind nicht Ende-zu-Ende verschlüsselt. Geben Sie hier keine hochsensiblen Informationen weiter.",
|
||||
"Transcript": "Abschrift",
|
||||
"Color contrast is too low": "Der Farbkontrast ist zu gering",
|
||||
"View Larger Map": "größere Karte ansehen"
|
||||
"View Larger Map": "größere Karte ansehen",
|
||||
"Start Time": "Startzeit",
|
||||
"End Time": "Endzeit"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Τα άμεσα μηνύματα δεν είναι κρυπτογραφημένα από άκρο σε άκρο. Μην μοιράζεστε καμία εξαιρετικά ευαίσθητη πληροφορία εδώ.",
|
||||
"Transcript": "Αντίγραφο",
|
||||
"Color contrast is too low": "Η χρωματική αντίθεση είναι πολύ χαμηλή",
|
||||
"View Larger Map": "Δείτε Μεγαλύτερο Χάρτη"
|
||||
"View Larger Map": "Δείτε Μεγαλύτερο Χάρτη",
|
||||
"Start Time": "Ωρα έναρξης",
|
||||
"End Time": "Τέλος χρόνου"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Direct messages are not end-to-end encrypted. Do not share any highly sensitive information here.",
|
||||
"Transcript": "Transcript",
|
||||
"Color contrast is too low": "Color contrast is too low",
|
||||
"View Larger Map": "View Larger Map"
|
||||
"View Larger Map": "View Larger Map",
|
||||
"Start Time": "Start Time",
|
||||
"End Time": "End Time"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Los mensajes directos no están cifrados de extremo a extremo. No comparta ninguna información altamente confidencial aquí.",
|
||||
"Transcript": "Transcripción",
|
||||
"Color contrast is too low": "El contraste de color es demasiado bajo",
|
||||
"View Larger Map": "Ver mapa más grande"
|
||||
"View Larger Map": "Ver mapa más grande",
|
||||
"Start Time": "Hora de inicio",
|
||||
"End Time": "Hora de finalización"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Les messages directs ne sont pas chiffrés de bout en bout. Ne partagez aucune information hautement sensible ici.",
|
||||
"Transcript": "Transcription",
|
||||
"Color contrast is too low": "Le contraste des couleurs est trop faible",
|
||||
"View Larger Map": "Agrandir le plan"
|
||||
"View Larger Map": "Agrandir le plan",
|
||||
"Start Time": "Heure de début",
|
||||
"End Time": "Heure de fin"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Níl teachtaireachtaí díreacha criptithe ó cheann go ceann. Ná roinn aon fhaisnéis an-íogair anseo.",
|
||||
"Transcript": "Athscríbhinn",
|
||||
"Color contrast is too low": "Tá codarsnacht dath ró-íseal",
|
||||
"View Larger Map": "Féach ar Léarscáil Níos Mó"
|
||||
"View Larger Map": "Féach ar Léarscáil Níos Mó",
|
||||
"Start Time": "Am Tosaigh",
|
||||
"End Time": "Am Deiridh"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "डायरेक्ट मैसेज एंड-टू-एंड एन्क्रिप्टेड नहीं होते हैं। यहां कोई अति संवेदनशील जानकारी साझा न करें।",
|
||||
"Transcript": "प्रतिलिपि",
|
||||
"Color contrast is too low": "रंग कंट्रास्ट बहुत कम है",
|
||||
"View Larger Map": "बड़ा नक्शा देखें"
|
||||
"View Larger Map": "बड़ा नक्शा देखें",
|
||||
"Start Time": "समय शुरू",
|
||||
"End Time": "अंत समय"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "I messaggi diretti non sono crittografati end-to-end. Non condividere qui alcuna informazione altamente sensibile.",
|
||||
"Transcript": "Trascrizione",
|
||||
"Color contrast is too low": "Il contrasto del colore è troppo basso",
|
||||
"View Larger Map": "Visualizza mappa più grande"
|
||||
"View Larger Map": "Visualizza mappa più grande",
|
||||
"Start Time": "Ora di inizio",
|
||||
"End Time": "Tempo scaduto"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "ダイレクトメッセージはエンドツーエンドで暗号化されません。 ここでは機密性の高い情報を共有しないでください。",
|
||||
"Transcript": "トランスクリプト",
|
||||
"Color contrast is too low": "色のコントラストが低すぎる",
|
||||
"View Larger Map": "大きな地図を見る"
|
||||
"View Larger Map": "大きな地図を見る",
|
||||
"Start Time": "始まる時間",
|
||||
"End Time": "終了時間"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "다이렉트 메시지는 종단 간 암호화되지 않습니다. 여기에 매우 민감한 정보를 공유하지 마십시오.",
|
||||
"Transcript": "성적 증명서",
|
||||
"Color contrast is too low": "색상 대비가 너무 낮습니다.",
|
||||
"View Larger Map": "큰 지도 보기"
|
||||
"View Larger Map": "큰 지도 보기",
|
||||
"Start Time": "시작 시간",
|
||||
"End Time": "종료 시간"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Peyamên rasterast bi dawî-bi-dawî ne şîfrekirî ne. Li vir agahdariya pir hesas parve nekin.",
|
||||
"Transcript": "Transcript",
|
||||
"Color contrast is too low": "Berevajî reng pir kêm e",
|
||||
"View Larger Map": "Nexşeya Mezin bibînin"
|
||||
"View Larger Map": "Nexşeya Mezin bibînin",
|
||||
"Start Time": "Demjimêra Destpêkê",
|
||||
"End Time": "Dema Dawî"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Directe berichten zijn niet end-to-end versleuteld. Deel hier geen zeer gevoelige informatie.",
|
||||
"Transcript": "Vertaling",
|
||||
"Color contrast is too low": "Kleurcontrast is te laag",
|
||||
"View Larger Map": "zie grotere kaart"
|
||||
"View Larger Map": "zie grotere kaart",
|
||||
"Start Time": "Starttijd",
|
||||
"End Time": "Eindtijd"
|
||||
}
|
||||
|
|
|
@ -551,5 +551,7 @@
|
|||
"DM warning": "Direct messages are not end-to-end encrypted. Do not share any highly sensitive information here.",
|
||||
"Transcript": "Transcript",
|
||||
"Color contrast is too low": "Color contrast is too low",
|
||||
"View Larger Map": "View Larger Map"
|
||||
"View Larger Map": "View Larger Map",
|
||||
"Start Time": "Start Time",
|
||||
"End Time": "End Time"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Wiadomości na czacie nie są szyfrowane metodą end-to-end. Nie udostępniaj tutaj żadnych wysoce wrażliwych informacji.",
|
||||
"Transcript": "Transkrypcja",
|
||||
"Color contrast is too low": "Kontrast kolorów jest zbyt niski",
|
||||
"View Larger Map": "Wyświetl Większą Mapę"
|
||||
"View Larger Map": "Wyświetl Większą Mapę",
|
||||
"Start Time": "Czas rozpoczęcia",
|
||||
"End Time": "Koniec czasu"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "As mensagens diretas não são criptografadas de ponta a ponta. Não compartilhe nenhuma informação altamente sensível aqui.",
|
||||
"Transcript": "Transcrição",
|
||||
"Color contrast is too low": "O contraste de cores é muito baixo",
|
||||
"View Larger Map": "ver o mapa maior"
|
||||
"View Larger Map": "ver o mapa maior",
|
||||
"Start Time": "Hora de início",
|
||||
"End Time": "Fim do tempo"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Прямые сообщения не подвергаются сквозному шифрованию. Не делитесь здесь особо конфиденциальной информацией.",
|
||||
"Transcript": "Стенограмма",
|
||||
"Color contrast is too low": "Цветовой контраст слишком низкий",
|
||||
"View Larger Map": "Посмотреть увеличенную карту"
|
||||
"View Larger Map": "Посмотреть увеличенную карту",
|
||||
"Start Time": "Время начала",
|
||||
"End Time": "Время окончания"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Ujumbe wa moja kwa moja haujasimbwa kutoka mwisho hadi mwisho. Usishiriki maelezo yoyote nyeti sana hapa.",
|
||||
"Transcript": "Nakala",
|
||||
"Color contrast is too low": "Utofautishaji wa rangi uko chini sana",
|
||||
"View Larger Map": "Tazama Ramani Kubwa"
|
||||
"View Larger Map": "Tazama Ramani Kubwa",
|
||||
"Start Time": "Wakati wa Kuanza",
|
||||
"End Time": "Wakati wa Mwisho"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Doğrudan mesajlar uçtan uca şifrelenmez. Son derece hassas bilgileri burada paylaşmayın.",
|
||||
"Transcript": "Transcript",
|
||||
"Color contrast is too low": "Renk kontrastı çok düşük",
|
||||
"View Larger Map": "Daha Büyük Haritayı Görüntüle"
|
||||
"View Larger Map": "Daha Büyük Haritayı Görüntüle",
|
||||
"Start Time": "Başlangıç saati",
|
||||
"End Time": "Bitiş zamanı"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "Прямі повідомлення не наскрізне шифруються. Не публікуйте тут дуже конфіденційну інформацію.",
|
||||
"Transcript": "Стенограма",
|
||||
"Color contrast is too low": "Колірна контрастність надто низька",
|
||||
"View Larger Map": "Переглянути більшу карту"
|
||||
"View Larger Map": "Переглянути більшу карту",
|
||||
"Start Time": "Час початку",
|
||||
"End Time": "Час закінчення"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "דירעקט אַרטיקלען זענען נישט ענקריפּטיד פון סוף צו סוף. דו זאלסט נישט טיילן קיין העכסט שפּירעוודיק אינפֿאָרמאַציע דאָ.",
|
||||
"Transcript": "טראַנסקריפּט",
|
||||
"Color contrast is too low": "קאָליר קאַנטראַסט איז אויך נידעריק",
|
||||
"View Larger Map": "View גרעסערע מאַפּע"
|
||||
"View Larger Map": "View גרעסערע מאַפּע",
|
||||
"Start Time": "אָנהייב צייט",
|
||||
"End Time": "סוף צייט"
|
||||
}
|
||||
|
|
|
@ -555,5 +555,7 @@
|
|||
"DM warning": "直接消息不是端到端加密的。 不要在这里分享任何高度敏感的信息。",
|
||||
"Transcript": "成绩单",
|
||||
"Color contrast is too low": "颜色对比度太低",
|
||||
"View Larger Map": "查看更大的地图"
|
||||
"View Larger Map": "查看更大的地图",
|
||||
"Start Time": "开始时间",
|
||||
"End Time": "时间结束"
|
||||
}
|
||||
|
|
|
@ -243,9 +243,13 @@ def html_new_post(css_cache: {}, media_instance: bool, translate: {},
|
|||
translate['Date'] + ': </label>\n'
|
||||
date_and_time_str += '<input type="date" name="eventDate">\n'
|
||||
date_and_time_str += '<label class="labelsright">' + \
|
||||
translate['Time'] + ': '
|
||||
translate['Start Time'] + ': '
|
||||
date_and_time_str += \
|
||||
'<input type="time" name="eventTime"></label>\n</p>\n'
|
||||
'<input type="time" name="eventTime"></label>\n<br>\n'
|
||||
date_and_time_str += '<label class="labelsright">' + \
|
||||
translate['End Time'] + ': '
|
||||
date_and_time_str += \
|
||||
'<input type="time" name="eventEndTime"></label>\n</p>\n'
|
||||
|
||||
show_public_on_dropdown = True
|
||||
message_box_height = 400
|
||||
|
|
Loading…
Reference in New Issue