bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def popitem(*args): raise NotImplementedError
def popitem(*args): raise NotImplementedError
479,800
def copy(self): """ Return a copy of the segmentlistdict object. The return value is a new object with a new offsets attribute, with references to the original keys, and shallow copies of the segment lists. Modifications made to the offset dictionary or segmentlists in the object returned by this method will not affe...
def copy(self): """ Return a copy of the segmentlistdict object. The return value is a new object with a new offsets attribute, with references to the original keys, and shallow copies of the segment lists. Modifications made to the offset dictionary or segmentlists in the object returned by this method will not affe...
479,801
def copy(self): """ Return a copy of the segmentlistdict object. The return value is a new object with a new offsets attribute, with references to the original keys, and shallow copies of the segment lists. Modifications made to the offset dictionary or segmentlists in the object returned by this method will not affe...
def copy(self): """ Return a copy of the segmentlistdict object. The return value is a new object with a new offsets attribute, with references to the original keys, and shallow copies of the segment lists. Modifications made to the offset dictionary or segmentlists in the object returned by this method will not affe...
479,802
def copy(self): """ Return a copy of the segmentlistdict object. The return value is a new object with a new offsets attribute, with references to the original keys, and shallow copies of the segment lists. Modifications made to the offset dictionary or segmentlists in the object returned by this method will not affe...
def copy(self): """ Return a copy of the segmentlistdict object. The return value is a new object with a new offsets attribute, with references to the original keys, and shallow copies of the segment lists. Modifications made to the offset dictionary or segmentlists in the object returned by this method will not affe...
479,803
def __init__(self, dag, job, cp, opts, time, ifo, p_nodes=[], type="ht", variety="fg"):
def __init__(self, dag, job, cp, opts, time, ifo, p_nodes=[], type="ht", variety="fg"):
479,804
def detector_thresholds(min_threshold, ifos, RA, dec, gps_time, sensitivities=None): """ Return a dictionary of sensitivity thresholds for each detector, based on a minimum threshold of min_threshold in the most sensitive one, for a source at position (RA,dec) specified in radians at time gps_time. Specifying a diction...
def detector_thresholds(min_threshold, ifos, RA, dec, gps_time, sensitivities=None): """ Return a dictionary of sensitivity thresholds for each detector, based on a minimum threshold of min_threshold in the least sensitive one, for a source at position (RA,dec) specified in radians at time gps_time. Specifying a dictio...
479,805
def New(Type, columns = None): """ Convenience function for constructing pre-defined LSC tables. The optional columns argument is a list of the names of the columns the table should be constructed with. If columns = None, then the table is constructed with all valid columns included (pass columns = [] to create a tab...
def New(Type, columns = None, **kwargs): """ Convenience function for constructing pre-defined LSC tables. The optional columns argument is a list of the names of the columns the table should be constructed with. If columns = None, then the table is constructed with all valid columns included (pass columns = [] to cr...
479,806
def New(Type, columns = None): """ Convenience function for constructing pre-defined LSC tables. The optional columns argument is a list of the names of the columns the table should be constructed with. If columns = None, then the table is constructed with all valid columns included (pass columns = [] to create a tab...
def New(Type, columns = None): """ Convenience function for constructing pre-defined LSC tables. The optional columns argument is a list of the names of the columns the table should be constructed with. If columns = None, then the table is constructed with all valid columns included (pass columns = [] to create a tab...
479,807
def get_segments(connection, xmldoc, program_name): seglists = segments.segmentlistdict() if program_name == "thinca": seglists = db_thinca_rings.get_thinca_zero_lag_segments(connection, program_name) if program_name == "gstlal_inspiral" or program_name == "lalapps_ring": seglists = llwapp.segmentlistdict_fromsearchsum...
def get_segments(connection, xmldoc, program_name): seglists = segments.segmentlistdict() if program_name == "thinca": seglists = db_thinca_rings.get_thinca_zero_lag_segments(connection, program_name) if program_name == "gstlal_inspiral" or program_name == "lalapps_ring": seglists = llwapp.segmentlistdict_fromsearchsum...
479,808
def get_background_livetime_by_slide(connection, program_name, seglists, veto_segments=None, verbose = False): if program_name == "thinca": return background_livetime_ring_by_slide(connection, program_name, seglists, veto_segments, verbose) if program_name == "gstlal_inspiral": return background_livetime_nonring_by_s...
def get_background_livetime_by_slide(connection, program_name, seglists, veto_segments=None, verbose = False): if program_name == "thinca": return background_livetime_ring_by_slide(connection, program_name, seglists, veto_segments, verbose) if program_name == "gstlal_inspiral": return background_livetime_nonring_by_s...
479,809
def generate_git_version_info(): # info object info = git_info() git_path = check_call_out(('which', 'git')) # determine basic info about the commit # %H -- full git hash id # %ct -- commit time # %an, %ae -- author name, email # %cn, %ce -- committer name, email git_id, git_udate, git_author_name, git_author_email, ...
def generate_git_version_info(): # info object info = git_info() git_path = check_call_out(('which', 'git')) # determine basic info about the commit # %H -- full git hash id # %ct -- commit time # %an, %ae -- author name, email # %cn, %ce -- committer name, email git_id, git_udate, git_author_name, git_author_email, ...
479,810
def getinjpar(inj,parnum): if paramnames(parnum)=='mchirp': return inj.mchirp if paramname(parnum)=='eta': return inj.eta if paramname(parnum)=='time': return inj.get_end() if paramname(parnum)=='phi0': return inj.phi0 if paramname(parnum)=='dist': return inj.distance if paramname(parnum)=='RA': return inj.longitude if...
def getinjpar(inj,parnum): if paramnames[parnum]=='mchirp': return inj.mchirp if paramnames[parnum]=='eta': return inj.eta if paramnames[parnum]=='time': return inj.get_end() if paramnames[parnum]=='phi0': return inj.phi0 if paramnames[parnum]=='dist': return inj.distance if paramnames[parnum]=='RA': return inj.longitu...
479,811
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
479,812
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
479,813
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
479,814
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
479,815
def figure_out_cache(time,ifo): cacheList=( (home_dirs()+"/romain/followupbackgrounds/omega/S5/background/background_815155213_875232014.cache",815155213,875232014,"H1H2L1"), (home_dirs()+"/romain/followupbackgrounds/omega/S6a/background/background_931035296_935798415.cache",931035296,935798415,"H1L1"), (home_dirs()+"...
def figure_out_cache(time,ifo): cacheList=( (home_dirs()+"/romain/followupbackgrounds/omega/S5/background/background_815155213_875232014.cache",815155213,875232014,"H1H2L1"), (home_dirs()+"/romain/followupbackgrounds/omega/S6a/background/background_931035296_935798415.cache",931035296,935798415,"H1L1"), (home_dirs()+"...
479,816
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
479,817
def __init__(self, dag, job, cp, opts, ifo, time, p_nodes=[], type=""):
def __init__(self, dag, job, cp, opts, ifo, time, p_nodes=[], type=""):
479,818
def __init__(self, dag, job, cp, opts, ifo, sngl=None, qscan=False, trigger_time=None, data_type="hoft", p_nodes=[]):
def __init__(self, dag, job, cp, opts, ifo, sngl=None, qscan=False, trigger_time=None, data_type="hoft", p_nodes=[]):
479,819
def __contains__(self, item): """ Returns True if the given object is wholly contained within one of the segments in self. If self has length n, then if item is a scalar or a segment this operation is O(log n), if it is a segmentlist of m segments this operation is O(m log n).
def __contains__(self, item): """ Returns True if the given object is wholly contained within the segments in self. If self has length n, then if item is a scalar or a segment this operation is O(log n), if item is a segmentlist of m segments this operation is O(m log n).
479,820
def __init__(self,cp,block_id,dagDir,channel=''): self.dagDirectory=dagDir self.__executable = cp.get('condor','clustertool') self.__universe= cp .get('condor','clustertool_universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) self.add_condor_cmd('geten...
def __init__(self,cp,block_id,dagDir,channel=''): self.dagDirectory=dagDir self.__executable = cp.get('condor','clustertool') self.__universe= cp .get('condor','clustertool_universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) self.add_condor_cmd('geten...
479,821
def __init__(self,cp,block_id,dagDir,channel=''): self.dagDirectory=dagDir self.__executable = cp.get('condor','clustertool') self.__universe= cp .get('condor','clustertool_universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) self.add_condor_cmd('geten...
def __init__(self,cp,block_id,dagDir,channel=''): self.dagDirectory=dagDir self.__executable = cp.get('condor','clustertool') self.__universe= cp .get('condor','clustertool_universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) self.add_condor_cmd('geten...
479,822
def __init__(self,cp,block_id,dagDir,channel=''): self.dagDirectory=dagDir self.__executable = cp.get('condor','clustertool') self.__universe= cp .get('condor','clustertool_universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) self.add_condor_cmd('geten...
def __init__(self,cp,block_id,dagDir,channel=''): self.dagDirectory=dagDir self.__executable = cp.get('condor','clustertool') self.__universe= cp .get('condor','clustertool_universe') pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) pipeline.AnalysisJob.__init__(self,cp) self.add_condor_cmd('geten...
479,823
def estimateDQbackground(self): """ This method looks at the self.resultlist inside the instance. Using this and 1000 generated time stamp it tabulates a ranking of flag prevelance, binomial probability 'p' """ if len(self.resultList) < 1: self.__backgroundResults__=list() self.__backgroundTimesDict__=dict() self.__bac...
def estimateDQbackground(self): """ This method looks at the self.resultlist inside the instance. Using this and 1000 generated time stamp it tabulates a ranking of flag prevelance, binomial probability 'p' """ if len(self.resultList) < 1: self.__backgroundResults__=list() self.__backgroundTimesDict__=dict() self.__bac...
479,824
... def __init__(self):
... def __init__(self):
479,825
... def invokeFactory(self, type, **kwargs):
... def invokeFactory(self, type, **kwargs):
479,826
... def objectIds(self):
... def objectIds(self):
479,827
... def objectIds(self):
... def objectIds(self):
479,828
... def objectIds(self):
... def objectIds(self):
479,829
... def objectIds(self):
... def objectIds(self):
479,830
... def objectIds(self):
... def objectIds(self):
479,831
... def objectIds(self):
... def objectIds(self):
479,832
def member_list(request, eid=None): if 'event' in request.REQUEST: return HttpResponseRedirect('/member_list/%s/' % request.REQUEST['event']) if request.method == 'POST': if not request.user.profile.is_admin: message(request, 'Error: you are not an administrator!') return HttpResponseRedirect('/member_list') action = r...
def member_list(request, eid=None): if 'event' in request.REQUEST: return HttpResponseRedirect('/member_list/%s/' % request.REQUEST['event']) if request.method == 'POST': if not request.user.profile.is_admin: message(request, 'Error: you are not an administrator!') return HttpResponseRedirect('/member_list') action = r...
479,833
def custom404(request): print request.user return render_template('errors/404.mako', request, parent='../base.mako' if request.user else '../layout.mako')
def custom404(request): print request.user return render_template('errors/404.mako', request, parent='../base.mako' if request.user.is_authenticated() else '../layout.mako')
479,834
def custom500(request): return render_template('errors/500.mako', request, parent='../base.mako' if request.user else '../layout.mako')
def custom500(request): return render_template('errors/500.mako', request, parent='../base.mako' if request.user.is_authenticated() else '../layout.mako')
479,835
def calendar(request): if 'chapter' not in request.GET: return HttpResponse('No chapter specified.') chapter = Chapter.objects.get(id=int(request.GET['chapter'])) if 'key' not in request.GET or chapter.calendar_key != request.GET['key']: return HttpResponse('Invalid key specified.') cal = vobject.iCalendar() cal.add('m...
def calendar(request): if 'chapter' not in request.GET: return HttpResponse('No chapter specified.') chapter = Chapter.objects.get(id=int(request.GET['chapter'])) if 'key' not in request.GET or chapter.calendar_key != request.GET['key']: return HttpResponse('Invalid key specified.') cal = vobject.iCalendar() cal.add('m...
479,836
def reset_password(request): if request.method == 'POST': if 'username' in request.POST: try: user = User.objects.get(Q(username=request.POST['username']) | Q(email=request.POST['username'])) except User.DoesNotExist: return render_template('registration/request_reset.mako', request, error_msg='Unknown username or emai...
def reset_password(request): if request.method == 'POST': if 'username' in request.POST: try: user = User.objects.get(Q(username=request.POST['username']) | Q(email=request.POST['username'])) except User.DoesNotExist: return render_template('registration/request_reset.mako', request, error_msg='Unknown username or emai...
479,837
def reset_password(request): if request.method == 'POST': if 'username' in request.POST: try: user = User.objects.get(Q(username=request.POST['username']) | Q(email=request.POST['username'])) except User.DoesNotExist: return render_template('registration/request_reset.mako', request, error_msg='Unknown username or emai...
def reset_password(request): if request.method == 'POST': if 'username' in request.POST: try: user = User.objects.get(Q(username=request.POST['username']) | Q(email=request.POST['username'])) except User.DoesNotExist: return render_template('registration/request_reset.mako', request, error_msg='Unknown username or emai...
479,838
def reset_password(request): if request.method == 'POST': if 'username' in request.POST: try: user = User.objects.get(Q(username=request.POST['username']) | Q(email=request.POST['username'])) except User.DoesNotExist: return render_template('registration/request_reset.mako', request, error_msg='Unknown username or emai...
def reset_password(request): if request.method == 'POST': if 'username' in request.POST: try: user = User.objects.get(Q(username=request.POST['username']) | Q(email=request.POST['username'])) except User.DoesNotExist: return render_template('registration/request_reset.mako', request, error_msg='Unknown username or emai...
479,839
def run(self): self.success = False self._timeout_count = 0
def run(self): self.success = False self._timeout_count = 0
479,840
def _timeout_cb(self): if self.success: # dispose of previous waiters. return False self._timeout_count += 1 self.poll() if self._timeout_count >= self.timeout or self.success: try: if gtk.main_level(): gtk.main_quit() except RuntimeError: # In Mandriva RuntimeError exception is thrown # If, gtk.main was already quit p...
def _timeout_cb(self): if self.success: # dispose of previous waiters. return False self._timeout_count += 1 self.poll() if self._timeout_count >= self.timeout or self.success: try: if _main_loop: _main_loop.quit() else: if gtk.main_level(): gtk.main_quit() except RuntimeError: # In Mandriva RuntimeError exception is t...
479,841
def _event_cb(self, event): self.event_cb(event) if self.success: try: if gtk.main_level(): gtk.main_quit() except RuntimeError: # In Mandriva RuntimeError exception is thrown # If, gtk.main was already quit pass
def _event_cb(self, event): self.event_cb(event) if self.success: try: if _main_loop: _main_loop.quit() else: if gtk.main_level(): gtk.main_quit() except RuntimeError: # In Mandriva RuntimeError exception is thrown # If, gtk.main was already quit pass
479,842
def generatemouseevent(self, x, y, eventType = 'b1c'): ''' Generate mouse event on x, y co-ordinates. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: int @param object_name: Object name to look for, either full name, LDTP's name convention, or a...
def generatemouseevent(self, x, y, eventType = 'b1c'): """ Generate mouse event on x, y co-ordinates. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: int @param object_name: Object name to look for, either full name, LDTP's name convention, or a...
479,843
def generatemouseevent(self, x, y, eventType = 'b1c'): ''' Generate mouse event on x, y co-ordinates. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: int @param object_name: Object name to look for, either full name, LDTP's name convention, or a...
def generatemouseevent(self, x, y, eventType = 'b1c'): """ Generate mouse event on x, y co-ordinates. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: int @param object_name: Object name to look for, either full name, LDTP's name convention, or a...
479,844
def mouseleftclick(self, window_name, object_name): ''' Mouse left click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. ...
def mouseleftclick(self, window_name, object_name): """ Mouse left click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. ...
479,845
def mouseleftclick(self, window_name, object_name): ''' Mouse left click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. ...
def mouseleftclick(self, window_name, object_name): """ Mouse left click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. ...
479,846
def mousemove(self, window_name, object_name): ''' Mouse move on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu hei...
def mousemove(self, window_name, object_name): """ Mouse move on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu hei...
479,847
def mousemove(self, window_name, object_name): ''' Mouse move on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu hei...
def mousemove(self, window_name, object_name): """ Mouse move on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu hei...
479,848
def mouserightclick(self, window_name, object_name): ''' Mouse right click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob...
def mouserightclick(self, window_name, object_name): """ Mouse right click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob...
479,849
def mouserightclick(self, window_name, object_name): ''' Mouse right click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob...
def mouserightclick(self, window_name, object_name): """ Mouse right click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob...
479,850
def doubleclick(self, window_name, object_name): ''' Double click on the object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu...
def doubleclick(self, window_name, object_name): """ Double click on the object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu...
479,851
def doubleclick(self, window_name, object_name): ''' Double click on the object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu...
def doubleclick(self, window_name, object_name): """ Double click on the object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu...
479,852
def __call__(self, *args, **kwargs): logger.debug('%s(%s)' % \ (self.__name, ', '.join(map(repr, args)+['%s=%s' % (k, repr(v)) for k, v in kwargs.items()]))) args += (kwargs,) return self.__send(self.__name, args)
def __call__(self, *args, **kwargs): logger.debug('%s(%s)' % \ (self.__name, ', '.join(map(repr, args)+['%s=%s' % (k, repr(v)) for k, v in kwargs.items()]))) args += (kwargs,) return self.__send(self.__name, args)
479,853
def __new__(cls, *args, **kwargs): if not cls._generated: cls._generated = True d = ldtp.__dict__ cls._wrapped_methods =[] for attr in d: if cls._isRemoteMethod(d[attr]) and cls._isRelevant(d[attr]): setted = attr if hasattr(cls, attr): setted = "_remote_"+setted cls._wrapped_methods.append(setted) setattr(cls, setted,...
def __new__(cls, *args, **kwargs): if not cls._generated: cls._generated = True d = ldtp.__dict__ cls._wrapped_methods =[] for attr in d: if cls._isRemoteMethod(d[attr]): setted = attr if hasattr(cls, attr): setted = "_remote_"+setted cls._wrapped_methods.append(setted) setattr(cls, setted, d[attr]) return object.__new...
479,854
def getchild(self, child_name='', role=''): # TODO: Bad API choice. Inconsistent, should return object or list, # not both. UPDATE: Only returns first match. matches = self._remote_getchild(child_name, role, True) if matches: if role: return [Component(self._window_name, matches[0])] else: return Component(self._window...
def getchild(self, child_name='', role=''): # TODO: Bad API choice. Inconsistent, should return object or list, # not both. UPDATE: Only returns first match. matches = self._remote_getchild(child_name, role, True) if matches: if role: return [Component(self._window_name, matches[0])] else: return Component(self._window...
479,855
def _isRelevant(cls, obj): args = cls._listArgs(obj) return len(args) >= 2 and \ 'window_name' == args[0] and 'object_name' == args[1]
def _isRelevant(cls, obj): args = cls._listArgs(obj) return len(args) >= 2 and \ 'window_name' == args[0] and 'object_name' == args[1]
479,856
def __init__(self): lazy_load = True self._states = {} self._state_names = {} self._callback = {} self._window_uptime = {} self._callback_event = [] self._get_all_state_names() self._handle_table_cell = False self._desktop = pyatspi.Registry.getDesktop(0) if Utils.cached_apps is None: pyatspi.Registry.registerEventList...
def __init__(self): lazy_load = True self._states = {} self._state_names = {} self._window_uptime = {} self._callback_event = [] self._get_all_state_names() self._handle_table_cell = False self._desktop = pyatspi.Registry.getDesktop(0) if Utils.cached_apps is None: pyatspi.Registry.registerEventListener( self._on_windo...
479,857
def _list_apps(self): for app in list(self.cached_apps): if not app: continue yield app
def _list_apps(self): for app in self.cached_apps: if not app: continue yield app
479,858
def _list_guis(self): for app in list(self.cached_apps): if not app: continue try: for gui in app: if not gui: continue yield gui except LookupError: self.cached_apps.remove(app)
def _list_guis(self): for app in self.cached_apps: if not app: continue try: for gui in app: if not gui: continue yield gui except LookupError: self.cached_apps.remove(app)
479,859
def _match_name_to_acc(self, name, acc): try: if acc.name == name: return 1 _ldtpize_accessible_name = self._ldtpize_accessible(acc) _object_name = u'%s%s' % (_ldtpize_accessible_name[0], _ldtpize_accessible_name[1]) if _object_name == name: return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(nam...
def _match_name_to_acc(self, name, acc): if acc.name == name: return 1 _ldtpize_accessible_name = self._ldtpize_accessible(acc) _object_name = u'%s%s' % (_ldtpize_accessible_name[0], _ldtpize_accessible_name[1]) if _object_name == name: return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(name, _o...
479,860
def _match_name_to_acc(self, name, acc): try: if acc.name == name: return 1 _ldtpize_accessible_name = self._ldtpize_accessible(acc) _object_name = u'%s%s' % (_ldtpize_accessible_name[0], _ldtpize_accessible_name[1]) if _object_name == name: return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(nam...
def _match_name_to_acc(self, name, acc): try: if acc.name == name: return 1 if acc['label']: _tmp_name = re.sub(strip, '', acc['label']) if self._glob_match(obj_name, _tmp_name): return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(name, _object_name): return 1 role = acc.getRole() if role == pyat...
479,861
def _match_name_to_acc(self, name, acc): try: if acc.name == name: return 1 _ldtpize_accessible_name = self._ldtpize_accessible(acc) _object_name = u'%s%s' % (_ldtpize_accessible_name[0], _ldtpize_accessible_name[1]) if _object_name == name: return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(nam...
def _match_name_to_acc(self, name, acc): try: if acc.name == name: return 1 _ldtpize_accessible_name = self._ldtpize_accessible(acc) _object_name = u'%s%s' % (_ldtpize_accessible_name[0], _ldtpize_accessible_name[1]) if _object_name == name: return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(nam...
479,862
def _list_objects(self, obj): if obj: yield obj for child in obj: if child and child.getRole() == pyatspi.ROLE_TABLE_CELL and \ not self._handle_table_cell: # In OO.o navigating table cells consumes more time # and resource break for c in self._list_objects(child): yield c
def _list_objects(self, obj): if obj: yield obj for child in obj: if child.getRole() == pyatspi.ROLE_TABLE_CELL and \ not self._handle_table_cell: # In OO.o navigating table cells consumes more time # and resource break for c in self._list_objects(child): yield c
479,863
def _list_objects(self, obj): if obj: yield obj for child in obj: if child and child.getRole() == pyatspi.ROLE_TABLE_CELL and \ not self._handle_table_cell: # In OO.o navigating table cells consumes more time # and resource break for c in self._list_objects(child): yield c
def _list_objects(self, obj): if obj: yield obj for child in obj: if child and child.getRole() == pyatspi.ROLE_TABLE_CELL and \ not self._handle_table_cell: # In OO.o navigating table cells consumes more time # and resource break for c in self._list_objects(child): yield c
479,864
def _get_combo_child_object_type(self, obj): """ This function will check for all levels and returns the first matching LIST / MENU type """ try: if obj: for child in obj: if not child: continue if child.childCount > 0: child_obj = self._get_combo_child_object_type(child) if child_obj: return child_obj if child.getRole...
def _get_combo_child_object_type(self, obj): """ This function will check for all levels and returns the first matching LIST / MENU type """ try: if obj: for child in obj: if not child: continue if child.childCount > 0: child_obj = self._get_combo_child_object_type(child) if child_obj: return child_obj if child.getRole...
479,865
def _get_child_object_type(self, obj, role_type): """ This function will check for all levels and returns the first matching role_type """ try: if obj and role_type: for child in obj: if not child: continue if child.childCount > 0: child_obj = self._get_child_object_type(child, role_type) if child_obj: return child_obj...
def _get_child_object_type(self, obj, role_type): """ This function will check for all levels and returns the first matching role_type """ try: if obj and role_type: for child in obj: if not child: continue if child.childCount > 0: child_obj = self._get_child_object_type(child, role_type) if child_obj: return child_obj...
479,866
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) # Get handle of menu obj = self._get_object(window_name, _menu_hierarchy[0]) # Navigate all sub-menu under a menu for _menu in _menu_hierarchy[1:]: _flag = False for _child in self._list_objects(obj): if obj == _child:...
defif not re.search('^mnu', _menu_hierarchy[0]): _menu_hierarchy[0] = 'mnu%s' % _menu_hierarchy[0] _get_menu_hierarchy(self,if not re.search('^mnu', _menu_hierarchy[0]): _menu_hierarchy[0] = 'mnu%s' % _menu_hierarchy[0] window_name,if not re.search('^mnu', _menu_hierarchy[0]): _menu_hierarchy[0] = 'mnu%s' % _menu_hiera...
479,867
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) # Get handle of menu obj = self._get_object(window_name, _menu_hierarchy[0]) # Navigate all sub-menu under a menu for _menu in _menu_hierarchy[1:]: _flag = False for _child in self._list_objects(obj): if obj == _child:...
def_get_menu_hierarchy(self,window_name,object_name):_menu_hierarchy=re.split(';',object_name)#Gethandleofmenuobj=self._get_object(window_name,_menu_hierarchy[0])#Navigateallsub-menuunderamenufor_menuin_menu_hierarchy[1:]:_flag=Falsefor_childinself._list_objects(obj):ifobj==_child:#ifthegivenobjectandchildobjectmatches...
479,868
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) # Get handle of menu obj = self._get_object(window_name, _menu_hierarchy[0]) # Navigate all sub-menu under a menu for _menu in _menu_hierarchy[1:]: _flag = False for _child in self._list_objects(obj): if obj == _child:...
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) # Get handle of menu obj = self._get_object(window_name, _menu_hierarchy[0]) # Navigate all sub-menu under a menu for _menu in _menu_hierarchy[1:]: _flag = False for _child in self._list_objects(obj): if obj == _child:...
479,869
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) # Get handle of menu obj = self._get_object(window_name, _menu_hierarchy[0]) # Navigate all sub-menu under a menu for _menu in _menu_hierarchy[1:]: _flag = False for _child in self._list_objects(obj): if obj == _child:...
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) # Get handle of menu obj = self._get_object(window_name, _menu_hierarchy[0]) # Navigate all sub-menu under a menu for _menu in _menu_hierarchy[1:]: _flag = False for _child in self._list_objects(obj): if obj == _child:...
479,870
def _click_object(self, obj, action = 'click'): try: iaction = obj.queryAction() except NotImplementedError: raise LdtpServerException( 'Object does not have an Action interface') else: for i in xrange(iaction.nActions): if re.match(action, iaction.getName(i)): iaction.doAction(i) return raise LdtpServerException('Obje...
def _click_object(self, obj, action = 'click'): try: iaction = obj.queryAction() except NotImplementedError: raise LdtpServerException( 'Object does not have an Action interface') else: for i in xrange(iaction.nActions): if re.match(action, iaction.getName(i)): iaction.doAction(i) return raise LdtpServerException('Obje...
479,871
def _get_object_info(self, window_name, obj_name): _window_handle = self._get_window_handle(window_name) if not _window_handle: raise LdtpServerException('Unable to find window "%s"' % \ window_name) for name, obj, obj_index in self._appmap_pairs(_window_handle): if self._glob_match(obj_name, obj_index) or \ self._matc...
def _get_object(self, window_name, obj_name): _window_handle = self._get_window_handle(window_name) if not _window_handle: raise LdtpServerException('Unable to find window "%s"' % \ window_name) for name, obj, obj_index in self._appmap_pairs(_window_handle): if self._glob_match(obj_name, obj_index) or \ self._match_nam...
479,872
def _get_object_info(self, window_name, obj_name): _window_handle = self._get_window_handle(window_name) if not _window_handle: raise LdtpServerException('Unable to find window "%s"' % \ window_name) for name, obj, obj_index in self._appmap_pairs(_window_handle): if self._glob_match(obj_name, obj_index) or \ self._matc...
def _get_object_info(self, window_name, obj_name): _window_handle = self._get_window_handle(window_name) if not _window_handle: raise LdtpServerException('Unable to find window "%s"' % \ window_name) for name, obj, obj_index in self._appmap_pairs(_window_handle): if self._glob_match(obj_name, obj_index) or \ self._matc...
479,873
def __init__(self): lazy_load = True self._states = {} self._appmap = {} self._callback = {} self._state_names = {} self._window_uptime = {} self._callback_event = [] self._get_all_state_names() self._handle_table_cell = False self._desktop = pyatspi.Registry.getDesktop(0) if Utils.cached_apps is None: pyatspi.Registry...
def __init__(self): lazy_load = True self._states = {} self._appmap = {} self._callback = {} self._state_names = {} self._window_uptime = {} self._callback_event = [] self._get_all_state_names() self._handle_table_cell = False self._desktop = pyatspi.Registry.getDesktop(0) if Utils.cached_apps is None: pyatspi.Registry...
479,874
def launchapp(self, cmd, args = [], delay = 0, env = 1): ''' Launch application.
def launchapp(self, cmd, args = [], delay = 0, env = 1): ''' Launch application.
479,875
def _glob_match(self, pattern, string): return bool(re_match(glob_trans(pattern), string, re.M | re.U | re.L))
def _glob_match(self, pattern, string): return bool(re_match(glob_trans(pattern), string, re.M | re.U | re.L))
479,876
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) if not re.search('^mnu', _menu_hierarchy[0]): _menu_hierarchy[0] = 'mnu%s' % _menu_hierarchy[0] obj = self._get_object(window_name, _menu_hierarchy[0]) for _menu in _menu_hierarchy[1:]: _flag = False print 'obj', obj f...
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) if not re.search('^mnu', _menu_hierarchy[0]): _menu_hierarchy[0] = 'mnu%s' % _menu_hierarchy[0] obj = self._get_object(window_name, _menu_hierarchy[0]) for _menu in _menu_hierarchy[1:]: _flag = False for _child in self...
479,877
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) if not re.search('^mnu', _menu_hierarchy[0]): _menu_hierarchy[0] = 'mnu%s' % _menu_hierarchy[0] obj = self._get_object(window_name, _menu_hierarchy[0]) for _menu in _menu_hierarchy[1:]: _flag = False print 'obj', obj f...
def _get_menu_hierarchy(self, window_name, object_name): _menu_hierarchy = re.split(';', object_name) if not re.search('^mnu', _menu_hierarchy[0]): _menu_hierarchy[0] = 'mnu%s' % _menu_hierarchy[0] obj = self._get_object(window_name, _menu_hierarchy[0]) for _menu in _menu_hierarchy[1:]: _flag = False print 'obj', obj f...
479,878
def _click_object(self, obj, action = 'click'): try: iaction = obj.queryAction() except NotImplementedError: raise LdtpServerException( 'Object does not have an Action interface') else: for i in xrange(iaction.nActions): if re.match(action, iaction.getName(i)): iaction.doAction(i) return raise LdtpServerException('Obje...
def _click_object(self, obj, action = '(click|press|activate)'): try: iaction = obj.queryAction() except NotImplementedError: raise LdtpServerException( 'Object does not have an Action interface') else: for i in xrange(iaction.nActions): if re.match(action, iaction.getName(i)): iaction.doAction(i) return raise LdtpServ...
479,879
def getchild(self, child_name='', role=''): # TODO: Bad API choice. Inconsistent, should return object or list, # not both. UPDATE: Only returns first match. matches = self._remote_getchild(child_name, role, True) if matches: if role: return [Component(self._window_name, matches[0])] else: return Component(self._window...
def getchild(self, child_name='', role=''): # TODO: Bad API choice. Inconsistent, should return object or list, # not both. UPDATE: Only returns first match. matches = self._remote_getchild(child_name, role, True) if matches: if role: return [Component(self._window_name, matches[0])] else: return Component(self._window...
479,880
def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): ''' Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int...
def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): """ Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int...
479,881
def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): ''' Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int...
def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): """ Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int...
479,882
def _ebRender(self, failure): '''Custom error render method (used by our XMLRPC objects)''' if isinstance(failure.value, xmlrpclib.Fault): return failure.value
def _ebRender(self, failure): '''Custom error render method (used by our XMLRPC objects)''' if isinstance(failure.value, xmlrpclib.Fault): return failure.value
479,883
def _ebRender(self, failure): '''Custom error render method (used by our XMLRPC objects)''' if isinstance(failure.value, xmlrpclib.Fault): return failure.value
def _ebRender(self, failure): '''Custom error render method (used by our XMLRPC objects)''' if isinstance(failure.value, xmlrpclib.Fault): return failure.value
479,884
def _ebRender(self, failure): '''Custom error render method (used by our XMLRPC objects)''' if isinstance(failure.value, xmlrpclib.Fault): return failure.value
def _ebRender(self, failure): '''Custom error render method (used by our XMLRPC objects)''' if isinstance(failure.value, xmlrpclib.Fault): return failure.value
479,885
def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): ''' Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int...
def imagecapture(self, window_name = None, x = 0, y = 0, width = None, height = None): ''' Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int...
479,886
def getallstates(self, window_name, object_name): ''' Get all states of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @t...
def getallstates(self, window_name, object_name): ''' Get all states of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @t...
479,887
def getallstates(self, window_name, object_name): ''' Get all states of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @t...
def getallstates(self, window_name, object_name): ''' Get all states of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @t...
479,888
def hasstate(self, window_name, object_name, state): ''' has state @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: s...
def hasstate(self, window_name, object_name, state): ''' has state @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: s...
479,889
def _handle_signal(self, signum, frame): if os.environ.has_key('LDTP_DEBUG'): if signum == signal.SIGCHLD: print "ldtpd exited!" elif signum == signal.SIGUSR1: print "SIGUSR1 received. ldtpd ready for requests." elif signum == signal.SIGALRM: print "SIGALRM received. Timeout waiting for SIGUSR1."
def _handle_signal(self, signum, frame): if os.environ.has_key('LDTP_DEBUG'): if signum == signal.SIGCHLD: if _ldtp_debug: print "ldtpd exited!" elif signum == signal.SIGUSR1: print "SIGUSR1 received. ldtpd ready for requests." elif signum == signal.SIGALRM: print "SIGALRM received. Timeout waiting for SIGUSR1."
479,890
def _handle_signal(self, signum, frame): if os.environ.has_key('LDTP_DEBUG'): if signum == signal.SIGCHLD: print "ldtpd exited!" elif signum == signal.SIGUSR1: print "SIGUSR1 received. ldtpd ready for requests." elif signum == signal.SIGALRM: print "SIGALRM received. Timeout waiting for SIGUSR1."
def _handle_signal(self, signum, frame): if os.environ.has_key('LDTP_DEBUG'): if signum == signal.SIGCHLD: print "ldtpd exited!" elif signum == signal.SIGUSR1: if _ldtp_debug: print "SIGUSR1 received. ldtpd ready for requests." elif signum == signal.SIGALRM: print "SIGALRM received. Timeout waiting for SIGUSR1."
479,891
def _handle_signal(self, signum, frame): if os.environ.has_key('LDTP_DEBUG'): if signum == signal.SIGCHLD: print "ldtpd exited!" elif signum == signal.SIGUSR1: print "SIGUSR1 received. ldtpd ready for requests." elif signum == signal.SIGALRM: print "SIGALRM received. Timeout waiting for SIGUSR1."
def _handle_signal(self, signum, frame): if os.environ.has_key('LDTP_DEBUG'): if signum == signal.SIGCHLD: print "ldtpd exited!" elif signum == signal.SIGUSR1: print "SIGUSR1 received. ldtpd ready for requests." elif signum == signal.SIGALRM: print "SIGALRM received. Timeout waiting for SIGUSR1."
479,892
def _spawn_daemon(self): self._daemon = subprocess.Popen( ['python', '-c', 'import ldtpd; ldtpd.main()'], close_fds = True)
def _spawn_daemon(self): self._daemon = subprocess.Popen( ['python', '-c', 'import ldtpd; ldtpd.main()'], close_fds = True)
479,893
def kill_daemon(self): try: self._daemon.kill() except AttributeError: pass
def kill_daemon(self): try: os.kill(self._daemon, 9) except AttributeError: pass
479,894
def _get_all_children_under_obj(obj, child_list): if role and obj['class'] == role: child_list.append(obj['key']) elif child_name and self._match_name_to_appmap(child_name, obj): child_list.append(obj['key']) if obj: children = obj['children'] if not children: return child_list for child in children: return _get_all_ch...
def _get_all_children_under_obj(obj, child_list): if role and obj['class'] == role: child_list.append(obj['key']) elif child_name and self._match_name_to_appmap(child_name, obj): child_list.append(obj['key']) if obj: children = obj['children'] if not children: return child_list for child in children: return _get_all_ch...
479,895
def _get_all_children_under_obj(obj, child_list): if role and obj['class'] == role: child_list.append(obj['key']) elif child_name and self._match_name_to_appmap(child_name, obj): child_list.append(obj['key']) if obj: children = obj['children'] if not children: return child_list for child in children: return _get_all_ch...
def _get_all_children_under_obj(obj, child_list): if role and obj['class'] == role: child_list.append(obj['key']) elif child_name and self._match_name_to_appmap(child_name, obj): child_list.append(obj['key']) if obj: children = obj['children'] if not children: return child_list for child in children: return _get_all_ch...
479,896
def _get_child_object_type(self, obj, role_type): """ This function will check for all levels and returns the first matching role_type """ try: if obj and role_type: for child in obj: if not child: continue if child.childCount > 0: child_obj = self._get_child_object_type(child, role_type) if child_obj: return child_obj...
def _get_child_object_type(self, obj, role_type): """ This function will check for all levels and returns the first matching role_type """ try: if obj and role_type: for child in obj: if not child: continue if child.childCount > 0: child_obj = self._get_child_object_type(child, role_type) if child_obj: return child_obj...
479,897
def getcpustat(self, process_name): """ get CPU stat for the give process name
def getcpustat(self, process_name): """ get CPU stat for the give process name
479,898
def _match_name_to_acc(self, name, acc): if acc.name == name: return 1 _ldtpize_accessible_name = self._ldtpize_accessible(acc) _object_name = u'%s%s' % (_ldtpize_accessible_name[0], _ldtpize_accessible_name[1]) if _object_name == name: return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(name, _...
def _match_name_to_acc(self, name, acc): if acc.name == name: return 1 _ldtpize_accessible_name = self._ldtpize_accessible(acc) _object_name = u'%s%s' % (_ldtpize_accessible_name[0], _ldtpize_accessible_name[1]) if _object_name == name: return 1 if self._glob_match(name, acc.name): return 1 if self._glob_match(name, _o...
479,899