Configure pyflakes to work with Zope's "script (python)" objects on the filesystem -


When I run piflex on a Zope filesystem directory view file (as many meet) it always gives very warnings That my parameters and special references like 'context' are not defined, which would be correct if this is a real dragon script, but for a script view the file system directory, define them by magic observations at the top For example:

  ## Python Script "Name" ## Bind Container = Container ## Bind Context = Reference ## Bind Namespace = ## Bind Script = Script # # Bind subpath = Travers_subpath ## Parameter = EFU, bar, just ## GetSecurityManager from AccessControl import user = getSecurityManager (). GetUser () from products PythonScripts.standard import html_quote request = container. REQUEST RESPONSE = request.RESPONSE return foo + bar + baz  

Is this type of python used anywhere except zoppey?

Is this, or can it be supported by Peephlax, Pilint or similar tools?

A possible approach that I have just tried is to pre-process the script zope fspython, so that Be vaild I've used some calls for sed (below):

  #! / Bin / bash sed s / \ (^ [^ #] \) / \ 1 / "$ 1 | \" "/" ## bind [az] * = \ ([az] [az] * \) $ / Import \ 1 / "| \ Sed" s / ^ ## parameter = \ (. * \) / Def foo (\ 1): / "| Pyflakes"  

This is a Python script It would be nice to replace with that which wraps around the pixels and does not change the normal python script.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -