Changeset 2282 in products


Ignore:
Timestamp:
May 10, 2010 3:25:20 PM (9 years ago)
Author:
mylan
Message:

Hide UID column

Location:
quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/__init__.py

    r2261 r2282  
    1313    # Example content type initialization 
    1414    import quintagroup.referencedatagridfield.examples 
     15    import quintagroup.referencedatagridfield.hiddencolumn 
    1516    content_types, constructors, ftis = process_types(listTypes(PKG_NAME), PKG_NAME,) 
    1617 
  • quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/_field.py

    r2281 r2282  
    1515from Products.ATReferenceBrowserWidget.ATReferenceBrowserWidget import ReferenceBrowserWidget 
    1616 
     17from Products.DataGridField.Column import Column 
    1718from Products.DataGridField.DataGridField import DataGridField 
    1819from Products.DataGridField.DataGridWidget import DataGridWidget 
    1920 
     21from hiddencolumn import HiddenColumn 
    2022 
    2123# Logger object 
     
    2830    _properties.update({ 
    2931        'macro': "referencedatagridwidget", 
    30         'column_names': ["Title", "Link", "UID"], 
    3132        'helper_css': ('datagridwidget.css',), 
    3233        'helper_js': ('referencebrowser.js', 'datagridwidget.js',), 
    3334        'force_close_on_insert': True, 
     35        'columns': { 
     36            'title': Column("Title"),  
     37            'link': Column("Link"), 
     38            'uid': HiddenColumn("UID", visible=False)}, 
    3439        }) 
    3540 
Note: See TracChangeset for help on using the changeset viewer.