From: Les V. <Lv...@be...> - 2005-06-23 19:41:19
|
Ok thanks Dieter, So where do I find this small script to get rid of lineends? Or is there any guidence on writing one. Thanks.... Les -----Original Message----- From: Dieter Maurer [mailto:di...@ha...] Sent: Thursday, June 23, 2005 12:08 PM To: Les Vance Cc: plo...@li... Subject: RE: [Plone-users] Error-help Les Vance wrote at 2005-6-23 08:27 -0500: > ... >## Errors: >## invalid syntax (Script (Python), line 1) ## from >Products.CMFCore.utils import getToolByName This is line 1. As there is no (apparent) syntax error in this line, the cause is almost surely an invalid line end. Some editors tend to use DOS/Windows lineends and a Python on *nix does not like this... Ensure, you do not have DOS/Windows lineends. A small python script can get rid of them... -- Dieter |