Re: [Zope-dev] RFC ZTK: Change zope.app.wsgi to set REMOTE_USER

2012-01-10 Thread Zvezdan Petkovic
On Jan 10, 2012, at 10:17 AM, Jim Fulton wrote: BTW, zope.app.wsgi isn't in the ZTK. :) It's not in ztk-versions.cfg, but it is in zopeapp-versions.cfg. That's still part of ZTK package. ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] New zc.queue release?

2011-12-18 Thread Zvezdan Petkovic
On Dec 18, 2011, at 5:52 AM, Marius Gedminas wrote: One thing leaves me baffled: how was it possible to make the release to PyPI (which means at the very least python setup.py sdist upload) if python setup.py had that missing import? Because buildout was used: ./bin/buildout setup .

Re: [Zope-dev] New zc.queue release?

2011-12-17 Thread Zvezdan Petkovic
On Dec 16, 2011, at 10:57 PM, Maurits van Rees wrote: Can someone create a new release of zc.queue? zvezdan and gary are owners on PyPI. I'll review and release. ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] New zc.queue release?

2011-12-17 Thread Zvezdan Petkovic
On Dec 17, 2011, at 5:40 PM, Zvezdan Petkovic wrote: I'll review and release. Done. zc.queue-1.2 is on PyPI. ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related

Re: [Zope-dev] New zc.queue release?

2011-12-17 Thread Zvezdan Petkovic
On Dec 17, 2011, at 7:13 PM, Maurits van Rees wrote: There is a problem with the setup.py of 1.2 though: 'import os' is missing so it cannot be used. I have fixed it on trunk. Could you release a new version? Done. zc.queue-1.2.1 is now on PyPI. P.S. Lessons learned: 1. Run pyflakes

Re: [Zope-dev] [Checkins] SVN: zope.app.folder/trunk/ Conform to repository policy

2011-11-29 Thread Zvezdan Petkovic
On Nov 29, 2011, at 4:05 PM, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/29/2011 11:48 AM, Gediminas Paulauskas wrote: -- Forwarded message -- From: Zvezdan Petkovic zvez...@zope.com Date: 2011/2/2 Subject: Re: [Checkins] SVN: zope.app.folder

Re: [Zope-dev] access to create z.i and z.c releases

2011-09-23 Thread Zvezdan Petkovic
On Sep 23, 2011, at 3:36 AM, Chris Withers wrote: I just tried zope.interface 3.8.0 on MacOS X Lion and got: Getting distribution for 'zope.interface'. unable to execute gcc-4.0: No such file or directory

Re: [Zope-dev] kudos...

2011-08-09 Thread Zvezdan Petkovic
On Aug 8, 2011, at 4:44 PM, Chris McDonough wrote: Kudos to whomever turned the transaction package's transaction manager into a context manager and was thoughtful enough to provide the attempts method (which returns a separate context manager, wrapping the txn context manager, and

Re: [Zope-dev] Conform to repository policy.

2010-05-06 Thread Zvezdan Petkovic
On May 6, 2010, at 9:09 AM, Tres Seaver wrote: Christian Theune has already mentioned that the inclusion of the author check in his script was a misunderstanding. If you did not see that message already it's here: https://mail.zope.org/pipermail/zope-dev/2010-April/040223.html Can we

Re: [Zope-dev] Conform to repository policy.

2010-05-06 Thread Zvezdan Petkovic
On May 6, 2010, at 9:52 AM, Christian Theune wrote: You're right. And I was slow and laggy. The change is in. It's been a mis-assumption on my side to think author information being equal to copyright ownership and I fixed that in the script. Thank you. Zvezdan

Re: [Zope-dev] [Checkins] SVN: zope.minmax/trunk/ Conform to repository policy.

