fix a couple NameErrors
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 23 Jul 2009 17:15:05 +0200
changeset 2460 ce1a7ffc6c90
parent 2459 d088d0ff48a1
child 2461 1f38b65cbd20
fix a couple NameErrors
common/migration.py
schema.py
--- a/common/migration.py	Thu Jul 23 15:57:15 2009 +0200
+++ b/common/migration.py	Thu Jul 23 17:15:05 2009 +0200
@@ -337,7 +337,7 @@
         configfile = self.config.main_config_file()
         if self._option_changes:
             read_old_config(self.config, self._option_changes, configfile)
-        newconfig = mkstemp()
+        newconfig = tempfile.mkstemp()
         for optdescr in self._option_changes:
             if optdescr[0] == 'added':
                 optdict = self.config.get_option_def(optdescr[1])
--- a/schema.py	Thu Jul 23 15:57:15 2009 +0200
+++ b/schema.py	Thu Jul 23 17:15:05 2009 +0200
@@ -793,6 +793,7 @@
 PyFileReader.context['RRQLExpression'] = yobsolete(RRQLExpression)
 
 # workflow extensions #########################################################
+from yams.buildobjs import _add_relation as yams_add_relation
 
 class workflowable_definition(ybo.metadefinition):
     """extends default EntityType's metaclass to add workflow relations