Changeset 557

Show
Ignore:
Timestamp:
10/02/06 11:14:44
Author:
chervol
Message:

support of all old Plone versions added

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CMFPlone_membership_hotfix/trunk/README.txt

    r556 r557  
    1 The hotfix is designed for Plone 2.0.5, addressed to resolve the spam issue: http://plone.org/news/recent-web-site-slowness. 
     1The hotfix was originally designed for Plone 2.0.5, addressed to resolve  
     2the portraits spam issue: http://plone.org/news/recent-web-site-slowness. 
     3 
     4Version 1.1.0 of the hotfix tested on Plone versions 2.0.3-2.0.5, 2.1.1- 2.1.3, 2.5. 
    25 
    36Installation 
  • CMFPlone_membership_hotfix/trunk/__init__.py

    r556 r557  
    22from Globals import package_home 
    33 
    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 
     4from Products.CMFPlone import cmfplone_globals 
     5path = os.path.join(package_home(cmfplone_globals)) 
     6files=os.listdir(path) 
     7for f in files: 
     8    if f.lower()=='version.txt': 
     9        version = open(os.path.join(path,f)).read().strip() 
     10        if version.startswith('2.0.'): 
     11            import patch_del_members, patch_portraits 
     12        elif version.strip() in ('2.1.1', '2.1.2', '2.1.3', '2.5'): 
     13            import patch_portraits 
    1814 
  • CMFPlone_membership_hotfix/trunk/utils.py

    r556 r557  
    11from cStringIO import StringIO 
    2  
    32from PIL import Image 
    4  
    5  
    63 
    74# Settings for member image resize quality 
  • CMFPlone_membership_hotfix/trunk/version.txt

    r556 r557  
    1 version 1.0.1. 
     1version 1.1.0