[FIX] PasswordFix (with attachment)

Joshua Channing Gargus schwa at cc.gatech.edu
Fri Dec 29 03:14:20 UTC 2000

I don't know why I always do this; I guess I need
a smarter computer.  Let's try again:

>From the preamble:

Fixed use of obsolete (removed) method to use its replacement.

-------------- next part --------------
'From Squeak2.9alpha of 13 June 2000 [latest update: #3144] on 28 December 2000 at 9:06:33 pm'!
"Change Set:		PasswordFix
Date:			28 December 2000
Author:			Joshua Gargus

Fixed use of obsolete (removed) method to use its replacement."!

!Password methodsFor: 'accessing' stamp: 'jcg 12/28/2000 21:02'!
passwordFor: serverDir
	"Returned the password from one of many sources.  OK if send in a nil arg."

	| sp msg |
	cache ifNotNil: [^ cache].
	sequence ifNotNil: [
		(sp _ self serverPasswords) ifNotNil: [
			sequence <= sp size ifTrue: [^ sp at: sequence]]].
	msg _ (serverDir isKindOf: ServerDirectory)
		ifTrue: [serverDir moniker]
		ifFalse: ['this directory'].
	(serverDir user = 'anonymous') & (serverDir typeWithDefault == #ftp) ifTrue: [
			^ cache _ FillInTheBlank request: 'Please let this anonymous ftp\server know your email address.\This is the polite thing to do.' withCRs
			initialAnswer: 'yourName at company.com'].

	^ cache _ FillInTheBlank requestPassword: 'Password for !
', msg, ':'.
		"Diff between empty string and abort?"! !

More information about the Squeak-dev mailing list