Hello!

I found a little problem in colander, when using <select><options>.

[ colander.Number.serialize ]
colander/__init__.py (line 818-819):
---
        try:
            return str(self.num(appstruct))
---
This way, we are comparing str and int. So there never is a "selected" option.

Shouldn't be this?
---
        try:
            return self.num(appstruct)
---

Thanks for the help!

Happy new year for all!
--
Valentim Branquinho
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to