From: Kevin A. <al...@se...> - 2001-09-05 21:00:14
|
I updated SourceForgeTracker so that when you double-click on an item in the topics list it jumps to the tracker item in your web browser. It has no impact on whether you are logged in or not to SourceForge. This makes it easy to make modifications of an item or see the other details if you really need that. The code to support this is pretty straightforward (sorry about the wrapping): def doLaunch(self, url): # launch a new browser window and autoraise it # there appears to be a bug in webbrowser.py because # if a window already exists, a new one isn't being created ?! webbrowser.open(url, 1, 1) def on_topicList_mouseDoubleClick(self, target, event): # http://sourceforge.net/tracker/index.php?func=detail&aid=446264&group_id=190 15&atid=119015 selection = target.getStringSelection() if selection != "": artifactId, summary = target.getStringSelection().split(TOPIC_SEPARATOR) group = self.components.choiceGroups.selection groupId = self.groupIds[group] category = self.components.choiceCategories.selection categoryId = self.categoryIds[group][category] url = 'http://sourceforge.net/tracker/index.php?func=detail&aid=' + \ str(artifactId) + '&group_id=' + str(groupId) + '&atid=' + str(categoryId) self.doLaunch(url) ka |