mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Merge branch 'main' of gitlab.com:bashrc2/epicyon
						commit
						678276b037
					
				
							
								
								
									
										11
									
								
								daemon.py
								
								
								
								
							
							
						
						
									
										11
									
								
								daemon.py
								
								
								
								
							|  | @ -526,6 +526,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|         schedule_post = False |         schedule_post = False | ||||||
|         event_date = None |         event_date = None | ||||||
|         event_time = None |         event_time = None | ||||||
|  |         event_end_time = None | ||||||
|         location = None |         location = None | ||||||
|         conversation_id = None |         conversation_id = None | ||||||
|         city = get_spoofed_city(self.server.city, |         city = get_spoofed_city(self.server.city, | ||||||
|  | @ -552,7 +553,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                subject, |                                subject, | ||||||
|                                schedule_post, |                                schedule_post, | ||||||
|                                event_date, |                                event_date, | ||||||
|                                event_time, |                                event_time, event_end_time, | ||||||
|                                location, False, |                                location, False, | ||||||
|                                self.server.system_language, |                                self.server.system_language, | ||||||
|                                conversation_id, |                                conversation_id, | ||||||
|  | @ -18835,6 +18836,8 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                 fields['eventDate'] = None |                 fields['eventDate'] = None | ||||||
|             if not fields.get('eventTime'): |             if not fields.get('eventTime'): | ||||||
|                 fields['eventTime'] = None |                 fields['eventTime'] = None | ||||||
|  |             if not fields.get('eventEndTime'): | ||||||
|  |                 fields['eventEndTime'] = None | ||||||
|             if not fields.get('location'): |             if not fields.get('location'): | ||||||
|                 fields['location'] = None |                 fields['location'] = None | ||||||
|             if not fields.get('languagesDropdown'): |             if not fields.get('languagesDropdown'): | ||||||
|  | @ -18905,6 +18908,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                        fields['schedulePost'], |                                        fields['schedulePost'], | ||||||
|                                        fields['eventDate'], |                                        fields['eventDate'], | ||||||
|                                        fields['eventTime'], |                                        fields['eventTime'], | ||||||
|  |                                        fields['eventEndTime'], | ||||||
|                                        fields['location'], False, |                                        fields['location'], False, | ||||||
|                                        fields['languagesDropdown'], |                                        fields['languagesDropdown'], | ||||||
|                                        conversation_id, |                                        conversation_id, | ||||||
|  | @ -18999,6 +19003,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                      fields['schedulePost'], |                                      fields['schedulePost'], | ||||||
|                                      fields['eventDate'], |                                      fields['eventDate'], | ||||||
|                                      fields['eventTime'], |                                      fields['eventTime'], | ||||||
|  |                                      fields['eventEndTime'], | ||||||
|                                      fields['location'], |                                      fields['location'], | ||||||
|                                      fields['languagesDropdown'], |                                      fields['languagesDropdown'], | ||||||
|                                      conversation_id, |                                      conversation_id, | ||||||
|  | @ -19162,6 +19167,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                          fields['schedulePost'], |                                          fields['schedulePost'], | ||||||
|                                          fields['eventDate'], |                                          fields['eventDate'], | ||||||
|                                          fields['eventTime'], |                                          fields['eventTime'], | ||||||
|  |                                          fields['eventEndTime'], | ||||||
|                                          fields['location'], |                                          fields['location'], | ||||||
|                                          fields['languagesDropdown'], |                                          fields['languagesDropdown'], | ||||||
|                                          conversation_id, |                                          conversation_id, | ||||||
|  | @ -19223,6 +19229,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                                fields['schedulePost'], |                                                fields['schedulePost'], | ||||||
|                                                fields['eventDate'], |                                                fields['eventDate'], | ||||||
|                                                fields['eventTime'], |                                                fields['eventTime'], | ||||||
|  |                                                fields['eventEndTime'], | ||||||
|                                                fields['location'], |                                                fields['location'], | ||||||
|                                                fields['languagesDropdown'], |                                                fields['languagesDropdown'], | ||||||
|                                                conversation_id, |                                                conversation_id, | ||||||
|  | @ -19296,6 +19303,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                                    fields['schedulePost'], |                                                    fields['schedulePost'], | ||||||
|                                                    fields['eventDate'], |                                                    fields['eventDate'], | ||||||
|                                                    fields['eventTime'], |                                                    fields['eventTime'], | ||||||
|  |                                                    fields['eventEndTime'], | ||||||
|                                                    fields['location'], |                                                    fields['location'], | ||||||
|                                                    fields['languagesDropdown'], |                                                    fields['languagesDropdown'], | ||||||
|                                                    conversation_id, |                                                    conversation_id, | ||||||
|  | @ -19361,6 +19369,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                                True, fields['schedulePost'], |                                                True, fields['schedulePost'], | ||||||
|                                                fields['eventDate'], |                                                fields['eventDate'], | ||||||
|                                                fields['eventTime'], |                                                fields['eventTime'], | ||||||
|  |                                                fields['eventEndTime'], | ||||||
|                                                fields['location'], |                                                fields['location'], | ||||||
|                                                fields['languagesDropdown'], |                                                fields['languagesDropdown'], | ||||||
|                                                conversation_id, |                                                conversation_id, | ||||||
|  |  | ||||||
|  | @ -472,6 +472,7 @@ def _desktop_reply_to_post(session, post_id: str, | ||||||
|     say_str = 'Sending reply' |     say_str = 'Sending reply' | ||||||
|     event_date = None |     event_date = None | ||||||
|     event_time = None |     event_time = None | ||||||
|  |     event_end_time = None | ||||||
|     location = None |     location = None | ||||||
|     _say_command(say_str, say_str, screenreader, system_language, espeak) |     _say_command(say_str, say_str, screenreader, system_language, espeak) | ||||||
|     if send_post_via_server(signing_priv_key_pem, __version__, |     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, |                             cached_webfingers, person_cache, is_article, | ||||||
|                             system_language, languages_understood, |                             system_language, languages_understood, | ||||||
|                             low_bandwidth, content_license_url, |                             low_bandwidth, content_license_url, | ||||||
|                             event_date, event_time, location, |                             event_date, event_time, event_end_time, location, | ||||||
|                             debug, post_id, post_id, |                             debug, post_id, post_id, | ||||||
|                             conversation_id, subject) == 0: |                             conversation_id, subject) == 0: | ||||||
|         say_str = 'Reply sent' |         say_str = 'Reply sent' | ||||||
|  | @ -545,6 +546,7 @@ def _desktop_new_post(session, | ||||||
|     say_str = 'Sending' |     say_str = 'Sending' | ||||||
|     event_date = None |     event_date = None | ||||||
|     event_time = None |     event_time = None | ||||||
|  |     event_end_time = None | ||||||
|     location = None |     location = None | ||||||
|     _say_command(say_str, say_str, screenreader, system_language, espeak) |     _say_command(say_str, say_str, screenreader, system_language, espeak) | ||||||
|     if send_post_via_server(signing_priv_key_pem, __version__, |     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, |                             cached_webfingers, person_cache, is_article, | ||||||
|                             system_language, languages_understood, |                             system_language, languages_understood, | ||||||
|                             low_bandwidth, content_license_url, |                             low_bandwidth, content_license_url, | ||||||
|                             event_date, event_time, location, |                             event_date, event_time, event_end_time, location, | ||||||
|                             debug, None, None, |                             debug, None, None, | ||||||
|                             conversation_id, subject) == 0: |                             conversation_id, subject) == 0: | ||||||
|         say_str = 'Post sent' |         say_str = 'Post sent' | ||||||
|  | @ -1278,6 +1280,7 @@ def _desktop_new_dm_base(session, to_handle: str, | ||||||
| 
 | 
 | ||||||
|     event_date = None |     event_date = None | ||||||
|     event_time = None |     event_time = None | ||||||
|  |     event_end_time = None | ||||||
|     location = None |     location = None | ||||||
| 
 | 
 | ||||||
|     say_str = 'Sending' |     say_str = 'Sending' | ||||||
|  | @ -1292,7 +1295,7 @@ def _desktop_new_dm_base(session, to_handle: str, | ||||||
|                             cached_webfingers, person_cache, is_article, |                             cached_webfingers, person_cache, is_article, | ||||||
|                             system_language, languages_understood, |                             system_language, languages_understood, | ||||||
|                             low_bandwidth, content_license_url, |                             low_bandwidth, content_license_url, | ||||||
|                             event_date, event_time, location, |                             event_date, event_time, event_end_time, location, | ||||||
|                             debug, None, None, |                             debug, None, None, | ||||||
|                             conversation_id, subject) == 0: |                             conversation_id, subject) == 0: | ||||||
|         say_str = 'Direct message sent' |         say_str = 'Direct message sent' | ||||||
|  |  | ||||||
							
								
								
									
										39
									
								
								epicyon.py
								
								
								
								
							
							
						
						
									
										39
									
								
								epicyon.py
								
								
								
								
							|  | @ -130,6 +130,10 @@ parser.add_argument('--eventTime', type=str, | ||||||
|                     default=None, |                     default=None, | ||||||
|                     help='Time for an event when sending a c2s post' + |                     help='Time for an event when sending a c2s post' + | ||||||
|                     ' HH:MM') |                     ' 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, | parser.add_argument('--eventLocation', type=str, | ||||||
|                     default=None, |                     default=None, | ||||||
|                     help='Location for an event when sending a c2s post') |                     help='Location for an event when sending a c2s post') | ||||||
|  | @ -1445,7 +1449,12 @@ if args.message: | ||||||
| 
 | 
 | ||||||
