rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
if use_images: self.nbBottom.AddPage(self.watches, 'Watches', imageId = 2) else: self.nbBottom.AddPage(self.watches, 'Watches')
self.nbBottom.AddPage(self.watches, 'Watches', imageId=watchesImgIdx)
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger')
5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py
if use_images: self.nbBottom.AddPage(self.locs, 'Locals', imageId = 3) else: self.nbBottom.AddPage(self.locs, 'Locals')
self.nbBottom.AddPage(self.locs, 'Locals', imageId=localsImgIdx)
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger')
5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py
if use_images: self.nbBottom.AddPage(self.globs, 'Globals', imageId = 4) else: self.nbBottom.AddPage(self.globs, 'Globals')
self.nbBottom.AddPage(self.globs, 'Globals', imageId=globalsImgIdx)
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger')
5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py
def OnStreamTimer(self, event=None, force_timer=0): if self.stream_timer: if not self.stream_timer.IsRunning(): self.stream_timer.Start(100) # One-shot mode. self.updateOutputWindow()
5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py
## def OnUpperPageChange(self, event):
5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py
if bplist.hasBreakpoint(filename, lineno): bplist.clearTemporaryBreakpoints(filename, lineno) self.sb.updateState('Breakpoint.', 'break')
def receiveDebuggerStatus(self, info): # Get stdout and stderr if available. errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) #self.appendToOutputWindow(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) #self.appendToOutputWindow(data)
5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py
print mess, mess.__class__, mess.args[0]
def ShowErrorMessage(parent, caption, mess): print mess, mess.__class__, mess.args[0] dlg = wxMessageDialog(parent, mess.__class__.__name__ +': '+mess.args[0], caption, wxOK | wxICON_EXCLAMATION) try: dlg.ShowModal() finally: dlg.Destroy()
09062f26dafd693d78824ed3dd720a59241be90a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/09062f26dafd693d78824ed3dd720a59241be90a/Utils.py
nId = NewId()
nId = wxNewId()
def AddToolButtonBmpObject(frame, toolbar, thebitmap, hint, triggermeth, toggleBitmap = wxNullBitmap): nId = NewId()
09062f26dafd693d78824ed3dd720a59241be90a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/09062f26dafd693d78824ed3dd720a59241be90a/Utils.py
return nId
def AddToolButtonBmpObject(frame, toolbar, thebitmap, hint, triggermeth, toggleBitmap = wxNullBitmap): nId = NewId()
09062f26dafd693d78824ed3dd720a59241be90a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/09062f26dafd693d78824ed3dd720a59241be90a/Utils.py
AddToolButtonBmpObject(frame, toolbar, wxBitmap(filename, wxBITMAP_TYPE_BMP),
return AddToolButtonBmpObject(frame, toolbar, wxBitmap(filename, wxBITMAP_TYPE_BMP),
def AddToolButtonBmpFile(frame, toolbar, filename, hint, triggermeth): AddToolButtonBmpObject(frame, toolbar, wxBitmap(filename, wxBITMAP_TYPE_BMP), hint, triggermeth)
09062f26dafd693d78824ed3dd720a59241be90a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/09062f26dafd693d78824ed3dd720a59241be90a/Utils.py
AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth, IS.load(toggleBmp))
return AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth, IS.load(toggleBmp))
def AddToolButtonBmpIS(frame, toolbar, name, hint, triggermeth, toggleBmp = ''): if toggleBmp: AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth, IS.load(toggleBmp)) else: AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth)
09062f26dafd693d78824ed3dd720a59241be90a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/09062f26dafd693d78824ed3dd720a59241be90a/Utils.py
AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth)
return AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth)
def AddToolButtonBmpIS(frame, toolbar, name, hint, triggermeth, toggleBmp = ''): if toggleBmp: AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth, IS.load(toggleBmp)) else: AddToolButtonBmpObject(frame, toolbar, IS.load(name), hint, triggermeth)
09062f26dafd693d78824ed3dd720a59241be90a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/09062f26dafd693d78824ed3dd720a59241be90a/Utils.py
def __init__(self, parent, message='Choose a file', defaultDir='.', defaultFile='', wildcard='', style=wxOPEN, pos=wxDefaultPosition):
def __init__(self, parent, message='Choose a file', defaultDir='.', defaultFile='', wildcard='', style=wxOPEN, pos=wxDefaultPosition):
def __init__(self, parent, message='Choose a file', defaultDir='.', defaultFile='', wildcard='', style=wxOPEN, pos=wxDefaultPosition): self.htmlBackCol = wxColour(192, 192, 192) self.htmlBackCol = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNFACE) self.filterOpts = ['Boa files', 'Internal files', 'Image files', 'Al...
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
self.winConfOption = 'filedialog' self.loadDims()
def __init__(self, parent, message='Choose a file', defaultDir='.', defaultFile='', wildcard='', style=wxOPEN, pos=wxDefaultPosition): self.htmlBackCol = wxColour(192, 192, 192) self.htmlBackCol = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNFACE) self.filterOpts = ['Boa files', 'Internal files', 'Image files', 'Al...
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
self.dont_pop = 0
self.winConfOption = 'filedialog' self.loadDims()
def __init__(self, parent, message='Choose a file', defaultDir='.', defaultFile='', wildcard='', style=wxOPEN, pos=wxDefaultPosition): self.htmlBackCol = wxColour(192, 192, 192) self.htmlBackCol = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNFACE) self.filterOpts = ['Boa files', 'Internal files', 'Image files', 'Al...
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
self.lcFiles.destroy(dont_pop=self.dont_pop)
self.lcFiles.destroy()
def Destroy(self): self.htmlBackCol = None self.lcFiles.destroy(dont_pop=self.dont_pop) wxDialog.Destroy(self)
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
if Utils.startswith(name, partial):
if name.startswith(partial):
def OnTcfilenameKeyDown(self, event): key = event.GetKeyCode() if key == WXK_TAB: names = self.lcFiles.getAllNames() partial = self.GetFilename() for name in names: if Utils.startswith(name, partial): self.lcFiles.selectItemNamed(name) self.SetFilename(name) self.tcFilename.SetSelection(len(partial), len(name)) return ...
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
syspathnode = ExplorerNodes.nodeRegByProt['sys.path'](None, transports, None) transports.entries.append(syspathnode) transportsByProtocol[syspathnode.protocol] = syspathnode
if ExplorerNodes.nodeRegByProt.has_key('sys.path'): syspathnode = ExplorerNodes.nodeRegByProt['sys.path']( None, transports, None) transports.entries.append(syspathnode) transportsByProtocol[syspathnode.protocol] = syspathnode
def buildExplorerNodes(self): transports = ExplorerNodes.RootNode('Transport', EditorHelper.imgFolder) transports.parent = transports transports.protocol = 'root'
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
def destroy(self, dont_pop=0):
def destroy(self):
def destroy(self, dont_pop=0): self.menu.Destroy() Explorer.BaseExplorerList.destroy(self, dont_pop)
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
Explorer.BaseExplorerList.destroy(self, dont_pop)
Explorer.BaseExplorerList.destroy(self)
def destroy(self, dont_pop=0): self.menu.Destroy() Explorer.BaseExplorerList.destroy(self, dont_pop)
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
ExplorerNodes.fileOpenDlgProtReg.append('zip')
def OnFDEndLabelEdit(self, event): newText = event.GetText() event.Skip() if newText != self.oldLabelVal:# and isinstance(self.list.node, ZopeItemNode): self.node.renameItem(self.oldLabelVal, newText) self.refreshCurrent() self.selectItemNamed(newText) self.EnsureVisible(self.selected)
2d64d49b99aa8c5c52c88b719394e5fabcd92cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2d64d49b99aa8c5c52c88b719394e5fabcd92cf4/FileDlg.py
'gmt+430':'GMT+0430', 'gmt+0430':'GMT+0430',
'gmt+430':'GMT+0430', 'gmt+0430':'GMT+0430',
def info(self,t=None): idx=self.index(t)[0] zs =self.az[self.tinfo[idx][2]:] return self.tinfo[idx][0],self.tinfo[idx][1],zs[:find(zs,'\000')]
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
'gmt+830':'GMT+0830', 'gmt+0830':'GMT+0830',
'gmt+830':'GMT+0830', 'gmt+0830':'GMT+0830',
def info(self,t=None): idx=self.index(t)[0] zs =self.az[self.tinfo[idx][2]:] return self.tinfo[idx][0],self.tinfo[idx][1],zs[:find(zs,'\000')]
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
'gmt+1230':'GMT+1230',
'gmt+1230':'GMT+1230',
def info(self,t=None): idx=self.index(t)[0] zs =self.az[self.tinfo[idx][2]:] return self.tinfo[idx][0],self.tinfo[idx][1],zs[:find(zs,'\000')]
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
'gmt-430':'GMT-0430', 'gmt-0430':'GMT-0430',
'gmt-430':'GMT-0430', 'gmt-0430':'GMT-0430',
def info(self,t=None): idx=self.index(t)[0] zs =self.az[self.tinfo[idx][2]:] return self.tinfo[idx][0],self.tinfo[idx][1],zs[:find(zs,'\000')]
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
'gmt-830':'GMT-0830', 'gmt-0830':'GMT-0830',
'gmt-830':'GMT-0830', 'gmt-0830':'GMT-0830',
def info(self,t=None): idx=self.index(t)[0] zs =self.az[self.tinfo[idx][2]:] return self.tinfo[idx][0],self.tinfo[idx][1],zs[:find(zs,'\000')]
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
'ut':'Universal',
'ut':'Universal',
def info(self,t=None): idx=self.index(t)[0] zs =self.az[self.tinfo[idx][2]:] return self.tinfo[idx][0],self.tinfo[idx][1],zs[:find(zs,'\000')]
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def _findLocalTimeZoneName(isDST): if not daylight: # Daylight savings does not occur in this time zone. isDST = 0 try: # Get the name of the current time zone depending # on DST. _localzone = _cache._zmap[lower(tzname[isDST])] except: try: # Generate a GMT-offset zone name. if isDST: localzone = altzone else: localzon...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def _calcDependentSecond(tz, t): # Calculates the timezone-dependent second (integer part only) # from the timezone-independent second. fset = _tzoffset(tz, t) return fset + long(math.floor(t)) + long(EPOCH) - 86400L
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
affecting the absolute value of the object. DateTime objects may be created from a wide variety of string
affecting the absolute value of the object. DateTime objects may be created from a wide variety of string
def safelocaltime(t): '''localtime with a safety zone.''' try: t_int = int(t) except OverflowError: raise 'TimeError', 'The time %f is beyond the range ' \ 'of this Python implementation.' % float(t) rval = localtime(t_int) return rval
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
numbers of days since January 1, 1901, using the standard int,
numbers of days since January 1, 1901, using the standard int,
def safelocaltime(t): '''localtime with a safety zone.''' try: t_int = int(t) except OverflowError: raise 'TimeError', 'The time %f is beyond the range ' \ 'of this Python implementation.' % float(t) rval = localtime(t_int) return rval
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
A DateTime object always maintains its value as an absolute
A DateTime object always maintains its value as an absolute
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
- If the function is called with no arguments, then the current date/time is returned, represented in the
- If the function is called with no arguments, then the current date/time is returned, represented in the
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
As a general rule, any date-time representation that is
As a general rule, any date-time representation that is
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
Numeric argument, the number is assumed to be a floating point value such as that returned by
Numeric argument, the number is assumed to be a floating point value such as that returned by
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
A DateTime object is returned that represents
A DateTime object is returned that represents
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
The date-time value returned is the given offset number of
The date-time value returned is the given offset number of
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
in gmt (such as those returned by time.time()) and the
in gmt (such as those returned by time.time()) and the
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
will raise a DateTimeError. The module function Timezones() will return a list of the timezones recognized by the DateTime module. Recognition of
will raise a DateTimeError. The module function Timezones() will return a list of the timezones recognized by the DateTime module. Recognition of
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
_month_len =((0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31),
_month_len =((0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31),
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __init__(self,*args): """Return a new date-time object
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def localZone(self, ltm=None): '''Returns the time zone on the given date. The time zone can change according to daylight savings.''' if not DateTime._multipleZones: return DateTime._localzone0 if ltm == None: ltm = localtime(time()) isDST = ltm[8] lz = isDST and DateTime._localzone1 or DateTime._localzone0 return lz
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def _parse(self,string): # Parse date-time components from a string month=year=tz=tm=None spaces =self.space_chars intpat =self.int_pattern fltpat =self.flt_pattern wordpat =self.name_pattern delimiters =self.delimiters MonthNumbers =self._monthmap DayOfWeekNames=self._daymap ValidZones ...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
if ts_results:
if ts_results:
def _parse(self,string): # Parse date-time components from a string month=year=tz=tm=None spaces =self.space_chars intpat =self.int_pattern fltpat =self.flt_pattern wordpat =self.name_pattern delimiters =self.delimiters MonthNumbers =self._monthmap DayOfWeekNames=self._daymap ValidZones ...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def _parse(self,string): # Parse date-time components from a string month=year=tz=tm=None spaces =self.space_chars intpat =self.int_pattern fltpat =self.flt_pattern wordpat =self.name_pattern delimiters =self.delimiters MonthNumbers =self._monthmap DayOfWeekNames=self._daymap ValidZones ...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def _parse(self,string): # Parse date-time components from a string month=year=tz=tm=None spaces =self.space_chars intpat =self.int_pattern fltpat =self.flt_pattern wordpat =self.name_pattern delimiters =self.delimiters MonthNumbers =self._monthmap DayOfWeekNames=self._daymap ValidZones ...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def _parse(self,string): # Parse date-time components from a string month=year=tz=tm=None spaces =self.space_chars intpat =self.int_pattern fltpat =self.flt_pattern wordpat =self.name_pattern delimiters =self.delimiters MonthNumbers =self._monthmap DayOfWeekNames=self._daymap ValidZones ...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
OR a floating point number such as that which is returned by the python time module. Returns true if the object
OR a floating point number such as that which is returned by the python time module. Returns true if the object
def greaterThan(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than the specified DateTime or time module style time. Revised to give more correct results t...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than or equal to the
OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than or equal to the
def greaterThanEqualTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than or equal to the specified DateTime or time module style time. Revised to give mor...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
"""
"""
def greaterThanEqualTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time greater than or equal to the specified DateTime or time module style time. Revised to give mor...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
OR a floating point number such as that which is returned by the python time module. Returns true if the object
OR a floating point number such as that which is returned by the python time module. Returns true if the object
def equalTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time equal to the specified DateTime or time module style time. Revised to give more correct results through c...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
OR a floating point number such as that which is returned by the python time module. Returns true if the object
OR a floating point number such as that which is returned by the python time module. Returns true if the object
def notEqualTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time not equal to the specified DateTime or time module style time. Revised to give more correct results th...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
OR a floating point number such as that which is returned by the python time module. Returns true if the object
OR a floating point number such as that which is returned by the python time module. Returns true if the object
def lessThan(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time less than the specified DateTime or time module style time. Revised to give more correct results through...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time less than or equal to the specified
OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time less than or equal to the specified
def lessThanEqualTo(self,t): """Compare this DateTime object to another DateTime object OR a floating point number such as that which is returned by the python time module. Returns true if the object represents a date/time less than or equal to the specified DateTime or time module style time. Revised to give more corr...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def Day(self):
def Day(self):
def Day(self): """Return the full name of the day of the week""" return self._fday
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def TimeMinutes(self):
def TimeMinutes(self):
def TimeMinutes(self): """Return the time string for an object not showing seconds.""" return '%2.2d:%2.2d' % (self._hour,self._minute)
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
"""A DateTime may be added to a number and a number may be
"""A DateTime may be added to a number and a number may be
def __add__(self,other): """A DateTime may be added to a number and a number may be added to a DateTime; two DateTimes cannot be added.""" if hasattr(other,'_t'): raise self.DateTimeError,'Cannot add two DateTimes' o=float(other) tz = self._tz t = (self._t + (o*86400.0)) d = (self._d + o) s = d - math.floor(d) ms = t ...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
DateTime, however, a DateTime may not be subtracted from
DateTime, however, a DateTime may not be subtracted from
def __sub__(self,other): """Either a DateTime or a number may be subtracted from a DateTime, however, a DateTime may not be subtracted from a number.""" if hasattr(other, '_d'): if 0: # This logic seems right but is incorrect. my_t = self._t + _tzoffset(self._tz, self._t) ob_t = other._t + _tzoffset(other._tz, other._...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
"""Convert a DateTime to a string that
"""Convert a DateTime to a string that
def __repr__(self): """Convert a DateTime to a string that looks like a Python expression.""" return '%s(\'%s\')' % (self.__class__.__name__,str(self))
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __str__(self): """Convert a DateTime to a string.""" y,m,d =self._year,self._month,self._day h,mn,s,t=self._hour,self._minute,self._second,self._tz if(h+mn+s): if (s-int(s))> 0.0001: try: # For the seconds, print two digits # before the decimal point. subsec = split('%g' % s, '.')[1] return '%4.4d/%2.2d/%2.2d %2....
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
NOTE: __cmp__ support is provided for backward
NOTE: __cmp__ support is provided for backward
def __cmp__(self,obj): """Compare a DateTime with another DateTime object, or a float such as those returned by time.time().
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
def __parse_iso8601(self,s): """ parse an ISO 8601 compliant date """ year=0 month=day=1 hour=minute=seconds=hour_off=min_off=0 datereg = re.compile('([0-9]{4})(-([0-9][0-9]))?(-([0-9][0-9]))?') timereg = re.compile('([0-9]{2})(:([0-9][0-9]))?(:([0-9][0-9]))?(\.[0-9]{1,20})?') # Date part fields = datereg.split(s.st...
dac48d40f92c430f5ac9efaf8d551dd274897852 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dac48d40f92c430f5ac9efaf8d551dd274897852/DateTime.py
raise 'Unauthorized', 'X-Auth header missing or incorrect'
raise Exception, 'Unauthorized: X-Auth header missing or incorrect'
def _authenticate(self): h = self.headers if auth_str and (not h.has_key('x-auth') or h['x-auth'] != auth_str): raise 'Unauthorized', 'X-Auth header missing or incorrect'
4730208ac78d64cfb0b2667a19e1b1a299ac2c32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4730208ac78d64cfb0b2667a19e1b1a299ac2c32/ChildProcessServer.py
self.extend_extent(lineend)
self.extent = self.extent + (lineend - linestart)
def _addmethod(self, name, sig, linestart, lineend = None, to_bottom = 1): if not lineend: lineend = linestart self.methods[name] = CodeBlock(sig, linestart, lineend) if to_bottom: self.method_order.append(name) else: self.method_order.insert(0, name) self.extend_extent(lineend)
2574920fd37d74669790b032dc0f26f8dd5aedb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2574920fd37d74669790b032dc0f26f8dd5aedb7/moduleparse.py
lst.append(self.id)
if self.id in EventCollections.reservedWxIds: name, wId = self.newUnusedItemNames(0) else: wId = self.id lst.append(wId)
def addIds(self, lst): if self.id is not None: lst.append(self.id)
3e2f0c03cfd82f8a8c2d6034ea4066ffba0ae829 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3e2f0c03cfd82f8a8c2d6034ea4066ffba0ae829/BaseCompanions.py
lst.append(constr.params[self.idProp])
wId = constr.params[self.idProp] if wId in EventCollections.reservedWxIds: name, wId = self.newUnusedItemNames(0) lst.append(wId)
def addIds(self, lst): for constr in self.textConstrLst: lst.append(constr.params[self.idProp])
3e2f0c03cfd82f8a8c2d6034ea4066ffba0ae829 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3e2f0c03cfd82f8a8c2d6034ea4066ffba0ae829/BaseCompanions.py
def __init__(self, name, designer, objClass): UtilityDTC.__init__(self, name, designer, objClass) self.editors.update({'Entries': CollectionPropEdit}) self.subCompanions['Entries'] = AcceleratorTableEntriesCDTC
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
def designTimeSource(self): return {'choices':'[]'}
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
def __init__(self, name, designer, parentCompanion, ctrl): CollectionDTC.__init__(self, name, designer, parentCompanion, ctrl)
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
def __init__(self, name, designer, parentCompanion, ctrl): CollectionDTC.__init__(self, name, designer, parentCompanion, ctrl)
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
def SetName(self, oldName, newName): CollectionDTC.SetName(self, oldName, newName)
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
## def __init__(self, name, designer, parent, ctrlClass):
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
return UtilityDTC.vetoedMethods(self)+['GetPosition', 'SetPosition', 'GetSize', 'SetSize']
return UtilityDTC.vetoedMethods(self)+['GetPosition', 'SetPosition', 'GetSize', 'SetSize', 'GetRect', 'SetRect']
def vetoedMethods(self): return UtilityDTC.vetoedMethods(self)+['GetPosition', 'SetPosition', 'GetSize', 'SetSize']
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
def __init__(self, name, designer, parentCompanion, ctrl): CollectionDTC.__init__(self, name, designer, parentCompanion, ctrl) self.editors.update({'Menu': MenuEnumConstrPropEdit, 'Title': StrConstrPropEdit})
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
## def deleteItem(self, idx):
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
## def properties(self):
88a8f0336337f9bed7b31ac216c889a5ade2729b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/88a8f0336337f9bed7b31ac216c889a5ade2729b/UtilCompanions.py
import urllib class GUIFancyURLopener(urllib.FancyURLopener): _user_prompt = '' _passwd_prompt = '' def prompt_user_passwd(self, host, realm): return self._user_prompt, self._passwd_prompt
def OnSave(self, event): ZopeController.OnSave(self, event) # trigger a reload after saving so that errors saved as comments in the # source are displayed self.OnReload(event)
9a80cc073d56b51c3f39184b63f3d6a9bd244611 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9a80cc073d56b51c3f39184b63f3d6a9bd244611/ProdPageTemplates.plug-in.py
url = 'http://%s:%d/%s/source.html'%(props['host'], props['httpport'],
url = 'http://%s:%s@%s:%d/%s/source.html'%(props['username'], props['passwd'], props['host'], props['httpport'],
def generatePage(self): props = self.model.zopeObj.properties url = 'http://%s:%d/%s/source.html'%(props['host'], props['httpport'], self.model.zopeObj.whole_name()) urllib._urlopener = gfurlo = GUIFancyURLopener() gfurlo._user_prompt = props['name'] gfurlo._passwd_prompt = props['passwd'] try: f = urllib.urlopen(url) ...
9a80cc073d56b51c3f39184b63f3d6a9bd244611 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9a80cc073d56b51c3f39184b63f3d6a9bd244611/ProdPageTemplates.plug-in.py
urllib._urlopener = gfurlo = GUIFancyURLopener() gfurlo._user_prompt = props['name'] gfurlo._passwd_prompt = props['passwd'] try: f = urllib.urlopen(url) return f.read() finally: urllib._urlopener = None
import urllib f = urllib.urlopen(url) return f.read()
def generatePage(self): props = self.model.zopeObj.properties url = 'http://%s:%d/%s/source.html'%(props['host'], props['httpport'], self.model.zopeObj.whole_name()) urllib._urlopener = gfurlo = GUIFancyURLopener() gfurlo._user_prompt = props['name'] gfurlo._passwd_prompt = props['passwd'] try: f = urllib.urlopen(url) ...
9a80cc073d56b51c3f39184b63f3d6a9bd244611 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9a80cc073d56b51c3f39184b63f3d6a9bd244611/ProdPageTemplates.plug-in.py
>>> def foo(x, y, z=-1.0, *args, **kw):
21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py
>>> def foo(x, y, z=-1.0, *args, **kw):
21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py
>>> def foo(x, y, z=-1.0, *args, **kw):
21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py
>>> def foo(x, y, z=-1.0, *args, **kw):
21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py