Index: PyDS/Tool.py
===================================================================
RCS file: /pyds/PyDS/PyDS/Tool.py,v
retrieving revision 1.145
diff -c -r1.145 Tool.py
*** PyDS/Tool.py	29 Sep 2003 12:14:55 -0000	1.145
--- PyDS/Tool.py	8 Oct 2003 02:23:31 -0000
***************
*** 814,819 ****
--- 814,825 ----
  				except:
  					(e, d, tb) = sys.exc_info()
  					msg = _('Background thread exception %s: %s') % (e, d)
+ 					try: 
+ 						msg += _('Exception instance __dict__: %s') % (repr(d.__dict__),)
+ 					except: 
+ 						pass
+ 					msg += '<br><br>'
+ 
  					for row in traceback.extract_tb(tb):
  						(file, line, function, source) = row
  						msg += '<br>%s[%s] in %s' % (file, line, function)
Index: PyDS/WeblogTool.py
===================================================================
RCS file: /pyds/PyDS/PyDS/WeblogTool.py,v
retrieving revision 1.98
diff -c -r1.98 WeblogTool.py
*** PyDS/WeblogTool.py	7 Oct 2003 09:23:01 -0000	1.98
--- PyDS/WeblogTool.py	8 Oct 2003 02:23:31 -0000
***************
*** 280,293 ****
  		Raise KeyError if `uniqueId` cannot be found."""
  		post = self.getPost(uniqueId)
  		if post:
! 			cat = ''
! 			if not(post['onhome']):
! 				categories = post.get('categories', [])
! 				if len(categories):
! 					cat = categories[0]
! 				else:
! 					raise KeyError, uniqueId
! 			return ('weblog', self.getCloudUrlForItem(post['pubtime'], id=uniqueId, category=cat), post.get('title',''))
  		else: 
  			raise KeyError, uniqueId
  
--- 280,295 ----
  		Raise KeyError if `uniqueId` cannot be found."""
  		post = self.getPost(uniqueId)
  		if post:
! 			categories = post.get('categories', [])
! 			if len(categories): 
! 				cat = categories[0]
! 			else: 
! 				cat = ''
! 			return ('weblog', 
! 			        self.getCloudUrlForItem(post['pubtime'],
! 			                                id=uniqueId, 
! 			                                category=cat), 
! 			        post.get('title', ''))
  		else: 
  			raise KeyError, uniqueId
  
