[Zope-dev] unsliceable object

Homan Els homan@embl-grenoble.fr
Wed, 29 Aug 2001 17:19:40 +0200


Hi,

Does somebody know why, I am getting an error on this function (inside a
zope-product):

 def CreateProcessDirs(self,proposalid,runid):
         for i in self.objectValues():
              id=i.id
              if callable( id ):
                 id = id()
              RequestDir=os.path.join(dir,proposalid,runid,'process',id)

         if os.path.exists(RequestDir):
            print 'pathname ( file or directory) exist',path
         else:
          os.system('mkdir -p '+RequestDir)
          print "Make Directory: ",RequestDir
      return i

The error message is:

             Error Type: TypeError
             Error Value: unsliceable object

Thanks,

Els

_______________________________________________________________________
Els Homan
European Molecular Biology Laboratory (EMBL)
6, rue Jules Horowitz, B.P.181
38042 Grenoble cedex 9. France
homan@embl-grenoble.fr (Email)
04 76 20 74 66 (Phone)
04 76 20 71 99 (Fax)
______________________________________________________________________