Ticket #400 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Material is automatically created when choosing the template

Reported by: hans Owned by: vahur
Priority: major Milestone: 0.4 Suur Tõll
Component: generic Version:
Keywords: Cc:
Time planned: 30m Time remaining: 0h
Time spent: 2.0h


When user chooses the template and enters Edit Material page, the material is automatically created. If a user clicks Back button in her browser, the material will stay in the system with automatically generated title. If a user clicks Cancel button in the form page, she must insert the title.

The same probably applies for activities and tools. I know, that this comes from Plone workflow, but it our system user must be able to look at the template and go back to choose another template (or to do something else, if she feels that she doesn't have time to work with that template now).

My suggestions:

  • If a user clicks Cancel button, the material should be deleted (if user is not editing an existing material) and user should be redirected to previous page (in case of materials: choose a template page).
  • After some time interval (e.g. every night) the system should delete all empty resources

If it is possible, the material should be created when user clicks Continue (Save according to old spec) button in the form. I don't know, if it is too big hack to do in Plone.

Change History

comment:1 Changed 14 years ago by tarmo

This is feasible - it is actually built-in to Plone already, we just have to start using it. Cancelled objects are invisible and get deleted. And of course the cancel button should be usable...

comment:2 Changed 14 years ago by vahur

  • Owner changed from anonymous to vahur
  • Status changed from new to assigned
  • Time planned set to 30m

comment:3 Changed 14 years ago by vahur

  • Status changed from assigned to closed
  • Time spent set to 2.0h
  • Resolution set to fixed
  • Time remaining set to 0h

(In [349]) closes #400 spent 2h this isn't the best solution but I couldn't use portal_factory mechanism here

Note: See TracTickets for help on using tickets.