[Commits] (heikki) The beginnings of crypto services. Let's start by initializing and shutting down our crypto engine.

commits at osafoundation.org commits at osafoundation.org
Fri Jun 18 19:39:13 PDT 2004


Commit by: heikki
Modified files:
chandler/application/Application.py 1.237 1.238
chandler/application/Globals.py 1.13 1.14
chandler/crypto/Crypto.py None 1.1
chandler/crypto/__init__.py None 1.1

Log message:
The beginnings of crypto services. Let's start by initializing and shutting down our crypto engine.

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/application/Application.py.diff?r1=text&tr1=1.237&r2=text&tr2=1.238
http://cvs.osafoundation.org/index.cgi/chandler/application/Globals.py.diff?r1=text&tr1=1.13&r2=text&tr2=1.14
http://cvs.osafoundation.org/index.cgi/chandler/crypto/Crypto.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.osafoundation.org/index.cgi/chandler/crypto/__init__.py?rev=1.1&content-type=text/vnd.viewcvs-markup

Index: chandler/application/Application.py
diff -u chandler/application/Application.py:1.237 chandler/application/Application.py:1.238
--- chandler/application/Application.py:1.237	Thu Jun 17 13:30:08 2004
+++ chandler/application/Application.py	Fri Jun 18 19:39:12 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.237 $"
-__date__ = "$Date: 2004/06/17 20:30:08 $"
+__version__ = "$Revision: 1.238 $"
+__date__ = "$Date: 2004/06/19 02:39:12 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -10,7 +10,7 @@
 from repository.util.UUID import UUID
 import repository.parcel.LoadParcels as LoadParcels
 from repository.persistence.XMLRepository import XMLRepository
-
+from crypto import Crypto
 
 """
   Event used to post callbacks on the UI thread
@@ -186,6 +186,10 @@
                 if path and os.path.exists(path):
                     debugParcelDir = path
                     sys.path.insert (2, debugParcelDir)
+
+        Globals.crypto = Crypto.Crypto()
+        Globals.crypto.init()
+        
         """
           Open the repository.
         -create argument forces a new repository.
@@ -424,6 +428,8 @@
         Globals.repository.commit()
         Globals.repository.close()
 
+        Globals.crypto.shutdown()
+
     def OnMainThreadCallbackEvent(self, event):
         """
           Fire off a custom event handler

Index: chandler/application/Globals.py
diff -u chandler/application/Globals.py:1.13 chandler/application/Globals.py:1.14
--- chandler/application/Globals.py:1.13	Wed Jun 16 15:22:27 2004
+++ chandler/application/Globals.py	Fri Jun 18 19:39:12 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.13 $"
-__date__ = "$Date: 2004/06/16 22:22:27 $"
+__version__ = "$Revision: 1.14 $"
+__date__ = "$Date: 2004/06/19 02:39:12 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -22,3 +22,4 @@
 wxApplication = None          # The wxWindows application object
 activeView = None             # The last view that was displayed
 twistedReactorManager = None  # The Twisted Reactor Thread Instance
+crypto = None                 # Cryptographic services



More information about the Commits mailing list