← Back to team overview

beeseek-devs team mailing list archive

[Branch ~beeseek-devs/beeseek/trunk] Rev 190: Renamed _SignatureChecker to AttributesChecker for better comprehension.

 

------------------------------------------------------------
revno: 190
committer: Andrea Corbellini <andrea.corbellini@xxxxxxxxxxx>
branch nick: attribcheck
timestamp: Mon 2009-01-12 20:07:02 +0100
message:
  Renamed _SignatureChecker to AttributesChecker for better comprehension.
modified:
  beeseek/interfaces.py

=== modified file 'beeseek/interfaces.py'
--- a/beeseek/interfaces.py	2008-12-31 13:42:08 +0000
+++ b/beeseek/interfaces.py	2009-01-12 19:07:02 +0000
@@ -58,8 +58,8 @@
     pass
 
 
-class _SignatureChecker(object):
-    """Callback for checking a class signature.
+class AttributesChecker(object):
+    """Callback for checking class attributes.
 
     ``implements()`` is often called at the beginning of a class declaration,
     so it's not possible to check if all its attributes are correct according
@@ -189,7 +189,7 @@
     # Set the callback for the class creation; this will check the class'
     # attributes when its declaration is finished
     metaclass = attrs.get('__metaclass__', type)
-    attrs['__metaclass__'] = _SignatureChecker(metaclass, interfaces)
+    attrs['__metaclass__'] = AttributesChecker(metaclass, interfaces)
 
     # ``implements`` lists all the implemented interfaces; it is a tuple so
     # it cannot be edited
@@ -197,7 +197,7 @@
 
     # Base classes should never be initialized and so they can miss the
     # declaration of some attributes
-    # Setting ``isbaseclass`` to True will tell _SignatureChecker not to raise
+    # Setting ``isbaseclass`` to True will tell AttributesChecker not to raise
     # errors about missing values
     if kwargs.get('isbase', False):
         attrs['isbaseclass'] = True



--
BeeSeek mainline
https://code.launchpad.net/~beeseek-devs/beeseek/trunk

You are receiving this branch notification because you are subscribed to it.