desc stringlengths 3 26.7k | decl stringlengths 11 7.89k | bodies stringlengths 8 553k |
|---|---|---|
'Override save to update all included tickets if Milestone.project changed'
| def save(self, *args, **kwargs):
| if self.id:
original = Milestone.objects.get(pk=self.id)
super(Milestone, self).save(*args, **kwargs)
if (self.project != original.project):
for task in self.task_set.all():
task.project = self.project
task.save()
else:
super(Milestone,... |
'Returns absolute URL for the Milestone
:rtype str'
| def get_absolute_url(self):
| return reverse('projects_milestone_view', args=[self.id])
|
'Returns a Human-friendly priority name
:rtype str'
| def priority_human(self):
| for choice in Task.PRIORITY_CHOICES:
if (choice[0] == self.priority):
return choice[1]
|
'Converts minutes to Human-friendly time format
:rtype str'
| def get_estimated_time(self):
| if (self.estimated_time is None):
return ''
time = timedelta(minutes=self.estimated_time)
days = time.days
seconds = time.seconds
hours = ((days * 24) + (seconds // (60 * 60)))
seconds %= (60 * 60)
minutes = (seconds // 60)
seconds %= 60
string = ''
if (hours or minutes):... |
'Override save method to check for Milestone-Project links and auto-Status child Tasks'
| def save(self, *args, **kwargs):
| original = None
if self.id:
original = Task.objects.get(pk=self.id)
if (self.project_id != original.project_id):
if (self.milestone_id and (self.milestone.project_id != self.project_id)):
self.milestone = None
elif (self.milestone_id and (self.milestone_id != ... |
'Returns absolute URL
:rtype str'
| def get_absolute_url(self):
| return reverse('projects_task_view', args=[self.id])
|
'Returns total time spent on the task, based on assigned TimeSlots
:rtype timedelta'
| def get_total_time(self):
| total = timedelta()
for slot in self.tasktimeslot_set.all():
total += slot.get_time()
return total
|
'Returns total time as a tuple with number of full hours and minutes
:rtype tuple(int, int, int) or None'
| def get_total_time_tuple(self):
| time = self.get_total_time()
if (not time):
return None
days = time.days
seconds = time.seconds
hours = ((days * 24) + (seconds // (60 * 60)))
seconds %= (60 * 60)
minutes = (seconds // 60)
seconds %= 60
return (hours, minutes, seconds)
|
'Returns total time as a string with number of full hours and minutes
:rtype str'
| def get_total_time_string(self):
| time = self.get_total_time_tuple()
if (not time):
return _('0 minutes')
hours = time[0]
minutes = time[1]
string = ''
if (hours or minutes):
if hours:
string += (_('%2i hours ') % (hours,))
if minutes:
string += (_('%2i minutes') % (min... |
'Returns true if the task is in progress
:param core.models.User user:
:rtype bool'
| def is_being_done_by(self, user):
| return self.tasktimeslot_set.filter(user=user, time_to__isnull=True).exists()
|
'Returns absolute URL
:rtype str'
| def get_absolute_url(self):
| return reverse('projects_task_view', args=[self.task_id])
|
'Return time from epoch
:rtype int'
| def get_time_secs(self):
| time = (datetime.now() - self.time_from)
seconds = (((time.days * 24) * 3600) + time.seconds)
return seconds
|
'Returns time
:rtype timedelta'
| def get_time(self):
| if (self.time_from and self.time_to):
return (self.time_to - self.time_from)
return timedelta()
|
'Returns time as a tuple with number of full hours and minutes
:rtype tuple or None'
| def get_time_tuple(self, time=None):
| if (not time):
time = self.get_time()
if (not time):
return None
days = time.days
seconds = time.seconds
hours = ((days * 24) + (seconds // (60 * 60)))
seconds %= (60 * 60)
minutes = (seconds // 60)
seconds %= 60
return (hours, minutes, seconds)
|
'Returns time in string format
:rtype str'
| def get_time_string(self, time=None):
| time = self.get_time_tuple(time)
if ((not time) and self.time_from):
return self.get_time_string((datetime.now() - self.time_from))
elif (not time):
return ''
hours = time[0]
minutes = time[1]
string = ''
if (hours or minutes):
if hours:
string += (_('%2i ... |
'If task is open'
| def is_open(self):
| if (self.time_from and self.time_to):
return False
return True
|
'Migrate TimeSlots to set .user'
| def forwards(self, orm):
| for obj in orm['projects.TaskTimeSlot'].objects.all():
if obj.object_ptr.creator:
obj.user = obj.object_ptr.creator
else:
obj.user = orm['core.User'].objects.all()[0]
obj.save()
|
'Migrate the UpdateRecords'
| def forwards(self, orm):
| for record in orm['projects.TaskRecord'].objects.all():
update = orm['core.UpdateRecord'].objects.create()
update.author = record.creator
if (record.record_type == 'manual'):
update.record_type = 'manual'
else:
update.record_type = 'update'
update.body... |
'Default priority should be 3, text representation should be \'Normal\''
| def test_task_priority_human(self):
| self.assertEqual(self.task.priority, 3)
self.assertEqual(self.task.priority_human(), 'Normal')
|
'Default estimated time is None, string representation is empty string'
| def test_get_estimated_time_default(self):
| self.assertIsNone(self.task.estimated_time)
self.assertEqual(self.task.get_estimated_time(), '')
|
'Test if get_absolute_url works without raising any exception'
| def test_get_absolute_url(self):
| self.project.get_absolute_url()
|
'Test task status'
| def test_model_task_status(self):
| obj = TaskStatus(name='test')
obj.save()
self.assertEquals('test', obj.name)
self.assertNotEquals(obj.id, None)
obj.get_absolute_url()
obj.delete()
|
'A time slot without a time from or time to will return a delta of 0'
| def test_get_time(self):
| timeslot2 = TaskTimeSlot(task=self.task, user=self.user.profile, time_from=self.time_from)
timeslot3 = TaskTimeSlot(task=self.task, user=self.user.profile, time_to=self.time_to)
self.assertEqual(timeslot2.get_time(), timedelta(0))
self.assertEqual(timeslot3.get_time(), timedelta(0))
self.assertEqual... |
'Test project index page with login at /projects/'
| def test_index(self):
| response = self.client.get(reverse('projects'))
self.assertEquals(response.status_code, 200)
|
'Test owned tasks page at /task/owned/'
| def test_index_owned(self):
| response = self.client.get(reverse('projects_index_owned'))
self.assertEquals(response.status_code, 200)
self.assertQuerysetEqual(response.context['milestones'], [self.milestone])
self.assertQuerysetEqual(response.context['tasks'], [self.task])
self.assertEqual(type(response.context['filters']), Fil... |
'Test assigned tasks page at /task/assigned/'
| def test_index_assigned(self):
| response = self.client.get(reverse('projects_index_assigned'))
self.assertEquals(response.status_code, 200)
self.assertQuerysetEqual(response.context['milestones'], [self.milestone])
self.assertQuerysetEqual(response.context['tasks'], [self.task_assigned])
self.assertEqual(type(response.context['fil... |
'Test index page with login at /projects/add/'
| def test_project_add(self):
| response = self.client.get(reverse('project_add'))
self.assertEquals(response.status_code, 200)
self.assertEqual(type(response.context['form']), ProjectForm)
projects_qty = Project.objects.count()
form_params = {'name': 'project_name', 'details': 'new project details'}
response = self.clie... |
'Test index page with login at /projects/add/<project_id>/'
| def test_project_add_typed(self):
| response = self.client.get(reverse('projects_project_add_typed', args=[self.parent.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/view/<project_id>'
| def test_project_view_login(self):
| response = self.client.get(reverse('projects_project_view', args=[self.project.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/edit//<project_id>'
| def test_project_edit_login(self):
| response = self.client.get(reverse('projects_project_edit', args=[self.project.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/delete//<project_id>'
| def test_project_delete_login(self):
| response = self.client.get(reverse('projects_project_delete', args=[self.project.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/milestone/add'
| def test_milestone_add(self):
| response = self.client.get(reverse('projects_milestone_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/milestone/add/<project_id>'
| def test_milestone_add_typed(self):
| response = self.client.get(reverse('projects_milestone_add_typed', args=[self.parent.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/milestone/view/<milestone_id>'
| def test_milestone_view_login(self):
| response = self.client.get(reverse('projects_milestone_view', args=[self.milestone.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/milestone/edit/<milestone_id>'
| def test_milestone_edit_login(self):
| response = self.client.get(reverse('projects_milestone_edit', args=[self.milestone.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/milestone/delete/<milestone_id>'
| def test_milestone_delete_login(self):
| response = self.client.get(reverse('projects_milestone_delete', args=[self.milestone.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/add/'
| def test_task_add(self):
| response = self.client.get(reverse('projects_task_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/add/<project_id>'
| def test_task_add_typed(self):
| response = self.client.get(reverse('projects_task_add_typed', args=[self.project.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/add/<milestone_id>'
| def test_task_add_to_milestone(self):
| response = self.client.get(reverse('projects_task_add_to_milestone', args=[self.milestone.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/add/<task_id>/'
| def test_task_add_subtask(self):
| response = self.client.get(reverse('projects_task_add_subtask', args=[self.parent_task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/add/<task_id>/status/<status_id>'
| def test_task_set_status(self):
| response = self.client.get(reverse('projects_task_set_status', args=[self.task.id, self.status.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/view/<task_id>'
| def test_task_view_login(self):
| response = self.client.get(reverse('projects_task_view', args=[self.task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/edit/<task_id>'
| def test_task_edit_login(self):
| response = self.client.get(reverse('projects_task_edit', args=[self.task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/delete/<task_id>'
| def test_task_delete_login(self):
| response = self.client.get(reverse('projects_task_delete', args=[self.task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/view/time/<task_id>add/'
| def test_time_slot_add(self):
| response = self.client.get(reverse('projects_task_time_slot_add', args=[self.task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/view/time/<time_slot_id>'
| def test_time_slot_view_login(self):
| response = self.client.get(reverse('projects_task_view', args=[self.task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/edit/time/<time_slot_id>'
| def test_time_slot_edit_login(self):
| response = self.client.get(reverse('projects_task_edit', args=[self.task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/delete/time/<time_slot_id>'
| def test_time_slot_delete_login(self):
| response = self.client.get(reverse('projects_task_delete', args=[self.task.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/status/add/'
| def test_task_status_add(self):
| response = self.client.get(reverse('projects_task_status_add'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/status/view/<status_id>/'
| def test_task_status_view_login(self):
| response = self.client.get(reverse('projects_index_by_status', args=[self.status.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/status/edit/<status_id>/'
| def test_task_status_edit_login(self):
| response = self.client.get(reverse('projects_task_status_edit', args=[self.status.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/task/status/delete/<status_id>/'
| def test_task_status_delete_login(self):
| response = self.client.get(reverse('projects_task_status_delete', args=[self.status.id]))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/settings/view/'
| def test_project_settings_view(self):
| response = self.client.get(reverse('projects_settings_view'))
self.assertEquals(response.status_code, 200)
|
'Test index page with login at /projects/settings/edit/'
| def test_project_settings_edit(self):
| response = self.client.get(reverse('projects_settings_edit'))
self.assertEquals(response.status_code, 200)
|
'Sets choices and initial value'
| def __init__(self, user, *args, **kwargs):
| super(SettingsForm, self).__init__(*args, **kwargs)
self.fields['default_task_status'].queryset = Object.filter_permitted(user, TaskStatus.objects, mode='x')
try:
conf = ModuleSetting.get_for_module('treeio.projects', 'default_task_status')[0]
default_task_status = TaskStatus.objects.get(pk=... |
'Form processor'
| def save(self):
| try:
ModuleSetting.set_for_module('default_task_status', self.cleaned_data['default_task_status'].id, 'treeio.projects')
except Exception:
return False
|
'Save override to omit empty fields'
| def save(self, *args, **kwargs):
| if self.instance:
if self.is_valid():
if self.cleaned_data['project']:
self.instance.project = self.cleaned_data['project']
if self.cleaned_data['status']:
self.instance.status = self.cleaned_data['status']
if self.cleaned_data['milestone']... |
'Populates form with fields from given Project'
| def __init__(self, user, parent, project_id, milestone_id, *args, **kwargs):
| super(TaskForm, self).__init__(*args, **kwargs)
self.fields['name'].label = _('Name')
self.fields['name'].widget.attrs.update({'class': 'duplicates', 'callback': reverse('projects_ajax_task_lookup')})
self.fields['status'].label = _('Status')
self.fields['status'].queryset = Object.filter_permitted(... |
'Override save to set Subscribers and send Notifications'
| def old_save(self, *args, **kwargs):
| original = None
original_assigned = []
if hasattr(self, 'instance'):
try:
original = Task.objects.get(pk=self.instance.id)
original_assigned = list(original.assigned.all())
except Task.DoesNotExist:
pass
instance = super(TaskForm, self).save(*args, **k... |
'Override to auto-set time_from and time_to'
| def save(self, *args, **kwargs):
| if (hasattr(self, 'instance') and self.instance.time_to and (not self.instance.time_from)):
minutes = long(self.cleaned_data['minutes'])
hours = 0L
days = 0L
if (minutes >= 1440):
hours = (minutes // 60)
minutes %= 60
if (hours >= 24):
days... |
'Adds a "mobile" attribute to the request which is True or False
depending on whether the request should be considered to come from a
small-screen device such as a phone or a PDA'
| @staticmethod
def process_request(request):
| if ('HTTP_X_OPERAMINI_FEATURES' in request.META):
request.mobile = True
return None
if ('HTTP_ACCEPT' in request.META):
s = request.META['HTTP_ACCEPT'].lower()
if ('application/vnd.wap.xhtml+xml' in s):
request.mobile = True
return None
if ('HTTP_USER_... |
'Update the GUI elements based on the current state.'
| def update(self):
| if (self.status == self.STATUS_STOPPED):
self.status_image_label.setPixmap(QtGui.QPixmap.fromImage(self.status_image_stopped))
elif (self.status == self.STATUS_WORKING):
self.status_image_label.setPixmap(QtGui.QPixmap.fromImage(self.status_image_working))
elif (self.status == self.STATUS_STA... |
'Toggle starting or stopping the server.'
| def server_button_clicked(self):
| if (self.status == self.STATUS_STOPPED):
self.start_server()
elif (self.status == self.STATUS_STARTED):
self.stop_server()
|
'Start the server.'
| def start_server(self):
| self.status = self.STATUS_WORKING
self.update()
self.server_started.emit()
|
'The server has finished starting.'
| def start_server_finished(self):
| self.status = self.STATUS_STARTED
self.copy_url()
self.update()
|
'Stop the server.'
| def stop_server(self):
| self.status = self.STATUS_WORKING
self.update()
self.server_stopped.emit()
|
'The server has finished stopping.'
| def stop_server_finished(self):
| self.status = self.STATUS_STOPPED
self.update()
|
'Copy the onionshare URL to the clipboard.'
| def copy_url(self):
| url = 'http://{0:s}/{1:s}'.format(self.app.onion_host, self.web.slug)
clipboard = self.qtapp.clipboard()
clipboard.setText(url)
self.url_copied.emit()
|
'Copy the HidServAuth line to the clipboard.'
| def copy_hidservauth(self):
| clipboard = self.qtapp.clipboard()
clipboard.setText(self.app.auth_string)
self.hidservauth_copied.emit()
|
'Connection type bundled was toggled. If checked, hide authentication fields.'
| def connection_type_bundled_toggled(self, checked):
| common.log('SettingsDialog', 'connection_type_bundled_toggled')
if checked:
self.authenticate_group.hide()
self.connection_type_socks.hide()
|
'Connection type automatic was toggled. If checked, hide authentication fields.'
| def connection_type_automatic_toggled(self, checked):
| common.log('SettingsDialog', 'connection_type_automatic_toggled')
if checked:
self.authenticate_group.hide()
self.connection_type_socks.hide()
|
'Connection type control port was toggled. If checked, show extra fields
for Tor control address and port. If unchecked, hide those extra fields.'
| def connection_type_control_port_toggled(self, checked):
| common.log('SettingsDialog', 'connection_type_control_port_toggled')
if checked:
self.authenticate_group.show()
self.connection_type_control_port_extras.show()
self.connection_type_socks.show()
else:
self.connection_type_control_port_extras.hide()
|
'Connection type socket file was toggled. If checked, show extra fields
for socket file. If unchecked, hide those extra fields.'
| def connection_type_socket_file_toggled(self, checked):
| common.log('SettingsDialog', 'connection_type_socket_file_toggled')
if checked:
self.authenticate_group.show()
self.connection_type_socket_file_extras.show()
self.connection_type_socks.show()
else:
self.connection_type_socket_file_extras.hide()
|
'Authentication option no authentication was toggled.'
| def authenticate_no_auth_toggled(self, checked):
| common.log('SettingsDialog', 'authenticate_no_auth_toggled')
|
'Authentication option password was toggled. If checked, show extra fields
for password auth. If unchecked, hide those extra fields.'
| def authenticate_password_toggled(self, checked):
| common.log('SettingsDialog', 'authenticate_password_toggled')
if checked:
self.authenticate_password_extras.show()
else:
self.authenticate_password_extras.hide()
|
'Test Tor Settings button clicked. With the given settings, see if we can
successfully connect and authenticate to Tor.'
| def test_tor_clicked(self):
| common.log('SettingsDialog', 'test_tor_clicked')
settings = self.settings_from_fields()
try:
if (settings.get('connection_type') == 'bundled'):
self.tor_status.show()
self._disable_buttons()
def tor_status_update_func(progress, summary):
self._tor_... |
'Check for Updates button clicked. Manually force an update check.'
| def check_for_updates(self):
| common.log('SettingsDialog', 'check_for_updates')
self._disable_buttons()
self.qtapp.processEvents()
def update_available(update_url, installed_version, latest_version):
Alert(strings._('update_available', True).format(update_url, installed_version, latest_version))
def update_not_available(... |
'Save button clicked. Save current settings to disk.'
| def save_clicked(self):
| common.log('SettingsDialog', 'save_clicked')
settings = self.settings_from_fields()
settings.save()
reboot_onion = False
if self.onion.connected_to_tor:
def changed(s1, s2, keys):
'\n Compare the Settings obj... |
'Cancel button clicked.'
| def cancel_clicked(self):
| common.log('SettingsDialog', 'cancel_clicked')
self.close()
|
'Help button clicked.'
| def help_clicked(self):
| common.log('SettingsDialog', 'help_clicked')
help_site = 'https://github.com/micahflee/onionshare/wiki'
QtGui.QDesktopServices.openUrl(QtCore.QUrl(help_site))
|
'Return a Settings object that\'s full of values from the settings dialog.'
| def settings_from_fields(self):
| common.log('SettingsDialog', 'settings_from_fields')
settings = Settings(self.config)
settings.load()
settings.set('close_after_first_download', self.close_after_first_download_checkbox.isChecked())
settings.set('systray_notifications', self.systray_notifications_checkbox.isChecked())
settings.s... |
'Add a new download progress bar.'
| def add_download(self, download_id, total_bytes):
| self.parent().show()
download = Download(download_id, total_bytes)
self.downloads[download_id] = download
self.layout.insertWidget((-1), download.progress_bar)
|
'Update the progress of a download progress bar.'
| def update_download(self, download_id, downloaded_bytes):
| self.downloads[download_id].update(downloaded_bytes)
|
'Update a download progress bar to show that it has been canceled.'
| def cancel_download(self, download_id):
| self.downloads[download_id].cancel()
|
'Reset the downloads back to zero'
| def reset_downloads(self):
| for download in self.downloads.values():
self.layout.removeWidget(download.progress_bar)
download.progress_bar.close()
self.downloads = {}
|
'Update the GUI elements based on the current state.'
| def update(self):
| if (len(self.filenames) == 0):
self.drop_here_image.show()
self.drop_here_text.show()
else:
self.drop_here_image.hide()
self.drop_here_text.hide()
|
'When the widget is resized, resize the drop files image and text.'
| def resizeEvent(self, event):
| self.drop_here_image.setGeometry(0, 0, self.width(), self.height())
self.drop_here_text.setGeometry(0, 0, self.width(), self.height())
|
'dragEnterEvent for dragging files and directories into the widget.'
| def dragEnterEvent(self, event):
| if event.mimeData().hasUrls:
event.accept()
else:
event.ignore()
|
'dragLeaveEvent for dragging files and directories into the widget.'
| def dragLeaveEvent(self, event):
| event.accept()
self.update()
|
'dragMoveEvent for dragging files and directories into the widget.'
| def dragMoveEvent(self, event):
| if event.mimeData().hasUrls:
event.setDropAction(QtCore.Qt.CopyAction)
event.accept()
else:
event.ignore()
|
'dropEvent for dragging files and directories into the widget.'
| def dropEvent(self, event):
| if event.mimeData().hasUrls:
event.setDropAction(QtCore.Qt.CopyAction)
event.accept()
for url in event.mimeData().urls():
filename = str(url.toLocalFile())
self.add_file(filename)
else:
event.ignore()
self.files_dropped.emit()
|
'Add a file or directory to this widget.'
| def add_file(self, filename):
| if (filename not in self.filenames):
if (not os.access(filename, os.R_OK)):
Alert(strings._('not_a_readable_file', True).format(filename))
return
self.filenames.append(filename)
self.filenames.sort()
fileinfo = QtCore.QFileInfo(filename)
basename = os.... |
'Update the GUI elements based on the current state.'
| def update(self):
| if self.server_on:
self.add_button.setEnabled(False)
self.delete_button.setEnabled(False)
else:
self.add_button.setEnabled(True)
current_item = self.file_list.currentItem()
if (not current_item):
self.delete_button.setEnabled(False)
else:
s... |
'Add button clicked.'
| def add(self):
| file_dialog = FileDialog(caption=strings._('gui_choose_items', True))
if (file_dialog.exec_() == QtWidgets.QDialog.Accepted):
for filename in file_dialog.selectedFiles():
self.file_list.add_file(filename)
self.update()
|
'Delete button clicked'
| def delete(self):
| selected = self.file_list.selectedItems()
for item in selected:
itemrow = self.file_list.row(item)
self.file_list.filenames.pop(itemrow)
self.file_list.takeItem(itemrow)
self.update()
|
'Gets called when the server starts.'
| def server_started(self):
| self.server_on = True
self.file_list.setAcceptDrops(False)
self.update()
|
'Gets called when the server stops.'
| def server_stopped(self):
| self.server_on = False
self.file_list.setAcceptDrops(True)
self.update()
|
'Returns the total number of files and folders in the list.'
| def get_num_files(self):
| return len(self.file_list.filenames)
|
'Set the Qt app focus on the file selection box.'
| def setFocus(self):
| self.file_list.setFocus()
|
'If the user cancels before Tor finishes connecting, ask if they want to
quit, or open settings.'
| def _tor_connection_canceled(self):
| common.log('OnionShareGui', '_tor_connection_canceled')
def ask():
a = Alert(strings._('gui_tor_connection_ask', True), QtWidgets.QMessageBox.Question, buttons=QtWidgets.QMessageBox.NoButton, autostart=False)
settings_button = QtWidgets.QPushButton(strings._('gui_tor_connection_ask_open_settings... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.