|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
One more question... How can I create a unique number? Is there any sessionID that I can get from each visitor?
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
I use the searchable mail archives at
http://zope.nipltd.com/public/lists.html ------------------ -Aaron |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > unique number |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|