--- a/server/schemahooks.py Mon Mar 23 18:53:53 2009 +0100
+++ b/server/schemahooks.py Wed Mar 25 10:40:22 2009 +0100
@@ -100,6 +100,7 @@
class DropTableOp(PreCommitOperation):
"""actually remove a database from the application's schema"""
+ table = None # make pylint happy
def precommit_event(self):
dropped = self.session.query_data('droppedtables',
default=set(), setdefault=True)
@@ -113,6 +114,7 @@
"""actually remove the attribut's column from entity table in the system
database
"""
+ table = column = None # make pylint happy
def precommit_event(self):
session, table, column = self.session, self.table, self.column
# drop index if any
@@ -236,6 +238,7 @@
class AddEETypeOp(EarlySchemaOperation):
"""actually add the entity type to the application's schema"""
+ eid = None # make pylint happy
def commit_event(self):
eschema = self.schema.add_entity_type(self.kobj)
eschema.eid = self.eid
@@ -296,6 +299,7 @@
class AddERTypeOp(EarlySchemaOperation):
"""actually add the relation type to the application's schema"""
+ eid = None # make pylint happy
def commit_event(self):
rschema = self.schema.add_relation_type(self.kobj)
rschema.set_default_groups()
@@ -355,6 +359,7 @@
constraints are handled by specific hooks
"""
+ entity = None # make pylint happy
def precommit_event(self):
session = self.session
entity = self.entity
@@ -439,6 +444,7 @@
constraints are handled by specific hooks
"""
+ entity = None # make pylint happy
def precommit_event(self):
session = self.session
entity = self.entity
@@ -530,6 +536,7 @@
class UpdateEntityTypeName(SchemaOperation):
"""this operation updates physical storage accordingly"""
+ oldname = newname = None # make pylint happy
def precommit_event(self):
# we need sql to operate physical changes on the system database
@@ -547,6 +554,7 @@
class UpdateRdefOp(SchemaOperation):
"""actually update some properties of a relation definition"""
+ rschema = values = None # make pylint happy
def precommit_event(self):
if 'indexed' in self.values:
@@ -581,6 +589,8 @@
class UpdateRtypeOp(SchemaOperation):
"""actually update some properties of a relation definition"""
+ rschema = values = entity = None # make pylint happy
+
def precommit_event(self):
session = self.session
rschema = self.rschema
@@ -655,6 +665,8 @@
class ConstraintOp(SchemaOperation):
"""actually update constraint of a relation definition"""
+ entity = None # make pylint happy
+
def prepare_constraints(self, rtype, subjtype, objtype):
constraints = rtype.rproperty(subjtype, objtype, 'constraints')
self.constraints = list(constraints)
@@ -708,6 +720,7 @@
class DelConstraintOp(ConstraintOp):
"""actually remove a constraint of a relation definition"""
+ rtype = subjtype = objtype = None # make pylint happy
def precommit_event(self):
self.prepare_constraints(self.rtype, self.subjtype, self.objtype)