Changes between Version 12 and Version 13 of CustomFieldAdminPlugin
- Timestamp:
- Sep 12, 2010, 2:00:28 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CustomFieldAdminPlugin
v12 v13 6 6 This plugin is a Web Admin panel for administrating custom fields - adding, modifying and deleting them without editing the `trac.ini` file directly. 7 7 8 The plugin is available for Trac 0.10 and 0.11/0.12 (0.11 is compatible with current 0.12+).8 The plugin is available for Trac 0.10 and 0.11/0.12 (0.11 branch is compatible with current 0.12+). 9 9 10 10 This plugin is a cooperation between !CodeResort.com and Optaros.com, and is made freely available under a BSD license. … … 57 57 58 58 # Get Cusom fields (list of dicts) 59 myfields = mycfcomp.get_custom_fields( myenv)59 myfields = mycfcomp.get_custom_fields() 60 60 for item in myfields: print item 61 61 … … 70 70 'rows': None, # number of rows for text area 71 71 'order': 0 } # specify sort order for field, 0 for last 72 mycfcomp.update_custom_field(my env, mycfdict, create=True)72 mycfcomp.update_custom_field(mycfdict, create=True) 73 73 74 74 # Updating … … 76 76 mycfdict['options'] = ['', 'one', 'two', 'three'] 77 77 mycfdict['value'] = None 78 mycfcomp.update_custom_field(my env, mycfdict)78 mycfcomp.update_custom_field(mycfdict) 79 79 80 80 # And deleting an existing custom field 81 mycfcomp.delete_custom_field(my env, mycfdict)81 mycfcomp.delete_custom_field(mycfdict) 82 82 }}} 83 83