Thread: unique number

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    One more question... How can I create a unique number? Is there any sessionID that I can get from each visitor?

    Comments on this post

    • JimmyGosling agrees
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    11
    Rep Power
    0
    Try...

    <dtml-call "REQUEST.set('name_your_variable', _.random.randint(1, 90000000))">

    There is also try this set from the SimpleURL if you are creating files..

    <dtml-call "REQUEST.set('ts', ZopeTime())">
    <dtml-call "REQUEST.set('Autoid',_.str(_.int(ts)))">
    <dtml-call "REQUEST.set('id', Autoid)">

    Cheers,
    BZ
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Thank you!!!
    How do you know so much about Zope?
    I could not find any information about request object and its properties and methods. Would you show me a resource?
    thanks again
    turhan
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    11
    Rep Power
    0
    Your welcome.

    I have just been using/abusing Zope for a long time (in Zope years of course).

    The best resources are really on http://www.zope.org and http://zdp.zope.org

    There are also the Dev, SQL, and DTML references guides in http://www.zope.org/Documentation

    I also like.. http://weblogs.userland.com/zopeNewbies/

    And finally the best resources is the Zope mailing list. Do a couple of searches in it before you post though. It is my mini-mission to get this board a bit more active as well.

    Cheers,
    BZ
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I use the searchable mail archives at
    http://zope.nipltd.com/public/lists.html



    ------------------
    -Aaron

IMN logo majestic logo threadwatch logo seochat tools logo