[Zope-CVS] SVN: PluggableAuthService/trunk/ Make setup tool addable to PAS; register a "simple" profile for it.

Tres Seaver tseaver at palladion.com
Wed Nov 16 15:12:13 EST 2005


Log message for revision 40173:
  Make setup tool addable to PAS;  register a "simple" profile for it.
  

Changed:
  U   PluggableAuthService/trunk/__init__.py
  A   PluggableAuthService/trunk/profiles/
  A   PluggableAuthService/trunk/profiles/simple/
  A   PluggableAuthService/trunk/profiles/simple/PAS/
  A   PluggableAuthService/trunk/profiles/simple/export_steps.xml
  A   PluggableAuthService/trunk/profiles/simple/import_steps.xml

-=-
Modified: PluggableAuthService/trunk/__init__.py
===================================================================
--- PluggableAuthService/trunk/__init__.py	2005-11-16 20:11:35 UTC (rev 40172)
+++ PluggableAuthService/trunk/__init__.py	2005-11-16 20:12:12 UTC (rev 40173)
@@ -63,6 +63,15 @@
 registerMultiPlugin(CPC.ChallengeProtocolChooser.meta_type)
 registerMultiPlugin(RTS.RequestTypeSniffer.meta_type)
 
+try:
+    from Products.GenericSetup import profile_registry
+    from Products.GenericSetup import BASE
+    from Products.GenericSetup.tool import SetupTool
+except ImportError:
+    profile_registry = None
+else:
+    registerMultiPlugin(SetupTool.meta_type)
+
 # monkey patch Zope to cause zmi logout to be PAS-aware
 from App.Management import Navigation
 from interfaces.authservice import IPluggableAuthService
@@ -247,3 +256,11 @@
                          , visibility=None
                          , icon='plugins/www/DelegatingMultiPlugin.png'
                          )
+
+    if profile_registry is not None:
+        profile_registry.registerProfile('simple',
+                                         'Simple PAS Content Profile',
+                                         'Content for a simple PAS.',
+                                         'profiles/simple',
+                                         'PluggableAuthService',
+                                         BASE)

Added: PluggableAuthService/trunk/profiles/simple/export_steps.xml
===================================================================
--- PluggableAuthService/trunk/profiles/simple/export_steps.xml	2005-11-16 20:11:35 UTC (rev 40172)
+++ PluggableAuthService/trunk/profiles/simple/export_steps.xml	2005-11-16 20:12:12 UTC (rev 40173)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<export-steps>
+ <export-step id="contents"
+              handler="Products.PluggableAuthService.exportimport.exportPAS"
+              title="Contents">
+  Export the PAS' registry and plugins.
+ </export-step>
+</export-steps>


Property changes on: PluggableAuthService/trunk/profiles/simple/export_steps.xml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: PluggableAuthService/trunk/profiles/simple/import_steps.xml
===================================================================
--- PluggableAuthService/trunk/profiles/simple/import_steps.xml	2005-11-16 20:11:35 UTC (rev 40172)
+++ PluggableAuthService/trunk/profiles/simple/import_steps.xml	2005-11-16 20:12:12 UTC (rev 40173)
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<import-steps>
+ <import-step id="contents" version="20051116-01"
+              handler="Products.PluggableAuthService.exportimport.importPAS"
+              title="Contents">
+  Import the PAS' registry and plugins.
+ </import-step>
+</import-steps>


Property changes on: PluggableAuthService/trunk/profiles/simple/import_steps.xml
___________________________________________________________________
Name: svn:eol-style
   + native



More information about the Zope-CVS mailing list