quickly should support user defined template paths

Bug #585617 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly
Fix Released
Wishlist
Unassigned
quickly (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

I read in some documentation that Quickly supported ~/.quickly/templates for templates, however with Quickly 0.4.2 this does not appear to be the case. It only recognizes ~/quickly-templates. Because I don't like to pollute my $HOME, and because I assume that the choice of ~/quickly-templates (and not ~/.quickly/templates) is intentional, Quickly should really recognize an environment variable to support user defined template directories.

I have a branch that adds $QUICKLY_TEMPLATES for specifying this. While the name is up for debate, I specifically chose not to use $QUICKLY because I want the envar to accept a list of paths, as in $PATH. But ':' is already used as a delimiter for options in $QUICKLY, thus a different envar.

As an example:

% quickly --version
Quickly 0.4.2
  Python interpreter: /usr/bin/python 2.6.5
  Python standard library: /usr/lib/python2.6

  Quickly used library: /usr/lib/python2.6/dist-packages/quickly
  Quickly data path: /usr/share/quickly
  Quickly detected template directories:
          /usr/share/quickly/templates/

% mkdir /tmp/blah
% mkdir -p ~/.quickly/templates
% quickly --version
Quickly 0.4.2
  Python interpreter: /usr/bin/python 2.6.5
  Python standard library: /usr/lib/python2.6

  Quickly used library: /usr/lib/python2.6/dist-packages/quickly
  Quickly data path: /usr/share/quickly
  Quickly detected template directories:
          /usr/share/quickly/templates/

% QUICKLY_TEMPLATES=~/.quickly/templates quickly --version
Quickly 0.4.2
  Python interpreter: /usr/bin/python 2.6.5
  Python standard library: /usr/lib/python2.6

  Quickly used library: /home/barry/projects/quickly/dotdir/quickly
  Quickly data path: /home/barry/projects/quickly/dotdir/data
  Quickly detected template directories:
          /home/barry/.quickly/templates
          /home/barry/projects/quickly/dotdir/data/templates/

% QUICKLY_TEMPLATES=~/.quickly/templates:/tmp/blah quickly --version
Quickly 0.4.2
  Python interpreter: /usr/bin/python 2.6.5
  Python standard library: /usr/lib/python2.6

  Quickly used library: /home/barry/projects/quickly/dotdir/quickly
  Quickly data path: /home/barry/projects/quickly/dotdir/data
  Quickly detected template directories:
          /home/barry/.quickly/templates
          /tmp/blah
          /home/barry/projects/quickly/dotdir/data/templates/

Related branches

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

Merge approve for 0.5.x, assign to me and mark in progress

Changed in quickly:
importance: Undecided → Wishlist
assignee: nobody → Didier Roche (didrocks)
status: New → In Progress
Changed in quickly:
assignee: Didier Roche (didrocks) → nobody
Changed in quickly (Ubuntu):
status: New → Fix Committed
Changed in quickly:
status: In Progress → Fix Committed
Changed in quickly (Ubuntu):
importance: Undecided → Wishlist
Changed in quickly:
status: Fix Committed → Fix Released
Revision history for this message
Colin Watson (cjwatson) wrote :

quickly (0.6-0ubuntu1) maverick; urgency=low

  * New upstream release: (LP: #638130)
   + quickly core:
    - enhance API with real case usage: nautilus extension
    - move bzr call to use internal API (Jelmer Vernooij)
    - support user defined template paths (Barry Warsaw) (LP: #585617)
    - quickly quickly now uses import command functionality from the origin
      template
    - fix copyright file (Kyle Nitzsche) (LP: #610096)
   + ubuntu-application-template and derivatives:
    - push the tarball to launchpad instead of the .changes (LP: #594256)
    - move bzr call to use internal API (Jelmer Vernooij)
    - add apache license (Monty Taylor)
    - update and improvment of the tutorial (Ryan Macnish)
    - "$ quickly add indicator" to add indicator support to your project
      (Owais Lone)
    - add yelp dep for tutorial (Umang Varma) (LP: #610026)
    - some fixes to the tutorial (Henrik H.) (LP: #608421)
    - don't add changelog for quickly package command (Umang Varma)
      (LP: #587538)
    - add quickly configure distribution <distro> to release to another
      distribution than your current one (Umang Varma) (LP: #608191)
    - Provide a modeline in generated source (Michael Terry) (LP: #606285)
  * debian/control:
    - bump python-distutils-extra build-dep
    - new core breaks older ubuntu-application template (package command)
      (LP: #635624)
    - quickly-ubuntu-template now depends on yelp (LP: #610026)

 -- Didier Roche <email address hidden> Tue, 14 Sep 2010 17:12:23 +0200

Changed in quickly (Ubuntu):
status: Fix Committed → 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.