tutorial command in ubuntu-application should be inheritable

Bug #539359 reported by Rick Spencer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly
Fix Released
Wishlist
Unassigned

Bug Description

The tutorial file is named quickly-ubuntu-application-tutorial.xml in the ubuntu-application template. This is rather template specific naming, which makes sense. But on the other hand, the tutorial command should be inheritable from other templates. Since quickly-ubuntu-application-tutorial.xml is hard coded into the tutorial command, it means odd naming for other templates.

Also, the path to the files is hard coded relative to the tutorial.py file, not the template directory, so the file is not discovered when the command is used via inheritance.

description: updated
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Yeah, I've made a function for that (look at quickly add dialog for that):
templatetools.get_template_path_from_project() which returns the template used in the project in the current context. This is used to first look at the current context template, and then, in the parent template. (So, you can override quickly add dialog very easily with your boiler plate file).

I thought using that in quickly tutorial. The issue is that this function rely on getting the current template from the project file and quickly tutorial can be launched outside any project. This currently failed so and we have to patch some templatetools function for that.
Also, not sure you this can work with --template switch (also true for quickly add dialog).

So, this should be fixed and that's the reason why I didn't committed a quick hack on that for the first step. Should be done shortly when… I'll have time to think about it an to do it gracefully. (not before the end of the week) :)

Changed in quickly:
assignee: nobody → Didier Roche (didrocks)
importance: Undecided → Medium
status: New → Triaged
Changed in quickly:
importance: Medium → Wishlist
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Quickly doesn't really have a development team focusing on it anymore, letting the whishlist opened, but cleaning up from my assign list.

Changed in quickly:
assignee: Didier Roche (didrocks) → nobody
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

(please note that this feature was released a while ago though, so fixing the status)

Changed in quickly:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.