username/password in MC working copies

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

username/password in MC working copies

Mariano Martinez Peck
Hi Dale. I wonder if Metacello can do the following. Situation: I work in some projects that are in squeaksource as "global read", which means that in order to commit I need my username/password. So...each time I donwload something with Metacello, I ALWAYS commit, I get the error saying I don't have access. Go, edit metacello repo info, and recommit. I would like to avoid that :)

Let's take as an example, Fuel. So I know that in ConfigurationOfFuel I could write something like:

baseline17: spec
        <version: '1.7-baseline'>
       
        spec for: #pharo do: [
                spec blessing: #baseline.
                spec repository: 'http://www.squeaksource.com/Fuel'  username: 'MMP' password: 'XXX'.

....

The problem is that I am not the only developer of Fuel, hence, I cannot do that.  Now...imagine I have my own ConfigurationOfMariano which has a project reference to ConfigurationOfFuel, like this:

    spec
            project: 'Fuel' with: [
            spec
                className: 'ConfigurationOfFuel';
                loads: #('CoreWithExtras' 'Tests' 'Benchmarks' 'FuelProgressUpdateBenchmarks' 'FuelLogo' 'Examples' 'PackageLoaderWithTests' 'FuelContainer' );
                file: 'ConfigurationOfFuel';
                versionString: #bleedingEdge;
                repository: 'http://www.squeaksource.com/MetacelloRepository' ].


So...I would love to add a line there saying  username: 'MMP'  password: 'XXX' so that such info is automatically put in the generated Monticello package once Metacello finished loading.

Can I do that with Metacello?  If I can't, (since you are also a Monticello guru) do you have an idea how can I script it?  I mean, how can I add my username/pass from code to a particular monticello repo?

Thanks a lot in advance,


--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: username/password in MC working copies

abergel
I experience exactly the same problem. Using MetacelloBrowser or versionner solves this problem by asking you whether you want to add a user if none is defined before committing.

Alexandre



Le 23 oct. 2011 à 08:02, Mariano Martinez Peck <[hidden email]> a écrit :

Hi Dale. I wonder if Metacello can do the following. Situation: I work in some projects that are in squeaksource as "global read", which means that in order to commit I need my username/password. So...each time I donwload something with Metacello, I ALWAYS commit, I get the error saying I don't have access. Go, edit metacello repo info, and recommit. I would like to avoid that :)

Let's take as an example, Fuel. So I know that in ConfigurationOfFuel I could write something like:

baseline17: spec
        <version: '1.7-baseline'>
       
        spec for: #pharo do: [
                spec blessing: #baseline.
                spec repository: 'http://www.squeaksource.com/Fuel'  username: 'MMP' password: 'XXX'.

....

The problem is that I am not the only developer of Fuel, hence, I cannot do that.  Now...imagine I have my own ConfigurationOfMariano which has a project reference to ConfigurationOfFuel, like this:

    spec
            project: 'Fuel' with: [
            spec
                className: 'ConfigurationOfFuel';
                loads: #('CoreWithExtras' 'Tests' 'Benchmarks' 'FuelProgressUpdateBenchmarks' 'FuelLogo' 'Examples' 'PackageLoaderWithTests' 'FuelContainer' );
                file: 'ConfigurationOfFuel';
                versionString: #bleedingEdge;
                repository: 'http://www.squeaksource.com/MetacelloRepository' ].


So...I would love to add a line there saying  username: 'MMP'  password: 'XXX' so that such info is automatically put in the generated Monticello package once Metacello finished loading.

Can I do that with Metacello?  If I can't, (since you are also a Monticello guru) do you have an idea how can I script it?  I mean, how can I add my username/pass from code to a particular monticello repo?

Thanks a lot in advance,


--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: username/password in MC working copies

Mariano Martinez Peck


On Sun, Oct 23, 2011 at 8:21 PM, Alexandre Bergel <[hidden email]> wrote:
I experience exactly the same problem. Using MetacelloBrowser or versionner solves this problem by asking you whether you want to add a user if none is defined before committing.


Thanks, but I don't user MetacelloBrowser. I want to do it by code.
 
Alexandre



Le 23 oct. 2011 à 08:02, Mariano Martinez Peck <[hidden email]> a écrit :

Hi Dale. I wonder if Metacello can do the following. Situation: I work in some projects that are in squeaksource as "global read", which means that in order to commit I need my username/password. So...each time I donwload something with Metacello, I ALWAYS commit, I get the error saying I don't have access. Go, edit metacello repo info, and recommit. I would like to avoid that :)

Let's take as an example, Fuel. So I know that in ConfigurationOfFuel I could write something like:

baseline17: spec
        <version: '1.7-baseline'>
       
        spec for: #pharo do: [
                spec blessing: #baseline.
                spec repository: 'http://www.squeaksource.com/Fuel'  username: 'MMP' password: 'XXX'.

....

The problem is that I am not the only developer of Fuel, hence, I cannot do that.  Now...imagine I have my own ConfigurationOfMariano which has a project reference to ConfigurationOfFuel, like this:

    spec
            project: 'Fuel' with: [
            spec
                className: 'ConfigurationOfFuel';
                loads: #('CoreWithExtras' 'Tests' 'Benchmarks' 'FuelProgressUpdateBenchmarks' 'FuelLogo' 'Examples' 'PackageLoaderWithTests' 'FuelContainer' );
                file: 'ConfigurationOfFuel';
                versionString: #bleedingEdge;
                repository: 'http://www.squeaksource.com/MetacelloRepository' ].


So...I would love to add a line there saying  username: 'MMP'  password: 'XXX' so that such info is automatically put in the generated Monticello package once Metacello finished loading.

Can I do that with Metacello?  If I can't, (since you are also a Monticello guru) do you have an idea how can I script it?  I mean, how can I add my username/pass from code to a particular monticello repo?

Thanks a lot in advance,


--
Mariano
http://marianopeck.wordpress.com




--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: username/password in MC working copies

Mariano Martinez Peck


On Mon, Oct 24, 2011 at 1:00 PM, Mariano Martinez Peck <[hidden email]> wrote:


On Sun, Oct 23, 2011 at 8:21 PM, Alexandre Bergel <[hidden email]> wrote:
I experience exactly the same problem. Using MetacelloBrowser or versionner solves this problem by asking you whether you want to add a user if none is defined before committing.


Thanks, but I don't user MetacelloBrowser. I want to do it by code.
 

Well, I found a way that at least it works for me:

(MCRepositoryGroup default  repositories select: [:each | each isKindOf: MCHttpRepository]) do: [:each |
each
    user: 'XXX';
    password: 'blah'.
]


 
Alexandre



Le 23 oct. 2011 à 08:02, Mariano Martinez Peck <[hidden email]> a écrit :

Hi Dale. I wonder if Metacello can do the following. Situation: I work in some projects that are in squeaksource as "global read", which means that in order to commit I need my username/password. So...each time I donwload something with Metacello, I ALWAYS commit, I get the error saying I don't have access. Go, edit metacello repo info, and recommit. I would like to avoid that :)

Let's take as an example, Fuel. So I know that in ConfigurationOfFuel I could write something like:

baseline17: spec
        <version: '1.7-baseline'>
       
        spec for: #pharo do: [
                spec blessing: #baseline.
                spec repository: 'http://www.squeaksource.com/Fuel'  username: 'MMP' password: 'XXX'.

....

The problem is that I am not the only developer of Fuel, hence, I cannot do that.  Now...imagine I have my own ConfigurationOfMariano which has a project reference to ConfigurationOfFuel, like this:

    spec
            project: 'Fuel' with: [
            spec
                className: 'ConfigurationOfFuel';
                loads: #('CoreWithExtras' 'Tests' 'Benchmarks' 'FuelProgressUpdateBenchmarks' 'FuelLogo' 'Examples' 'PackageLoaderWithTests' 'FuelContainer' );
                file: 'ConfigurationOfFuel';
                versionString: #bleedingEdge;
                repository: 'http://www.squeaksource.com/MetacelloRepository' ].


So...I would love to add a line there saying  username: 'MMP'  password: 'XXX' so that such info is automatically put in the generated Monticello package once Metacello finished loading.

Can I do that with Metacello?  If I can't, (since you are also a Monticello guru) do you have an idea how can I script it?  I mean, how can I add my username/pass from code to a particular monticello repo?

Thanks a lot in advance,


--
Mariano
http://marianopeck.wordpress.com




--
Mariano
http://marianopeck.wordpress.com




--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: username/password in MC working copies

Dale Henrichs
In reply to this post by Mariano Martinez Peck
Mariano,

Anything beyond the username:password: support in Metacello is in the domain of tools ... One could argue that the Monticello toolset itself is the problem child in this case:)

For GemStone I have added an exception handler to the Monticello browser that prompts you for a userName and password when you get the access violation on the http request and that works fairly well for me ... It's a relatively straightforward problem to solve ...

Your solution in a later email is actually pretty good under the circumstances:)

Dale

