Changeset 1486

Show
Ignore:
Timestamp:
07/10/08 22:43:06 (7 weeks ago)
Author:
rob
Message:

Removed some debug printing

Location:
trunk/peppy
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/peppy/lib/userparams.py

    r1468 r1486  
    14321432        hier = cls.__mro__ 
    14331433        for cls in hier: 
    1434             dprint("checking %s" % cls) 
     1434            #dprint("checking %s" % cls) 
    14351435            if 'default_prefs' not in dir(cls): 
    14361436                continue 
     
    14431443        hier = self.__class__.__mro__ 
    14441444        for cls in hier: 
    1445             dprint("checking %s" % cls) 
     1445            #dprint("checking %s" % cls) 
    14461446            if 'default_prefs' not in dir(cls): 
    14471447                continue 
     
    14831483        hier = self.__class__.__mro__ 
    14841484        for cls in hier: 
    1485             dprint("checking %s" % cls) 
     1485            #dprint("checking %s" % cls) 
    14861486            if 'default_prefs' not in dir(cls): 
    14871487                continue 
  • trunk/peppy/plugins/project.py

    r1483 r1486  
    6565    def regenerateTags(self): 
    6666        # need to operate on the local filesystem 
    67         dprint(self.project_top_dir) 
     67        self.dprint(self.project_top_dir) 
    6868        if self.project_top_dir.scheme != "file": 
    6969            raise TypeError("Can only process ctags on local filesystem") 
     
    7878        args = "%s %s %s -o %s" % (ProjectPlugin.classprefs.ctags_args, self.ctags_extra_args, excludes, ctags_file) 
    7979        cmd = "%s %s" % (ProjectPlugin.classprefs.ctags_command, args) 
    80         dprint(cmd) 
     80        self.dprint(cmd) 
    8181         
    8282        output = JobOutputSaver(self.regenerateFinished) 
     
    8484     
    8585    def regenerateFinished(self, output): 
    86         dprint(output) 
     86        self.dprint(output) 
    8787        if output.exit_code == 0: 
    8888            self.loadTags() 
     
    114114                    self.dprint(line) 
    115115        except LookupError, e: 
    116             dprint("Tag file %s not found" % filename) 
     116            self.dprint("Tag file %s not found" % filename) 
    117117            pass 
    118118     
     
    187187                self.readConfig(fh) 
    188188            for param in self.iterPrefs(): 
    189                 dprint("%s = %s" % (param.keyword, getattr(self, param.keyword))) 
    190             dprint(self.configToText()) 
     189                self.dprint("%s = %s" % (param.keyword, getattr(self, param.keyword))) 
     190            self.dprint(self.configToText()) 
    191191        except LookupError: 
    192             dprint("Project file not found -- using defaults.") 
     192            self.dprint("Project file not found -- using defaults.") 
    193193            self.setDefaultPrefs() 
    194194     
     
    199199            fh.write(text) 
    200200        except: 
    201             dprint("Failed writing project config file") 
     201            self.dprint("Failed writing project config file") 
    202202     
    203203    def registerProcess(self, job): 
     
    211211     
    212212    def build(self, frame): 
    213         dprint("Compiling %s in %s" % (self.build_command, self.build_dir)) 
     213        self.dprint("Compiling %s in %s" % (self.build_command, self.build_dir)) 
    214214        output = JobOutputSidebarController(frame, self.registerProcess, self.deregisterProcess) 
    215215        ProcessManager().run(self.build_command, self.build_dir, output) 
    216216     
    217217    def run(self, frame): 
    218         dprint("Running %s in %s" % (self.run_command, self.run_dir)) 
     218        self.dprint("Running %s in %s" % (self.run_command, self.run_dir)) 
    219219        output = JobOutputSidebarController(frame, self.registerProcess, self.deregisterProcess) 
    220220        ProcessManager().run(self.run_command, self.run_dir, output) 
     
    237237    def getNonInlineName(self): 
    238238        lookup = self.mode.check_spelling[0] 
    239         dprint(lookup) 
     239        self.dprint(lookup) 
    240240        return lookup or "ctags unavailable" 
    241241 
     
    245245        if self.mode.project_info: 
    246246            lookup = self.mode.check_spelling[0] 
    247             dprint(lookup) 
     247            self.dprint(lookup) 
    248248            self.tags = self.mode.project_info.getTag(lookup) 
    249249            if self.tags: 
     
    265265        file = self.tags[index][0] 
    266266        addr = self.tags[index][1] 
    267         dprint("opening %s at line %s" % (file, addr)) 
     267        self.dprint("opening %s at line %s" % (file, addr)) 
    268268        try: 
    269269            line = int(addr) 
     
    315315    def action(self, index=-1, multiplier=1): 
    316316        pathname = ProjectPlugin.getFilename(self.mode.keyword) 
    317         dprint(pathname) 
     317        self.dprint(pathname) 
    318318        self.mode.save(pathname) 
    319319 
     
    396396        pm = wx.GetApp().plugin_manager 
    397397        plugins = pm.getPluginInfo(ProjectPlugin) 
    398         dprint(plugins) 
     398        self.dprint(plugins) 
    399399         
    400400        self.plugin = PluginPanel(self.notebook, plugins[0]) 
     
    429429        if retval == wx.ID_OK: 
    430430            path = dlg.GetPath() 
    431             dprint(path) 
     431            self.dprint(path) 
    432432            info = ProjectPlugin.createProject(path) 
    433433        else: 
     
    530530        for configname in names: 
    531531            try: 
    532                 dprint("Trying to load template %s" % configname) 
     532                cls.dprint("Trying to load template %s" % configname) 
    533533                fh = vfs.open(configname) 
    534534                template = fh.read() 
     
    551551    @classmethod 
    552552    def findProjectTemplate(cls, mode): 
    553         dprint(mode) 
     553        cls.dprint(mode) 
    554554        if mode.project_info: 
    555555            url = mode.project_info.getSettingsRelativeURL(cls.classprefs.template_directory) 
    556             dprint(url) 
     556            cls.dprint(url) 
    557557            if vfs.is_folder(url): 
    558558                template = cls.findTemplate(url, mode, mode.buffer.url) 
     
    573573        # Look for a new project path 
    574574        last = vfs.normalize(vfs.get_dirname(url)) 
    575         dprint(str(last.path)) 
     575        cls.dprint(str(last.path)) 
    576576        while not last.path.is_relative() and True: 
    577577            path = last.resolve2("%s" % (cls.classprefs.project_directory)) 
    578             dprint(path.path) 
     578            cls.dprint(path.path) 
    579579            if vfs.is_folder(path): 
    580580                cls.known_project_dirs[url] = path 
     
    582582            path = vfs.get_dirname(path.resolve2('..')) 
    583583            if path == last: 
    584                 dprint("Done!") 
     584                cls.dprint("Done!") 
    585585                break 
    586586            last = path 
     
    599599            if mode: 
    600600                mode.project_info = info 
    601             dprint("found project %s" % info) 
     601            cls.dprint("found project %s" % info) 
    602602            return info 
    603603        elif mode: 
     
    620620        info = cls.registerProject(None, proj_dir) 
    621621        info.savePrefs() 
    622         dprint(info) 
     622        cls.dprint(info) 
    623623        buffers = BufferList.getBuffers() 
    624624        for buffer in buffers: 
    625625            if buffer.url.scheme != "file": 
    626626                continue 
    627             dprint("prefix=%s topdir=%s" % (buffer.url.path.get_prefix(url.path), url.path)) 
     627            cls.dprint("prefix=%s topdir=%s" % (buffer.url.path.get_prefix(url.path), url.path)) 
    628628            if buffer.url.path.get_prefix(url.path) == url.path: 
    629                 dprint("belongs in project! %s" % buffer.url.path) 
     629                cls.dprint("belongs in project! %s" % buffer.url.path) 
    630630                for mode in buffer.iterViewers(): 
    631631                    mode.project_info = info 
    632632            else: 
    633                 dprint("not in project: %s" % buffer.url.path) 
     633                cls.dprint("not in project: %s" % buffer.url.path) 
    634634        return info 
    635635