Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #329 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

[patch] fastdata needs to understand sqlobject.sqlbuilder.NoDefault

Reported by: Stephen Thorne <stephen@…> Owned by: anonymous
Priority: high Milestone: 0.9
Component: TurboGears Version:
Severity: major Keywords: fastdata sqlobject


When using a model like this, using sqlite and fastdata:

class Foo(SQLObject):
  blah = StringCol(lenght=5)

the /foo/add page will come back with 'sqlobject.sqlbuilder.NoDefault?' in the textfield, instead of nothing at all, on examination, the code looks like:

if column.default: params['default'] = column.default

whereas, sqlobject uses the NoDefault? object as a placeholder for absent defaults.

Attached is a trivial patch to resolve the issue.


fastdata-nodefault.patch Download (461 bytes) - added by Stephen Thorne <stephen@…> 14 years ago.
Patch for fastdata default problem.

Change History

Changed 14 years ago by Stephen Thorne <stephen@…>

Patch for fastdata default problem.

comment:1 Changed 14 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

committed in [451]. Thanks!

Note: See TracTickets for help on using tickets.