2010-05-05 Thread Zvezdan Petkovic
On May 5, 2010, at 2:42 PM, Tres Seaver wrote: Log message for revision 112025: Conform to repository policy. ... setup( name='zope.minmax', version='1.1.3dev', -author='Zope Corporation and Contributors', +author='Zope Foundation and Contributors',

Re: [Zope-dev] Zope Tests: 10 OK, 4 Failed, 2 Unknown

2010-05-04 Thread Zvezdan Petkovic
On May 4, 2010, at 6:07 AM, Martijn Faassen wrote: For a while already people have been making changes that at least break tests on 2.4. For instance, zope.testing has some facility to pretty print a dictionary that sorts the keys, because Python 2.4's built-in pretty print module

Re: [Zope-dev] SVN: ZConfig/trunk/setup.py correct metadata: I really did write this.

2010-04-09 Thread Zvezdan Petkovic
On Apr 9, 2010, at 10:57 AM, Fred Drake wrote: On Fri, Apr 9, 2010 at 10:43 AM, Tres Seaver tsea...@palladion.com wrote: It seems reasonable to me that it *should* work, though I'm not sure how to write the code which tests that. See my later follow-up as well. In particular, while it

Re: [Zope-dev] zc.authorizedotnet support for Automated Recurring Billing

2010-04-07 Thread Zvezdan Petkovic
On Apr 7, 2010, at 1:33 PM, David Glick wrote: I also need to make some updates to make zc.authorizedotnet work with Python 2.6, as it currently depends (via zc.ssl) on ssl-for-setuptools, which is a backport of the ssl module that ships with Python 2.6. You will not need to make those

Re: [Zope-dev] zc.authorizedotnet support for Automated Recurring Billing

2010-04-07 Thread Zvezdan Petkovic
On Apr 7, 2010, at 2:35 PM, David Glick wrote: Understood. Now that Plone 4 is almost ready and using Python 2.6, there are a number of Plone GetPaid users who are ready to use these changes as soon as they're released. :) zc.ssl-1.2 and zc.authorizedotnet-1.3.1 have been tagged and released

Re: [Zope-dev] Avoid deprecation warnings in the testrunner

2009-12-24 Thread Zvezdan Petkovic
On Dec 24, 2009, at 8:50 AM, Fabio Tranchitella wrote: I don't think we can avoid the error, and to be honest I consider the code in zope.minmax to be wrong. import zope.testing x = zope.testing.doctest.DocTestFile(... The import is wrong, it should be zope.testing.doctest, and I

Re: [Zope-dev] Avoid deprecation warnings in the testrunner

2009-12-24 Thread Zvezdan Petkovic
On Dec 24, 2009, at 10:13 AM, Fabio Tranchitella wrote: * 2009-12-24 15:43, Zvezdan Petkovic wrote: You did not import zope.testing.doctest, but the reference to it remains. I don't think that's a fix. You are right, I committed the right fix. I was just about to commit the same thing

Re: [Zope-dev] Avoid deprecation warnings in the testrunner

2009-12-24 Thread Zvezdan Petkovic
On Dec 24, 2009, at 10:26 AM, Fabio Tranchitella wrote: * 2009-12-24 16:20, Zvezdan Petkovic wrote: Before I release the egg on PyPI: 1. Should we release as 1.1.2 (a minor change), or 2. Does the removal of dependency on zope.testing warrants a bump to 1.2.0? I

Re: [Zope-dev] implementing zope.component 4.0

2009-11-30 Thread Zvezdan Petkovic
On Nov 30, 2009, at 2:24 PM, Gary Poster wrote: 3) I also think that utility is a bad name. Is singleton two letters too long? Yes and not because singleton is longer. It just a bad name. :-) ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] implementing zope.component 4.0

2009-11-30 Thread Zvezdan Petkovic
On Nov 30, 2009, at 4:05 PM, Zvezdan Petkovic wrote: On Nov 30, 2009, at 2:24 PM, Gary Poster wrote: 3) I also think that utility is a bad name. Is singleton two letters too long? Yes and not because singleton is longer. It just a bad name. :-) To clarify because of 1

Re: [Zope-dev] implementing zope.component 4.0

2009-11-30 Thread Zvezdan Petkovic
On Nov 30, 2009, at 4:40 PM, Gary Poster wrote: Put yet another way, how are 99+% of our utility usages not singletons? Therein lies the problem. Singletons are singletons in 100% of cases. Since utilities are not singletons in 100% of cases they are not singletons by definition. If that's

Re: [Zope-dev] various ZTK observations

2009-09-21 Thread Zvezdan Petkovic
On Sep 21, 2009, at 11:42 AM, Martijn Faassen wrote: * zope.minmax: is this package being used? If not, we could consider removing it from the ZTK. It's easy to find that it's used by zope.session. It is used for conflict resolution. Regards, Zvezdan

Re: [Zope-dev] uuid.UUID as a rock in zope.security

2009-04-10 Thread Zvezdan Petkovic
On Apr 10, 2009, at 12:31 PM, Hanno Schlichting wrote: We are in the business of content management. The most valuable information the system and the entire physical machine has is the content in the system. You don't run web applications on any kind of shared servers where the system has any

Re: [Zope-dev] [Checkins] SVN: zope.app.generations/trunk/src/zope/app/generations/README.txt made blocks consistent

2009-04-06 Thread Zvezdan Petkovic
On Mon, Apr 6, 2009 at 11:47 AM, Baiju M mba...@zeomega.net wrote: Why we cannot use literal blocks for source code ? From the above documentations, I can see that it works for doctest. And we have used it in many places. Also in PyPI (long_description), it looks better. Because reST

Re: [Zope-dev] [Checkins] SVN: zope.annotation/trunk/setup.py Whitespace fixes

2009-04-02 Thread Zvezdan Petkovic
On Apr 1, 2009, at 5:44 PM, Jacob Holm wrote: If this whitespace fix is based on the current style guide, I think the guide needs to be fixed. I find the fixed version much less readable. A function that takes this many arguments should have an exception to the PEP 8 rule of no

Re: [Zope-dev] Namespace declaration using pkgutil vs pkg_resources

2009-03-11 Thread Zvezdan Petkovic
On Mar 11, 2009, at 10:29 AM, Martijn Faassen wrote: Since Jim says you're not missing something, I'm going to add to the Zope Framework Steering Group decisions that this is enough and we could clean up __init__.py's to this if we would want to. So, let me try to understand the decision

Re: [Zope-dev] setup.py extra dependencies

2009-03-05 Thread Zvezdan Petkovic
On Mar 5, 2009, at 5:02 PM, Laurence Rowe wrote: Gary Poster wrote: I disagree with the blanket statement. I do lean towards not having the extras for the test package only. I'm fine with the policy If you want zope.testing for your tests, then keep it as a dependency for the package. But

Re: [Zope-dev] [Checkins] SVN: z3c.mimetype/ Create infrastructure for z3c.mimetype

2009-02-24 Thread Zvezdan Petkovic
On Feb 24, 2009, at 8:53 AM, Dan Korostelev wrote: 2009/2/24 Benji York: On Tue, Feb 24, 2009 at 8:29 AM, Dan Korostelev wrote: Heh, nice trick with `z` :) Thank you. A slight refinement: svn mkdir path-to-repo/new-project{,trunk,tags,branches} Using the `z` trick, that would be:

Re: [Zope-dev] Coding style clarifications

2009-02-19 Thread Zvezdan Petkovic
On Feb 19, 2009, at 5:13 AM, Wichert Akkerman wrote: Previously Christian Theune wrote: Which attribute naming is current? == Do we use under_scores or mixedCaseNames? I think I remember that we decided to follow PEP 8 for new code and invoke the local

Re: [Zope-dev] Coding style clarifications

2009-02-19 Thread Zvezdan Petkovic
Which attribute naming is current? == Do we use under_scores or mixedCaseNames? I think I remember that we decided to follow PEP 8 for new code and invoke the local consistentency rule on old code. Is that correct? According to this document in Zope3

Re: [Zope-dev] Coding style clarifications

2009-02-19 Thread Zvezdan Petkovic
On Feb 19, 2009, at 11:03 AM, Jim Fulton wrote: I sort my imports. Period. This makes from imports come before regular imports (because f comes before i). I discourage from imports, so this isn't much of an issue for me except for old code. Having imports sorted takes very little effort and

Re: [Zope-dev] Coding style clarifications

2009-02-19 Thread Zvezdan Petkovic
On Feb 19, 2009, at 12:43 PM, Tres Seaver wrote: Exactly . As I mentioned in the previous post, sorting is the *key* here. [Pun intended]. Grouping (python, zope., myapp. modules order), or non-grouping, becomes a non-issue when imports are sorted. +1 - -1. I prefer the PEP8 grouping,

