[POS-commit] Kiwi/Kiwi/FrameWork Controllers.py,1.1,1.2 accessors.py,1.1,1.2

nobody at async.com.br nobody at async.com.br
Fri May 2 03:55:32 BRST 2003


Update of /cvs/Kiwi/Kiwi/FrameWork
In directory anthem:/tmp/cvs-serv18139/Kiwi/FrameWork

Modified Files:
	Controllers.py accessors.py 
Log Message:
removed from types import *.

Index: Controllers.py
===================================================================
RCS file: /cvs/Kiwi/Kiwi/FrameWork/Controllers.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Controllers.py	1 May 2003 00:13:47 -0000	1.1
+++ Controllers.py	2 May 2003 06:55:29 -0000	1.2
@@ -26,7 +26,7 @@
 Views and Proxies (they have their own modules): Controller and Models."""
 
 import string
-from types import *
+from types import ListType, TupleType
 
 class BaseController:
     """A generic controller that can be attached to any View. The

Index: accessors.py
===================================================================
RCS file: /cvs/Kiwi/Kiwi/FrameWork/accessors.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- accessors.py	1 May 2003 00:13:47 -0000	1.1
+++ accessors.py	2 May 2003 06:55:29 -0000	1.2
@@ -23,7 +23,7 @@
 #            Christian Reis <kiko at async.com.br>
 
 import string
-from types import *
+import types
 
 def get_default_getter(model, attr_name, cache):
     """Obtains from model a callable through which attr_name can be
@@ -151,8 +151,8 @@
              flat=0,
              # speedup cache:
              ref=weakref.ref,
-             TupleType=TupleType,
-             MethodType=MethodType,
+             TupleType=types.TupleType,
+             MethodType=types.MethodType,
              # constants:
              TUPLE_ACCESS = 2,
              NWR_TUPLE_ACCESS = 3,
@@ -247,8 +247,8 @@
              flat=0,
              # speedup cache:
              ref=weakref.ref,
-             TupleType=TupleType,
-             MethodType=MethodType,
+             TupleType=types.TupleType,
+             MethodType=types.MethodType,
              # constants:
              TUPLE_ACCESS = 2,
              NWR_TUPLE_ACCESS = 3,



More information about the POS-commit mailing list