← Back to team overview

mahara-contributors team mailing list archive

[Bug 1500290] [NEW] Make plugin file search paths backwards-compatible

 

Public bug reported:

As part of Bug 1465107 (specifically, commit 5d7bdaea24b4d), we
rearranged some of the search paths for theme files. We added
"plugintype" to the search path for plugin-related files stored within a
theme, and we removed "static" from the path for all the things that
used to be stored under the "static" directory.

We did this in order to make the organization of core plugins more self-
evident, but it had the unfortunate side effect of breaking all the
third-party plugins that hadn't been reorganized to the new standard.

It's pretty easy to fix this. We already search a few different places
for each file. All we have to do is add the old locations to the search
path as well. Then the majority of pre-15.10 plugins will continue to
work seamlessly in 15.10, making this major version change easier to
handle.

** Affects: mahara
     Importance: Medium
     Assignee: Aaron Wells (u-aaronw)
         Status: In Progress


** Tags: plugins

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1500290

Title:
  Make plugin file search paths backwards-compatible

Status in Mahara:
  In Progress

Bug description:
  As part of Bug 1465107 (specifically, commit 5d7bdaea24b4d), we
  rearranged some of the search paths for theme files. We added
  "plugintype" to the search path for plugin-related files stored within
  a theme, and we removed "static" from the path for all the things that
  used to be stored under the "static" directory.

  We did this in order to make the organization of core plugins more
  self-evident, but it had the unfortunate side effect of breaking all
  the third-party plugins that hadn't been reorganized to the new
  standard.

  It's pretty easy to fix this. We already search a few different places
  for each file. All we have to do is add the old locations to the
  search path as well. Then the majority of pre-15.10 plugins will
  continue to work seamlessly in 15.10, making this major version change
  easier to handle.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1500290/+subscriptions


Follow ups