----- Original Message -----
| From: "Mariano Martinez Peck" <[hidden email]>
| To: [hidden email]
| Sent: Sunday, October 23, 2011 4:02:09 AM
| Subject: [Metacello] username/password in MC working copies
|
| Hi Dale. I wonder if Metacello can do the following. Situation: I
| work in some projects that are in squeaksource as "global read",
| which means that in order to commit I need my username/password.
| So...each time I donwload something with Metacello, I ALWAYS commit,
| I get the error saying I don't have access. Go, edit metacello repo
| info, and recommit. I would like to avoid that :)
|
| Let's take as an example, Fuel. So I know that in ConfigurationOfFuel
| I could write something like:
|
| baseline17: spec
| <version: '1.7-baseline'>
|
| spec for: #pharo do: [
| spec blessing: #baseline.
| spec repository: ' http://www.squeaksource.com/Fuel ' username: 'MMP'
| password: 'XXX'.
|
| ....
|
| The problem is that I am not the only developer of Fuel, hence, I
| cannot do that. Now...imagine I have my own ConfigurationOfMariano
| which has a project reference to ConfigurationOfFuel, like this:
|
| spec
| project: 'Fuel' with: [
| spec
| className: 'ConfigurationOfFuel';
| loads: #('CoreWithExtras' 'Tests' 'Benchmarks'
| 'FuelProgressUpdateBenchmarks' 'FuelLogo' 'Examples'
| 'PackageLoaderWithTests' 'FuelContainer' );
| file: 'ConfigurationOfFuel';
| versionString: #bleedingEdge;
| repository: ' http://www.squeaksource.com/MetacelloRepository ' ].
|
|
| So...I would love to add a line there saying username: 'MMP'
| password: 'XXX' so that such info is automatically put in the
| generated Monticello package once Metacello finished loading.
|
| Can I do that with Metacello? If I can't, (since you are also a
| Monticello guru) do you have an idea how can I script it? I mean,
| how can I add my username/pass from code to a particular monticello
| repo?
|
| Thanks a lot in advance,
|
|
| --
| Mariano
| http://marianopeck.wordpress.com
|
|
Reply | Threaded
Open this post in threaded view
|

Re: username/password in MC working copies

Mariano Martinez Peck


On Thu, Oct 27, 2011 at 10:38 PM, Dale Henrichs <[hidden email]> wrote:
Mariano,

Anything beyond the username:password: support in Metacello is in the domain of tools ...

well, maybe that's correct :)
 
One could argue that the Monticello toolset itself is the problem child in this case:)

For GemStone I have added an exception handler to the Monticello browser that prompts you for a userName and password when you get the access violation on the http request and that works fairly well for me ... It's a relatively straightforward problem to solve ...

Your solution in a later email is actually pretty good under the circumstances:)

Dale

----- Original Message -----
| From: "Mariano Martinez Peck" <[hidden email]>
| To: [hidden email]
| Sent: Sunday, October 23, 2011 4:02:09 AM
| Subject: [Metacello] username/password in MC working copies
|
| Hi Dale. I wonder if Metacello can do the following. Situation: I
| work in some projects that are in squeaksource as "global read",
| which means that in order to commit I need my username/password.
| So...each time I donwload something with Metacello, I ALWAYS commit,
| I get the error saying I don't have access. Go, edit metacello repo
| info, and recommit. I would like to avoid that :)
|
| Let's take as an example, Fuel. So I know that in ConfigurationOfFuel
| I could write something like:
|
| baseline17: spec
| <version: '1.7-baseline'>
|
| spec for: #pharo do: [
| spec blessing: #baseline.
| spec repository: ' http://www.squeaksource.com/Fuel ' username: 'MMP'
| password: 'XXX'.
|
| ....
|
| The problem is that I am not the only developer of Fuel, hence, I
| cannot do that. Now...imagine I have my own ConfigurationOfMariano
| which has a project reference to ConfigurationOfFuel, like this:
|
| spec
| project: 'Fuel' with: [
| spec
| className: 'ConfigurationOfFuel';
| loads: #('CoreWithExtras' 'Tests' 'Benchmarks'
| 'FuelProgressUpdateBenchmarks' 'FuelLogo' 'Examples'
| 'PackageLoaderWithTests' 'FuelContainer' );
| file: 'ConfigurationOfFuel';
| versionString: #bleedingEdge;
| repository: ' http://www.squeaksource.com/MetacelloRepository ' ].
|
|
| So...I would love to add a line there saying username: 'MMP'
| password: 'XXX' so that such info is automatically put in the
| generated Monticello package once Metacello finished loading.
|
| Can I do that with Metacello? If I can't, (since you are also a
| Monticello guru) do you have an idea how can I script it? I mean,
| how can I add my username/pass from code to a particular monticello
| repo?
|
| Thanks a lot in advance,
|
|
| --
| Mariano
| http://marianopeck.wordpress.com
|
|



--
Mariano
http://marianopeck.wordpress.com