#3742 closed defect (fixed)
[Patch] First submit crashes
Reported by: | Owned by: | Steffen Hoffmann | |
---|---|---|---|
Priority: | normal | Component: | TracFormsPlugin |
Severity: | normal | Keywords: | submit error |
Cc: | Ryan J Ollos, Jan Beilicke | Trac Release: | 0.11 |
Description
Always when I use a new Form and use the submit button the first time the submit crashes with
'DBCursor' object has no attribute 'lastrowid'
The field operations works for example the input field is changed but not the query operations.
When I submit the form second time it works.
Attachments (1)
Change History (16)
Changed 16 years ago by
Attachment: | tracformsplugin.patch added |
---|
comment:1 Changed 16 years ago by
See attached patch for a fix that works for me. (I am using SQLite 3.5.9 and pysqlite 2.3.2 under Python 2.5.2.)
comment:2 Changed 16 years ago by
@jrcurtler
Thanks for the patch, seems to work with current trunk and 0.11.2
comment:3 Changed 15 years ago by
Cc: | ryano@… added; anonymous removed |
---|
comment:4 Changed 15 years ago by
Cc: | Ryan J Ollos added; ryano@… removed |
---|
comment:5 Changed 14 years ago by
Summary: | First submit crashes → [Patch] First submit crashes |
---|
comment:6 Changed 14 years ago by
Keywords: | submit error added |
---|
Patch tested and fix confirmed, changeset prepared for commit here. Waiting for permission ...
comment:7 Changed 14 years ago by
Owner: | changed from Rich Harkins to Steffen Hoffmann |
---|---|
Status: | new → assigned |
Got permissions, so will apply this soon.
comment:8 Changed 14 years ago by
Cc: | Jan Beilicke added |
---|
comment:9 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [9925]) TracFormsPlugin: Fix error 'DBCursor' object has no attribute 'lastrowid'
, closes #3742.
Thanks to Justin R. Cutler for contributing this patch.
comment:11 Changed 14 years ago by
Replying to anonymous:
how to run the patch?thx
As it's reportedly committed in changeset [9925] checking out plugin sources at that or a later version will have it included.
See howto install a plugin or ask at the trac-users wiki:MailingList, if you're looking for such basic information on Trac plugins, please. The ticket system here is dedicated to plugin development. Thanks for taking care.
comment:12 Changed 14 years ago by
Reporting back on success, if that solves an issue you saw before, would be still appreciated.
comment:13 Changed 14 years ago by
comment:15 Changed 14 years ago by
Thanks for the feedback.
Nevertheless the final changeset tot #5667 is still pending due to an issue in the new db schema upgrade code. Would be nice, if you could check it after submission.
Patch to fix
'DBCursor' object has no attribute 'lastrowid'
error