[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplateFile.py Merge r41209 from trunk (use proper call signature for logging, not zLOG)

2008-06-03 Thread Paul Winkler
Log message for revision 87132:
  Merge r41209 from trunk (use proper call signature for logging, not zLOG)
  

Changed:
  U   Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplateFile.py

-=-
Modified: 
Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplateFile.py
===
--- Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplateFile.py 
2008-06-03 17:42:05 UTC (rev 87131)
+++ Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplateFile.py 
2008-06-03 22:15:18 UTC (rev 87132)
@@ -149,7 +149,7 @@
 self.pt_edit(text, t)
 self._cook()
 if self._v_errors:
-LOG.error('Error in template', '\n'.join(self._v_errors))
+LOG.error('Error in template %s' % '\n'.join(self._v_errors))
 return
 self._v_last_read = mtime
 

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


Re: [Zope-dev] status of buildout.zope.org

2008-06-03 Thread Baiju M

Martijn Faassen wrote:

 Hi there,

 So, what's the status of buildout.zope.org?

 It's not up and running yet. What's holding it up? Can I do something
 to help? (I won't actually do anything about the content or layout,
 but I can talk to people if it's somehow blocked)


We are still working on it.  A site with content  basic design will be 
ready by next week.



 I mean, the initial site doesn't need to be much more work than, say,
 asking Rene Dudfield for permission to reuse his recent blog entry
 and dropping into some website with a reasonable layout, and then
 telling people what to do if they want to add content.

 http://renesd.blogspot.com/2008/05/buildout-tutorial-buildout-howto.html


 There's plenty of good content on buildout available, just gather it
 and put it into a single site.


I will post details about adding content soon after the site is up and 
running.


Regards,
Baiju M


___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Laurence Rowe

Hermann Himmelbauer wrote:

Am Montag, 2. Juni 2008 20:04 schrieb Hermann Himmelbauer:

Hi,
In my zope3 tests, I set up some basic test data. After that, I'm calling
transaction.commit(). However, I get the following traceback:


--- snip ---
  File copy_reg.py, line 69, in _reduce_ex
raise TypeError, can't pickle %s objects % base.__name__
TypeError: can't pickle module objects
-- snip ---


I found it by myself: I registered a zope.sqlalchemy related utility, which 
stores an engine (self.engine = create_engine(DSN,...)) and a scoped session 
(self.Session = scoped_session(sessionmaker...)). These two objects cannot be 
serialized, hence the above problem.


Now I'm unsure what to do about this problem - is there any code available 
that demonstrates how to register SA engines/Sessions as utilities?


The simplest solution is to register the Session object as a global utility.

Laurence

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Laurence Rowe

Laurence Rowe wrote:

Hermann Himmelbauer wrote:

Am Montag, 2. Juni 2008 20:04 schrieb Hermann Himmelbauer:

Hi,
In my zope3 tests, I set up some basic test data. After that, I'm 
calling

transaction.commit(). However, I get the following traceback:


--- snip ---
  File copy_reg.py, line 69, in _reduce_ex
raise TypeError, can't pickle %s objects % base.__name__
TypeError: can't pickle module objects
-- snip ---


I found it by myself: I registered a zope.sqlalchemy related utility, 
which stores an engine (self.engine = create_engine(DSN,...)) and a 
scoped session (self.Session = scoped_session(sessionmaker...)). These 
two objects cannot be serialized, hence the above problem.


Now I'm unsure what to do about this problem - is there any code 
available that demonstrates how to register SA engines/Sessions as 
utilities?


The simplest solution is to register the Session object as a global 
utility.


Though that would be quite unnecessary too ;-). If you are ok with one 
global scoped session for your app, then just use `from mymodule import 
Session; session = Session()`.


Laurence

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Tests: 5 OK

2008-06-03 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Mon Jun  2 11:00:00 2008 UTC to Tue Jun  3 11:00:00 2008 UTC.
There were 5 messages: 5 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Tests
Date: Mon Jun  2 20:57:27 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009645.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Tests
Date: Mon Jun  2 20:59:03 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009646.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Tests
Date: Mon Jun  2 21:00:33 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009647.html

Subject: OK : Zope-2.11 Python-2.4.4 : Linux
From: Zope Tests
Date: Mon Jun  2 21:02:09 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009648.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Tests
Date: Mon Jun  2 21:03:44 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-June/009649.html

___
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/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] status of buildout.zope.org

2008-06-03 Thread Martijn Faassen
Hi there,

On Tue, Jun 3, 2008 at 11:22 AM, Baiju M [EMAIL PROTECTED] wrote:
 Martijn Faassen wrote:

  So, what's the status of buildout.zope.org?

  It's not up and running yet. What's holding it up? Can I do something
  to help? (I won't actually do anything about the content or layout,
  but I can talk to people if it's somehow blocked)

 We are still working on it.  A site with content  basic design will be
 ready by next week.

Great to hear!

Regards,

Martijn
___
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/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Hermann Himmelbauer
Am Dienstag, 3. Juni 2008 12:21 schrieb Laurence Rowe:
 Laurence Rowe wrote:
  I found it by myself: I registered a zope.sqlalchemy related utility,
  which stores an engine (self.engine = create_engine(DSN,...)) and a
  scoped session (self.Session = scoped_session(sessionmaker...)). These
  two objects cannot be serialized, hence the above problem.
 
  Now I'm unsure what to do about this problem - is there any code
  available that demonstrates how to register SA engines/Sessions as
  utilities?
 
  The simplest solution is to register the Session object as a global
  utility.

 Though that would be quite unnecessary too ;-). If you are ok with one
 global scoped session for your app, then just use `from mymodule import
 Session; session = Session()`.

Hmmm, it's not that easy: I have multiple sites on one Zope3 instance, whereas 
every site should connect to another database. For that reason, I thought 
about a local utility. However, this results in this serialization error.

Best Regards,
Hermann

-- 
[EMAIL PROTECTED]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
___
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/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Buildout parameter parsing

2008-06-03 Thread Malthe Borch
I think a valuable extension to the parameter parsing in buildout's 
configuration language would be to allow += and -= operators, which 
would append and remove items, respectively.


Example:

[instance]
eggs += Products.PDBDebugMode

Singular or plural arguments would be supported.

\malthe

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Laurence Rowe
See the long discussion on zope.sqlalchemy Integration ideas. I think
the simplest way to achieve this is to register a global utility for
each site, with the site name as the utility name perhaps.

You can then register an ISession adapter for the root object in each
site that does:

session = getUtility(ISessionContext, name=sitename)()

Also sqlalchemy.orm.session.object_session can be used to return the
session of a currently mapped object. You could register it as an
adapter for ISession too, and then ISession(context) should return the
session wherever you need it.

Laurence

2008/6/3 Hermann Himmelbauer [EMAIL PROTECTED]:
 Am Dienstag, 3. Juni 2008 12:21 schrieb Laurence Rowe:
 Laurence Rowe wrote:
  I found it by myself: I registered a zope.sqlalchemy related utility,
  which stores an engine (self.engine = create_engine(DSN,...)) and a
  scoped session (self.Session = scoped_session(sessionmaker...)). These
  two objects cannot be serialized, hence the above problem.
 
  Now I'm unsure what to do about this problem - is there any code
  available that demonstrates how to register SA engines/Sessions as
  utilities?
 
  The simplest solution is to register the Session object as a global
  utility.

 Though that would be quite unnecessary too ;-). If you are ok with one
 global scoped session for your app, then just use `from mymodule import
 Session; session = Session()`.

 Hmmm, it's not that easy: I have multiple sites on one Zope3 instance, whereas
 every site should connect to another database. For that reason, I thought
 about a local utility. However, this results in this serialization error.

 Best Regards,
 Hermann

 --
 [EMAIL PROTECTED]
 GPG key ID: 299893C7 (on keyservers)
 FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7

___
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/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Five, Z2 publisher, and zope.traversing views

2008-06-03 Thread Tarek Ziadé
Hi,
When using a resource directory in a Zope 2 app, if the directory contains
subdirectories that have the same
names than the views defined in zope.traversing, this will lead to a bug
when traversed because the Z2 Publisher will
get slaped back.

This can happen for example if your resourcedirectoy has a lang folder (or
vh or skin, etc..)

We have wrote a small package with an adapter to make it work:

http://ingeniweb.svn.sourceforge.net/svnroot/ingeniweb/iw.resourcetraverser/trunk/iw/resourcetraverser/README.txt


But my understanding is that it would be better to fix it in Five,


Opinions ?


Regards,


Tarek

-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
___
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/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Buildout parameter parsing

2008-06-03 Thread Rafael Oliveira
On Tue, Jun 3, 2008 at 9:52 AM, Malthe Borch [EMAIL PROTECTED] wrote:
 I think a valuable extension to the parameter parsing in buildout's
 configuration language would be to allow += and -= operators, which would
 append and remove items, respectively.

 Example:

 [instance]
 eggs += Products.PDBDebugMode

 Singular or plural arguments would be supported.

It would be very useful when used together with extends. Example
(taken from [1]). You have a base.cfg:


[instance]
eggs =
PILwoTK
lxml  2.0
zope.testing == 3.5


And you want to write a development.cfg, which adds a new egg for
debugging. Currently you have to do:


[buildout]
extends = base.cfg

[instance]
eggs =
PILwoTK
lxml  2.0
zope.testing == 3.5
Products.PDBDebugMode


With the new operator you could simplify it to:


[buildout]
extends = base.cfg

[instance]
eggs += Products.PDBDebugMode


Tell me if I misunderstood the idea.

[1] https://svn.infrae.com/buildout/silva/trunk/profiles/

Regards,
-- 
Rafael Bruno Cavalhero de Oliveira [EMAIL PROTECTED]
Analista de Sistemas - Paradigma http://www.paradigma.com.br
Mestrando em Ciência da Informação - UFMG
http://rafaelb.objectis.net
___
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/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Buildout parameter parsing

2008-06-03 Thread Philipp von Weitershausen

Malthe Borch wrote:
I think a valuable extension to the parameter parsing in buildout's 
configuration language would be to allow += and -= operators, which 
would append and remove items, respectively.


Example:

[instance]
eggs += Products.PDBDebugMode

Singular or plural arguments would be supported.

\malthe


This isn't the buildout list :). I think buildout matters are discussed 
on the distutils SIG mailinglist. There's also an issue tracker at 
https://edge.launchpad.net/zc.buildout.

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Buildout parameter parsing

2008-06-03 Thread Malthe Borch

Philipp von Weitershausen wrote:
This isn't the buildout list :). I think buildout matters are discussed 
on the distutils SIG mailinglist.


I guess they're also discussed here now :P

There's also an issue tracker at 
https://edge.launchpad.net/zc.buildout.


I'll submit it there, thanks.

\malthe

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Buildout parameter parsing

2008-06-03 Thread Malthe Borch

This is now:
https://answers.edge.launchpad.net/zc.buildout/+question/35159

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: DirectoryResource, Five and IAbsoluteURL

2008-06-03 Thread Malthe Borch

Malthe Borch wrote:
However, trying to get the absolute url of the resource fails, and it 
seems to be an acquisition-wrapping thing.


FWIW, this adapter will do the trick, although it's hardly a solid solution:

  class SimpleResourceAbsoluteURL(object):
  interface.implements(
  zope.traversing.browser.interfaces.IAbsoluteURL)
  component.adapts(
  Products.Five.browser.resource.DirectoryResource,
  zope.publisher.interfaces.browser.IDefaultBrowserLayer)

  def __init__(self, context, request):
  self.context = context

  def __str__(self):
  return self.context()

\malthe

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] DirectoryResource, Five and IAbsoluteURL

2008-06-03 Thread Malthe Borch

These three don't mix well; here's the setup:

Using ``zope.traversing.api.traverse``, we're able to traverse from the 
site root to the directory resource, and on to the actual resource by 
way of OFS.Traversable.


However, trying to get the absolute url of the resource fails, and it 
seems to be an acquisition-wrapping thing.


We're in ``Products.Five.browser.resource.Resource``, and the directory 
resource has the following aq_chain:


[Products.Five.metaclass.DirectoryResource9 object at 0x9a1de30,
 Products.Five.metaclass.DirContainedImageResource9 object at 0x9a1d630,
 Products.Five.metaclass.DirectoryResource9 object at 0x9a1de30]

A lethal cocktail. Can anyone shed light on this issue?

\malthe

___
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/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Strange serializing error when commiting - zope.sqlalchemy

2008-06-03 Thread Dieter Maurer
Hermann Himmelbauer wrote at 2008-6-3 14:00 +0200:
 ...
Hmmm, it's not that easy: I have multiple sites on one Zope3 instance, whereas 
every site should connect to another database. For that reason, I thought 
about a local utility. However, this results in this serialization error.

Usually, you should not commit in a test suite.

If you do not commit, you will not have pickling problems.



-- 
Dieter
___
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/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope] Reinventing a proxy wheel?

2008-06-03 Thread Gaute Amundsen
Hi.

I think I may just have reinvented a kind of cgi-proxy for authentication 
purposes. Seems to work nicely so far, but oh, so ugly. Thus I would be 
gratefull for any pointers towards some more enlightened solution.

Problem to solve: External php based facility needs to be made available to 
logged in zope users only, but have no built in mechanism to to 
handle everyone must log in to see anything at all situations. Some users 
can be synced by way of sql, but many can not. This is a given.

My solution so far: An external method that wraps wget. Rearanges the url to 
connect via 127.0.0.1, and use original host as host header. Use Apache to 
close access to everyone but 127.0.0.1. Rest of the script basically shuffles 
headers back and forth from zope to wget, and back. and the script can of 
course be subject to normal zope access checks.

If no major flaws with this approach appears, I will of course replace wget 
with urllib, and perhaps even productify the thing, but before I do that I 
have this nagging feeling of reinventing the wheel that I need to address...

Regards

Gaute Amundsen


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


Re: [Zope] statistics and click analysis for a plone site

2008-06-03 Thread wchr

robert rottermann wrote:

Any pointers would be welcome.


maybe you want to check out visitors:
http://www.hping.org/visitors/
http://www.hping.org/visitors/graph.png

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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] acl_users folder 25000

2008-06-03 Thread Kees de Brabander
A client of mine wants a site that is only accessible for members. However,
there are more than 25000 members. Are there any reasons that would make it
unwise to populate an ordinary acl_users folder with such a number of user
accounts?
If so, what other options do I have?
tia
Cornelis J. de Brabander
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] acl_users folder 25000

2008-06-03 Thread Andreas Jung



--On 3. Juni 2008 15:48:55 +0200 Kees de Brabander 
[EMAIL PROTECTED] wrote:



A client of mine wants a site that is only accessible for members.
If so, what other options do I have?


LDAP, RDBMS

-aj

pgpfyOQuLs7wh.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] acl_users folder 25000

2008-06-03 Thread Martijn Jacobs

Kees de Brabander wrote:
A client of mine wants a site that is only accessible for members. 
However, there are more than 25000 members. Are there any reasons that 
would make it unwise to populate an ordinary acl_users folder with 
such a number of user accounts?

If so, what other options do I have?
If it's possible to use a existing userdatabase or authentication source 
I would prefer to use that. With 
http://www.zope.org/Products/PluggableAuthService/ it's very easy to let 
zope authenticate against any kind of database or source (including 
MySQL/LDAP etc). And if it's a custom source it's not difficult to write 
your own authentication plugin.


Where and how are these accounts stored now? LDAD/ADS or something else?


Martijn.

--
Martijn Jacobs
Four Digits, Internet Solutions

a: Willemsplein 15-1 6811 KB Arnhem NL 
kvk: 09162137 | btw: 8161.22.234.B01

e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 

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


RE: [Zope] acl_users folder 25000

2008-06-03 Thread Kees de Brabander
 

  _  

Van: Martijn Jacobs [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 3 juni 2008 15:57
Aan: Kees de Brabander
CC: zope@zope.org
Onderwerp: Re: [Zope] acl_users folder  25000


Kees de Brabander wrote: 

A client of mine wants a site that is only accessible for members. However,
there are more than 25000 members. Are there any reasons that would make it
unwise to populate an ordinary acl_users folder with such a number of user
accounts?
If so, what other options do I have?

If it's possible to use a existing userdatabase or authentication source I
would prefer to use that. With
http://www.zope.org/Products/PluggableAuthService/
http://www.zope.org/Products/PluggableAuthService/ it's very easy to let
zope authenticate against any kind of database or source (including
MySQL/LDAP etc). And if it's a custom source it's not difficult to write
your own authentication plugin.

Where and how are these accounts stored now? LDAD/ADS or something else?

I have no idea.
I have been looking at the PAS, but did not find to much documentation on
it.
Would it be possible to use a database that my client does maintain?
 
cb
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] acl_users folder 25000

2008-06-03 Thread Martijn Jacobs

Kees de Brabander wrote:

I have no idea.
I have been looking at the PAS, but did not find to much documentation 
on it.

Would it be possible to use a database that my client does maintain?
 
cb
Yes that would be possible. Take a look at 
http://plone.org/products/gmailauthplugin as it's a pretty nice example 
how to write a plugin yourself. You can also take a look at 
https://svn.plone.org/svn/collective/PASPlugins/



Martijn

--
Martijn Jacobs
Four Digits, Internet Solutions

a: Willemsplein 15-1 6811 KB Arnhem NL 
kvk: 09162137 | btw: 8161.22.234.B01

e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 

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


RE: [Zope] acl_users folder 25000

2008-06-03 Thread Kees de Brabander
Ok, thanks I'll check it out.
cb

  _  

Van: Martijn Jacobs [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 3 juni 2008 16:13
Aan: Kees de Brabander
CC: zope@zope.org
Onderwerp: Re: [Zope] acl_users folder  25000


Kees de Brabander wrote: 


I have no idea.
I have been looking at the PAS, but did not find to much documentation on
it.
Would it be possible to use a database that my client does maintain?
 
cb

Yes that would be possible. Take a look at
http://plone.org/products/gmailauthplugin as it's a pretty nice example how
to write a plugin yourself. You can also take a look at
https://svn.plone.org/svn/collective/PASPlugins/


Martijn


-- 

Martijn Jacobs

Four Digits, Internet Solutions



a: Willemsplein 15-1 6811 KB Arnhem NL 

kvk: 09162137 | btw: 8161.22.234.B01

e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl

tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 

No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3-6-2008
7:00


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


Re: [Zope] acl_users folder 25000

2008-06-03 Thread Tim Nash
Thanks for the link to the gmailauthplugin.

I am trying it out on plone 3 on a mac tiger laptop and I'm getting
the following error:


Exception Type  URLError
Exception Value urlopen error no host given

*  Module ZPublisher.Publish, line 110, in publish
* Module ZPublisher.BaseRequest, line 580, in traverse
* Module Products.PluggableAuthService.PluggableAuthService, line
233, in validate
* Module Products.PluggableAuthService.PluggableAuthService, line
600, in _extractUserIds
* Module Products.GMailAuthPlugin.GMailAuthPlugin, line 89, in
authenticateCredentials
* Module Products.GMailAuthPlugin.libgmail_incl.libgmail, line 320, in login
* Module Products.GMailAuthPlugin.libgmail_incl.libgmail, line
333, in _retrievePage
* Module urllib2, line 130, in urlopen
* Module urllib2, line 356, in open
* Module urllib2, line 943, in do_request_

Here is the environment specifics:

 Zope Version  (Zope 2.10.5-final, python 2.4.4, darwin)
Python Version 2.4.4 (#1, Feb 21 2008, 21:15:12) [GCC 4.0.1 (Apple
Computer, Inc. build 5250)]
System Platform darwin
SOFTWARE_HOME /Applications/Plone-3.0.6/lib/python

Any Suggestions?
Thanks in advance.
-Tim
www.medicinebrain.com


On 6/3/08, Martijn Jacobs [EMAIL PROTECTED] wrote:
 Kees de Brabander wrote:
 I have no idea.
 I have been looking at the PAS, but did not find to much documentation
 on it.
 Would it be possible to use a database that my client does maintain?

 cb
 Yes that would be possible. Take a look at
 http://plone.org/products/gmailauthplugin as it's a pretty nice example
 how to write a plugin yourself. You can also take a look at
 https://svn.plone.org/svn/collective/PASPlugins/


 Martijn

 --
 Martijn Jacobs
 Four Digits, Internet Solutions

 a: Willemsplein 15-1 6811 KB Arnhem NL
 kvk: 09162137 | btw: 8161.22.234.B01
 e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl
 tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117


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