[aida] Webuser uuid
Janko Mivšek
janko.mivsek at eranova.si
Sun Jan 23 10:03:08 CET 2011
Nicholas, thanks for this note, I just changed #initId to set up a
string instead of number, as you suggested.
Best regards
Janko
On 20. 01. 2011 12:31, Nicholas Moore wrote:
> In 6.1 a WebUser uuid can end up as a large integer or a string:
>
> WebUser>>initId
>
> self id: (AIDASite random next * 1000000000) asInteger.
>
> self otherValuesAt: #uuid put: (self id)
>
> WebUser>>uuid
>
> "unique identifier "
>
> ^self otherValuesAt: #uuid ifAbsentPut: [(AIDASite random next *
> 1000000000) rounded printString]
>
> i assume that it should be a string to be consistent with Party, which
> also returns a string.
>
> Nicholas
>
> --
>
> Nicholas Moore
>
> Check out my Blog <http://nicholasmoore.eu/blog.html>
>
> "Still Running - that I may die in good health"
--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
More information about the Aida
mailing list