[Zope3-checkins] Re: SVN: Zope3/trunk/src/zope/component/README.txt
prompt was missing
Philipp von Weitershausen
philipp at weitershausen.de
Tue Feb 22 20:36:25 EST 2005
Egon Frerich wrote:
> Log message for revision 29249:
> prompt was missing
>
> Changed:
> U Zope3/trunk/src/zope/component/README.txt
Egon, you added Windows line endings to this file, which wasn't your
fault because the svn:eol-style property wasn't set on this file. I just
want to take this opportunity to remind everyone:
Please make sure that your ~/.subversion/config file has auto-props
enabled and svn:eol-style="native" set for Python files, text files,
Page Templates and ZCML files. It should look something like this:
enable-auto-props = yes
[auto-props]
*.py = svn:eol-style=native
*.txt = svn:eol-style=native
*.pt = svn:eol-style=native
*.zcml = svn:eol-style=native
> +(In Python 2.4, the example can be written:
> +
> + >>> @zope.interface.implementer(IJob)
> + @zope.component.adapter(IPerson)
> + def personJob(person):
> + return getattr(person, 'job', None)
The actual change to the file, however, was your fault. The Python 2.4
example was never meant to be executed since the decorator syntax simply
doesn't work on Python 2.3. Python 2.3 is still a supported platform so
tests need to pass with it.
Philipp
More information about the Zope3-Checkins
mailing list