FYI: I managed to solve the problem. I simply took the third parameter
out of the parameter list and initialized the variable inside the
function:

def FormatPreis( v, n=2, thou=regex.compile(
                   "\([0-9]\)\([0-9][0-9][0-9]\([,.]\|$\)\)").search)

becomes

def FormatPreis( v, n=2 )

The new code is a little bit less efficient. But this doesn't hurt us.

Special thanks to Pavlos Christoforou <[EMAIL PROTECTED]>!

-- 
connection reset by
      Peer

_______________________________________________________________________
Dr. Peer Griebel                                  Tel. +49 7581 4831 23
Geschäftsführer                                   Fax. +49 7581 4831 11
Knoll Informationssysteme GmbH                   http://www.knoll-is.de
Dreiköniggasse 17                               mailto:[EMAIL PROTECTED]
88348 Saulgau                        privat: mailto:[EMAIL PROTECTED]

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

Reply via email to