Changeset 5619

Show
Ignore:
Timestamp:
10/26/08 12:37:45 (2 months ago)
Author:
deets
Message:

added MK1.4 (hell seems to be frozen over..)

Files:

Legend:

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

    r4688 r5619  
    139139----------------- 
    140140 
    141 The selection of a proper version of MochiKit is a bit more elaborated due to  
    142 the fact that MockiKit hasn't had a proper 1.4 release for a few years now. 
    143  
    144141tgMochiKit ships with various versions of MochKit. 
    145142 
    146143 - the stable 1.3.1 version, as used by the TurboGears 1.0.x series. 
     144 - as of 10/21/2008, the released 1.4 version. 
    147145 - various snapshots of the 1.4 version from the subversion. 
    148146 - the ``trunk``, also a subversion snapshot, which reflects the 
     
    164162to TurboGears upgrades), you will end up with code you verified that it works. 
    165163 
    166 If you feel confident that using the latest of MochiKit is ok for you, configure 
    167 ``tg_mochikit.version`` to be ``1.4``. This will always pick the newest from the  
    168 pack. 
     164..  
     165   If you feel confident that using the latest of MochiKit is ok for you, configure 
     166   ``tg_mochikit.version`` to be ``1.4``. This will always pick the newest from the  
     167   pack. 
    169168 
    170169The ``trunk``-version is something special. In the shipped tgMochiKit it will always 
  • projects/tgMochiKit/trunk/tgmochikit/base.py

    r4688 r5619  
    4646        # we check for all the versions in the js_base_dir and fetch the 
    4747        # one that matches best. If several candidates exist, the best is the latest. 
    48         candidates = glob.glob(os.path.join(js_base_dir, "%s*" % VERSION)) 
    49         candidates.sort() 
    50         js_dir = candidates[-1] 
     48        if os.path.exists(os.path.join(js_base_dir, VERSION)): 
     49            js_dir = os.path.join(js_base_dir, VERSION) 
     50        else: 
     51            candidates = glob.glob(os.path.join(js_base_dir, "%s*" % VERSION)) 
     52            candidates.sort() 
     53            js_dir = candidates[-1] 
    5154        logger.info("MochiKit version chosen: %s", os.path.basename(js_dir)) 
    5255        path = os.path.join(js_dir, "unpacked", "*.js") 
  • projects/tgMochiKit/trunk/tgmochikit/release.py

    r4604 r5619  
    11# Release information about tgMochikit 
    22 
    3 version = "0.2alpha" 
     3version = "0.2beta" 
    44 
    55description = "MochiKit packaged as TurboGears widgets." 
    66author = "Diez B. Roggisch" 
    77email = "deets@web.de" 
    8 copyright = "Copyright 2007
     8copyright = "Copyright 2008
    99 
    1010url = "http://docs.turbogears.org/tgMochiKit" 
  • projects/tgMochiKit/trunk/tgmochikit/tests/test_tgmochikit.py

    r4688 r5619  
    101101            assert version == buffer.getvalue().strip().split(" ")[-1] 
    102102 
    103     latest_base_path = base_path 
    104  
    105     # now test that giving the '1.4' version results in the latest of all known 1.4-versions 
    106     reload(tgm_base) 
    107     buffer = StringIO.StringIO() 
    108     handler = logging.StreamHandler(buffer) 
    109     tgm_logger.addHandler(handler) 
    110     tgm.init(register_static_directory, version='1.4') 
    111     base_path = static_path[-1] 
    112     tgm_logger.removeHandler(handler) 
    113     assert latest_base_path == base_path 
    114103 
    115104