|     if args.eventTime: |     if args.eventTime: | ||||||
|         if ':' not in args.eventTime or len(args.eventTime) != 5: |         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() |             sys.exit() | ||||||
| 
 | 
 | ||||||
|     if not args.password: |     if not args.password: | ||||||
|  | @ -1523,7 +1532,8 @@ if args.message: | ||||||
|                          args.language, languages_understood, |                          args.language, languages_understood, | ||||||
|                          args.low_bandwidth, |                          args.low_bandwidth, | ||||||
|                          args.content_license_url, |                          args.content_license_url, | ||||||
|                          args.eventDate, args.eventTime, args.eventLocation, |                          args.eventDate, args.eventTime, args.eventEndTime, | ||||||
|  |                          args.eventLocation, | ||||||
|                          args.debug, |                          args.debug, | ||||||
|                          reply_to, reply_to, args.conversationId, subject) |                          reply_to, reply_to, args.conversationId, subject) | ||||||
|     for i in range(10): |     for i in range(10): | ||||||
|  | @ -3155,6 +3165,7 @@ if args.testdata: | ||||||
|     test_schedule_post = False |     test_schedule_post = False | ||||||
|     test_event_date = None |     test_event_date = None | ||||||
|     test_event_time = None |     test_event_time = None | ||||||
|  |     test_event_end_time = None | ||||||
|     test_location = None |     test_location = None | ||||||
|     test_is_article = False |     test_is_article = False | ||||||
|     conversation_id = None |     conversation_id = None | ||||||
|  | @ -3171,7 +3182,8 @@ if args.testdata: | ||||||
|                        test_media_type, test_image_description, test_city, |                        test_media_type, test_image_description, test_city, | ||||||
|                        test_in_reply_to, test_in_reply_to_atom_uri, |                        test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  | @ -3185,7 +3197,8 @@ if args.testdata: | ||||||
|                        test_media_type, test_image_description, test_city, |                        test_media_type, test_image_description, test_city, | ||||||
|                        test_in_reply_to, test_in_reply_to_atom_uri, |                        test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  | @ -3199,7 +3212,8 @@ if args.testdata: | ||||||
|                        test_media_type, test_image_description, test_city, |                        test_media_type, test_image_description, test_city, | ||||||
|                        test_in_reply_to, test_in_reply_to_atom_uri, |                        test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  | @ -3213,7 +3227,8 @@ if args.testdata: | ||||||
|                        test_media_type, test_image_description, test_city, |                        test_media_type, test_image_description, test_city, | ||||||
|                        'someone', test_in_reply_to_atom_uri, |                        'someone', test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  | @ -3228,7 +3243,8 @@ if args.testdata: | ||||||
|                        'Description of image', test_city, |                        'Description of image', test_city, | ||||||
|                        test_in_reply_to, test_in_reply_to_atom_uri, |                        test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  | @ -3242,7 +3258,8 @@ if args.testdata: | ||||||
|                        test_media_type, test_image_description, test_city, |                        test_media_type, test_image_description, test_city, | ||||||
|                        test_in_reply_to, test_in_reply_to_atom_uri, |                        test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  | @ -3256,7 +3273,8 @@ if args.testdata: | ||||||
|                        test_media_type, test_image_description, test_city, |                        test_media_type, test_image_description, test_city, | ||||||
|                        test_in_reply_to, test_in_reply_to_atom_uri, |                        test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  | @ -3270,7 +3288,8 @@ if args.testdata: | ||||||
|                        test_media_type, test_image_description, test_city, |                        test_media_type, test_image_description, test_city, | ||||||
|                        test_in_reply_to, test_in_reply_to_atom_uri, |                        test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                        test_subject, test_schedule_post, |                        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, |                        test_is_article, args.language, conversation_id, | ||||||
|                        low_bandwidth, args.content_license_url, |                        low_bandwidth, args.content_license_url, | ||||||
|                        languages_understood) |                        languages_understood) | ||||||
|  |  | ||||||
							
								
								
									
										5
									
								
								inbox.py
								
								
								
								
							
							
						
						
									
										5
									
								
								inbox.py
								
								
								
								
							|  | @ -3185,6 +3185,7 @@ def _bounce_dm(senderPostId: str, session, http_prefix: str, | ||||||
|     schedule_post = False |     schedule_post = False | ||||||
|     event_date = None |     event_date = None | ||||||
|     event_time = None |     event_time = None | ||||||
|  |     event_end_time = None | ||||||
|     location = None |     location = None | ||||||
|     conversation_id = None |     conversation_id = None | ||||||
|     low_bandwidth = False |     low_bandwidth = False | ||||||
|  | @ -3197,8 +3198,8 @@ def _bounce_dm(senderPostId: str, session, http_prefix: str, | ||||||
|                                    image_description, city, |                                    image_description, city, | ||||||
|                                    in_reply_to, in_reply_to_atom_uri, |                                    in_reply_to, in_reply_to_atom_uri, | ||||||
|                                    subject, debug, schedule_post, |                                    subject, debug, schedule_post, | ||||||
|                                    event_date, event_time, location, |                                    event_date, event_time, event_end_time, | ||||||
|                                    system_language, conversation_id, |                                    location, system_language, conversation_id, | ||||||
|                                    low_bandwidth, |                                    low_bandwidth, | ||||||
|                                    content_license_url, |                                    content_license_url, | ||||||
|                                    languages_understood, bounce_is_chat) |                                    languages_understood, bounce_is_chat) | ||||||
|  |  | ||||||
							
								
								
									
										7
									
								
								maps.py
								
								
								
								
							
							
						
						
									
										7
									
								
								maps.py
								
								
								
								
							|  | @ -215,7 +215,9 @@ def geocoords_from_map_link(url: str, | ||||||
| 
 | 
 | ||||||
| def html_open_street_map(url: str, | def html_open_street_map(url: str, | ||||||
|                          bounding_box_degrees: float, |                          bounding_box_degrees: float, | ||||||
|                          translate: {}) -> str: |                          translate: {}, | ||||||
|  |                          width: str = "725", | ||||||
|  |                          height: str = "650") -> str: | ||||||
|     """Returns embed html for an OSM link |     """Returns embed html for an OSM link | ||||||
|     """ |     """ | ||||||
|     osm_domain = 'openstreetmap.org' |     osm_domain = 'openstreetmap.org' | ||||||
|  | @ -228,7 +230,8 @@ def html_open_street_map(url: str, | ||||||
|         return '' |         return '' | ||||||
| 
 | 
 | ||||||
|     html_str = \ |     html_str = \ | ||||||
|         '<iframe width="725" height="650" frameborder="0" ' + \ |         '<iframe width="' + width + '" height="' + height + \ | ||||||
|  |         '" frameborder="0" ' + \ | ||||||
|         'scrolling="no" marginheight="0" marginwidth="0" ' + \ |         'scrolling="no" marginheight="0" marginwidth="0" ' + \ | ||||||
|         'src="https://www.' + osm_domain + '/export/embed.html?' + \ |         'src="https://www.' + osm_domain + '/export/embed.html?' + \ | ||||||
|         'bbox=' + str(longitude - bounding_box_degrees) + \ |         'bbox=' + str(longitude - bounding_box_degrees) + \ | ||||||
|  |  | ||||||
							
								
								
									
										36
									
								
								posts.py
								
								
								
								
							
							
						
						
									
										36
									
								
								posts.py
								
								
								
								
							|  | @ -1837,10 +1837,8 @@ def create_public_post(base_dir: str, | ||||||
|                        in_reply_to: str, |                        in_reply_to: str, | ||||||
|                        in_reply_to_atom_uri: str, subject: str, |                        in_reply_to_atom_uri: str, subject: str, | ||||||
|                        schedule_post: bool, |                        schedule_post: bool, | ||||||
|                        event_date: str, event_time: str, |                        event_date: str, event_time: str, event_end_time: str, | ||||||
|                        location: str, |                        location: str, is_article: bool, system_language: str, | ||||||
|                        is_article: bool, |  | ||||||
|                        system_language: str, |  | ||||||
|                        conversation_id: str, low_bandwidth: bool, |                        conversation_id: str, low_bandwidth: bool, | ||||||
|                        content_license_url: str, |                        content_license_url: str, | ||||||
|                        languages_understood: []) -> {}: |                        languages_understood: []) -> {}: | ||||||
|  | @ -1851,8 +1849,8 @@ def create_public_post(base_dir: str, | ||||||
|     event_uuid = None |     event_uuid = None | ||||||
|     category = None |     category = None | ||||||
|     join_mode = None |     join_mode = None | ||||||
|     end_date = None |     end_date = event_date | ||||||
|     end_time = None |     end_time = event_end_time | ||||||
|     maximum_attendee_capacity = None |     maximum_attendee_capacity = None | ||||||
|     replies_moderation_option = None |     replies_moderation_option = None | ||||||
|     anonymous_participation_enabled = None |     anonymous_participation_enabled = None | ||||||
|  | @ -1919,7 +1917,7 @@ def create_blog_post(base_dir: str, | ||||||
|                      image_description: str, city: str, |                      image_description: str, city: str, | ||||||
|                      in_reply_to: str, in_reply_to_atom_uri: str, |                      in_reply_to: str, in_reply_to_atom_uri: str, | ||||||
|                      subject: str, schedule_post: bool, |                      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, |                      location: str, system_language: str, | ||||||
|                      conversation_id: str, low_bandwidth: bool, |                      conversation_id: str, low_bandwidth: bool, | ||||||
|                      content_license_url: str, |                      content_license_url: str, | ||||||
|  | @ -1933,7 +1931,7 @@ def create_blog_post(base_dir: str, | ||||||
|                            image_description, city, |                            image_description, city, | ||||||
|                            in_reply_to, in_reply_to_atom_uri, subject, |                            in_reply_to, in_reply_to_atom_uri, subject, | ||||||
|                            schedule_post, |                            schedule_post, | ||||||
|                            event_date, event_time, location, |                            event_date, event_time, event_end_time, location, | ||||||
|                            True, system_language, conversation_id, |                            True, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -1959,6 +1957,7 @@ def create_news_post(base_dir: str, | ||||||
|     schedule_post = False |     schedule_post = False | ||||||
|     event_date = None |     event_date = None | ||||||
|     event_time = None |     event_time = None | ||||||
|  |     event_end_time = None | ||||||
|     location = None |     location = None | ||||||
|     blog = \ |     blog = \ | ||||||
|         create_public_post(base_dir, |         create_public_post(base_dir, | ||||||
|  | @ -1969,7 +1968,7 @@ def create_news_post(base_dir: str, | ||||||
|                            image_description, city, |                            image_description, city, | ||||||
|                            in_reply_to, in_reply_to_atom_uri, subject, |                            in_reply_to, in_reply_to_atom_uri, subject, | ||||||
|                            schedule_post, |                            schedule_post, | ||||||
|                            event_date, event_time, location, |                            event_date, event_time, event_end_time, location, | ||||||
|                            True, system_language, conversation_id, |                            True, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -2038,7 +2037,7 @@ def create_unlisted_post(base_dir: str, | ||||||
|                          image_description: str, city: str, |                          image_description: str, city: str, | ||||||
|                          in_reply_to: str, in_reply_to_atom_uri: str, |                          in_reply_to: str, in_reply_to_atom_uri: str, | ||||||
|                          subject: str, schedule_post: bool, |                          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, |                          location: str, system_language: str, | ||||||
|                          conversation_id: str, low_bandwidth: bool, |                          conversation_id: str, low_bandwidth: bool, | ||||||
|                          content_license_url: str, |                          content_license_url: str, | ||||||
|  | @ -2057,8 +2056,9 @@ def create_unlisted_post(base_dir: str, | ||||||
|                              image_description, city, |                              image_description, city, | ||||||
|                              False, False, |                              False, False, | ||||||
|                              in_reply_to, in_reply_to_atom_uri, subject, |                              in_reply_to, in_reply_to_atom_uri, subject, | ||||||
|                              schedule_post, event_date, event_time, location, |                              schedule_post, event_date, | ||||||
|                              None, None, None, None, None, |                              event_time, event_end_time, location, | ||||||
|  |                              None, None, None, event_date, event_end_time, | ||||||
|                              None, None, None, None, None, system_language, |                              None, None, None, None, None, system_language, | ||||||
|                              conversation_id, low_bandwidth, |                              conversation_id, low_bandwidth, | ||||||
|                              content_license_url, languages_understood) |                              content_license_url, languages_understood) | ||||||
|  | @ -2075,7 +2075,8 @@ def create_followers_only_post(base_dir: str, | ||||||
|                                in_reply_to: str, |                                in_reply_to: str, | ||||||
|                                in_reply_to_atom_uri: str, |                                in_reply_to_atom_uri: str, | ||||||
|                                subject: str, schedule_post: bool, |                                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, |                                location: str, system_language: str, | ||||||
|                                conversation_id: str, low_bandwidth: bool, |                                conversation_id: str, low_bandwidth: bool, | ||||||
|                                content_license_url: str, |                                content_license_url: str, | ||||||
|  | @ -2094,7 +2095,7 @@ def create_followers_only_post(base_dir: str, | ||||||
|                              False, False, |                              False, False, | ||||||
|                              in_reply_to, in_reply_to_atom_uri, subject, |                              in_reply_to, in_reply_to_atom_uri, subject, | ||||||
|                              schedule_post, event_date, event_time, location, |                              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, |                              None, None, None, None, None, system_language, | ||||||
|                              conversation_id, low_bandwidth, |                              conversation_id, low_bandwidth, | ||||||
|                              content_license_url, languages_understood) |                              content_license_url, languages_understood) | ||||||
|  | @ -2149,6 +2150,7 @@ def create_direct_message_post(base_dir: str, | ||||||
|                                subject: str, debug: bool, |                                subject: str, debug: bool, | ||||||
|                                schedule_post: bool, |                                schedule_post: bool, | ||||||
|                                event_date: str, event_time: str, |                                event_date: str, event_time: str, | ||||||
|  |                                event_end_time: str, | ||||||
|                                location: str, system_language: str, |                                location: str, system_language: str, | ||||||
|                                conversation_id: str, low_bandwidth: bool, |                                conversation_id: str, low_bandwidth: bool, | ||||||
|                                content_license_url: str, |                                content_license_url: str, | ||||||
|  | @ -2175,7 +2177,7 @@ def create_direct_message_post(base_dir: str, | ||||||
|                           False, False, |                           False, False, | ||||||
|                           in_reply_to, in_reply_to_atom_uri, subject, |                           in_reply_to, in_reply_to_atom_uri, subject, | ||||||
|                           schedule_post, event_date, event_time, location, |                           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, |                           None, None, None, None, None, system_language, | ||||||
|                           conversation_id, low_bandwidth, |                           conversation_id, low_bandwidth, | ||||||
|                           content_license_url, languages_understood) |                           content_license_url, languages_understood) | ||||||
|  | @ -2567,7 +2569,7 @@ def send_post_via_server(signing_priv_key_pem: str, project_version: str, | ||||||
|                          languages_understood: [], |                          languages_understood: [], | ||||||
|                          low_bandwidth: bool, |                          low_bandwidth: bool, | ||||||
|                          content_license_url: str, |                          content_license_url: str, | ||||||
|                          event_date: str, event_time: str, |                          event_date: str, event_time: str, event_end_time: str, | ||||||
|                          location: str, |                          location: str, | ||||||
|                          debug: bool = False, |                          debug: bool = False, | ||||||
|                          in_reply_to: str = None, |                          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, |                           in_reply_to_atom_uri, subject, | ||||||
|                           False, |                           False, | ||||||
|                           event_date, event_time, location, |                           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, |                           None, None, None, None, None, system_language, | ||||||
|                           conversation_id, low_bandwidth, |                           conversation_id, low_bandwidth, | ||||||
|                           content_license_url, languages_understood) |                           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_schedule_post = False | ||||||
|         test_event_date = None |         test_event_date = None | ||||||
|         test_event_time = None |         test_event_time = None | ||||||
|  |         test_event_end_time = None | ||||||
|         test_location = None |         test_location = None | ||||||
|         test_is_article = False |         test_is_article = False | ||||||
|         conversation_id = None |         conversation_id = None | ||||||
|  | @ -768,7 +769,8 @@ def create_server_alice(path: str, domain: str, port: int, | ||||||
|                            test_image_description, test_city, |                            test_image_description, test_city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -783,7 +785,8 @@ def create_server_alice(path: str, domain: str, port: int, | ||||||
|                            test_image_description, test_city, |                            test_image_description, test_city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -799,7 +802,8 @@ def create_server_alice(path: str, domain: str, port: int, | ||||||
|                            test_image_description, test_city, |                            test_image_description, test_city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -912,6 +916,7 @@ def create_server_bob(path: str, domain: str, port: int, | ||||||
|         test_schedule_post = False |         test_schedule_post = False | ||||||
|         test_event_date = None |         test_event_date = None | ||||||
|         test_event_time = None |         test_event_time = None | ||||||
|  |         test_event_end_time = None | ||||||
|         test_location = None |         test_location = None | ||||||
|         test_is_article = False |         test_is_article = False | ||||||
|         conversation_id = None |         conversation_id = None | ||||||
|  | @ -927,7 +932,8 @@ def create_server_bob(path: str, domain: str, port: int, | ||||||
|                            test_image_description, test_city, |                            test_image_description, test_city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -943,7 +949,8 @@ def create_server_bob(path: str, domain: str, port: int, | ||||||
|                            test_image_description, test_city, |                            test_image_description, test_city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -958,7 +965,8 @@ def create_server_bob(path: str, domain: str, port: int, | ||||||
|                            test_image_description, test_city, |                            test_image_description, test_city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -2825,6 +2833,7 @@ def _test_create_person_account(base_dir: str): | ||||||
|     test_schedule_post = False |     test_schedule_post = False | ||||||
|     test_event_date = None |     test_event_date = None | ||||||
|     test_event_time = None |     test_event_time = None | ||||||
|  |     test_event_end_time = None | ||||||
|     test_location = None |     test_location = None | ||||||
|     test_is_article = False |     test_is_article = False | ||||||
|     followers_only = False |     followers_only = False | ||||||
|  | @ -2848,7 +2857,8 @@ def _test_create_person_account(base_dir: str): | ||||||
|                            'Not suitable for Vogons', 'London, England', |                            'Not suitable for Vogons', 'London, England', | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -2873,7 +2883,8 @@ def _test_create_person_account(base_dir: str): | ||||||
|                            'Not suitable for Vogons', 'London, England', |                            'Not suitable for Vogons', 'London, England', | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            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.year) + '-' + str(test_date.month) + '-' + \ | ||||||
|         str(test_date.day) |         str(test_date.day) | ||||||
|     event_time = '11:45' |     event_time = '11:45' | ||||||
|  |     event_end_time = '12:30' | ||||||
|     location = "Kinshasa" |     location = "Kinshasa" | ||||||
|     send_result = \ |     send_result = \ | ||||||
|         send_post_via_server(signing_priv_key_pem, __version__, |         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, |                              cached_webfingers, person_cache, is_article, | ||||||
|                              system_language, languages_understood, |                              system_language, languages_understood, | ||||||
|                              low_bandwidth, content_license_url, |                              low_bandwidth, content_license_url, | ||||||
|                              event_date, event_time, location, |                              event_date, event_time, event_end_time, location, | ||||||
|                              True, None, None, |                              True, None, None, | ||||||
|                              conversation_id, None) |                              conversation_id, None) | ||||||
|     print('send_result: ' + str(send_result)) |     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_schedule_post = False | ||||||
|     test_event_date = None |     test_event_date = None | ||||||
|     test_event_time = None |     test_event_time = None | ||||||
|  |     test_event_end_time = None | ||||||
|     test_location = None |     test_location = None | ||||||
|     test_is_article = False |     test_is_article = False | ||||||
|     conversation_id = None |     conversation_id = None | ||||||
|  | @ -4552,7 +4565,8 @@ def _test_reply_to_public_post(base_dir: str) -> None: | ||||||
|                            image_description, city, test_in_reply_to, |                            image_description, city, test_in_reply_to, | ||||||
|                            test_in_reply_to_atom_uri, |                            test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -5464,6 +5478,7 @@ def _test_links_within_post(base_dir: str) -> None: | ||||||
|     test_schedule_post = False |     test_schedule_post = False | ||||||
|     test_event_date = None |     test_event_date = None | ||||||
|     test_event_time = None |     test_event_time = None | ||||||
|  |     test_event_end_time = None | ||||||
|     test_location = None |     test_location = None | ||||||
|     test_is_article = False |     test_is_article = False | ||||||
|     conversation_id = None |     conversation_id = None | ||||||
|  | @ -5478,7 +5493,8 @@ def _test_links_within_post(base_dir: str) -> None: | ||||||
|                            image_description, city, |                            image_description, city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -5516,7 +5532,8 @@ def _test_links_within_post(base_dir: str) -> None: | ||||||
|                            False, None, |                            False, None, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  | @ -6472,6 +6489,7 @@ def _test_can_replyto(base_dir: str) -> None: | ||||||
|     test_schedule_post = False |     test_schedule_post = False | ||||||
|     test_event_date = None |     test_event_date = None | ||||||
|     test_event_time = None |     test_event_time = None | ||||||
|  |     test_event_end_time = None | ||||||
|     test_location = None |     test_location = None | ||||||
|     test_is_article = False |     test_is_article = False | ||||||
|     conversation_id = None |     conversation_id = None | ||||||
|  | @ -6486,7 +6504,8 @@ def _test_can_replyto(base_dir: str) -> None: | ||||||
|                            image_description, city, |                            image_description, city, | ||||||
|                            test_in_reply_to, test_in_reply_to_atom_uri, |                            test_in_reply_to, test_in_reply_to_atom_uri, | ||||||
|                            test_subject, test_schedule_post, |                            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, |                            test_is_article, system_language, conversation_id, | ||||||
|                            low_bandwidth, content_license_url, |                            low_bandwidth, content_license_url, | ||||||
|                            languages_understood) |                            languages_understood) | ||||||
|  |  | ||||||
|  | @ -68,8 +68,8 @@ | ||||||
|     "day-number2": "lightgrey", |     "day-number2": "lightgrey", | ||||||
|     "today-foreground": "white", |     "today-foreground": "white", | ||||||
|     "today-circle": "red", |     "today-circle": "red", | ||||||
|     "event-background": "#444", |     "event-background": "#333", | ||||||
|     "event-background-private": "#888", |     "event-background-private": "#111", | ||||||
|     "event-foreground": "white", |     "event-foreground": "white", | ||||||
|     "title-text": "white", |     "title-text": "white", | ||||||
|     "title-background": "#ff42a0", |     "title-background": "#ff42a0", | ||||||
|  |  | ||||||
|  | @ -555,5 +555,7 @@ | ||||||
|     "DM warning": "لا يتم تشفير الرسائل المباشرة من طرف إلى طرف. لا تشارك أي معلومات حساسة للغاية هنا.", |     "DM warning": "لا يتم تشفير الرسائل المباشرة من طرف إلى طرف. لا تشارك أي معلومات حساسة للغاية هنا.", | ||||||
|     "Transcript": "نص", |     "Transcript": "نص", | ||||||
|     "Color contrast is too low": "تباين الألوان منخفض جدًا", |     "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í.", |     "DM warning": "Els missatges directes no estan xifrats d'extrem a extrem. No compartiu cap informació molt sensible aquí.", | ||||||
|     "Transcript": "Transcripció", |     "Transcript": "Transcripció", | ||||||
|     "Color contrast is too low": "El contrast de color és massa baix", |     "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.", |     "DM warning": "Nid yw negeseuon uniongyrchol wedi'u hamgryptio o'r dechrau i'r diwedd. Peidiwch â rhannu unrhyw wybodaeth hynod sensitif yma.", | ||||||
|     "Transcript": "Trawsgrifiad", |     "Transcript": "Trawsgrifiad", | ||||||
|     "Color contrast is too low": "Mae cyferbyniad lliw yn rhy isel", |     "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.", |     "DM warning": "Direktnachrichten sind nicht Ende-zu-Ende verschlüsselt. Geben Sie hier keine hochsensiblen Informationen weiter.", | ||||||
|     "Transcript": "Abschrift", |     "Transcript": "Abschrift", | ||||||
|     "Color contrast is too low": "Der Farbkontrast ist zu gering", |     "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": "Τα άμεσα μηνύματα δεν είναι κρυπτογραφημένα από άκρο σε άκρο. Μην μοιράζεστε καμία εξαιρετικά ευαίσθητη πληροφορία εδώ.", |     "DM warning": "Τα άμεσα μηνύματα δεν είναι κρυπτογραφημένα από άκρο σε άκρο. Μην μοιράζεστε καμία εξαιρετικά ευαίσθητη πληροφορία εδώ.", | ||||||
|     "Transcript": "Αντίγραφο", |     "Transcript": "Αντίγραφο", | ||||||
|     "Color contrast is too low": "Η χρωματική αντίθεση είναι πολύ χαμηλή", |     "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.", |     "DM warning": "Direct messages are not end-to-end encrypted. Do not share any highly sensitive information here.", | ||||||
|     "Transcript": "Transcript", |     "Transcript": "Transcript", | ||||||
|     "Color contrast is too low": "Color contrast is too low", |     "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í.", |     "DM warning": "Los mensajes directos no están cifrados de extremo a extremo. No comparta ninguna información altamente confidencial aquí.", | ||||||
|     "Transcript": "Transcripción", |     "Transcript": "Transcripción", | ||||||
|     "Color contrast is too low": "El contraste de color es demasiado bajo", |     "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.", |     "DM warning": "Les messages directs ne sont pas chiffrés de bout en bout. Ne partagez aucune information hautement sensible ici.", | ||||||
|     "Transcript": "Transcription", |     "Transcript": "Transcription", | ||||||
|     "Color contrast is too low": "Le contraste des couleurs est trop faible", |     "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.", |     "DM warning": "Níl teachtaireachtaí díreacha criptithe ó cheann go ceann. Ná roinn aon fhaisnéis an-íogair anseo.", | ||||||
|     "Transcript": "Athscríbhinn", |     "Transcript": "Athscríbhinn", | ||||||
|     "Color contrast is too low": "Tá codarsnacht dath ró-íseal", |     "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": "डायरेक्ट मैसेज एंड-टू-एंड एन्क्रिप्टेड नहीं होते हैं। यहां कोई अति संवेदनशील जानकारी साझा न करें।", |     "DM warning": "डायरेक्ट मैसेज एंड-टू-एंड एन्क्रिप्टेड नहीं होते हैं। यहां कोई अति संवेदनशील जानकारी साझा न करें।", | ||||||
|     "Transcript": "प्रतिलिपि", |     "Transcript": "प्रतिलिपि", | ||||||
|     "Color contrast is too low": "रंग कंट्रास्ट बहुत कम है", |     "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.", |     "DM warning": "I messaggi diretti non sono crittografati end-to-end. Non condividere qui alcuna informazione altamente sensibile.", | ||||||
|     "Transcript": "Trascrizione", |     "Transcript": "Trascrizione", | ||||||
|     "Color contrast is too low": "Il contrasto del colore è troppo basso", |     "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": "ダイレクトメッセージはエンドツーエンドで暗号化されません。 ここでは機密性の高い情報を共有しないでください。", |     "DM warning": "ダイレクトメッセージはエンドツーエンドで暗号化されません。 ここでは機密性の高い情報を共有しないでください。", | ||||||
|     "Transcript": "トランスクリプト", |     "Transcript": "トランスクリプト", | ||||||
|     "Color contrast is too low": "色のコントラストが低すぎる", |     "Color contrast is too low": "色のコントラストが低すぎる", | ||||||
|     "View Larger Map": "大きな地図を見る" |     "View Larger Map": "大きな地図を見る", | ||||||
|  |     "Start Time": "始まる時間", | ||||||
|  |     "End Time": "終了時間" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -555,5 +555,7 @@ | ||||||
|     "DM warning": "다이렉트 메시지는 종단 간 암호화되지 않습니다. 여기에 매우 민감한 정보를 공유하지 마십시오.", |     "DM warning": "다이렉트 메시지는 종단 간 암호화되지 않습니다. 여기에 매우 민감한 정보를 공유하지 마십시오.", | ||||||
|     "Transcript": "성적 증명서", |     "Transcript": "성적 증명서", | ||||||
|     "Color contrast is too low": "색상 대비가 너무 낮습니다.", |     "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.", |     "DM warning": "Peyamên rasterast bi dawî-bi-dawî ne şîfrekirî ne. Li vir agahdariya pir hesas parve nekin.", | ||||||
|     "Transcript": "Transcript", |     "Transcript": "Transcript", | ||||||
|     "Color contrast is too low": "Berevajî reng pir kêm e", |     "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.", |     "DM warning": "Directe berichten zijn niet end-to-end versleuteld. Deel hier geen zeer gevoelige informatie.", | ||||||
|     "Transcript": "Vertaling", |     "Transcript": "Vertaling", | ||||||
|     "Color contrast is too low": "Kleurcontrast is te laag", |     "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.", |     "DM warning": "Direct messages are not end-to-end encrypted. Do not share any highly sensitive information here.", | ||||||
|     "Transcript": "Transcript", |     "Transcript": "Transcript", | ||||||
|     "Color contrast is too low": "Color contrast is too low", |     "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.", |     "DM warning": "Wiadomości na czacie nie są szyfrowane metodą end-to-end. Nie udostępniaj tutaj żadnych wysoce wrażliwych informacji.", | ||||||
|     "Transcript": "Transkrypcja", |     "Transcript": "Transkrypcja", | ||||||
|     "Color contrast is too low": "Kontrast kolorów jest zbyt niski", |     "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.", |     "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", |     "Transcript": "Transcrição", | ||||||
|     "Color contrast is too low": "O contraste de cores é muito baixo", |     "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": "Прямые сообщения не подвергаются сквозному шифрованию. Не делитесь здесь особо конфиденциальной информацией.", |     "DM warning": "Прямые сообщения не подвергаются сквозному шифрованию. Не делитесь здесь особо конфиденциальной информацией.", | ||||||
|     "Transcript": "Стенограмма", |     "Transcript": "Стенограмма", | ||||||
|     "Color contrast is too low": "Цветовой контраст слишком низкий", |     "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.", |     "DM warning": "Ujumbe wa moja kwa moja haujasimbwa kutoka mwisho hadi mwisho. Usishiriki maelezo yoyote nyeti sana hapa.", | ||||||
|     "Transcript": "Nakala", |     "Transcript": "Nakala", | ||||||
|     "Color contrast is too low": "Utofautishaji wa rangi uko chini sana", |     "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.", |     "DM warning": "Doğrudan mesajlar uçtan uca şifrelenmez. Son derece hassas bilgileri burada paylaşmayın.", | ||||||
|     "Transcript": "Transcript", |     "Transcript": "Transcript", | ||||||
|     "Color contrast is too low": "Renk kontrastı çok düşük", |     "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": "Прямі повідомлення не наскрізне шифруються. Не публікуйте тут дуже конфіденційну інформацію.", |     "DM warning": "Прямі повідомлення не наскрізне шифруються. Не публікуйте тут дуже конфіденційну інформацію.", | ||||||
|     "Transcript": "Стенограма", |     "Transcript": "Стенограма", | ||||||
|     "Color contrast is too low": "Колірна контрастність надто низька", |     "Color contrast is too low": "Колірна контрастність надто низька", | ||||||
|     "View Larger Map": "Переглянути більшу карту" |     "View Larger Map": "Переглянути більшу карту", | ||||||
|  |     "Start Time": "Час початку", | ||||||
|  |     "End Time": "Час закінчення" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -555,5 +555,7 @@ | ||||||
|     "DM warning": "דירעקט אַרטיקלען זענען נישט ענקריפּטיד פון סוף צו סוף. דו זאלסט נישט טיילן קיין העכסט שפּירעוודיק אינפֿאָרמאַציע דאָ.", |     "DM warning": "דירעקט אַרטיקלען זענען נישט ענקריפּטיד פון סוף צו סוף. דו זאלסט נישט טיילן קיין העכסט שפּירעוודיק אינפֿאָרמאַציע דאָ.", | ||||||
|     "Transcript": "טראַנסקריפּט", |     "Transcript": "טראַנסקריפּט", | ||||||
|     "Color contrast is too low": "קאָליר קאַנטראַסט איז אויך נידעריק", |     "Color contrast is too low": "קאָליר קאַנטראַסט איז אויך נידעריק", | ||||||
|     "View Larger Map": "View גרעסערע מאַפּע" |     "View Larger Map": "View גרעסערע מאַפּע", | ||||||
|  |     "Start Time": "אָנהייב צייט", | ||||||
|  |     "End Time": "סוף צייט" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -555,5 +555,7 @@ | ||||||
|     "DM warning": "直接消息不是端到端加密的。 不要在这里分享任何高度敏感的信息。", |     "DM warning": "直接消息不是端到端加密的。 不要在这里分享任何高度敏感的信息。", | ||||||
|     "Transcript": "成绩单", |     "Transcript": "成绩单", | ||||||
|     "Color contrast is too low": "颜色对比度太低", |     "Color contrast is too low": "颜色对比度太低", | ||||||
|     "View Larger Map": "查看更大的地图" |     "View Larger Map": "查看更大的地图", | ||||||
|  |     "Start Time": "开始时间", | ||||||
|  |     "End Time": "时间结束" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -31,6 +31,7 @@ from webapp_utils import html_header_with_external_style | ||||||
| from webapp_utils import html_footer | from webapp_utils import html_footer | ||||||
| from webapp_utils import html_hide_from_screen_reader | from webapp_utils import html_hide_from_screen_reader | ||||||
| from webapp_utils import html_keyboard_navigation | from webapp_utils import html_keyboard_navigation | ||||||
|  | from maps import html_open_street_map | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def html_calendar_delete_confirm(css_cache: {}, translate: {}, base_dir: str, | def html_calendar_delete_confirm(css_cache: {}, translate: {}, base_dir: str, | ||||||
|  | @ -141,6 +142,9 @@ def _html_calendar_day(person_cache: {}, css_cache: {}, translate: {}, | ||||||
|     if day_events: |     if day_events: | ||||||
|         for event_post in day_events: |         for event_post in day_events: | ||||||
|             event_time = None |             event_time = None | ||||||
|  |             event_end_time = None | ||||||
|  |             start_time_str = '' | ||||||
|  |             end_time_str = '' | ||||||
|             event_description = None |             event_description = None | ||||||
|             event_place = None |             event_place = None | ||||||
|             post_id = None |             post_id = None | ||||||
|  | @ -153,10 +157,18 @@ def _html_calendar_day(person_cache: {}, css_cache: {}, translate: {}, | ||||||
|                     if evnt.get('post_id'): |                     if evnt.get('post_id'): | ||||||
|                         post_id = evnt['post_id'] |                         post_id = evnt['post_id'] | ||||||
|                     if evnt.get('startTime'): |                     if evnt.get('startTime'): | ||||||
|  |                         start_time_str = evnt['startTime'] | ||||||
|                         event_date = \ |                         event_date = \ | ||||||
|                             datetime.strptime(evnt['startTime'], |                             datetime.strptime(start_time_str, | ||||||
|                                               "%Y-%m-%dT%H:%M:%S%z") |                                               "%Y-%m-%dT%H:%M:%S%z") | ||||||
|                         event_time = event_date.strftime("%H:%M").strip() |                         event_time = event_date.strftime("%H:%M").strip() | ||||||
|  |                     if evnt.get('endTime'): | ||||||
|  |                         end_time_str = evnt['endTime'] | ||||||
|  |                         event_end_date = \ | ||||||
|  |                             datetime.strptime(end_time_str, | ||||||
|  |                                               "%Y-%m-%dT%H:%M:%S%z") | ||||||
|  |                         event_end_time = \ | ||||||
|  |                             event_end_date.strftime("%H:%M").strip() | ||||||
|                     if 'public' in evnt: |                     if 'public' in evnt: | ||||||
|                         if evnt['public'] is True: |                         if evnt['public'] is True: | ||||||
|                             event_is_public = True |                             event_is_public = True | ||||||
|  | @ -176,6 +188,15 @@ def _html_calendar_day(person_cache: {}, css_cache: {}, translate: {}, | ||||||
|                 elif evnt['type'] == 'Place': |                 elif evnt['type'] == 'Place': | ||||||
|                     if evnt.get('name'): |                     if evnt.get('name'): | ||||||
|                         event_place = evnt['name'] |                         event_place = evnt['name'] | ||||||
|  |                         if '://' in event_place: | ||||||
|  |                             bounding_box_degrees = 0.001 | ||||||
|  |                             event_map = \ | ||||||
|  |                                 html_open_street_map(event_place, | ||||||
|  |                                                      bounding_box_degrees, | ||||||
|  |                                                      translate, | ||||||
|  |                                                      '320', '320') | ||||||
|  |                             if event_map: | ||||||
|  |                                 event_place = event_map | ||||||
| 
 | 
 | ||||||
|             # prepend a link to the sender of the calendar item |             # prepend a link to the sender of the calendar item | ||||||
|             if sender_name and event_description: |             if sender_name and event_description: | ||||||
|  | @ -210,6 +231,17 @@ def _html_calendar_day(person_cache: {}, css_cache: {}, translate: {}, | ||||||
|             if event_is_public: |             if event_is_public: | ||||||
|                 event_class = 'calendar__day__event__public' |                 event_class = 'calendar__day__event__public' | ||||||
|                 cal_item_class = 'calItemPublic' |                 cal_item_class = 'calItemPublic' | ||||||
|  |             if event_time: | ||||||
|  |                 if event_end_time: | ||||||
|  |                     event_time = \ | ||||||
|  |                         '<time datetime="' + start_time_str + '">' + \ | ||||||
|  |                         event_time + '</time> - ' + \ | ||||||
|  |                         '<time datetime="' + end_time_str + '">' + \ | ||||||
|  |                         event_end_time + '</time>' | ||||||
|  |                 else: | ||||||
|  |                     event_time = \ | ||||||
|  |                         '<time datetime="' + start_time_str + '">' + \ | ||||||
|  |                         event_time + '</time>' | ||||||
|             if event_time and event_description and event_place: |             if event_time and event_description and event_place: | ||||||
|                 calendar_str += \ |                 calendar_str += \ | ||||||
|                     '<tr class="' + cal_item_class + '">' + \ |                     '<tr class="' + cal_item_class + '">' + \ | ||||||
|  |  | ||||||
|  | @ -243,9 +243,13 @@ def html_new_post(css_cache: {}, media_instance: bool, translate: {}, | ||||||
|         translate['Date'] + ': </label>\n' |         translate['Date'] + ': </label>\n' | ||||||
|     date_and_time_str += '<input type="date" name="eventDate">\n' |     date_and_time_str += '<input type="date" name="eventDate">\n' | ||||||
|     date_and_time_str += '<label class="labelsright">' + \ |     date_and_time_str += '<label class="labelsright">' + \ | ||||||
|         translate['Time'] + ': ' |         translate['Start Time'] + ': ' | ||||||
|     date_and_time_str += \ |     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 |     show_public_on_dropdown = True | ||||||
|     message_box_height = 400 |     message_box_height = 400 | ||||||
|  |  | ||||||
|  | @ -914,27 +914,26 @@ def html_profile(signing_priv_key_pem: str, | ||||||
|         translate['Switch to timeline view'] |         translate['Switch to timeline view'] | ||||||
|     menu_edit = \ |     menu_edit = \ | ||||||
|         html_hide_from_screen_reader('✍') + ' ' + translate['Edit'] |         html_hide_from_screen_reader('✍') + ' ' + translate['Edit'] | ||||||
|     if not is_group: |  | ||||||
|         menu_following = \ |  | ||||||
|             html_hide_from_screen_reader('👥') + ' ' + translate['Following'] |  | ||||||
|     menu_followers = \ |     menu_followers = \ | ||||||
|         html_hide_from_screen_reader('👪') + ' ' + followers_str |         html_hide_from_screen_reader('👪') + ' ' + followers_str | ||||||
|     if not is_group: |  | ||||||
|         menu_roles = \ |  | ||||||
|             html_hide_from_screen_reader('🤚') + ' ' + translate['Roles'] |  | ||||||
|         menu_skills = \ |  | ||||||
|             html_hide_from_screen_reader('🛠') + ' ' + translate['Skills'] |  | ||||||
|     menu_logout = \ |     menu_logout = \ | ||||||
|         html_hide_from_screen_reader('❎') + ' ' + translate['Logout'] |         html_hide_from_screen_reader('❎') + ' ' + translate['Logout'] | ||||||
|     nav_links = { |     nav_links = { | ||||||
|         menu_timeline: user_path_str + '/' + deft, |         menu_timeline: user_path_str + '/' + deft, | ||||||
|         menu_edit: user_path_str + '/editprofile', |         menu_edit: user_path_str + '/editprofile', | ||||||
|         menu_following: user_path_str + '/following#timeline', |  | ||||||
|         menu_followers: user_path_str + '/followers#timeline', |         menu_followers: user_path_str + '/followers#timeline', | ||||||
|         menu_roles: user_path_str + '/roles#timeline', |  | ||||||
|         menu_skills: user_path_str + '/skills#timeline', |  | ||||||
|         menu_logout: '/logout' |         menu_logout: '/logout' | ||||||
|     } |     } | ||||||
|  |     if not is_group: | ||||||
|  |         menu_following = \ | ||||||
|  |             html_hide_from_screen_reader('👥') + ' ' + translate['Following'] | ||||||
|  |         nav_links[menu_following] = user_path_str + '/following#timeline' | ||||||
|  |         menu_roles = \ | ||||||
|  |             html_hide_from_screen_reader('🤚') + ' ' + translate['Roles'] | ||||||
|  |         nav_links[menu_roles] = user_path_str + '/roles#timeline' | ||||||
|  |         menu_skills = \ | ||||||
|  |             html_hide_from_screen_reader('🛠') + ' ' + translate['Skills'] | ||||||
|  |         nav_links[menu_skills] = user_path_str + '/skills#timeline' | ||||||
|     if is_artist(base_dir, nickname): |     if is_artist(base_dir, nickname): | ||||||
|         menu_theme_designer = \ |         menu_theme_designer = \ | ||||||
|             html_hide_from_screen_reader('🎨') + ' ' + \ |             html_hide_from_screen_reader('🎨') + ' ' + \ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue