Re: [Zope3-Users] Disabling authentication for resources

2008-07-08 Thread Shailesh Kumar
Did you try the resourceDirecotry ZCML directive?




that way they don't need the authentication overhead.

On 7/8/08, andrew <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I've got a web application that uses pluggable authentication, but I
> don't want the overhead of authentication for public resources like CSS,
> javascript, images, etc. Is it possible to just disable authentication
> for a given resource ? I tried just setting the permission to zope.View,
> but that didn't seem to make any difference.
>
> Cheers, Andrew.
>
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Disabling authentication for resources

2008-07-08 Thread andrew
Hi All,

I've got a web application that uses pluggable authentication, but I
don't want the overhead of authentication for public resources like CSS,
javascript, images, etc. Is it possible to just disable authentication
for a given resource ? I tried just setting the permission to zope.View,
but that didn't seem to make any difference.

Cheers, Andrew.

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] zopeproject & Translations

2008-07-08 Thread Tim Cook
I have a project that is based on zopeproject.

There are several people working on translations on this domain via 
Launchpad translation services.

The project is in a directory called oship.  I have initially put the 
translations in a directory:

oship/src/oship/locales

But I was wondering if the correct location to use with Zope should
really be in 

oship/locales

I haven't investigated Zope Translation tools in many months so this may
be completely configurable but I am hoping for an answer here before I
create my document to tell the users how to install translations into
the application(s).

Thanks,
Tim
 



-- 
Timothy Cook, MSc
Health Informatics Research & Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == timothy.cook 
**
*You may get my Public GPG key from  popular keyservers or   *
*from this link http://timothywayne.cook.googlepages.com/home*
**


signature.asc
Description: This is a digitally signed message part
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] OOBtrees & ZODB

2008-07-08 Thread Tim Cook

On Tue, 2008-07-08 at 09:31 -0700, Shailesh Kumar wrote:
> BTreeContainer doesn't support site managers.
>  
> Folder is a subclass of SiteManagerContainer which is a subclass of
> BTreeContainer.
>  
> You can happily use Folder here.
>  

Thanks.  I hadn't noticed that.  In the earlier days of Zope2, Folder
was kind of weak with large numbers of objects.


Cheers,
Tim





signature.asc
Description: This is a digitally signed message part
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] OOBtrees & ZODB

2008-07-08 Thread Shailesh Kumar
BTreeContainer doesn't support site managers.

Folder is a subclass of SiteManagerContainer which is a subclass of
BTreeContainer.

You can happily use Folder here.

With regards,
- Shailesh



On 7/8/08, Tim Cook <[EMAIL PROTECTED]> wrote:
>
> I am building a platform where I want to initialize the ZODB (that will
> be running under Zope) with three folders with sitemanagers.
>
> If I use Folders like this:
>
> if 'AR' not in root['Application']:
>root['Application']['AR']=folder.Folder()
>sm = LocalSiteManager(root['Application']['AR'])
>root['Application']['AR'].setSiteManager(sm)
>transaction.commit()
>
> it works great and I can then add initial objects to the folders.
>
> But, these folder sill potentially contain tens of thousands of objects
> so I really want to use BTree Folders.  But when I do this:
>
> from zope.app.container.btree import BTreeContainer
>
> ... 
>
> if 'AR' not in root['Application']:
>root['Application']['AR']=BTreeContainer()
>sm = LocalSiteManager(root['Application']['AR'])
>root['Application']['AR'].setSiteManager(sm)
>transaction.commit()
>
> I get this:
>
> File
> "/home/tim/projects/ref_impl_python/TRUNK/oship/src/oship/atbldr/atbldr.py",
> line 78, in ?
>root['Application']['AR'].setSiteManager(sm)
> AttributeError: 'BTreeContainer' object has no attribute
> 'setSiteManager'
>
> So BtreeContainers don't have a siteManager.
>
> I would like to OOBTree but I have been unable to even discern the
> proper way to import it.
>
> Thanks.
>
> Tim
>
>
>
>
>
> --
> Timothy Cook, MSc
> Health Informatics Research & Development Services
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
> Skype ID == timothy.cook
> **
> *You may get my Public GPG key from  popular keyservers or   *
> *from this link http://timothywayne.cook.googlepages.com/home*
> **
>
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
>
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] OOBtrees & ZODB

2008-07-08 Thread Tim Cook
I am building a platform where I want to initialize the ZODB (that will
be running under Zope) with three folders with sitemanagers.

If I use Folders like this:

if 'AR' not in root['Application']:
root['Application']['AR']=folder.Folder()
sm = LocalSiteManager(root['Application']['AR'])
root['Application']['AR'].setSiteManager(sm)
transaction.commit()

it works great and I can then add initial objects to the folders.

But, these folder sill potentially contain tens of thousands of objects
so I really want to use BTree Folders.  But when I do this:

from zope.app.container.btree import BTreeContainer

... 

if 'AR' not in root['Application']:
root['Application']['AR']=BTreeContainer()
sm = LocalSiteManager(root['Application']['AR'])
root['Application']['AR'].setSiteManager(sm)
transaction.commit()

I get this:

  File
"/home/tim/projects/ref_impl_python/TRUNK/oship/src/oship/atbldr/atbldr.py", 
line 78, in ?
root['Application']['AR'].setSiteManager(sm)
AttributeError: 'BTreeContainer' object has no attribute
'setSiteManager'

So BtreeContainers don't have a siteManager.  

I would like to OOBTree but I have been unable to even discern the
proper way to import it.

Thanks.

Tim



 

-- 
Timothy Cook, MSc
Health Informatics Research & Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == timothy.cook 
**
*You may get my Public GPG key from  popular keyservers or   *
*from this link http://timothywayne.cook.googlepages.com/home*
**


signature.asc
Description: This is a digitally signed message part
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] meta.zcml from configure.zcml

2008-07-08 Thread Jean-François Roche

Hello,

  Design question, is it considered bad practice to include a meta.zcml 
from a configure.zcml file ?


e.g Package A depends on package B

My package A requires some meta defined in package B before loading 
configure of package B so I do in configure.zcml of package A:


http://namespaces.zope.org/zope";
   ...
>

   

   



Bad ? Ok ?

  Thanks.

Jeff
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users