[Zope-dev] Configurable Blob Permissions ZODB

2011-06-17 Thread Robert Niederreiter
Hi,

Refering to this bug report

https://bugs.launchpad.net/zodb/+bug/683751

And this usecases

http://stackoverflow.com/questions/6168566/collective-xsendfile-zodb-blobs-and-unix-file-permissions

It would be great if create mode of blobs would be configurable in ZODB
directly.

For UNIX Systems there could be 2 flags for folder creation mode and
blob file permissions, i.e.

BLOB_FOLDER_MODE = 750
BLOB_FILE_PERMISSIONS = stat.S_IRUSR | stat.S_IRGRP

which are used then at the appropriate places. 
See here: http://pastebin.com/wNLYyXvw

I don't know how this refers to NTFS, though.

Further this configuration flags should be available in ZOPE and ZEO
Server configuration files.

Any doubts, suggestions, other ideas?

Regards,

Robert

-- 
Robert Niederreiter

Squarewave Computing
Aflingerstraße 19
A-6176 Völs
Tel: +43 699 160 20 192
Web: http://www.squarewave.at

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
Hello all,

In order to serve the same application to multiple clients, I've added
a container named say 'Site' to the root and made them as sites by
site.setSiteManager(LocalSiteManager(site)).  So, the root may contain
many of those 'Site' containers say 'site1', 'site2', etc. and the
application specific objects/containers resides under them.

The application specific URL say /container1/object1/@@add.html would
now become /site1/container1/object1/@@add.html for 'site1' and
/site2/container1/object1/@@add.html for 'site2' etc. depending on
which client (site) is being served. So, how should the URLs be in the
templates? Or in other words, how to handle URLs for multiple clients
(sites) for the same application.

If anyone can explain or point me to some documentation related to this,
it would be very helpful.
-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Configurable Blob Permissions ZODB

2011-06-17 Thread Jim Fulton
On Fri, Jun 17, 2011 at 4:53 AM, Robert Niederreiter r...@squarewave.at wrote:
 Hi,

 Refering to this bug report

 https://bugs.launchpad.net/zodb/+bug/683751

 And this usecases

 http://stackoverflow.com/questions/6168566/collective-xsendfile-zodb-blobs-and-unix-file-permissions

 It would be great if create mode of blobs would be configurable in ZODB
 directly.

 For UNIX Systems there could be 2 flags for folder creation mode and
 blob file permissions, i.e.

 BLOB_FOLDER_MODE = 750
 BLOB_FILE_PERMISSIONS = stat.S_IRUSR | stat.S_IRGRP

 which are used then at the appropriate places.
 See here: http://pastebin.com/wNLYyXvw

 I don't know how this refers to NTFS, though.

 Further this configuration flags should be available in ZOPE and ZEO
 Server configuration files.

 Any doubts, suggestions, other ideas?

-1 for a new configuration option.

I would rather just have write permission *only* removed
from committed blob files.  Read permissions should be controlled
by existing mechanisms such as umask.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Configurable Blob Permissions ZODB

2011-06-17 Thread Hanno Schlichting
On Fri, Jun 17, 2011 at 2:06 PM, Jim Fulton j...@zope.com wrote:
 On Fri, Jun 17, 2011 at 4:53 AM, Robert Niederreiter r...@squarewave.at 
 wrote:
 Any doubts, suggestions, other ideas?

 -1 for a new configuration option.

 I would rather just have write permission *only* removed
 from committed blob files.  Read permissions should be controlled
 by existing mechanisms such as umask.

+1 on Jim's suggestion - much simpler :)

Hanno
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Configurable Blob Permissions ZODB

2011-06-17 Thread Robert Niederreiter
Am Freitag, den 17.06.2011, 08:06 -0400 schrieb Jim Fulton:
  Any doubts, suggestions, other ideas?
 
 -1 for a new configuration option.
 
 I would rather just have write permission *only* removed
 from committed blob files.  Read permissions should be controlled
 by existing mechanisms such as umask.

So changing the creation mode for folders to 755 and for blobs to 444
would be the solution then. right?

Has this a chance to get into the next ZODB release?

Robert

 
 Jim
 


-- 
Robert Niederreiter

Squarewave Computing
Aflingerstraße 19
A-6176 Völs
Tel: +43 699 160 20 192
Web: http://www.squarewave.at

___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Configurable Blob Permissions ZODB

2011-06-17 Thread Jim Fulton
On Fri, Jun 17, 2011 at 8:45 AM, Robert Niederreiter r...@squarewave.at wrote:
 Am Freitag, den 17.06.2011, 08:06 -0400 schrieb Jim Fulton:
  Any doubts, suggestions, other ideas?

 -1 for a new configuration option.

 I would rather just have write permission *only* removed
 from committed blob files.  Read permissions should be controlled
 by existing mechanisms such as umask.

 So changing the creation mode for folders to 755 and for blobs to 444
 would be the solution then. right?

No. Use the default mode for folders and files, but removing write
access on committed blob files.

 Has this a chance to get into the next ZODB release?

Of course, but it's not a priority for me personally. I'd be happy to
review a patch with tests.  I'd even consider this a bug fix, rather
than a feature, so it could get into a 3.10 release.

Jim

--
Jim Fulton
http://www.linkedin.com/in/jimfulton
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [BlueBream] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
Hello Thierry,

Thanks for the reply.

On Fri, 2011-06-17 at 14:31 +0200, Thierry Florac wrote:
 I guess you just want to do virtual hosting inside a single BlueBream
 application server 

Ok. That is one way to say. What if I want to add new sites dynamically
from the web frontend?

For the virtual hosting, I don't have to care about the URL prefix, I
just treat my URLs as say, /container1/object1/@@add.html instead of
/site1/container1/object1/@@add.html.

But say, I have a view page for http://localhost:/; (i.e. for
zope.site.interfaces.IRootFolder) which has links to create new sites.
And say, I create necessary application specific objects under them when
the new site is added to the root.

How to dynamically handle the URLs for this kind of situation?

-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [BlueBream] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
Hello,

Sorry to bother again.

On Fri, 2011-06-17 at 16:47 +0200, Thierry Florac wrote:
 Sorry but I'm not really sure to understand what you want or need...
 
 The physical path of your folder inside your ZODB is
 '/site1/container1/...' and to access such a site you only have two
 ways to do it :
  - address it directly in the URL
  - or use virtual hosting to hide '/site1' from the URL

Ok, let me give an use-case. Say, I have a base page layout template for
the inner sites like http://localhost:/site1; which has many
application related menu links on the top and left hand side of the page
with center space for contents. All these links are of the format
/container1/ When I use virtual hosting to '/site1' I have no
problem, all the links will be a valid one, as it will be prefixed by
http://localhost:/site1;

But, If I don't use virtual hosting and I expose
http://localhost:/; URL to the user to create new sites. The links
in base page layout template for the inner sites will be an invalid one
as it will be pointing to http://localhost:/container1/..; instead
of http://localhost:/site1/container1/..;

I am trying to figure out how to prefix the links in the base page
layout template with site names based on which site they belong. So that
the links in the base page layout template of 'site1' would be of the
format '/site1/container1/.. and the links in base page layout template
of 'site2' would be of the format '/site2/container1/.. etc.

I guess the solution to this (without virtual hosting) would be: when I
render the base page layout template for http://localhost:/site1;
get the 'site1' part from the request URL and prefix all the related
menu links with them. Is there any other better solution?

But, If I use this base page layout template as a macro (just to fill
its center content with an add form say) still the menu links has to be
a valid one. How to handle this?

Hope I clarified what I need. Please excuse me if my question sounds too
novice.


-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [BlueBream] handling URLs for multiple sites in single bluebream instance

2011-06-17 Thread Joshua Immanuel
Hello Thierry,

On Fri, 2011-06-17 at 19:28 +0200, Thierry Florac wrote:
 I suppose that you could write your own IAbsoluteURL adapter ;-)
 Alternatively, for a given context, you can probably try to find it's
 parent site (« site1 », via getParents() traversing method), get
 it's URL and concatenate it with your actual absolute URLs... 

I'll try out and get back. 

Thanks for answering my queries patiently.
-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in


signature.asc
Description: This is a digitally signed message part
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] zope-tests - FAILED: 8, OK: 76

2011-06-17 Thread Zope tests summarizer
This is the summary for test reports received on the 
zope-tests list between 2011-06-16 00:00:00 UTC and 2011-06-17 00:00:00 UTC:

See the footnotes for test reports of unsuccessful builds.

An up-to date view of the builders is also available in our 
buildbot documentation: 
http://docs.zope.org/zopetoolkit/process/buildbots.html#the-nightly-builds

