[Zope-PAS] PAS / ZODBRoleManager / arrow images

Willi Langenberger wlang at wu-wien.ac.at
Thu Aug 19 09:50:24 EDT 2004


Hi Zac!


The ZODBRoleManager uses the arrow gifs (via two_lists.zpt) in its
"manage_roles / Assigment" page. But the gifs arent loaded into the
product.

I attached a small patch that makes these gifs available for all
objects under the PAS folder (the way that PluginRegistry does it).


\wlang{}

-- 
Willi.Langenberger at wu-wien.ac.at                Fax: +43/1/31336/9207
Zentrum fuer Informatikdienste, Wirtschaftsuniversitaet Wien, Austria

-----included file follows-----

$ diff -u PluggableAuthService.py.2004-08-19 PluggableAuthService.py
--- PluggableAuthService.py.2004-08-19  2004-07-31 23:08:22.000000000 +0200
+++ PluggableAuthService.py     2004-08-19 15:04:04.000000000 +0200
@@ -27,6 +27,8 @@
 from AccessControl.User import nobody
 from AccessControl.SpecialUsers import emergency_user
 
+from App.ImageFile import ImageFile
+
 from zExceptions import Unauthorized
 from Persistence import PersistentMapping
 from OFS.Folder import Folder
@@ -161,6 +163,15 @@
     _nobody = nobody
 
     maxlistusers = -1   # Don't allow local role form to try to list us!
+
+    #
+    #   ZMI
+    #
+    arrow_right_gif = ImageFile( 'www/arrow-right.gif', globals() )
+    arrow_left_gif = ImageFile( 'www/arrow-left.gif', globals() )
+    arrow_up_gif = ImageFile( 'www/arrow-up.gif', globals() )
+    arrow_down_gif = ImageFile( 'www/arrow-down.gif', globals() )
+
     
     def getId( self ):
 


More information about the Zope-PAS mailing list