Modify

Opened 23 months ago

Last modified 8 months ago

#9071 new defect

can't work with 0.12

Reported by: jeanvixue@… Owned by: dan
Priority: normal Component: AwesomeAttachmentsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

Can it work with Trac 0.12? At create ticket form, no field for attachments.

I checked I has attachments button, when press create ticket, show error message:

KeyError: attachment[]

how?

Attachments (0)

Change History (6)

comment:1 Changed 8 months ago by rjollos

  • Description modified (diff)

comment:2 follow-up: Changed 8 months ago by rjollos

(In [12185]) Refs #9071: Attempted to get AwesomeAttachmentsPlugin working, but it still needs more work.

  • Entry point in setup.py was not correct.
  • Renamed awesomattachments.py to awesomeattachments.py.
  • Fixed indentation problems in source code.
  • Get the attachments: max_size option from Config rather than re-defining the option.

It appears that this plugin may rely on a patched instance of Trac. The attachment fieldset and children are now added to the newticket form, but attachments are not added to the ticket when it is created.

comment:3 Changed 8 months ago by rjollos

(In [12187]) Refs #9071: Declared the license as 3-Clause BSD, following a discussion with the original author Dan Ordille over email exchange.

comment:4 in reply to: ↑ 2 Changed 8 months ago by rjollos

Replying to rjollos:

[...]
It appears that this plugin may rely on a patched instance of Trac.

Rather, it inherits from TicketModule and over-rides the private method _do_save, which will make maintenance difficult, but I'm not sure yet that there is another way to accomplish this.

comment:5 Changed 8 months ago by rjollos

(In [12188]) Refs #9071: Set version to 0.3dev. Added author to setup.py.

comment:6 Changed 8 months ago by rjollos

(In [12186]) Refs #9071: Fixed some errors in [12185], which were masked because awesomeattachments.pyc was still being imported in the development environment.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from dan. Next status will be 'new'.
The owner will be changed from dan to anonymous. Next status will be 'assigned'.
Author


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

 
Note: See TracTickets for help on using tickets.