Changeset 4107

Show
Ignore:
Timestamp:
02/09/08 09:31:04 (10 months ago)
Author:
deets
Message:

fixed tgMochiKit stuff + FileField? renders better now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/CHANGELOG.txt

    r3848 r4107  
    2020~~~~~ 
    2121 
    22 * ... 
     22* tgMochiKit version selection works again 
     23* FileField renders None as value now, preventing it to try and fetch a equally 
     24  named column from the database. 
    2325 
    2426Contributors 
  • branches/1.1/turbogears/widgets/base.py

    r4060 r4107  
    581581    """ 
    582582 
    583     template = """<div xmlns:py="http://purl.org/kid/ns#" py:strip="True" py:for="js in jss">${js.display()}</div>""" 
    584  
    585583    def __init__(self, *args, **kwargs): 
     584        super(TGMochiKit, self).__init__(*args, **kwargs) 
     585 
     586    def retrieve_javascript(self): 
    586587        tgmochikit.init(register_static_directory) 
    587         super(TGMochiKit, self).__init__(*args, **kwargs) 
    588  
    589     def update_params(self, params): 
    590         super(TGMochiKit, self).update_params(params) 
    591         jss = [JSLink("tgmochikit", path) for path in tgmochikit.get_paths()] 
    592         params['jss'] = jss 
    593  
    594     def retrieve_javascript(self): 
    595588        jss = [JSLink("tgmochikit", path) for path in tgmochikit.get_paths()] 
    596589        return jss 
    597590 
    598 # class TGMochiKitDesc(WidgetDescription): 
    599 #     for_widget = tgmochikit 
    600 #     template = """ 
    601 # <h1>Just to show that the TGMochiKit is working</h1> 
    602 #     """ 
    603 #     show_separately = True 
    604  
    605591mochikit = TGMochiKit() 
    606 #mochikit = JSLink("turbogears", "js/MochiKit.js") 
    607592 
    608593class JSI18NWidget(Widget): 
  • branches/1.1/turbogears/widgets/forms.py

    r3367 r4107  
    670670    attrs = {} 
    671671    file_upload = True 
     672 
     673    def display(self, value=None, **params): 
     674        return super(FileField, self).display(None, **params) 
    672675 
    673676class FileFieldDesc(CoreWD):