This commit is contained in:
Jeremy Fincher 2003-12-02 11:16:26 +00:00
parent 2f1c8415b6
commit 5549322771
3 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
* Fixed Http.freshmeat for projects with a space in their names.
* Added Karma.most for determining various "mosts" in the Karma * Added Karma.most for determining various "mosts" in the Karma
database. database.

View File

@ -87,6 +87,7 @@ class Http(callbacks.Privmsg):
Returns Freshmeat data about a given project. Returns Freshmeat data about a given project.
""" """
project = privmsgs.getArgs(args) project = privmsgs.getArgs(args)
project = ''.join(project.split())
url = 'http://www.freshmeat.net/projects-xml/%s' % project url = 'http://www.freshmeat.net/projects-xml/%s' % project
try: try:
text = webutils.getUrl(url) text = webutils.getUrl(url)

View File

@ -38,6 +38,7 @@ class HttpTest(PluginTestCase, PluginDocumentation):
def testFreshmeat(self): def testFreshmeat(self):
self.assertNotError('freshmeat supybot') self.assertNotError('freshmeat supybot')
self.assertNotError('freshmeat My Classifieds')
self.assertNotRegexp('freshmeat supybot', 'DOM Element') self.assertNotRegexp('freshmeat supybot', 'DOM Element')
def testTitle(self): def testTitle(self):