Re: [Zope] python split

2008-08-17 Thread Andrew Milton
+---[ Garry Saddington ]--
| Is it possible to split a string at the first occurence of a non-digit 
| character using a python script in zope, or does this need an external method 
| for security purposes?

You can explicitly allow the re module if you want to split using a regex

-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] python split

2008-08-17 Thread Andreas Jung



--On 17. August 2008 16:29:38 +0100 Garry Saddington 
<[EMAIL PROTECTED]> wrote:



Is it possible to split a string at the first occurence of a non-digit
character using a python script in zope, or does this need an external
method  for security purposes?


You can implement a brute-force solution using an iteration using a 
PythonScript or you use a regular expression (requiring an external method, 
a browser view or any other form of "trusted code".


-aj

pgpsptlaruY7Q.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] python split

2008-08-17 Thread Garry Saddington
Is it possible to split a string at the first occurence of a non-digit 
character using a python script in zope, or does this need an external method 
for security purposes?
regards
garry
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )