Changeset 444


Ignore:
Timestamp:
07/14/06 03:03:22 (13 years ago)
Author:
jukka
Message:

Worked on #442, spent 2h. Modified the default view for archetypes objects to be quite nice: If fields are empty, then field labels are not shown and for fields that are probably main body texts (iff WYSIWYMWidget) labels are not shown. Also simplified view page macros a lot; bundled about 5 metal-macros to one.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Activity.py

    r432 r444  
    4141for key in schema.keys(): 
    4242    schema[key].schemata = 'default' 
     43schema.moveField('bodyText', before='creators') 
    4344schema.moveField('language', after='address') 
    4445schema.moveField('tags', after='language') 
  • trunk/SharedMetadata.py

    r414 r444  
    187187              accessor='getAuthorsNames', 
    188188              widget = StringWidget( 
    189                   visible = {'view':'visible', 'edit':'invisible'}, 
     189                  visible = {'view':'invisible', 'edit':'invisible'}, 
    190190                  label='Creators', 
    191191                  label_msgid='label_creators', 
  • trunk/Tool.py

    r431 r444  
    4747for key in schema.keys(): 
    4848    schema[key].schemata = 'default' 
     49schema.moveField('bodyText', before='creators')     
    4950schema.moveField('language', after='address') 
    5051schema.moveField('tags', after='language') 
Note: See TracChangeset for help on using the changeset viewer.