Hi, I just got Form.py working with MySQL. Here' a patch: Form.py.MySQL.patch
Problems addressed by this patch are:
- For some reason field_type isn't callable. I have no idea what that means. I just know adding a callable() to the conditional before calling it made it work fine in my installation. I can't see how this could possibly negatively affect anyone.
- The port number must be an int, not a string, so called int(). This is in a MySQL specific section of code anyway so shouldn't negatively affect anyone else.
Additionally, you need to specify '%s' in your sql procedures instead of '?', e.g. insert into foo (name,age) values(%s,%s) You probably need to specify '%d' for integers etc..., but I'm playing with strings only so I didn't test that.
....Hey, this is a wiki, I'll just go edit the docs myself...
You can contact me at: <NOSPAM GARBAGE dmartin AT seattlecentral DOT edu>