# HG changeset patch # User Aurelien Campeas # Date 1248362105 -7200 # Node ID ce1a7ffc6c903fb257d3260597df2823525e2bc1 # Parent d088d0ff48a1c27ad2820f02b4630aea931c8f0a fix a couple NameErrors diff -r d088d0ff48a1 -r ce1a7ffc6c90 common/migration.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]) diff -r d088d0ff48a1 -r ce1a7ffc6c90 schema.py --- 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