Re: [Zope] string module
with view I get ['test','pdf']
2>>>mydtml_method.html: <dtml-call "REQUEST.set('filename' , 'test.pdf')" > <dtml-call "REQUEST.set('file_id' , _.string.split(filename,'.pdf'))" > <dtml-var file_id>
<dtml-call "REQUEST.set('file_id' , _.string.split(filename,'.pdf')[0])" >
with view I get ['test','']
This make a invalide id for my PDFclass instance. I don't know how to separate the 2 arguments of file_id.
Thanx
() / \ | <> | (____) zazen rules ... Sbaline
_______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
Bak @ kedai