Changeset 303

Show
Ignore:
Timestamp:
03/28/08 12:49:14 (9 months ago)
Author:
matt
Message:

Fix bug in the stan-style support. It turns out Group instances are iterable so
adding a single Group was failing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/formal/form.py

    r298 r303  
    265265        # Items may be a list or a scalar so stick a scalar into a list 
    266266        # immediately to simplify the code. 
    267         try: 
    268             items = iter(items) 
    269         except TypeError: 
     267        if not isinstance(items, (list, tuple)): 
    270268            items = [items] 
    271269        # Add each item 
  • trunk/setup.py

    r302 r303  
    33setup( 
    44    name='formal', 
    5     version='0.16.1', 
     5    version='0.16.2', 
    66    description='HTML forms framework for Nevow', 
    77    author='Matt Goodall',