tutorial command in ubuntu-application should be inheritable
Bug #539359 reported by
Rick Spencer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
The tutorial file is named quickly-
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 |
Changed in quickly: | |
importance: | Medium → Wishlist |
To post a comment you must log in.
Yeah, I've made a function for that (look at quickly add dialog for that): 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).
templatetools.
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) :)