rksm/LivelyKernel — Issue #14: [parts] decouple PartsBinInfrastructure from webwerkstatt
Author: fbornhofen
Created: 2012-02-17 01:02:32+00:00
State: open
Labels: defect, refactoring/reimplementation

Parts can now be loaded from a PartsBin folder in the root dir. This works for loadPartItem etc., but PartsBin Browser needs further decoupling.

Right now, I'm trying to make it work (not successfully, yet) this way:

- PartsBinBrowser: this.url = 'http://localhost/LivelyKernel/PartsBin/' (otherwise assumes path in codeBase)

- PartsBin.js, PartsBin>>
partsSpaceWithURL: function(url) {
var rootPath = new URL(Config.rootPath),
name = url.isIn(rootPath) ? url.relativePathFrom(rootPath) : url
return this.partsSpaceNamed(name);
},

- ???