Project

General

Profile

« Previous | Next » 

Revision 3691

sql_gen.py: ColDict: Documented that anything that isn't a column is wrapped in a NamedCol

View differences:

lib/sql_gen.py
418 418
    else: return wrap_func(value)
419 419

  
420 420
class ColDict(dicts.DictProxy):
421
    '''A dict that automatically makes inserted entries Col objects'''
421
    '''A dict that automatically makes inserted entries Col objects.
422
    Anything that isn't a column is wrapped in a NamedCol with the key's column
423
    name by `as_Col(value, name=key.name)`.
424
    '''
422 425
    
423 426
    def __init__(self, db, keys_table, dict_={}):
424 427
        dicts.DictProxy.__init__(self, OrderedDict())

Also available in: Unified diff