[Twisted-Python] Resource bug?

Itamar Shtull-Trauring itamar at itamarst.org
Tue Apr 8 11:33:20 EDT 2003


Any reason the following is not the way resources work by default? And
would the change break backwards compatability?

*** resource.py.~1.23.~	Mon Mar 10 12:10:16 2003
--- resource.py	Tue Apr  8 11:18:50 2003
***************
*** 57,64 ****
      def listStaticEntities(self):
          return self.children.items()
  
!     listNames = listStaticNames
!     listEntities = listStaticEntities
  
      def listDynamicNames(self):
          return []
--- 57,67 ----
      def listStaticEntities(self):
          return self.children.items()
  
!     def listNames(self):
!         return self.listStaticNames() + self.listDynamicNames()
! 
!     def listEntities(self):
!         return self.listStaticEntities() + self.listDynamicEntities()
  
      def listDynamicNames(self):
          return []


-- 
Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting




More information about the Twisted-Python mailing list