Sorry, my bad.

Of course it should be column(String(20))

On 23.7.2006, at 13.54, Joona Kulmala wrote:

> Even if String-type needs length as first argument, column(String,
> length=20) throw's an execption when defining columns on ActiveMapper
>
> class User(ActiveMapper):
>      class mapping:
>          username = column(String, length=20)
>
> Exception:
>    File "build/bdist.darwin-8.7.0-Power_Macintosh/egg/sqlalchemy/
> schema.py", line 341, in __init__
> sqlalchemy.exceptions.ArgumentError: Unknown arguments passed to
> Column: ['length']
>
> This also blocks implementing recently discussed validations to
> columns, because they would need some extra keyword arguments for  
> sure.
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to