#2 — Name Error in trunk

StateResolved
Version:
AreaGeneral
Issue typeBug
SeverityMedium
Submitted byDarian Schramm
Submitted onJan 24, 2008
Responsible Daniel Nouri
Target release:
Return to tracker
Last modified on Jan 08, 2009 by Matthew Wilkes
Missing an import in hosting.py, need to add

from zopeskel.base import templates

Traceback (most recent call last):
  File "/usr/local/bin/paster", line 8, in <module>
    load_entry_point('PasteScript==1.3.6', 'console_scripts', 'paster')()
  File "/Library/Python/2.5/site-packages/PasteScript-1.3.6-py2.5.egg/paste/script/command.py", line 78, in run
    invoke(command, command_name, options, args[1:])
  File "/Library/Python/2.5/site-packages/PasteScript-1.3.6-py2.5.egg/paste/script/command.py", line 117, in invoke
    exit_code = runner.run(args)
  File "/Library/Python/2.5/site-packages/PasteScript-1.3.6-py2.5.egg/paste/script/command.py", line 212, in run
    result = self.command()
  File "/Library/Python/2.5/site-packages/PasteScript-1.3.6-py2.5.egg/paste/script/create_distro.py", line 121, in command
    vars = template.check_vars(vars, self)
  File "/Library/Python/2.5/site-packages/ZopeSkel-1.6dev_r57627-py2.5.egg/zopeskel/hosting.py", line 40, in check_vars
    result=templates.Template.check_vars(self, vars, cmd)
NameError: global name 'templates' is not defined
Steps to reproduce:
update to dev version easy_install ZopeSkel==dev
paster create -t plone_hosting
Attached:
hosting.patch — differences between files, 0Kb
Added byDaniel NourionJan 25, 2008 02:08 PM
Issue state: unconfirmedresolved
Responsible manager: (UNASSIGNED)nouri
Fixed in http:r57716.

Add response

Please enter your response below