|
Revision 527
(checked in by chervol, 2 years ago)
|
fixed the version restriction code
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
import os |
|---|
| 2 |
from Globals import package_home |
|---|
| 3 |
|
|---|
| 4 |
try: |
|---|
| 5 |
from Products.CMFPlone import cmfplone_globals |
|---|
| 6 |
path = os.path.join(package_home(cmfplone_globals)) |
|---|
| 7 |
try: |
|---|
| 8 |
files=os.listdir(path) |
|---|
| 9 |
for f in files: |
|---|
| 10 |
if f.lower()=='version.txt': |
|---|
| 11 |
version = open(os.path.join(path,f)).read().strip() |
|---|
| 12 |
if version.startswith('2.0.'): |
|---|
| 13 |
import patch |
|---|
| 14 |
except: |
|---|
| 15 |
pass |
|---|
| 16 |
except: |
|---|
| 17 |
pass |
|---|
| 18 |
|
|---|