Mailing List Archive

SVN: PluggableAuthService/trunk/ Make setup tool addable to PAS; register a "simple" profile for it.
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

_______________________________________________
Zope-CVS maillist - Zope-CVS@zope.org
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS