<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Fabian<div><br></div><div>thanks for implement the paths so that there is no searching any more.</div><div>Currently you implemented it as a list:</div><div><span class="Apple-style-span" style="font-family: Monaco, Courier; font-size: 12px; white-space: pre-wrap; background-color: rgb(243, 243, 243); "><span style="text-decoration: none; "> </span></span><span class="Apple-style-span" style="font-family: Monaco, Courier; font-size: 12px; white-space: pre-wrap; background-color: rgb(243, 243, 243); "><span style="text-decoration: none; ">Config.modulePaths // [users/, projects/]
</span></span><span class="Apple-style-span" style="font-family: Monaco, Courier; font-size: 12px; white-space: pre-wrap; background-color: rgb(243, 243, 243); "><span style="text-decoration: none; "><br></span></span></div><div><span class="Apple-style-span" style="font-family: Monaco, Courier; font-size: 12px; white-space: pre-wrap; background-color: rgb(243, 243, 243); "><span style="text-decoration: none; "><br></span></span></div><div><div>but I thought more of it like a mapping:</div><div><span class="Apple-style-span" style="font-family: Monaco, Courier; font-size: 12px; white-space: pre-wrap; background-color: rgb(243, 243, 243); "><span style="text-decoration: none; ">Config.modulePaths // {</span></span></div><span class="Apple-style-span" style="background-color: rgb(243, 243, 243); "><span style="text-decoration: none; "><span class="Apple-tab-span" style="white-space:pre"> </span>users: "../users",
projects: "../projects", </span></span></div><div><span class="Apple-style-span" style="background-color: rgb(243, 243, 243); "><span style="text-decoration: none; "><span class="Apple-tab-span" style="white-space:pre"> </span>externlsite: "http://</span></span><span class="Apple-style-span" style="font-family: Monaco, Courier; font-size: 12px; white-space: pre-wrap; background-color: rgb(243, 243, 243); "><span style="text-decoration: none; ">externlsite/path/to/repos</span></span><span class="Apple-style-span" style="font-family: Monaco, Courier; font-size: 12px; white-space: pre-wrap; background-color: rgb(243, 243, 243); "><span style="text-decoration: none; ">",
codeDB: "<a href="http://couchdb.lively">http://couchdb.lively</a>...."}</span></span></div><div><br></div><div><br></div><div>What do you think?</div><div><br></div><div>Best,</div><div>Jens</div><div><br></div><div><div><div>On 02.11.2011, at 23:51, Fabian Bornhofen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Jens -<br><br>On Fri, Oct 28, 2011 at 5:52 AM, Jens Lincke<br><<a href="mailto:jens.lincke@hpi.uni-potsdam.de">jens.lincke@hpi.uni-potsdam.de</a>> wrote:<br><blockquote type="cite">I would also opt for extending this codebase only on a per path basis...<br></blockquote><blockquote type="cite">e.g. mapping "users.*" to<br></blockquote><blockquote type="cite">"<a href="http://lively-kernel.org/repository/webwerkstatt/users/">http://lively-kernel.org/repository/webwerkstatt/users/</a>"<br></blockquote><blockquote type="cite">That would make the query if something exists in one codebase or another<br></blockquote><blockquote type="cite">unnecessary, because we would know before loading where we have to look for<br></blockquote><blockquote type="cite">everything that begins with "users".<br></blockquote><br>Implemented. Paths can be specified in the Config object of a world<br>(Config.modulePaths).<br>Defaults are users/ and projects/ (to be found in bootstrap.js). That<br>means that modules with names starting with 'users.' or 'projects.'<br>will be found. There's no probing any more, no 404s, just plain<br>loading.<br><br>Please let me know if anything breaks because of that.<br><br>Best,<br>Fabian<br></div></blockquote></div><br></div></body></html>