Changes between Version 12 and Version 13 of CustomFieldAdminPlugin


Ignore:
Timestamp:
Sep 12, 2010 4:00:28 AM (4 years ago)
Author:
osimons
Comment:

Removing stray myenv in api docs following [8782].

Legend:

Unmodified
Added
Removed
Modified
  • CustomFieldAdminPlugin

    v12 v13  
    66This plugin is a Web Admin panel for administrating custom fields - adding, modifying and deleting them without editing the `trac.ini` file directly. 
    77 
    8 The plugin is available for Trac 0.10 and 0.11/0.12 (0.11 is compatible with current 0.12+). 
     8The plugin is available for Trac 0.10 and 0.11/0.12 (0.11 branch is compatible with current 0.12+). 
    99 
    1010This plugin is a cooperation between !CodeResort.com and Optaros.com, and is made freely available under a BSD license. 
     
    5757 
    5858# Get Cusom fields (list of dicts) 
    59 myfields = mycfcomp.get_custom_fields(myenv) 
     59myfields = mycfcomp.get_custom_fields() 
    6060for item in myfields: print item 
    6161 
     
    7070    'rows': None,           # number of rows for text area 
    7171    'order': 0 }            # specify sort order for field, 0 for last 
    72 mycfcomp.update_custom_field(myenv, mycfdict, create=True) 
     72mycfcomp.update_custom_field(mycfdict, create=True) 
    7373 
    7474# Updating 
     
    7676mycfdict['options'] = ['', 'one', 'two', 'three'] 
    7777mycfdict['value'] = None 
    78 mycfcomp.update_custom_field(myenv, mycfdict) 
     78mycfcomp.update_custom_field(mycfdict) 
    7979 
    8080# And deleting an existing custom field 
    81 mycfcomp.delete_custom_field(myenv, mycfdict) 
     81mycfcomp.delete_custom_field(mycfdict) 
    8282}}} 
    8383