[Zope-dev] guid

2001-07-11 Thread Mark McEahern

Hi, does Python or Zope have native facilities (i.e., not depending on
CoCreateGuid()) for generating guids?

If not, what do folks generally use to generate globally unique identifiers?

Thanks,

// mark


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] Help !!!

2001-07-11 Thread Mark McEahern



One of 
the links on that page ends in -src.tgz. That's the source to 
Zope.

Cheers,

// 
mark

-Original Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of atul dedhiaSent: 
Wednesday, July 11, 2001 10:34 PMTo: 
[EMAIL PROTECTED]Subject: [Zope-dev] Help !!!
Hi,
I'm a student, doing my Masters in Clinet/Server Computing. I was interested 
in Content Server stuff, thats why I decided to do my master project on Content 
Server. 
I was going through the web, and found Zope Application server, and decided 
to work on it.Right now Zope works with any web server that supports the 
Common Gateway Interface (CGI). I want to develope some adapter that 
willenable Zopeworking with any web serverthat supports ASP. 

I downloaded the Zope source code that is available at http://www.zope.org/Products/Zope/2.3.3 

I want to play with the source code of Zope application server to have a 
better idea of this application, butcouldn't find any good documentation. 
I'm wandering whether thats the only peace of code availble for users? Is 
that full source code for Zope Application server, if not where can I get the 
full source code? Do u know any documentation which will be helpful for 
understanding and playing aound with source code??
Please respond to this mail if u have answer to my questions.
Thanks,
Atul


Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
only $35 a year!http://personal.mail.yahoo.com/


[Zope-dev] persistence

2001-06-28 Thread Mark McEahern

I'm a Zope and Python newbie and I'm trying to utilize Persistence, but I've
seen two different ways:

import ZODB
from Persistence import Persistent

vs.

from Globals import Persistent

Are these different?  If so, which is better?  Please don't ask me to
define better.  ;-)

Thanks,

// mark


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] ExtensionClass

2001-06-22 Thread Mark McEahern

Summary:  Hi, I'm a newbie Zope developer.  I'm trying to use a fairly
simple class from the Python interpreter (see below).  It's not working
(specific error message listed below).  I've traced the problem to
ExtensionClass.  I'm not sure that I'm correct about that and I'm really
looking for any help you might offer.

Thanks,

// Mark

Details:

Running Zope 2.3.3 as a service on Windows 2000
Using PythonWin ActivePython Build 210
Environment variables:

PYTHONPATH=C:\Program Files\ZopeWebSite\lib\python

(That's the /lib/python folder in the Zope installation.)

When I try to import this class into PythonWin:

import ZODB
from Persistence import Persistent

class Queue(Persistent):

def __init__(self):
  self.list=[]

def put(self, obj):
  self.list=self.list + [obj]

def get(self):
  obj=self.list[-1]
self.list=self.list[0:-1]
  return obj

I get this error:

  File c:\python21\pythonwin\pywin\framework\scriptutils.py, line 394, in
ImportFile
exec codeObj in __main__.__dict__
  File auto import, line 1, in ?
  File queue.py, line 1, in ?
import ZODB
  File c:\program files\zopewebsite\lib\python\ZODB\__init__.py, line 85,
in ?
import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
ImportError: DLL load failed: The specified module could not be found.

If I simply try to import ExtensionClass all by itself interactively:

import ExtensionClass

I get this error:

  File interactive input, line 1, in ?
ImportError: DLL load failed: The specified module could not be found.



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )