[Zope] LocalFS in Python script

Dieter Maurer dieter@handshake.de
Thu, 20 Feb 2003 22:02:10 +0100


Oliver Keller wrote at 2003-2-20 08:16 +0100:
 > i searched the net for hours now, and tried tons of adjustments.
 > But i can't get this working!
 > 
 > Im using LocalFS 1.0.0 and want to get a randomly selcted image out of a 
 > folder.
 > 
 > My LocalFS object is called "Photos" and
 > in a ZTP i call  <img src="Photos/dummy.jpg" tal:replace="structure 
 > container/Photos/Schule/thumb/getRandom">
 >
 > 
 > in the getRandom Python script i only have
 > return random.choice(context.fileValues('File'))

What happens?

When you report problem, please state exactly in what way is fails.


Dieter