[Checkins] SVN: PluggableAuthService/trunk/UserPropertySheet.py * adding support for 'image' property type

Rob Miller ra at burningman.com
Sat Sep 30 15:01:59 EDT 2006


Log message for revision 70450:
  * adding support for 'image' property type
  
  

Changed:
  U   PluggableAuthService/trunk/UserPropertySheet.py

-=-
Modified: PluggableAuthService/trunk/UserPropertySheet.py
===================================================================
--- PluggableAuthService/trunk/UserPropertySheet.py	2006-09-30 15:32:09 UTC (rev 70449)
+++ PluggableAuthService/trunk/UserPropertySheet.py	2006-09-30 19:01:58 UTC (rev 70450)
@@ -35,6 +35,8 @@
 
 from DateTime.DateTime import DateTime
 
+from OFS.Image import Image
+
 from Products.PluggableAuthService.utils import classImplements
 from Products.PluggableAuthService.interfaces.propertysheets \
     import IPropertySheet
@@ -73,6 +75,9 @@
             else:
                 raise ValueError, 'Property %s: unknown class' % k
 
+        elif isinstance( v, Image ):
+            ptype = 'image'
+
         elif type( v ) not in StringTypes:
             raise ValueError, 'Property %s: unknown type' % k
 



More information about the Checkins mailing list