Re: [Zope-dev] [Zope] Zope 3.4.0 Released!

2009-02-02 Thread Zvezdan Petkovic
On Feb 2, 2009, at 9:28 AM, Sebastien Douche wrote: KGS 1.x uses new anatomy (major/minor/): http://download.zope.org/zope3.4/intro.html Am I the only one who finds those pale green links on a white background quite unreadable? The code examples with that same color on dark grey are OK, but

Re: [Zope-dev] [Checkins] SVN: zc.sourcefactory/trunk/buildout.cfg color by default

2008-12-08 Thread Zvezdan Petkovic
On Dec 8, 2008, at 10:56 AM, Benji York wrote: On Mon, Dec 8, 2008 at 2:22 AM, Michael Howitz [EMAIL PROTECTED] wrote: Log message for revision 93766: color by default This setting apparently causes problems for people who use Emacs, so for zope. and zc. packages at least, we don't use

Re: [Zope-dev] zope.sendmail fails on windows

2008-11-02 Thread Zvezdan Petkovic
On Nov 1, 2008, at 3:56 PM, Adam GROSZER wrote: Hello Benji, Seems like your r80928 breaks windows compatibility, because it does not support os.link and os.unlink. FWIW, os.unlink _is_ supported on Windows. It's identical to os.remove. However, os.link is Unix specific and should be

Re: [Zope-dev] zope.app.container won't compile

2008-10-20 Thread Zvezdan Petkovic
On Oct 20, 2008, at 9:45 AM, Tres Seaver wrote: Did you look at the include' directories? $ svn propget svn:externals $ZSVN/zope.app.container/tags/3.5.6/ include persistent svn://svn.zope.org/repos/main/ZODB/trunk/src/ persistent zope.proxy \

Re: [Zope-dev] [Checkins] SVN: zope.sendmail/trunk/src/zope/sendmail/mailer.py gmail seems to burp nowadays on smtp quit, deep down in smtplib

2008-10-07 Thread Zvezdan Petkovic
On Oct 5, 2008, at 1:57 AM, Adam Groszer wrote: Log message for revision 91759: gmail seems to burp nowadays on smtp quit, deep down in smtplib mail should be safely sent at this point ... deep down ... should be ... These words do not sound very encouraging.

Re: [Zope-dev] [Checkins] SVN: zope.sendmail/trunk/src/zope/sendmail/mailer.py try again with catching sslerror, thx Jens

2008-10-07 Thread Zvezdan Petkovic
On Oct 5, 2008, at 4:51 AM, Adam Groszer wrote: connection.sendmail(fromaddr, toaddrs, message) try: connection.quit() -except: +except socket.sslerror: +#something weird happened while quiting pass This is better because

Re: [Zope-dev] permission inheritance from conflicting groups

2008-06-10 Thread Zvezdan Petkovic
On Jun 9, 2008, at 9:38 PM, Daniel Blackburn wrote: It seems that there either may be an issue with Zope security or I do not understand it properly. Please let me know what you guys think. It seems you misunderstood it. Lets say we have a principal with no direct permissions or roles

Re: AW: [Zope-dev] Re: [Zope3-Users] How do I automatically login a user

2008-04-09 Thread Zvezdan Petkovic
request._environ['REMOTE_ADDR']. On a basis of privacy of attributes starting with underscore, such as _environ, I would suggest using request.headers (for X-Forwarded- For) and request.environment instead. These are defined in the public interface API. -- Zvezdan Petkovic [EMAIL PROTECTED

Re: [Zope-dev] Zope 3.4 Release and KGS

2008-01-25 Thread Zvezdan Petkovic
On Jan 25, 2008, at 8:56 AM, Christophe Combelles wrote: Zvezdan Petkovic a écrit : On Jan 24, 2008, at 9:16 PM, Stephan Richter wrote: Before I am going to start that process, I wanted to ask whether people would like to see any new packages in the KGS or whether there are new releases

Re: [Zope-dev] Zope 3.4 Release and KGS

2008-01-25 Thread Zvezdan Petkovic
of zc.buildout-1.0.0b31 in the KGS? -- Zvezdan Petkovic [EMAIL PROTECTED] ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman