r252645 - in collective.zipfiletransport/trunk/collective/zipfiletransport: browser locales/ar/LC_MESSAGES locales/pt/LC_MESSAGES locales/zh-hk/LC_MESSAGES
"Encolpe Degoute" <svn-changes-z4DKO/[email protected]> Thu, 17 Oct 2013 02:48:53 +0000 (UTC)
| Newsgroups | gmane.comp.web.zope.plone.collective.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: encolpe
Date: Thu Oct 17 02:48:52 2013
New Revision: 252645
Modified:
collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py
collective.zipfiletransport/trunk/collective/zipfiletransport/locales/ar/LC_MESSAGES/ZipFileTransport.mo
collective.zipfiletransport/trunk/collective/zipfiletransport/locales/pt/LC_MESSAGES/ZipFileTransport.mo
collective.zipfiletransport/trunk/collective/zipfiletransport/locales/zh-hk/LC_MESSAGES/ZipFileTransport.mo
Log:
Should use a permission instead of hardcode anonymous
Modified: collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py
==============================================================================
--- collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py (original)
+++ collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py Thu Oct 17 02:48:52 2013
@@ -92,8 +92,10 @@
if filename.find('.zip') == -1:
filename += ".zip"
- if self.context.portal_membership.isAnonymousUser() != 0:
- return
+ ## Why ?
+ #if self.context.portal_membership.isAnonymousUser() != 0:
+ # return
+ ## XX should use a permission
zipfilename = self.zft_util.generateSafeFileName(filename)
#Detect OS
Modified: collective.zipfiletransport/trunk/collective/zipfiletransport/locales/ar/LC_MESSAGES/ZipFileTransport.mo
==============================================================================
Binary files. No diff available.
Modified: collective.zipfiletransport/trunk/collective/zipfiletransport/locales/pt/LC_MESSAGES/ZipFileTransport.mo
==============================================================================
Binary files. No diff available.
Modified: collective.zipfiletransport/trunk/collective/zipfiletransport/locales/zh-hk/LC_MESSAGES/ZipFileTransport.mo
==============================================================================
Binary files. No diff available.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk