[Seaside] http://localhost:9090/seaside/config default password
David Shaffer
cdshaffer at acm.org
Wed May 3 12:13:15 UTC 2006
Dmitry V. Sabanin wrote:
> On May 3, 2006, at 11:37 AM, Todd Blanchard wrote:
>
>> I don't know how to retrieve it, but when I do something like that I
>> just grab a new seed image and start over.
>
> I don't need to retrieve it, simply setting another one will do the
> job. Anyway thanks for an option in case I won't find the way to fix
> this.
>
> I'm still very curious of how you may change this thing? It's like a
> puzzle to me and I hope solution to it will bring me some small piece
> of understanding for Smalltalk or Seaside.
>
> Any help appreciated.
You can retrieve the username/password with:
(WADispatcher default entryPoints at: 'config') preferenceAt: #username
"print it"
(WADispatcher default entryPoints at: 'config') preferenceAt: #password
"print it"
Just a quick run down...requests to /seaside (by default) are sent to a
WADispatcher (usually the WADispatcher answered by "WADispatcher
default") which keeps a collection of "entry points". These entry
points are instances of WAApplication stored in a dictionary keyed by
your application path. So, for example, if you "explore" (menu-click
then pick "explore it") the following expression
WADispatcher default entryPoints
You should see all of your registered applications. Feel free to
explore the applications. Now, every seaside application keeps a list
of preferences (set on the config page). Those preferences can be
retrieved by the #preferenceAt method and change by #preferenceAt:put:.
So, to change the password you could
(WADispatcher default entryPoints at: 'config') preferenceAt: #password
put: 'MyNewPassword'.
Hope this helps.
David
More information about the Seaside
mailing list