Le 28/10/2013 11:18, Sven Van Caekenberghe a écrit :
Thierry,
ZnUrl now implements #mcRepositoryAsUser:withPassword: though it is currently a
hack.
Do you have a suggestion how to make it extendable ?
I will think about it as well, I do have some ideas.
Well, I would just move the schemeName on the repository class and add a
fromUrl:asUser:withPassword: in the repository instance creation, and
change the mcRepositoryAsUser:withPassword: to search among repository
types based on the scheme in the url and dispatch with a call to
fromUrl:asUser:withPassword: on the right repository class.
Thierry
Sven
On 28 Oct 2013, at 11:18, Goubier Thierry <[email protected]> wrote:
Hi All,
Url has been deprecated. What is to be done with the Monticello use of the
subclasses of Url?
At the moment, ZnUrl has a hardcoded case switch to redirect on the right type
of repository [1], but... It's not extendable, and breaks gitfiletree://.
[1]
https://github.com/pharo-project/pharo-core/blob/e89b4ac70d5cef761667317d58a4496d443d8a4e/Gofer-Core.package/extension/ZnUrl/instance/mcRepositoryAsUser_withPassword_.st
Thierry
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95