Reports received


   Bluebream / Python2.4.6 64bit linux
   Bluebream / Python2.5.5 64bit linux
   Bluebream / Python2.6.5 64bit linux
   ZTK 1.0 / Python2.4.6 Linux 64bit
   ZTK 1.0 / Python2.5.5 Linux 64bit
   ZTK 1.0 / Python2.6.5 Linux 64bit
   ZTK 1.0dev / Python2.4.6 Linux 64bit
   ZTK 1.0dev / Python2.5.5 Linux 64bit
   ZTK 1.0dev / Python2.6.5 Linux 64bit
   Zope 3.4 KGS / Python2.4.6 64bit linux
   Zope 3.4 KGS / Python2.5.5 64bit linux
   Zope 3.4 Known Good Set / py2.4-32bit-linux
   Zope 3.4 Known Good Set / py2.4-64bit-linux
   Zope 3.4 Known Good Set / py2.5-32bit-linux
   Zope 3.4 Known Good Set / py2.5-64bit-linux
   Zope Buildbot / zope2.12-py2.6 slave-osx
   Zope Buildbot / zope2.12-py2.6 slave-ubuntu32
   Zope Buildbot / zope2.12-py2.6 slave-ubuntu64
   Zope Buildbot / zope2.13-py2.6 slave-osx
   Zope Buildbot / zope2.13-py2.6 slave-ubuntu32
   Zope Buildbot / zope2.13-py2.6 slave-ubuntu64
   Zope Buildbot / zope2.13-py2.7 slave-osx
   Zope Buildbot / zope2.13-py2.7 slave-ubuntu32
   Zope Buildbot / zope2.13-py2.7 slave-ubuntu64
   Zope Buildbot / zope2.14-py2.6 slave-osx
   Zope Buildbot / zope2.14-py2.6 slave-ubuntu32
   Zope Buildbot / zope2.14-py2.6 slave-ubuntu64
   Zope Buildbot / zope2.14-py2.7 slave-osx
   Zope Buildbot / zope2.14-py2.7 slave-ubuntu32
   Zope Buildbot / zope2.14-py2.7 slave-ubuntu64
   Zope Buildbot / zopetoolkit-1.0-py2.4 slave-osx
   Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu32
   Zope Buildbot / zopetoolkit-1.0-py2.4 slave-ubuntu64
   Zope Buildbot / zopetoolkit-1.0-py2.5 slave-osx
   Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu32
   Zope Buildbot / zopetoolkit-1.0-py2.5 slave-ubuntu64
   Zope Buildbot / zopetoolkit-1.0-py2.6 slave-osx
   Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu32
   Zope Buildbot / zopetoolkit-1.0-py2.6 slave-ubuntu64
   Zope Buildbot / zopetoolkit-1.1-py2.5 slave-osx
   Zope Buildbot / zopetoolkit-1.1-py2.5 slave-ubuntu32
   Zope Buildbot / zopetoolkit-1.1-py2.5 slave-ubuntu64
   Zope Buildbot / zopetoolkit-1.1-py2.6 slave-osx
[1]Zope Buildbot / zopetoolkit-1.1-py2.6 slave-ubuntu32
   Zope Buildbot / zopetoolkit-1.1-py2.6 slave-ubuntu64
   Zope Buildbot / zopetoolkit-py2.5 slave-osx
   Zope Buildbot / zopetoolkit-py2.5 slave-ubuntu32
   Zope Buildbot / zopetoolkit-py2.5 slave-ubuntu64
   Zope Buildbot / zopetoolkit-py2.6 slave-osx
   Zope Buildbot / zopetoolkit-py2.6 slave-ubuntu32
   Zope Buildbot / zopetoolkit-py2.6 slave-ubuntu64
   Zope-2.10 Python-2.4.6 : Linux
   Zope-2.11 Python-2.4.6 : Linux
   Zope-2.12 Python-2.6.6 : Linux
   Zope-2.12-alltests Python-2.6.6 : Linux
   Zope-2.13 Python-2.6.6 : Linux
   Zope-2.13-alltests Python-2.6.6 : Linux
   Zope-trunk Python-2.6.6 : Linux
   Zope-trunk-alltests Python-2.6.6 : Linux
   winbot / ZODB_dev py_254_win32
   winbot / ZODB_dev py_265_win32
   winbot / ZODB_dev py_265_win64
   winbot / ZODB_dev py_270_win32
   winbot / ZODB_dev py_270_win64
[2]winbot / z3c.coverage_py_265_32
[3]winbot / z3c.rml_py_265_32
[4]winbot / zc_buildout_dev py_254_win32
[5]winbot / zc_buildout_dev py_265_win32
[6]winbot / zc_buildout_dev py_265_win64
[7]winbot / zc_buildout_dev py_270_win32
[8]winbot / zc_buildout_dev py_270_win64
   winbot / ztk_10 py_254_win32
   winbot / ztk_10 py_265_win32
   winbot / ztk_10 py_265_win64
   winbot / ztk_11 py_254_win32
   winbot / ztk_11 py_265_win32
   winbot / ztk_11 py_265_win64
   winbot / ztk_11 py_270_win32
   winbot / ztk_11 py_270_win64
   winbot / ztk_dev py_254_win32
   winbot / ztk_dev py_265_win32
   winbot / ztk_dev py_265_win64
   winbot / ztk_dev py_270_win32
   winbot / ztk_dev py_270_win64

Non-OK results
--

[1]FAILED  Zope Buildbot / zopetoolkit-1.1-py2.6 slave-ubuntu32
   https://mail.zope.org/pipermail/zope-tests/2011-June/043603.html


[2]FAILED  winbot / z3c.coverage_py_265_32
   https://mail.zope.org/pipermail/zope-tests/2011-June/043571.html


[3]FAILED  winbot / z3c.rml_py_265_32
   https://mail.zope.org/pipermail/zope-tests/2011-June/043570.html


[4]FAILED  winbot / zc_buildout_dev py_254_win32
   https://mail.zope.org/pipermail/zope-tests/2011-June/043631.html


[5]FAILED  winbot / zc_buildout_dev py_265_win32
   https://mail.zope.org/pipermail/zope-tests/2011-June/043632.html