rem stringlengths 0 322k | add stringlengths 0 2.05M | context stringlengths 8 228k |
|---|---|---|
'https://bugs.kde.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&long_desc_type=allwordssubstr&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=junior-jobs&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=REOPENED&bug_status=NEEDSINFO&bug_status... | def generate_current_bug_xml(self): queries = { 'Easy bugs': 'https://bugs.kde.org/buglist.cgi?query_format=advanced&keywords=junior-jobs&resolution=---', 'Documentation bugs': 'https://bugs.kde.org/buglist.cgi?query_format=advanced&product=docs&resolution=---' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugs.kde.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&long_desc_type=allwordssubstr&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=junior-j... |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.wikimedia.org/buglist.cgi?keywords=easy&query_format=advanced&keywords_type=allwords&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=VERIFIED&resolution=LATER&resolution=---') | def generate_current_bug_xml(self): queries = { 'Easy bugs': 'https://bugzilla.wikimedia.org/buglist.cgi?keywords=easy&query_format=advanced&resolution=LATER&resolution=---', 'Documentation bugs': 'https://bugzilla.wikimedia.org/buglist.cgi?query_format=advanced&component=Documentation&resolution=---' } return self.gen... | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.wikimedia.org/buglist.cgi?keywords=easy&query_format=advanced&keywords_type=allwords&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=VERIFIED&resolution=LATER&resolution=---') |
def get_current_xml_bug_tree(self): | def generate_current_bug_xml(self): | def get_current_xml_bug_tree(self): # Get all bugs that contain any of the keywords 'gnome-love' # or 'documentation' return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.gnome.org/buglist.cgi?columnlist=id&keywords=gnome-love&query_format=advanced&resolution=---') # FIXME: Query with documentatio... |
return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.gnome.org/buglist.cgi?columnlist=id&keywords=gnome-love&query_format=advanced&resolution=---') | queries = { 'Easy bugs': 'https://bugzilla.gnome.org/buglist.cgi?columnlist=id&keywords=gnome-love&query_format=advanced&resolution=---', } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): # Get all bugs that contain any of the keywords 'gnome-love' # or 'documentation' return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.gnome.org/buglist.cgi?columnlist=id&keywords=gnome-love&query_format=advanced&resolution=---') # FIXME: Query with documentatio... |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.mozilla.org/buglist.cgi?resolution=---;status_whiteboard_type=substring;query_format=advanced;status_whiteboard=[good%20first%20bug]') | def generate_current_bug_xml(self): queries = { 'Easy bugs': 'https://bugzilla.mozilla.org/buglist.cgi?resolution=---;status_whiteboard_type=substring;query_format=advanced;status_whiteboard=[good%20first%20bug]', } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugzilla.mozilla.org/buglist.cgi?resolution=---;status_whiteboard_type=substring;query_format=advanced;status_whiteboard=[good%20first%20bug]') |
def get_current_xml_bug_tree(self): | def generate_current_bug_xml(self): | def get_current_xml_bug_tree(self): # Query below returns nearly 4000 bugs if we try to index everything. # For now, only import bugs with 'helpwanted' tag. # (This tag doesn't equate to 'bitesized'.) return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://bugzilla.songbirdnest.com/buglist.cgi?query_format=adv... |
return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://bugzilla.songbirdnest.com/buglist.cgi?query_format=advanced&resolution=---&keywords=helpwanted') | queries = { 'Helpwanted bugs': 'http://bugzilla.songbirdnest.com/buglist.cgi?query_format=advanced&resolution=---&keywords=helpwanted', 'Documentation bugs': 'http://bugzilla.songbirdnest.com/buglist.cgi?query_format=advanced&component=Documentation&resolution=---' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): # Query below returns nearly 4000 bugs if we try to index everything. # For now, only import bugs with 'helpwanted' tag. # (This tag doesn't equate to 'bitesized'.) return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://bugzilla.songbirdnest.com/buglist.cgi?query_format=adv... |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://bugs.apertium.org/cgi-bin/bugzilla/buglist.cgi?query_format=advanced&resolution=---') | def generate_current_bug_xml(self): queries = { 'All bugs': 'http://bugs.apertium.org/cgi-bin/bugzilla/buglist.cgi?query_format=advanced&resolution=---' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://bugs.apertium.org/cgi-bin/bugzilla/buglist.cgi?query_format=advanced&resolution=---') |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( '') | def generate_current_bug_xml(self): queries = { 'Easy bugs': '', 'Documentation bugs': '' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( '') |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://www.rtems.org/bugzilla/buglist.cgi?query_format=advanced&resolution=---') | def generate_current_bug_xml(self): queries = { 'All bugs': 'https://www.rtems.org/bugzilla/buglist.cgi?query_format=advanced&resolution=---' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://www.rtems.org/bugzilla/buglist.cgi?query_format=advanced&resolution=---') |
def get_current_xml_bug_tree(self): | def generate_current_bug_xml(self): | def get_current_xml_bug_tree(self): # Query below returns over 2500 bugs if we try to index everything. # For now just index bitesized bugs - keyword filter added to query. return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugs.freedesktop.org/buglist.cgi?query_format=advanced&keywords=janitor&resolutio... |
return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugs.freedesktop.org/buglist.cgi?query_format=advanced&keywords=janitor&resolution=---&product=xorg') | queries = { 'Easy bugs': 'https://bugs.freedesktop.org/buglist.cgi?query_format=advanced&keywords=janitor&resolution=---&product=xorg', 'Documentation bugs': 'https://bugs.freedesktop.org/buglist.cgi?query_format=advanced&component=Docs%2Fother&component=Documentation&component=Fonts%2Fdoc&resolution=---&product=xorg' ... | def get_current_xml_bug_tree(self): # Query below returns over 2500 bugs if we try to index everything. # For now just index bitesized bugs - keyword filter added to query. return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://bugs.freedesktop.org/buglist.cgi?query_format=advanced&keywords=janitor&resolutio... |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://bugs.locamotion.org/buglist.cgi?query_format=advanced&resolution=---') | def generate_current_bug_xml(self): queries = { 'All bugs': 'http://bugs.locamotion.org/buglist.cgi?query_format=advanced&resolution=---' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://bugs.locamotion.org/buglist.cgi?query_format=advanced&resolution=---') |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://hypertriton.com/bugzilla/buglist.cgi?query_format=advanced&resolution=---&product=Agar&product=EDAcious&product=FabBSD&product=FreeSG') | def generate_current_bug_xml(self): queries = { 'All bugs': 'https://hypertriton.com/bugzilla/buglist.cgi?query_format=advanced&resolution=---&product=Agar&product=EDAcious&product=FabBSD&product=FreeSG' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'https://hypertriton.com/bugzilla/buglist.cgi?query_format=advanced&resolution=---&product=Agar&product=EDAcious&product=FabBSD&product=FreeSG') |
def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://pygame.motherhamster.org/bugzilla/buglist.cgi?query_format=advanced&resolution=---') | def generate_current_bug_xml(self): queries = { 'All bugs': 'http://pygame.motherhamster.org/bugzilla/buglist.cgi?query_format=advanced&resolution=---' } return self.generate_bug_xml_from_queries(queries) | def get_current_xml_bug_tree(self): return mysite.customs.bugtrackers.bugzilla.url2bug_data( 'http://pygame.motherhamster.org/bugzilla/buglist.cgi?query_format=advanced&resolution=---') |
data['finish_url'] += '?project_name=%s&finished' % project_name else: data['finish_url'] += '?finished' | data['finish_url'] += '?project_name=%s&finished=true' % project_name else: data['finish_url'] += '?finished=true' | def add_tracker_url(request, tracker_type, url_form=None): data = {} project_name = request.GET.get('project_name', None) if tracker_type == 'bugzilla': if url_form is None: if project_name: try: bugzilla_tracker = mysite.customs.models.BugzillaTracker.all_trackers.get( project_name=project_name) bugzilla_url = mysite.... |
if request.GET.get('finished', None): | if request.GET.get('finished', None) == 'true': | def add_tracker_url_do(request, tracker_type): url_form = None if tracker_type == 'bugzilla': url_form = mysite.customs.forms.BugzillaUrlForm( request.POST, prefix='add_tracker_url') if url_form: if url_form.is_valid(): url_form.save() if request.GET.get('finished', None): return HttpResponseRedirect(reverse(list_track... |
def test_bugzilla_importing_hits_network_if_urls_are_not_fresh(self): | @mock.patch('mysite.customs.bugtrackers.bugzilla.url2bug_data') def test_bugzilla_importing_hits_network_if_urls_are_not_fresh(self, mock_xml_opener): | def test_bugzilla_importing_hits_network_if_urls_are_not_fresh(self): # First, show that in the not-fresh case, we do hit the network. # Jack, could you write this? pass |
pass | mock_xml_opener.return_value = lxml.etree.XML(open(os.path.join( settings.MEDIA_ROOT, 'sample-data', 'miro-2294-2009-08-06.xml')).read()) miro = mysite.search.tasks.bugzilla_instances.MiroBugzilla() miro.generate_current_bug_xml() self.assertTrue(mock_xml_opener.called) | def test_bugzilla_importing_hits_network_if_urls_are_not_fresh(self): # First, show that in the not-fresh case, we do hit the network. # Jack, could you write this? pass |
def test_bugzilla_importing_avoids_network_if_urls_are_fresh(self): pass | @mock.patch('mysite.customs.bugtrackers.bugzilla.url2bug_data') def test_bugzilla_importing_avoids_network_if_urls_are_fresh(self, mock_xml_opener): | def test_bugzilla_importing_avoids_network_if_urls_are_fresh(self): pass # Second, in the stale case, show that we do not hit the network! # Jack, could you write this? |
mock_xml_opener.return_value = lxml.etree.XML(open(os.path.join( settings.MEDIA_ROOT, 'sample-data', 'miro-2294-2009-08-06.xml')).read()) miro = mysite.search.tasks.bugzilla_instances.MiroBugzilla() miro.generate_current_bug_xml() self.assertFalse(mock_xml_opener.called) | def test_bugzilla_importing_avoids_network_if_urls_are_fresh(self): pass # Second, in the stale case, show that we do not hit the network! # Jack, could you write this? | |
def test_image_processing_libarary_error(self): | def test_image_processing_library_error(self): | def test_image_processing_libarary_error(self): """ If the image processing library errors while preparing a photo, report a helpful message to the user and log the error. The photo is not added to the user's profile. """ # Get a copy of the error log. string_log = StringIO.StringIO() logger = logging.getLogger() my_lo... |
if hline.startswith("-"): | if hline.startswith("+"): | def _match_file_hunks(self, filepath, hunks): matched = True fp = open(abspath(filepath)) |
[('http://testserver/account/login/?from_offsite=True&next=%2F%2Bprojects%2FMyproject%3Fwanna_help%3Dtrue', 302)]) | [('http://testserver/account/login/?next=%2F%2Bprojects%2FMyproject%3Fwanna_help%3Dtrue', 302)]) lucky_projects = mysite.project.controllers.get_wanna_help_queue_from_session(self.client.session) self.assertEqual(lucky_projects, ['Twisted']) | def test(self): # Steps for this test # 1. User POSTs to the wannahelp POST handler, indicating the request came from offsite # 2. User is redirected to a login page that knows the request came from offsite project_id = Project.create_dummy(name='Myproject').id |
bug.looks_closed = (metadata_dict['Status'] == 'closed') | bug.looks_closed = (metadata_dict['Status'] == 'closed' or 'patch' in metadata_dict['Keywords']) | def create_bug_object_for_remote_bug_id(self, remote_bug_id): '''Create but don't save a bug.''' remote_bug_url = self.roundup_root_url + "/issue%d" % remote_bug_id tree = lxml.html.document_fromstring(urllib2.urlopen(remote_bug_url).read()) |
'django-authopenid==1.0.1-openhatch', | 'django-authopenid==1.0.1-openhatch1', | def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() |
dependency_path + 'django-authopenid-1.0.1-openhatch.tar.gz | dependency_path + 'django-authopenid-1.0.1-openhatch1.tar.gz | def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() |
if '/bits.ohloh.net/' not in med_logo: med_logo = med_logo.replace('attachments/', 'bits.ohloh.net/attachments/') | def get_icon_for_project_by_human_name(self, project): """@param project: the name of a project.""" # Do a real search to find the project try: data = self.project_name2projectdata(project) except urllib2.HTTPError, e: raise ValueError try: med_logo = data['medium_logo_url'] except TypeError: raise ValueError, "Ohloh g... | |
if '/bits.ohloh.net/' not in med_logo: med_logo = med_logo.replace('attachments/', 'bits.ohloh.net/attachments/') | def get_icon_for_project_by_id(self, project): try: data = self.project_id2projectdata(project_name=project) except urllib2.HTTPError, e: raise ValueError try: med_logo = data['medium_logo_url'] except KeyError: raise ValueError, "The project exists, but Ohloh knows no icon." if '/bits.ohloh.net/' not in med_logo: med_... | |
yield mysite.customs.bugtrackers.bugzilla_general.bug_url2bug_id( | yield bug_url2bug_id( | def get_remote_bug_ids_already_stored(BUG_URL_PREFIX): for bug in mysite.search.models.Bug.all_bugs.filter( canonical_bug_link__contains=BUG_URL_PREFIX): yield mysite.customs.bugtrackers.bugzilla_general.bug_url2bug_id( bug.canonical_bug_link, BUG_URL_PREFIX=BUG_URL_PREFIX) |
bug.last_polled = datetime.datetime.now() | bug.last_polled = datetime.datetime.now() - datetime.timedelta(days = 2) | def test_regrab_miro_bugs_refreshes_older_bugs_even_when_missing_from_csv(self, mock_xml_bug_tree, mock_xml_opener): mock_xml_opener.return_value = lxml.etree.XML(open(os.path.join( settings.MEDIA_ROOT, 'sample-data', 'miro-2294-2009-08-06.xml')).read()) |
fixtures = ['miro-project'] def test_kde(self): p = Project.create_dummy(name='KDE') f = os.path.join(settings.MEDIA_ROOT, 'sample-data', 'kde-117760-2010-04-09.xml') xml_fd = file(f) bug = mysite.customs.miro.xml2bug_object(xml_fd) self.assertEqual(bug.submitter_username, 'hasso kde org') self.assertEqual(bug.submitte... | def test_greg_has_python_involvement(self): langs = lp_grabber.person_to_bazaar_branch_languages('greg.grossmeier') self.assertEqual(langs, ['Python']) | |
import mysite.search.management.commands.search_daily_tasks | def test_existing_bug_is_not_updated(self, mock_bug_to_not_update): """This method tests that an existing bug which should not be updated is not updated""" bug = Bug() bug.canonical_bug_link = "http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=1" bug.last_polled = datetime.datetime.utcnow() mock_bug_to_not_upd... | |
try: mysite.search.management.commands.search_daily_tasks.Command().find_and_update_enabled_bugzilla_instances() except HTTPError, e: if e.code == 504: self.fail('504 error should have been caught') except Exception, e: pass | mysite.search.management.commands.search_daily_tasks.Command().find_and_update_enabled_bugzilla_instances() | def test_bugzilla_http_error_504_does_not_break(self, mock_error): mock_error.side_effect = generate_504 try: mysite.search.management.commands.search_daily_tasks.Command().find_and_update_enabled_bugzilla_instances() except HTTPError, e: if e.code == 504: self.fail('504 error should have been caught') except Exception... |
try: mysite.search.management.commands.search_daily_tasks.Command().find_and_update_enabled_bugzilla_instances() except ValueError, e: return self.fail('No error occurred - should have been a 404') | self.assertRaises(ValueError, mysite.search.management.commands.search_daily_tasks.Command().find_and_update_enabled_bugzilla_instances()) | def test_bugzilla_http_generic_error_does_break(self, mock_error): mock_error.side_effect = ValueError() try: mysite.search.management.commands.search_daily_tasks.Command().find_and_update_enabled_bugzilla_instances() except ValueError, e: return self.fail('No error occurred - should have been a 404') |
url = models.URLField(max_length=200, unique=True, | url = models.URLField(max_length=400, | def __str__(self): return smart_str('%s' % (self.project_name)) |
query_url_type = models.CharField(max_length=20, choices=QUERY_URL_TYPES, | query_url_type = models.CharField(max_length=20, choices=QUERY_URL_TYPES, blank=False, default='xml', | def create_from_http_error(error): return None |
bitesized_type = models.CharField(max_length=10, choices=BITESIZED_TYPES) | bitesized_type = models.CharField(max_length=10, choices=BITESIZED_TYPES, blank=False, default=None) | def create_from_http_error(error): return None |
documentation_type = models.CharField(max_length=10, choices=DOCUMENTATION_TYPES) | documentation_type = models.CharField(max_length=10, choices=DOCUMENTATION_TYPES, blank=False, default=None) | def create_from_http_error(error): return None |
return type(subclass_name, (BugzillaBugTracker,), class_dict) | return type(subclass_name.encode('ascii'), (BugzillaBugTracker,), class_dict) | #def generate_bug_project_name(self, bb): #return bt.project_name |
bt = customs.models.BugzillaTracker.all_trackers.get(project_name=tracker_name) | bt = mysite.customs.models.BugzillaTracker.all_trackers.get(project_name=tracker_name) | def generate_bugzilla_tracker_classes(tracker_name=None): # If a tracker name was passed in then return the # specific sub-class for that tracker. if tracker_name: try: bt = customs.models.BugzillaTracker.all_trackers.get(project_name=tracker_name) bt_class = bugzilla_tracker_factory(bt) except mysite.customs.models.Bu... |
if 'is_edit' in request.POST: answer = Answer.objects.get(pk=request.POST['answer__pk']) else: answer = Answer() answer.project = mysite.search.models.Project.objects.get(pk=request.POST['project__pk']) question = ProjectInvolvementQuestion.objects.get(pk=request.POST['question__pk']) question.save() answer.questio... | return HttpResponseRedirect(reverse(project, kwargs={'project__name': answer.project.name}) + suffix) | def create_answer_do(request): if (request.user.is_authenticated() or 'cookies_work' in request.session): suffix = '' else: suffix = '?cookies=disabled' if 'is_edit' in request.POST: answer = Answer.objects.get(pk=request.POST['answer__pk']) else: answer = Answer() answer.project = mysite.search.models.Project.objec... |
@register.filter("truncate_chars") | @register.filter | def invitation_key2user(key): from invitation.models import InvitationKey return InvitationKey.objects.get(key=key).from_user |
'author'] for key in kwargs: | 'author', 'max_results'] temp = kwargs for key in temp: | def create_google_query(**kwargs): # We only need to be able to search these fields. # So ignore any others. allowed_keys = [ 'issue_id', 'label', 'canned_query', 'owner', 'status', 'text_query', 'author'] for key in kwargs: if key not in allowed_keys: del kwargs[key] return gdata.projecthosting.client.Query(**kwargs) |
'status': issue.status.text, | 'status': status, | def as_data_dict_for_bug_object(self, extract_tracker_specific_data): issue = self.get_bug_atom_data() |
return False | return query_is_fresh | def query_is_more_fresh_than_one_day(google_name, query): # Generate a key for this particular combination of google_name # and query. data_string = google_name allowed_keys = [ 'issue_id', 'label', 'canned_query', 'owner', 'status', 'text_query', 'author'] for key in dir(query)[19:]: if key in allowed_keys: if getattr... |
looks_closed = status in ('RESOLVED', 'WONTFIX', 'CLOSED') | looks_closed = status in ('RESOLVED', 'WONTFIX', 'CLOSED', 'ASSIGNED') | def bug_elt2bug_dict(parsed, canonical_bug_link_format_string, gen_project): date_reported_text = get_tag_text_from_xml(parsed, 'creation_ts') last_touched_text = get_tag_text_from_xml(parsed, 'delta_ts') u, r = who_tag_to_username_and_realname(parsed.xpath('.//who')[0]) bug_id = int(get_tag_text_from_xml(parsed, 'bug_... |
class BugzillaTracker(models.Model) | class BugzillaTracker(models.Model): | def value_to_string(self, obj): value = self._get_val_from_obj(obj) return self.get_db_prep_value(value) |
bug_project_name_format = models.CharField(max_length=200) | bug_project_name_format = models.CharField(max_length=200, blank=False) | def value_to_string(self, obj): value = self._get_val_from_obj(obj) return self.get_db_prep_value(value) |
query_url = models.SeparatedValuesField(max_length=200, unique=True, | query_url = SeparatedValuesField(max_length=200, unique=True, | def value_to_string(self, obj): value = self._get_val_from_obj(obj) return self.get_db_prep_value(value) |
cached_contributor_count = models.IntegerField() | cached_contributor_count = models.IntegerField(default=0, null=True) | def create_dummy(**kwargs): now = datetime.datetime.utcnow() data = dict(name=uuid.uuid4().hex, icon_raw='/static/no-project-icon.png') data.update(kwargs) ret = Project(**data) ret.save() return ret |
class Geocoder(TwillTests): | class GeocoderCanGeocode(TwillTests): | def test(self): request = mysite.base.helpers.ObjectFromDict({ 'is_secure': lambda : True, 'META': {'SERVER_PORT': '443', 'SERVER_NAME': 'name'}}) data = mysite.base.controllers.get_uri_metadata_for_generating_absolute_links(request) self.assertEqual(data, {'uri_scheme': 'https', 'url_prefix': 'name'}) |
django.core.cache.cache.get = self.real_get | def test_unicode_strings_get_cached(self): ### WHOA This test sets the Django cache engine back to working properly. django.core.cache.cache.get = self.real_get # When the geocoder's results are being cached properly, # the base controller named '_geocode' will not run more than once. original_json = "{'key': 'original... | |
self.mock_geocoder.return_value = original_json | self.mock_geocoder.return_value = eval(original_json) | def test_unicode_strings_get_cached(self): ### WHOA This test sets the Django cache engine back to working properly. django.core.cache.cache.get = self.real_get # When the geocoder's results are being cached properly, # the base controller named '_geocode' will not run more than once. original_json = "{'key': 'original... |
self.mock_geocoder.return_value = different_json | self.mock_geocoder.return_value = eval(different_json) | def test_unicode_strings_get_cached(self): ### WHOA This test sets the Django cache engine back to working properly. django.core.cache.cache.get = self.real_get # When the geocoder's results are being cached properly, # the base controller named '_geocode' will not run more than once. original_json = "{'key': 'original... |
'http://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&format=csv&order=priority&keywords=~documentation' | 'http://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&format=csv&order=priority&keywords=~documentation', 'Sugar on a Stick bugs': 'http://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&format=csv&component=SoaS&order=priority' | def generate_list_of_bug_ids_to_look_at(self): queries = { 'Easy bugs': 'http://bugs.sugarlabs.org/query?status=accepted&status=new&status=assigned&status=reopened&format=csv&keywords=%7Esugar-love&order=priority', 'Documentation bugs': 'http://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=... |
python_core, _ = Project.objects.get_or_create(name='Python', language='Python') | python_core, _ = Project.objects.get_or_create(name='Python (project)', language='Python') | def run(self, **kwargs): logger = self.get_logger(**kwargs) logger.info("Started to grab Python 'easy' bugs") bug_tracker_name = self.__class__.__name__ python_core, _ = Project.objects.get_or_create(name='Python', language='Python') # FIXME: Do we need this line? RoundupBugTracker.objects.filter(name=bug_tracker_name)... |
python_core, _ = Project.objects.get_or_create(name='Python', language='Python') | python_core, _ = Project.objects.get_or_create(name='Python (project)', language='Python') | def run(self, **kwargs): logger = self.get_logger(**kwargs) logger.info("Started to grab Python documentation bugs") bug_tracker_name = self.__class__.__name__ python_core, _ = Project.objects.get_or_create(name='Python', language='Python') # FIXME: Do we need this line? RoundupBugTracker.objects.filter(name=bug_tracke... |
button_widget_data = mysite.base.controllers.get_uri_metadata_for_generating_absolute_links(request)) | button_widget_data = mysite.base.controllers.get_uri_metadata_for_generating_absolute_links(request) | def project(request, project__name = None): p = get_object_or_404(Project, name=project__name) if (request.user.is_authenticated() and request.user.get_profile() in p.people_who_wanna_help.all()): user_wants_to_help = True else: user_wants_to_help = False wanna_help = (bool(request.GET.get('wanna_help', False)) and u... |
class GoogleBug: | class GoogleBug(object): | def get_google_issue_entries(client, google_name, query=None): if query is None: feed = client.get_issues(google_name) else: feed = client.get_issues(google_name, query=query) return feed.entry |
name='', file=new_image_fd, content_type=None, size=new_image_fd.len, charset=None) | new_image_fd, '', old.name, old.content_type, new_image_fd.len, old.charset) | def clean_photo(self): # Safe copy of data... self.cleaned_data['photo'].seek(0) data = self.cleaned_data['photo'].read() self.cleaned_data['photo'].seek(0) data_fd = StringIO.StringIO(data) |
tarfile = forms.FileField() | tarfile = forms.FileField(error_messages={'required': 'No file was uploaded.'}) | def check_tarfile(cls, tardata): """ Validate that tardata is gzipped and contains the correct files in a wrapper directory. """ try: tfile = tarfile.open(fileobj=StringIO(tardata), mode='r:gz') except tarfile.ReadError: raise IncorrectTarFile, 'Archive is not a valid gzipped tarball' |
def test_scrape_bug_status_and_mark_as_closed(self, mock_urlopen): | def test_scrape_bug_status_and_mark_as_closed(self, mock_urlopen, project_name='Python'): if Project.objects.filter(name=project_name): roundup_project = Project.objects.get(name=project_name) else: roundup_project = Project.create_dummy(name=project_name) | def test_scrape_bug_status_and_mark_as_closed(self, mock_urlopen): mock_urlopen.return_value=open(RoundupGrab.closed_bug_filename) |
roundup_project = Project.create_dummy() | def test_scrape_bug_status_and_mark_as_closed(self, mock_urlopen): mock_urlopen.return_value=open(RoundupGrab.closed_bug_filename) | |
must_look_at_these = self.generate_list_of_bug_ids_to_look_at() for bug_id in must_look_at_these: | for bug_id in self.generate_list_of_bug_ids_to_look_at(): | def update(self): logging.info("Started refreshing all %s bugs." % self.project_name) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://tahoe-lafs.org/trac/tahoe-lafs/query?status=assigned&status=new&status=reopened&max=10000&reporter=~&col=id&col=summary&col=keywords&col=reporter&col=status&col=owner&col=type&col=priority&col=milestone&... | queries = { 'All bugs': 'http://tahoe-lafs.org/trac/tahoe-lafs/query?status=assigned&status=new&status=reopened&max=10000&reporter=~&col=id&col=summary&col=keywords&col=reporter&col=status&col=owner&col=type&col=priority&col=milestone&keywords=~&owner=~&desc=1&order=id&format=csv', } return self.generate_bug_ids_from_q... | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://tahoe-lafs.org/trac/tahoe-lafs/query?status=assigned&status=new&status=reopened&max=10000&reporter=~&col=id&col=summary&col=keywords&col=reporter&col=status... |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority')) | queries = { 'Easy bugs': 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority', 'Documentation bugs': 'http://twistedmatrix.com/trac/query?status=assigned&status=new&status=reopened&format=csv&order=priority&keywords=~documentation' } return self.gen... | def generate_list_of_bug_ids_to_look_at(self): # Just index bitesized bugs return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://bugs.sugarlabs.org/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Esugar-love&order=priority')) | queries = { 'Easy bugs': 'http://bugs.sugarlabs.org/query?status=accepted&status=new&status=assigned&status=reopened&format=csv&keywords=%7Esugar-love&order=priority', 'Documentation bugs': 'http://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&format=csv&order=priority&keywords=~do... | def generate_list_of_bug_ids_to_look_at(self): # Just index bitesized bugs return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://bugs.sugarlabs.org/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Esugar-love&order=priority')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://trac.xiph.org/query?status=assigned&status=new&status=reopened&order=priority&format=csv&keywords=%7Eeasy')) | queries = { 'Easy bugs': 'https://trac.xiph.org/query?status=assigned&status=new&status=reopened&order=priority&format=csv&keywords=%7Eeasy', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): # Only gives a list of bitesized bugs - confirm if devels want all bugs indexed return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://trac.xiph.org/query?status=assigned&status=new&status=reopened&order=priori... |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://dev.laptop.org/query?status=assigned&status=new&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'http://dev.laptop.org/query?status=assigned&status=new&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://dev.laptop.org/query?status=assigned&status=new&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.helenos.org/trac.fcgi/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'http://trac.helenos.org/trac.fcgi/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.helenos.org/trac.fcgi/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://trac.mcs.anl.gov/projects/bcfg2/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'https://trac.mcs.anl.gov/projects/bcfg2/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://trac.mcs.anl.gov/projects/bcfg2/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://dev.ibboard.co.uk/projects/warfoundry/query?status=accepted&status=assigned&status=confirmed&status=needinfo&status=needinfo_new&status=new&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'http://dev.ibboard.co.uk/projects/warfoundry/query?status=accepted&status=assigned&status=confirmed&status=needinfo&status=needinfo_new&status=new&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://dev.ibboard.co.uk/projects/warfoundry/query?status=accepted&status=assigned&status=confirmed&status=needinfo&status=needinfo_new&status=new&status=reopened&... |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://fedorahosted.org/python-fedora/query?status=new&status=assigned&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'https://fedorahosted.org/python-fedora/query?status=new&status=assigned&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://fedorahosted.org/python-fedora/query?status=new&status=assigned&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.rephial.org/query?status=assigned&status=confirmed&status=new&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'http://trac.rephial.org/query?status=assigned&status=confirmed&status=new&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.rephial.org/query?status=assigned&status=confirmed&status=new&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://hackage.haskell.org/trac/ghc/query?status=new&status=assigned&status=reopened&group=priority&order=id&desc=1&format=csv')) | queries = { 'All bugs': 'http://hackage.haskell.org/trac/ghc/query?status=new&status=assigned&status=reopened&group=priority&order=id&desc=1&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://hackage.haskell.org/trac/ghc/query?status=new&status=assigned&status=reopened&group=priority&order=id&desc=1&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.edgewall.org/query?status=!closed&keywords=~bitesized&format=csv')) | queries = { 'Easy bugs': 'http://trac.edgewall.org/query?status=!closed&keywords=~bitesized&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): # Just index bitesized bugs return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.edgewall.org/query?status=!closed&keywords=~bitesized&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://fedorahosted.org/sssd/query?status=new&status=assigned&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'https://fedorahosted.org/sssd/query?status=new&status=assigned&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'https://fedorahosted.org/sssd/query?status=new&status=assigned&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.i2p2.de/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv')) | queries = { 'All bugs': 'http://trac.i2p2.de/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv', } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://trac.i2p2.de/query?status=accepted&status=assigned&status=new&status=reopened&order=priority&format=csv')) |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( '')) | queries = { 'Easy bugs': '', 'Documentation bugs': '' } return self.generate_bug_ids_from_queries(queries) | def generate_list_of_bug_ids_to_look_at(self): return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( '')) |
p = Project.create_dummy(name='KDE') | p = Project.create_dummy(name='kmail') | def test_kde(self, mock_xml_opener): p = Project.create_dummy(name='KDE') mock_xml_opener.return_value = lxml.etree.XML(open(os.path.join( settings.MEDIA_ROOT, 'sample-data', 'kde-117760-2010-04-09.xml')).read()) kde = mysite.search.tasks.bugzilla_instances.KDEBugzilla() kde.update() all_bugs = Bug.all_bugs.all() self.... |
p = Project.create_dummy(name='KDE') | p = Project.create_dummy(name='kphotoalbum') | def test_kde_harder_bug(self, mock_xml_opener): p = Project.create_dummy(name='KDE') mock_xml_opener.return_value = lxml.etree.XML(open(os.path.join( settings.MEDIA_ROOT, 'sample-data', 'kde-182054-2010-04-09.xml')).read()) kde = mysite.search.tasks.bugzilla_instances.KDEBugzilla() kde.update() all_bugs = Bug.all_bugs.... |
project_names = bugs.values_list(u'project__name', flat=True).distinct() project_names = [name or u'Unknown' for name in project_names] | projects = ( mysite.search.models.Project.objects.filter(pk__in=list(bugs.values_list(u'project__pk', flat=True).distinct())) .filter(bug__looks_closed=True) .annotate(Count('bug')) .order_by('-bug__count') ) project_names = [project.name or u'Unknown' for project in projects] | def get_project_names(self): |
o = self._cmd_or_die("iwlist " + self.iface + " scan") | o = self._cmd_or_die("iwlist " + self.iface + " scan", verbosity=0) | def scan(self): # first perform the scan. Try a few times because the device still may # be coming up. o = self._cmd_or_die("iwlist " + self.iface + " scan") count = 10 while count != 0 and \ o[0].endswith("Interface doesn't support scanning : Device or resource busy"): o = self._cmd_or_die("iwlist " + self.iface + " ... |
raise ActionFailureError("iwconfig failed with code %d" % r) | raise wtf.node.ActionFailureError("iwconfig failed with code %d" % r) | def _open_assoc(self, ssid): self._cmd_or_die("iwconfig " + self.iface + " essid " + ssid) for i in range(1, 10): (r, o) = self.comm.send_cmd("iwconfig " + self.iface, verbosity=0) if r != 0: raise ActionFailureError("iwconfig failed with code %d" % r) |
raise ActionFailureError("wpa_cli failed (err=%d)" % r) | raise wtf.node.ActionFailureError("wpa_cli failed (err=%d)" % r) | def _secure_assoc(self): cmd = "wpa_supplicant -B -Dwext -i" + self.iface + " -c/tmp/sup.conf" self._cmd_or_die(cmd) for i in range(1, 20): (r, o) = self.comm.send_cmd("wpa_cli status", verbosity=0) if r != 0: raise ActionFailureError("wpa_cli failed (err=%d)" % r) |
'</CmResponse>') % c.getForm() | '</CmResponse>') % c.getPopulatedConfigForm() | def getConnectorConfigToEdit(self, ConnectorName=None, Lang=None): self.log('getConnectorConfigToEdit %s' % ConnectorName) c = self.getConnector(ConnectorName) return ('<CmResponse>' '<StatusId>0</StatusId>' '<ConfigureResponse>' '<FormSnippet>%s</FormSnippet>' '</ConfigureResponse>' '</CmResponse>') % c.getForm() |
if con.name == connector_name: | if con.getName() == connector_name: | def getConnector(self, connector_name): for con in self.connector_list: if con.name == connector_name: return con return None |
if con.name == cdata.name: | if con.getName() == cdata.name: | def setConnector(self, cdata): found = False for index, con in enumerate(self.connector_list): if con.name == cdata.name: found = True self.connector_list[index] = cdata if found == False: self.connector_list.append(cdata) |
try: | if 'domain' in nodes.attributes: | def authorization(self): #<AuthorizationQuery> #<ConnectorQuery> #<Identity domain="esodomain" password="dsjflaskf" source="connector">user1 #</Identity> #<Resource>googleconnector://connector1.localhost/doc?docid=123</Resource> #<Resource>googleconnector://connector1.localhost/doc?docid=456</Resource> #<Resource>googl... |
except KeyError: domain = '' | def authorization(self): #<AuthorizationQuery> #<ConnectorQuery> #<Identity domain="esodomain" password="dsjflaskf" source="connector">user1 #</Identity> #<Resource>googleconnector://connector1.localhost/doc?docid=123</Resource> #<Resource>googleconnector://connector1.localhost/doc?docid=456</Resource> #<Resource>googl... | |
password = nodes.attributes["password"].value | if 'password' in nodes.attributes: password = nodes.attributes["password"].value | def authorization(self): #<AuthorizationQuery> #<ConnectorQuery> #<Identity domain="esodomain" password="dsjflaskf" source="connector">user1 #</Identity> #<Resource>googleconnector://connector1.localhost/doc?docid=123</Resource> #<Resource>googleconnector://connector1.localhost/doc?docid=456</Resource> #<Resource>googl... |
implement generateConfigForm and generateFilledConfigForm. | implement generateConfigForm and generatePopulatedConfigForm. | def log(self, deb_string): if self.debug_flag: now = datetime.datetime.now() print "%s %s" % (now, deb_string) |
self.manager = manager self.name = name self.config = config self.schedule = schedule self.data = data | self._manager = manager self._name = name self._config = config self._schedule = schedule self._data = data | def __init__(self, manager, name, config, schedule, data): """Creates a connector, and then calls init(). |
def generateFilledConfigForm(self): | def generatePopulatedConfigForm(self): | def generateFilledConfigForm(self): """Generates a configuration form from self.CONNECTOR_CONFIG. Similar to generateConfigForm, except this fills in the form with values from getConfigParam. |
def getForm(self): """Returns a filled configuration form. | def getPopulatedConfigForm(self): """Returns a populated configuration form. | def getForm(self): """Returns a filled configuration form. |
return '<![CDATA[%s]]>' % self.generateFilledConfigForm() | return '<![CDATA[%s]]>' % self.generatePopulatedConfigForm() | def getForm(self): """Returns a filled configuration form. |
return self.name | return self._name | def getName(self): """Returns the instance name.""" return self.name |
return self.config | return self._config | def getConfig(self): """Returns the raw XML configuration data.""" return self.config |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.