Split string
Pedro Silva
psilva at ruido-visual.pt
Thu Feb 10 12:01:09 EST 2000
Hi,
I wnat to split a string that has be return by the filesystem
The code that I'm using is:
def obj_fs(self):
import os
listing=os.listdir("/var/spool/news/articles")
str=string.split(listing)
return str
Is this correct?
Another Problem.
I'm using the following code in a DTML Method:
<a href="msg_subgrupo" target=cima>
<dtml-tree branches_expr="objectValues(['Folder',''External Method])"
assume_children=1>
<dtml-var obj_fs>
</dtml-tree>
</a>
What I want with this is that, with the tree tag I be able to see the
subfolders of those folder.
Is this correct?
Please if you can help me, send your answers to: psilva at ruido-visual.pt
Thanks,
Pedro
PS - I think that now, my text isn't in HTML, or it is?
More information about the Python-list
mailing list