[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE Wlists.py,1.10,1.10.6.1

Jack Jansen jackjansen@users.sourceforge.net
Wed, 27 Feb 2002 14:28:25 -0800


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv22056/Python 2.2/Mac/Tools/IDE

Modified Files:
      Tag: release22-maint
	Wlists.py 
Log Message:
Backport of 1.12:
Use the Carbon scrap manager interface if the old interface isn't available.

Index: Wlists.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wlists.py,v
retrieving revision 1.10
retrieving revision 1.10.6.1
diff -C2 -d -r1.10 -r1.10.6.1
*** Wlists.py	8 Dec 2001 09:51:41 -0000	1.10
--- Wlists.py	27 Feb 2002 22:28:23 -0000	1.10.6.1
***************
*** 177,182 ****
  		text = string.join(selitems, '\r')
  		if text:
! 			Scrap.ZeroScrap()
! 			Scrap.PutScrap('TEXT', text)
  	
  	def can_copy(self, *args):
--- 177,187 ----
  		text = string.join(selitems, '\r')
  		if text:
! 			if hasattr(Scrap, 'PutScrap'):
! 				Scrap.ZeroScrap()
! 				Scrap.PutScrap('TEXT', text)
! 			else:
! 				Scrap.ClearCurrentScrap()
! 				sc = Scrap.GetCurrentScrap()
! 				sc.PutScrapFlavor('TEXT', 0, text)
  	
  	def can_copy(self, *args):