Modify

Opened 6 years ago

Closed 4 years ago

Last modified 3 years ago

#3742 closed defect (fixed)

[Patch] First submit crashes

Reported by: didley@… Owned by: hasienda
Priority: normal Component: TracFormsPlugin
Severity: normal Keywords: submit error
Cc: rjollos, jbeilicke 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)

tracformsplugin.patch (487 bytes) - added by jrcutler 6 years ago.
Patch to fix 'DBCursor' object has no attribute 'lastrowid' error

Download all attachments as: .zip

Change History (16)

Changed 6 years ago by jrcutler

Patch to fix 'DBCursor' object has no attribute 'lastrowid' error

comment:1 Changed 6 years ago by jrcutler

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 6 years ago by tekknokrat

@jrcurtler

Thanks for the patch, seems to work with current trunk and 0.11.2

comment:3 Changed 5 years ago by anonymous

  • Cc ryano@… added

comment:4 Changed 5 years ago by rjollos

  • Cc rjollos added; ryano@… removed

comment:5 Changed 4 years ago by rjollos

  • Summary changed from First submit crashes to [Patch] First submit crashes

comment:6 Changed 4 years ago by hasienda

  • Keywords submit error added

Patch tested and fix confirmed, changeset prepared for commit here. Waiting for permission ...

comment:7 Changed 4 years ago by hasienda

  • Owner changed from rharkins to hasienda
  • Status changed from new to assigned

Got permissions, so will apply this soon.

comment:8 Changed 4 years ago by jbeilicke

  • Cc jbeilicke added

comment:9 Changed 4 years ago by hasienda

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

(In [9925]) TracFormsPlugin: Fix error 'DBCursor' object has no attribute 'lastrowid', closes #3742.

Thanks to Justin R. Cutler for contributing this patch.

comment:10 follow-up: Changed 4 years ago by anonymous

how to run the patch?thx

comment:11 in reply to: ↑ 10 Changed 4 years ago by hasienda

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 4 years ago by hasienda

Reporting back on success, if that solves an issue you saw before, would be still appreciated.

comment:13 Changed 3 years ago by hasienda

I've to admit, that I was quite clueless before.

See #5667 how this is fixed very differently for TracForms > 0.3.1 now. Thanks to rblank for providing insightful explanations of the compatible native Trac db cursor, that we're using now.

comment:14 Changed 3 years ago by didley@…

This solve my problem as I reported 09/1808.

Many thanx

didley

comment:15 Changed 3 years ago by hasienda

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.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.