Changeset 120

Show
Ignore:
Timestamp:
02/04/06 19:30:30 (3 years ago)
Author:
tim
Message:

updated to remove python2.4 dependency

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/timadditionaltypes/pyramid/yamlRegistry.py

    r98 r120  
    173173    __constructs = {} 
    174174 
    175     @classmethod 
    176175    def register_construct(cls, func, name, tld=None, year=None): 
    177176        if tld is not None: 
     
    180179            year = int(year) 
    181180        cls.__constructs[(tld,year,name)] = func 
     181         
     182    register_construct = classmethod(register_construct) 
    182183 
    183184    def construct(self, node):