bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def build_partitions(self): gtk.gdk.threads_enter() self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % ...
def build_partitions(self): gtk.gdk.threads_enter() self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % ...
455,500
def set_timezone(self, newtimezone):
def set_timezone(self, newtimezone):
455,501
def do_expose_event(self, event):
def do_expose_event(self, event):
455,502
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) model.set(iter, 0, "Keyboard layout: <b>%s</b>" % self.keyboard_layo...
455,503
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, _("Language: ") + "<b>%s</b>" % self.locale) iter = model.appe...
455,504
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,505
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,506
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,507
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,508
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,509
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,510
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,511
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
def show_overview(self): ''' build the summary page ''' model = gtk.TreeStore(str) top = model.append(None) model.set(top, 0, "Filesystem operations") top = model.append(None) model.set(top, 0, _("Localization")) iter = model.append(top) model.set(iter, 0, "Language: <b>%s</b>" % self.locale) iter = model.append(top) ...
455,512
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
455,513
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
455,514
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
455,515
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
455,516
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
455,517
def __init__(self, fullscreen=False): self.resource_dir = '/usr/share/live-installer/' #self.glade = 'interface.glade' self.glade = os.path.join(self.resource_dir, 'interface.glade') self.wTree = gtk.glade.XML(self.glade, 'main_window')
def self.window.show_all() __init__(self, self.window.show_all() fullscreen=False): self.window.show_all() self.resource_dir self.window.show_all() = self.window.show_all() '/usr/share/live-installer/' self.window.show_all() #self.glade self.window.show_all() = self.window.show_all() 'interface.glade' self.wind...
455,518
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,519
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,520
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,521
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,522
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,523
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,524
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,525
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,526
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,527
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,528
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
455,529
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
455,530
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
455,531
def add_mount(self, device=None, mountpoint=None, filesystem=None, options=None,format=False): if(not self.mapping.has_key(device)): self.mapping[device] = fstab_entry(device, mountpoint, filesystem, options) self.mapping[device].format = format
def add_mount(self, device=None, mountpoint=None, filesystem=None, options=None,format=""): if(not self.mapping.has_key(device)): self.mapping[device] = fstab_entry(device, mountpoint, filesystem, options) self.mapping[device].format = format
455,532
def build_disks(self): import subprocess self.disks = {} inxi = subprocess.Popen("inxi -c0 -D", shell=True, stdout=subprocess.PIPE) parent = None for line in inxi.stdout: line = line.rstrip("\r\n") if(line.startswith("Disks:")): line = line.replace("Disks:", "") device = None sections = line.split(":") for section in s...
defgtk.gdk.threads_leave() build_disks(self):gtk.gdk.threads_leave() importgtk.gdk.threads_leave() subprocessgtk.gdk.threads_leave() self.disksgtk.gdk.threads_leave() =gtk.gdk.threads_leave() {}gtk.gdk.threads_leave() inxigtk.gdk.threads_leave() =gtk.gdk.threads_leave() subprocess.Popen("inxigtk.gdk.threads_leave() -c0...
455,533
def build_partitions(self): self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % self.device_node) impor...
defgtk.gdk.threads_leave() build_partitions(self):gtk.gdk.threads_leave() self.window.set_sensitive(False)gtk.gdk.threads_leave() #gtk.gdk.threads_leave() "busy"gtk.gdk.threads_leave() cursor.gtk.gdk.threads_leave() cursorgtk.gdk.threads_leave() =gtk.gdk.threads_leave() gtk.gdk.Cursor(gtk.gdk.WATCH)gtk.gdk.threads_leav...
455,534
def build_partitions(self): self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % self.device_node) impor...
defgtk.gdk.threads_enter() build_partitions(self):gtk.gdk.threads_enter() self.window.set_sensitive(False)gtk.gdk.threads_enter() #gtk.gdk.threads_enter() "busy"gtk.gdk.threads_enter() cursor.gtk.gdk.threads_enter() cursorgtk.gdk.threads_enter() =gtk.gdk.threads_enter() gtk.gdk.Cursor(gtk.gdk.WATCH)gtk.gdk.threads_ente...
455,535
def build_partitions(self): self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % self.device_node) impor...
def build_partitions(self): self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % self.device_node) impor...
455,536
def build_partitions(self): self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % self.device_node) impor...
defgtk.gdk.threads_enter() build_partitions(self):gtk.gdk.threads_enter() self.window.set_sensitive(False)gtk.gdk.threads_enter() #gtk.gdk.threads_enter() "busy"gtk.gdk.threads_enter() cursor.gtk.gdk.threads_enter() cursorgtk.gdk.threads_enter() =gtk.gdk.threads_enter() gtk.gdk.Cursor(gtk.gdk.WATCH)gtk.gdk.threads_ente...
455,537
def build_partitions(self): self.window.set_sensitive(False) # "busy" cursor. cursor = gtk.gdk.Cursor(gtk.gdk.WATCH) self.window.window.set_cursor(cursor) from progress import ProgressDialog dialog = ProgressDialog() dialog.show(title=_("Installer"), label=_("Scanning disk %s for partitions") % self.device_node) impor...
defgtk.gdk.threads_leave() build_partitions(self):gtk.gdk.threads_leave() self.window.set_sensitive(False)gtk.gdk.threads_leave() #gtk.gdk.threads_leave() "busy"gtk.gdk.threads_leave() cursor.gtk.gdk.threads_leave() cursorgtk.gdk.threads_leave() =gtk.gdk.threads_leave() gtk.gdk.Cursor(gtk.gdk.WATCH)gtk.gdk.threads_leav...
455,538
def wizard_cb(self, widget, goback, data=None): ''' wizard buttons ''' sel = self.wTree.get_widget("notebook1").get_current_page() # check each page for errors if(not goback): if(sel == self.PAGE_LANGUAGE): self.activate_page(self.PAGE_KEYBOARD) elif(sel == self.PAGE_KEYBOARD): self.activate_page(self.PAGE_PARTITIONS) ...
def wizard_cb(self, widget, goback, data=None): ''' wizard buttons ''' sel = self.wTree.get_widget("notebook1").get_current_page() # check each page for errors if(not goback): if(sel == self.PAGE_LANGUAGE): self.activate_page(self.PAGE_KEYBOARD) elif(sel == self.PAGE_KEYBOARD): self.activate_page(self.PAGE_PARTITIONS) ...
455,539
def do_install(self): if "--debug" in sys.argv: print "DEBUG MODE - INSTALLATION PROCESS NOT LAUNCHED" sys.exit(0) ''' Actually perform the installation .. ''' inst = self.installer # Create fstab files = fstab() model = self.wTree.get_widget("treeview_disks").get_model() for row in model: if(row[2] or row[3] is not N...
def do_install(self): if "--debug" in sys.argv: print "DEBUG MODE - INSTALLATION PROCESS NOT LAUNCHED" sys.exit(0) ''' Actually perform the installation .. ''' inst = self.installer # Create fstab files = fstab() model = self.wTree.get_widget("treeview_disks").get_model() for row in model: if(row[2] or row[3] is not N...
455,540
def do_install(self): if "--debug" in sys.argv: print "DEBUG MODE - INSTALLATION PROCESS NOT LAUNCHED" sys.exit(0) ''' Actually perform the installation .. ''' inst = self.installer # Create fstab files = fstab() model = self.wTree.get_widget("treeview_disks").get_model() for row in model: if(row[2] or row[3] is not N...
def do_install(self): if "--debug" in sys.argv: print "DEBUG MODE - INSTALLATION PROCESS NOT LAUNCHED" sys.exit(0) ''' Actually perform the installation .. ''' inst = self.installer # Create fstab files = fstab() model = self.wTree.get_widget("treeview_disks").get_model() for row in model: if(row[2] or row[3] is not N...
455,541
def pbar_pulse(): if(not self.should_pulse): return False self.wTree.get_widget("progressbar").pulse() return self.should_pulse
def pbar_pulse(): if(not self.should_pulse): return False self.wTree.get_widget("progressbar").pulse() return self.should_pulse
455,542
def pbar_pulse(): if(not self.should_pulse): return False self.wTree.get_widget("progressbar").pulse() return self.should_pulse
def pbar_pulse(): if(not self.should_pulse): return False self.wTree.get_widget("progressbar").pulse() return self.should_pulse
455,543
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
455,544
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
def install(self): ''' Install this baby to disk ''' # mount the media location. print " --> Installation started" try: if(not os.path.exists("/target")): os.mkdir("/target") if(not os.path.exists("/source")): os.mkdir("/source") # find the squashfs.. root = self.media root_type = self.media_type if(not os.path.exists(...
455,545
def configure_grub(self): self.update_progress(pulse=True, total=our_total, current=our_current, message=_("Configuring bootloader")) print " --> Running grub-mkconfig" self.run_in_chroot("grub-mkconfig -o /boot/grub/grub.cfg")
def configure_grub(self, our_total, our_current): self.update_progress(pulse=True, total=our_total, current=our_current, message=_("Configuring bootloader")) print " --> Running grub-mkconfig" self.run_in_chroot("grub-mkconfig -o /boot/grub/grub.cfg")
455,546
def check_grub(self): self.update_progress(pulse=True, total=our_total, current=our_current, message=_("Checking bootloader")) print " --> Checking Grub configuration" time.sleep(2) found_theme = False found_entry = False grubfh = open("/boot/grub/grub.cfg", "r") for line in grubfh: line = line.rstrip("\r\n") if("/boot...
def check_grub(self, our_total, our_current): self.update_progress(pulse=True, total=our_total, current=our_current, message=_("Checking bootloader")) print " --> Checking Grub configuration" time.sleep(2) found_theme = False found_entry = False grubfh = open("/boot/grub/grub.cfg", "r") for line in grubfh: line = line....
455,547
def __deepcopy__(self, memo): obj = self.__class__(self.backend, self._username, copy.deepcopy(self._user, memo))
def __deepcopy__(self, memo): obj = self.__class__(self.backend, self._username, copy.deepcopy(self._user, memo))
455,548
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % PREFIX elif category=="doc": PATH = "%s/share/" % PREFIX elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) else: if not catego...
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % PREFIX elif category=="doc": PATH = "%s/share/doc/specto/" % PREFIX elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) else: if...
455,549
def give_files(dir, *extension): files=[] all_files=os.listdir(dir) for file in all_files: ext=(os.path.splitext(file))[1] if ext in extension: files.append(dir + file) return files
def give_files(dir, *extension): files=[] all_files=os.listdir(dir) for file in all_files: ext=(os.path.splitext(file))[1] if ext in extension: files.append(dir + file) return files
455,550
def give_mo_tuples(langs): mo_tuple_list=[] for lang in langs.split(' '): mo_tuple_list.append((give_mo_path(lang), [give_mo_file(lang)])) return mo_tuple_list
def give_mo_tuples(langs): mo_tuple_list=[] for lang in langs.split(' '): mo_tuple_list.append((give_mo_path(lang), [give_mo_file(lang)])) return mo_tuple_list
455,551
def check(self): """ Check for new news on your greader account. """ try: self.newMsg = 0 self.unreadMsg = 0 greader = Greader(self.username, self.password, "specto") SID = greader.login() feed_db = greader.get_unread_items(SID) for feed in feed_db: self.unreadMsg += feed.messages if feed.messages > 0 and self.news_inf...
def check(self): """ Check for new news on your greader account. """ try: self.newMsg = 0 self.unreadMsg = 0 greader = Greader(self.username, self.password, "specto") auth = greader.login() feed_db = greader.get_unread_items(auth) for feed in feed_db: self.unreadMsg += feed.messages if feed.messages > 0 and self.news_i...
455,552
def login(self): #login / get SED header = {'User-agent' : self.source} post_data = urllib.urlencode({ 'Email': self.user, 'Passwd': self.password, 'service': 'reader', 'source': self.source, 'continue': self.google_url, }) request = urllib2.Request(self.login_url, post_data, header) try : f = urllib2.urlopen( request...
def login(self): #login / get SED header = {'User-agent' : self.source} post_data = urllib.urlencode({ 'Email': self.user, 'Passwd': self.password, 'service': 'reader', 'source': self.source, 'continue': self.google_url, }) request = urllib2.Request(self.login_url, post_data, header) try : f = urllib2.urlopen( request...
455,553
def get_results(self, SID, url): #get results from url header = {'User-agent' : self.source} header['Cookie']='Name=SID;SID=%s;Domain=.google.com;Path=/;Expires=160000000000' % SID request = urllib2.Request(url, None, header) try : f = urllib2.urlopen( request ) result = f.read() except: raise Exception('Error getti...
def get_results(self, auth, url): #get results from url header = {'User-agent' : self.source} header['Cookie']='Name=SID;SID=%s;Domain=.google.com;Path=/;Expires=160000000000' % SID request = urllib2.Request(url, None, header) try : f = urllib2.urlopen( request ) result = f.read() except: raise Exception('Error gett...
455,554
def get_results(self, SID, url): #get results from url header = {'User-agent' : self.source} header['Cookie']='Name=SID;SID=%s;Domain=.google.com;Path=/;Expires=160000000000' % SID request = urllib2.Request(url, None, header) try : f = urllib2.urlopen( request ) result = f.read() except: raise Exception('Error getti...
def get_results(self, SID, url): #get results from url header = {'User-agent' : self.source} header['Authorization']='GoogleLogin auth=%s' % auth request = urllib2.Request(url, None, header) try : f = urllib2.urlopen( request ) result = f.read() except: raise Exception('Error getting data from %s' % url) return res...
455,555
def get_unread_items(self, SID): feed_db = [] data = self.get_results(SID, self.read_items_url) feed_data = self.list_feeds(SID) node = ET.XML(data) feed_node = ET.XML(feed_data) total_unread = 0 node = node.find("list") feed_node = feed_node.find("list") for o in node.findall("object"): feed = "" total_unread = 0 fee...
def get_unread_items(self, auth): feed_db = [] data = self.get_results(SID, self.read_items_url) feed_data = self.list_feeds(SID) node = ET.XML(data) feed_node = ET.XML(feed_data) total_unread = 0 node = node.find("list") feed_node = feed_node.find("list") for o in node.findall("object"): feed = "" total_unread = 0 fe...
455,556
def get_unread_items(self, SID): feed_db = [] data = self.get_results(SID, self.read_items_url) feed_data = self.list_feeds(SID) node = ET.XML(data) feed_node = ET.XML(feed_data) total_unread = 0 node = node.find("list") feed_node = feed_node.find("list") for o in node.findall("object"): feed = "" total_unread = 0 fee...
def get_unread_items(self, SID): feed_db = [] data = self.get_results(auth, self.read_items_url) feed_data = self.list_feeds(auth) node = ET.XML(data) feed_node = ET.XML(feed_data) total_unread = 0 node = node.find("list") feed_node = feed_node.find("list") for o in node.findall("object"): feed = "" total_unread = 0 f...
455,557
def get_state(self): """ Return True if the notifier window is visible. """ return self.notifier.flags() & gtk.VISIBLE
def get_state(self): """ Return True if the notifier window is visible. """ return self.notifier.flags() & gtk.VISIBLE
455,558
def __init__(self): self.player = None
defself.playing = False __init__(self):self.playing = False self.playerself.playing = False =self.playing = False Noneself.playing = False
455,559
def add_clicked(self, widget): """ Add the watch to the watches repository. """ values = {} #get the standard options from a watch values['name'] = self.name.get_text()
def add_clicked(self, widget): """ Add the watch to the watches repository. """ values = {} #get the standard options from a watch values['name'] = self.name.get_text()
455,560
def add_clicked(self, widget): """ Add the watch to the watches repository. """ values = {} #get the standard options from a watch values['name'] = self.name.get_text()
def add_clicked(self, widget): """ Add the watch to the watches repository. """ values = {} #get the standard options from a watch values['name'] = self.name.get_text()
455,561
def get_add_gui_info(): return [("username", spectlib.gtkconfig.Entry(_("Username"))), ("password", spectlib.gtkconfig.PasswordEntry(_("Password"))), ("host", spectlib.gtkconfig.Entry(_("Host"))), ("ssl", spectlib.gtkconfig.CheckButton(_("Use SSL"))), ("folder", spectlib.gtkconfig.Entry(_("Folder (optional)")))]
def get_add_gui_info(): return [("username", spectlib.gtkconfig.Entry(_("Username"))), ("password", spectlib.gtkconfig.PasswordEntry(_("Password"))), ("host", spectlib.gtkconfig.Entry(_("Host"))), ("ssl", spectlib.gtkconfig.CheckButton(_("Use SSL"))), ("folder", spectlib.gtkconfig.Entry(_("Folder (optional)")))]
455,562
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % sys.prefix elif category=="doc": PATH = "%s/share/doc/specto/" % sys.prefix elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) ...
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % PREFIX elif category=="doc": PATH = "%s/share/doc/specto/" % sys.prefix elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) else...
455,563
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % sys.prefix elif category=="doc": PATH = "%s/share/doc/specto/" % sys.prefix elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) ...
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % sys.prefix elif category=="doc": PATH = "%s/share/" % PREFIX elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) else: if not ca...
455,564
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % sys.prefix elif category=="doc": PATH = "%s/share/doc/specto/" % sys.prefix elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) ...
def get_path(category=None): """ Return the correct path. """ if not os.path.exists('data') or not os.path.exists('spectlib'): if not category: PATH = "%s/share/specto/" % sys.prefix elif category=="doc": PATH = "%s/share/doc/specto/" % sys.prefix elif category=="src": PATH = os.path.dirname(os.path.abspath(__file__)) ...
455,565
def get_dists(*args): """ Find all dists refered in args """ ds = parse(*args)['dist'] dists = get_dists_helper(ds,[]) dists.append("src\\basic.dist") #print dists return dists
def get_dists(*args): """ Find all dists refered in args """ ds = parse(*args)['dist'] dists = get_dists_helper(ds,[]) dists.append("src/basic.dist") #print dists return dists
455,566
def base_url(self): return '%s/%s' % (THEME_URL, self.directory)
def base_url(self): return '%s/%s' % (THEME_URL, self.directory)
455,567
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
455,568
def submitQueryWithLock(self, query, conditions): """Simplified mysqlproxy version. @returns result table name, lock table name, but before completion.""" # Short-circuit the standard proxy/client queries. quickResult = app.computeShortCircuitQuery(query, conditions) if quickResult: return quickResult taskId = self._i...
defsubmitQueryWithLock(self,query,conditions):"""Simplifiedmysqlproxyversion.@returnsresulttablename,locktablename,butbeforecompletion."""#Short-circuitthestandardproxy/clientqueries.quickResult=app.computeShortCircuitQuery(query,conditions)ifquickResult:returnquickResulttaskId=self._idCounter#RAWhazard,butthispartissi...
455,569
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
455,570
def submit(self, chunk, table, q): saveName = self._saveName(chunk) handle = submitQuery(self._sessionId, chunk, q, saveName, table) self._inFlight[chunk] = (handle, table) print "Chunk %d to %s (%s)" % (chunk, saveName, table)
def submit(self, chunk, table, q): saveName = self._saveName(chunk) handle = submitQuery(self._sessionId, chunk, q, saveName, table) self._inFlight[chunk] = (handle, table) print "Chunk %d to %s (%s)" % (chunk, saveName, table)
455,571
def _evaluateHints(self, hints, pmap): """Modify self.fullSky and self.partitionCoverage according to spatial hints""" self._isFullSky = True self._intersectIter = pmap self._dbContext = "LSST" ## FIXME. should be configurable if hints: regions = self._parseRegions(hints) self._dbContext = hints.get("db", "") ids = hin...
def _evaluateHints(self, hints, pmap): """Modify self.fullSky and self.partitionCoverage according to spatial hints""" self._isFullSky = True self._intersectIter = pmap self._dbContext = "LSST" ## FIXME. should be configurable if hints: regions = self._parseRegions(hints) self._dbContext = hints.get("db", "") ids = hin...
455,572
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
455,573
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
def __init__(self, query, hints, pmap, reportError, resultName=""): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:18] self....
455,574
def _makeChunkQuery(self, chunkId, table): # Prefix with empty subchunk spec. query = self._headerFunc() +"\n" ref = self._pConfig.chunkMapping.getMapReference(chunkId,0) query += self._createTableTmpl % table query += self._substitution.transform(ref) print query return query
def _makeChunkQuery(self, chunkId, table): # Prefix with empty subchunk spec. query = self._headerFunc() +"\n" ref = self._pConfig.chunkMapping.getMapReference(chunkId,0) query += self._createTableTmpl % table query += self._substitution.substituteOnly(ref) print query return query
455,575
def _makeSubChunkQuery(self, chunkId, subIter, table): qList = [None] # Include placeholder for header scList = None # Extract list first. if self._isFullSky: scList = [x for x in subIter] else: scList = [sub for (sub, regions) in subIter]
def _makeSubChunkQuery(self, chunkId, subIter, table): qList = [None] # Include placeholder for header scList = None # Extract list first. if self._isFullSky: scList = [x for x in subIter] else: scList = [sub for (sub, regions) in subIter]
455,576
def finish(self): for (k,v) in self._inFlight.items(): s = tryJoinQuery(self._sessionId, v[0]) print "State of", k, "is", getQueryStateString(s)
def finish(self): for (k,v) in self._inFlight.items(): s = tryJoinQuery(self._sessionId, v[0]) print "State of", k, "is", getQueryStateString(s)
455,577
def finish(self): for (k,v) in self._inFlight.items(): s = tryJoinQuery(self._sessionId, v[0]) print "State of", k, "is", getQueryStateString(s)
def finish(self): for (k,v) in self._inFlight.items(): s = tryJoinQuery(self._sessionId, v[0]) print "State of", k, "is", getQueryStateString(s)
455,578
def main(): parser = OptionParser() # Db-backed task tracking is not supported right now. # parser.add_option("--reset-tables", action="store_true", # dest="resettables", default=False, # help="Reset tables instead of starting the server ()") parser.add_option("-t", "--test", action...
def main(): parser = OptionParser() # Db-backed task tracking is not supported right now. # parser.add_option("--reset-tables", action="store_true", # dest="resettables", default=False, # help="Reset tables instead of starting the server ()") parser.add_option("-t", "--test", action...
455,579
def _joinAll(self): for (c,xo) in self.running.items(): xo.join() t = self.running.pop(c) self.finished[c] = t.successful if not xo.successful: print "Unsuccessful with %s on chunk %d" % (self.queryStr, c) self._brokenChunks.append(p) # discard thread object.
def _joinAll(self): for (c,xo) in self.running.items(): xo.join() t = self.running.pop(c) self.finished[c] = t.successful if not xo.successful: print "Unsuccessful with %s on chunk %d" % (self.queryStr, c) self._brokenChunks.append(c) # discard thread object.
455,580
def _move(self): chunkCount = len(self._chunkFiles) nominal, extra = divmod(chunkCount, self._opts.dirs) print chunkCount, "in dirs with at least", nominal start = 0
def _move(self): chunkCount = len(self._chunkFiles) nominal, extra = divmod(chunkCount, self._opts.dirs) print chunkCount, "in dirs with at least", nominal start = 0
455,581
def _move(self): chunkCount = len(self._chunkFiles) nominal, extra = divmod(chunkCount, self._opts.dirs) print chunkCount, "in dirs with at least", nominal start = 0
def_move(self):chunkCount=len(self._chunkFiles)nominal,extra=divmod(chunkCount,self._opts.dirs)printchunkCount,"indirswithatleast",nominalstart=0
455,582
def __init__(self, query): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryMunger = None ## sqlparser.QueryMunger() self.db = Persistence() self.running = {} self.resultLo...
def __init__(self, query): self.queryStr = query.strip()# Pull trailing whitespace # Force semicolon to facilitate worker-side splitting if self.queryStr[-1] != ";": # Add terminal semicolon self.queryStr += ";" self.queryMunger = None ## sqlparser.QueryMunger() self.db = Persistence() self.running = {} self.resultLo...
455,583
def invoke(self): print "Query invoking..." stats = time.qServQueryTimer[time.qServRunningName] stats["queryActionStart"] = time.time() self.queryMunger = sqlparser.QueryMunger(self.queryStr) # 64bit hash is enough for now(testing). self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:16] self.resultPath = self.set...
deftriedAgain = False invoke(self):triedAgain = False printtriedAgain = False "QuerytriedAgain = False invoking..."triedAgain = False statstriedAgain = False =triedAgain = False time.qServQueryTimer[time.qServRunningName]triedAgain = False stats["queryActionStart"]triedAgain = False =triedAgain = False time.time()tried...
455,584
def invoke(self): print "Query invoking..." stats = time.qServQueryTimer[time.qServRunningName] stats["queryActionStart"] = time.time() self.queryMunger = sqlparser.QueryMunger(self.queryStr) # 64bit hash is enough for now(testing). self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:16] self.resultPath = self.set...
def invoke(self): print "Query invoking..." stats = time.qServQueryTimer[time.qServRunningName] stats["queryActionStart"] = time.time() self.queryMunger = sqlparser.QueryMunger(self.queryStr) # 64bit hash is enough for now(testing). self.queryHash = hashlib.md5(self.queryStr).hexdigest()[:16] self.resultPath = self.set...
455,585
def __repr__ (self): """ Indicate both the fact that this is a wrapped WMI object and the WMI object's own identifying class. """ try: return "<%s: %s>" % (self.__class__.__name__, str (self.Path_.Path)) except pywintypes.com_error: handle_com_error ()
def __repr__ (self): """ Indicate both the fact that this is a wrapped WMI object and the WMI object's own identifying class. """ try: return "<%s: %s>" % (self.__class__.__name__, self.Path_.Path.encode ("ascii", "backslashreplace")) except pywintypes.com_error: handle_com_error ()
455,586
def run_once(self, pair, test, time, stream_list, cycles): print "running on %s and %s\n" % (pair[0], pair[1])
def run_once(self, pair, test, time, stream_list, cycles): print "running on %s and %s\n" % (pair[0], pair[1])
455,587
def _article_report(client, db, options): auids, auname = _get_auids(client) host, port = options.host.split(':',1) auyear = {} austatus = {} aucreated = {} aulastcrawlresult = {} aucontentsize = {} audisksize = {} aurepository = {} auarticles = {} cursor = db.cursor() for auid in auids: rerun = True numRuns = 0 while ...
def _article_report(client, db, options): auids, auname = _get_auids(client) host, port = options.host.split(':',1) auyear = {} austatus = {} aucreated = {} aulastcrawlresult = {} aucontentsize = {} audisksize = {} aurepository = {} auarticles = {} cursor = db.cursor() for auid in auids: rerun = True numRuns = 0 while ...
455,588
def _article_report(client, db, options): auids, auname = _get_auids(client) host, port = options.host.split(':',1) auyear = {} austatus = {} aucreated = {} aulastcrawlresult = {} aucontentsize = {} audisksize = {} aurepository = {} auarticles = {} cursor = db.cursor() for auid in auids: rerun = True numRuns = 0 while ...
defelse: cursor.execute("""INSERT INTO burp(machinename, port, rundate, auname, auid, auyear, austatus, aulastcrawlresult, aucontentsize, audisksize, aurepository, numarticles, publisher, created) VALUES ("%s", "%s", NOW(), "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "default", NULL)""" % \ (host, port, auna...
455,589
def __escape(str): from xml.sax import saxutils return saxutils.escape(str).decode('utf-8').encode('ascii', 'xmlcharrefreplace')
def __escape(str): from xml.sax import saxutils return saxutils.escape(str).replace('"', '&apos;').decode('utf-8').encode('ascii', 'xmlcharrefreplace')
455,590
def __process(tdb, options): current_pub = None if options.style == TdbxmlConstants.OPTION_STYLE_LEGACY: print '''\ <property name="org.lockss.title">
def __process(tdb, options): current_pub = None if options.style == TdbxmlConstants.OPTION_STYLE_LEGACY: print '''\ <property name="org.lockss.title">
455,591
def __process(tdb, options): fields = options.fields.split(',') result = [[lam(au) or '' for lam in map(tdbq.str_to_lambda_au, fields)] for au in tdb.aus()] if options.style == TdboutConstants.OPTION_STYLE_CSV: import csv if options.headings: result = [[w.capitalize() for w in fields]] + result if options.warnings: fro...
def __process(tdb, options): fields = options.fields.split(',') result = [[lam(au) or '' for lam in map(tdbq.str_to_lambda_au, fields)] for au in tdb.aus()] if options.style == TdboutConstants.OPTION_STYLE_CSV: import csv if options.names: result = [[w.capitalize() for w in fields]] + result if options.warnings: from d...
455,592
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isBlankReport = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() print("Looking for inconsistent information within one run.\n") cursor.execute("SELE...
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isBlankReport = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() print("Looking for inconsistent information within one run.\n") cursor.execute("SELE...
455,593
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isBlankReport = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() print("Looking for inconsistent information within one run.\n") cursor.execute("SELE...
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isBlankReport = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() print("Looking for inconsistent information within one run.\n") cursor.execute("SELE...
455,594
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isBlankReport = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() print("Looking for inconsistent information within one run.\n") cursor.execute("SELE...
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isBlankReport = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() print("Looking for inconsistent information within one run.\n") cursor.execute("SELE...
455,595
def _process(tdb, options): current_pub = None if options.style == TDB_STYLE_XML_LEGACY: print '''\ <property name="org.lockss.title">
def _process(tdb, options): current_pub = None if options.style == TDB_STYLE_XML_LEGACY: print '''\ <property name="org.lockss.title">
455,596
def _process(tdb, options): current_pub = None if options.style == TDB_STYLE_XML_LEGACY: print '''\ <property name="org.lockss.title">
def _process(tdb, options): current_pub = None if options.style == TDB_STYLE_XML_LEGACY: print '''\ <property name="org.lockss.title">
455,597
def __process(tdb, options): current_pub = None if options.style == TdbxmlConstants.OPTION_STYLE_LEGACY: print '''\ <property name="org.lockss.title">
def __process(tdb, options): current_pub = None if options.style == TdbxmlConstants.OPTION_STYLE_LEGACY: print '''\ <property name="org.lockss.title">
455,598
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isEmpty = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() cursor.execute("SELECT auid, auname FROM burp WHERE rundate >= '" + str(options.reportdate...
def _find_inconsistent_information(db, options): fileInconsistent = open(options.inconsistent, 'w') isEmpty = True cursor = db.cursor() cursorMachine = db.cursor() cursor2 = db.cursor() cursor3 = db.cursor() cursor.execute("SELECT auid, auname FROM burp WHERE rundate >= '" + str(options.reportdate...
455,599