Changeset 578 for trunk/LeMillTool.py


Ignore:
Timestamp:
08/07/06 14:56:45 (13 years ago)
Author:
vahur
Message:

re #613 spent 3h
choosing groups now works/set local role. joining a group for editing should also work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LeMillTool.py

    r575 r578  
    108108        import cStringIO 
    109109        val = None 
     110        # attempt to get pure binary data 
    110111        try: 
    111112            val = image.read() 
     
    114115        if hasattr(image, 'data'): 
    115116            val = image.data 
     117            if not isinstance(val, ''): 
     118                val = val.aq_base 
     119                from OFS.Image import Pdata 
     120                if isinstance(val, Pdata): 
     121                    #print "this is Pdata" 
     122                    val = str(val) 
    116123        s = cStringIO.StringIO(val) 
    117124        im = Image.open(s) 
Note: See TracChangeset for help on using the changeset viewer.