Commit 4467942d authored by Jim Fulton's avatar Jim Fulton

Fixed missnamed vars that caused products to not get updated when

errors were fixed.
parent 49421aab
...@@ -155,7 +155,7 @@ class Product(Folder): ...@@ -155,7 +155,7 @@ class Product(Folder):
icon='p_/Product_icon' icon='p_/Product_icon'
version='' version=''
configurable_objects_=() configurable_objects_=()
__import_error__=None import_error_=None
def new_version(self, def new_version(self,
_intending=regex.compile("[.]?[0-9]+$").search, _intending=regex.compile("[.]?[0-9]+$").search,
...@@ -401,7 +401,7 @@ def initializeProduct(productp, name, home, app): ...@@ -401,7 +401,7 @@ def initializeProduct(productp, name, home, app):
products=app.Control_Panel.Products products=app.Control_Panel.Products
if hasattr(productp, '__import_error__'): ie=productp.__import_error__ if hasattr(productp, 'import_error_'): ie=productp.import_error_
else: ie=None else: ie=None
try: fver=strip(open(home+'/version.txt').read()) try: fver=strip(open(home+'/version.txt').read())
...@@ -411,8 +411,8 @@ def initializeProduct(productp, name, home, app): ...@@ -411,8 +411,8 @@ def initializeProduct(productp, name, home, app):
if ihasattr(products,name): if ihasattr(products,name):
old=getattr(products, name) old=getattr(products, name)
if (ihasattr(old,'version') and old.version==fver and if (ihasattr(old,'version') and old.version==fver and
hasattr(old, '__import_error__') and hasattr(old, 'import_error_') and
old.__import_error__==ie): old.import_error_==ie):
return return
except: pass except: pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment