Changeset 3610

Show
Ignore:
Timestamp:
10/29/07 20:50:51 (1 year ago)
Author:
mscott
Message:

Only keep the deprecated form of a field definition if its name is different than the standard field definition.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Schevo/schevo/field.py

    r3606 r3610  
    8686            # Add a field constructor to the field constructors namespace. 
    8787            schevo.namespace.SCHEMADEF.f._set(def_name, def_class) 
    88             schevo.namespace.SCHEMADEF.f._set( 
    89                 deprecated_def_name, deprecated_def_class) 
     88            if def_name != deprecated_def_name: 
     89                schevo.namespace.SCHEMADEF.f._set( 
     90                    deprecated_def_name, deprecated_def_class) 
    9091 
    9192