Re: [Zope-Coders] Wrong username and password == Anonymous User?

2005-04-20 Thread Lennart Regebro
On 4/20/05, Sidnei da Silva [EMAIL PROTECTED] wrote: Supposedly you would not be able to access that part of the site until you authenticate against it. Isn't that the case now? Assuming it requires authentication, yes. The main problem here is that Internet Explorer doesn't allow you to log

Re: [Zope-Coders] Wrong username and password == Anonymous User?

2005-04-20 Thread Chris Withers
Lennart Regebro wrote: Supposedly you would not be able to access that part of the site until you authenticate against it. Isn't that the case now? Assuming it requires authentication, yes. And if it doesn't require authentication? Also, what determines whether it requires authentication?

Re: [Zope-Coders] Re: Wrong username and password == Anonymous User?

2005-04-20 Thread Chris Withers
Tres Seaver wrote: -1 without extensive testing on a branch, especially including heavy testing of basic-auth-only scenarios. Tinkering with the machinery here after a couple of hours head-scratching ignores the fact that the machinery *works* in the teeth of all the weird behavior built into

Re: [Zope-Coders] Wrong username and password == Anonymous User?

2005-04-20 Thread Paul Winkler
On Wed, Apr 20, 2005 at 06:22:10PM +0200, Lennart Regebro wrote: On 4/20/05, Chris Withers [EMAIL PROTECTED] wrote: Lennart Regebro wrote: Supposedly you would not be able to access that part of the site until you authenticate against it. Isn't that the case now? Assuming it requires

Re: [Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-20 Thread Chris Withers
Jens Vagelpohl wrote: From what I understand it prevents the installation/writing of a product into the ZODB (the products management part of the Control_Panel) and thus prevents conflict errors. If the product is already installed (e.g. by a client who is allowed to do so) then you can

Re: [Zope-dev] To ZCML or not ;-)

2005-04-20 Thread Chris Withers
Martijn Faassen wrote: Anyway, while I have my criticisms of ZCML, too much typing is really not very important in my list. You can get it somewhat shorter, I'm sure, but not *that* much shorter. I'd worry more about the reading part than the writing. More typing = more reading in my books, so

Re: [Zope-dev] To ZCML or not ;-)

2005-04-20 Thread Chris Withers
Stephan Richter wrote: Can you be more specific? I think ZCML is very compact. Well, I'm hoping to take a proper look at the latest Z3 some time soon, so I'll let you know after that and shut up on the subject in the meantime ;-) cheers, Chris -- Simplistix - Content Management, Zope Python

[Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-20 Thread Chris Withers
Sidnei da Silva wrote: | Now, 5.2 is where I have the problem, since raising unauthorized | anywhere in Zope traditionally pops up a basic auth box rather than | returning standard_error_message with a 403 response which, as time goes | by, I'm starting to think is what should really happen.

Re: [Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-20 Thread Paul Winkler
On Wed, Apr 20, 2005 at 02:50:21PM +0100, Chris Withers wrote: Jens Vagelpohl wrote: From what I understand it prevents the installation/writing of a product into the ZODB (the products management part of the Control_Panel) and thus prevents conflict errors. If the product is already

[Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-20 Thread Sidnei da Silva
On Wed, Apr 20, 2005 at 04:20:26PM +0100, Chris Withers wrote: | | 2. Is the above behaviour pluggable at all? | | Not at all. | | Should it be? Can it be without impacting on performance? I don't think so. I would expect there's only one sane way to do it. | | 4. What kicks off the

Re: [Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-20 Thread Jens Vagelpohl
On Apr 20, 2005, at 15:50, Chris Withers wrote: Jens Vagelpohl wrote: From what I understand it prevents the installation/writing of a product into the ZODB (the products management part of the Control_Panel) and thus prevents conflict errors. If the product is already installed (e.g. by a

[Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-20 Thread Zachery Bir
On 2005-04-20 11:20:26 -0400, Chris Withers [EMAIL PROTECTED] said: Sidnei da Silva wrote: | 3. How does PAS handle failover from one authentication plugin to the next? /me leaves slot for PAS experts to fill Each attempt at authenticating a particular set of credentials gets a crack, and

Re: [Zope] ZPsycopgDA dropping connections?

2005-04-20 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Apr 2005 03:23 pm, Richard Jones wrote: Has anyone else seen ZPsycopgDA just lose its connection? I just looked in Shared/DC/ZRDB/Connection.py If the connection string is empty (which is quite valid for my setup, as it turns out) then

[Zope] ZCatalog and custom Product

2005-04-20 Thread Milos Prudek
Hi, I need to convert a ZClass cataloged in multiple ZCatalogs into a Product. I know how to create a Product. But I have trouble understanding how to create a proper ZCatalog and manage it in a Product. When I change my ZClass instance, it reindexes itself in multiple ZCatalogs. I have the

[Zope] Multipart/alternative Emails

2005-04-20 Thread Thomas Adams
Hello, I'm trying to perform a multipart/alternative email message with combination of sendmail-, mime- and boundary-tag. Here is the code: dtml-sendmail mailhost=MailHost To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: password dtml-mime type=multipart/alternative encode=quoted-printable

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread bruno modulix
David Given wrote: On Tue, 2005-04-19 at 18:43 +0200, bruno modulix wrote: [...] All of B's siblings are the same sort of object. Why do you have this strange idea ? From, uh, the documentation... because all of B's siblings will inherit the same methods from A. s/inherit/acquire/ [...] Then

Re: [Zope] ZCatalog and custom Product

2005-04-20 Thread Milos Prudek
Milos Prudek wrote: Hi, I need to convert a ZClass cataloged in multiple ZCatalogs into a Product. I know how to create a Product. But I have trouble understanding how to create a proper ZCatalog and manage it in a Product. To answer myself, simply follow Garito's advice of 10.6.2004 in

Re: [Zope] ZCatalog and custom Product

2005-04-20 Thread Chris Withers
Milos Prudek wrote: The above code catalogs the instance into Catalog_A. Okay, but self.manage_editCataloger(Catalog_A) self.index_object() self.manage_editCataloger(Catalog_B) self.index_object() self.manage_editCataloger(Catalog_C) self.index_object() ... the above

Re: [Zope] ZPsycopgDA dropping connections?

2005-04-20 Thread Chris Withers
Richard Jones wrote: I just looked in Shared/DC/ZRDB/Connection.py If the connection string is empty (which is quite valid for my setup, as it turns out) then the DA won't connect automatically. It won't even try. Could this be considered a bug, or am I missing something obvious? Most of

Re: [Zope] Problem with Zope Threads on Debain

2005-04-20 Thread David
David wrote: I have installed the zope debian (sarge) package. The default number of threads is 4 but only one thread is running. I installed this package in several machines and I have this problem in everyone. How are you deducing that only one thread is running? Chris I do : ps -aux .

[Zope] [ANN] Zope 2.7.6 beta 2 released

2005-04-20 Thread Andreas Jung
Dear Zope Community, on behalf of Zope Corporation and all Zope 2 developers and contributors I am pleased to announce the release of Zope 2.7.6 beta 2 Zope 2.7.6 beta 2 can be downloaded from http://www.zope.org/Products/Zope/2.7.6b1 The release notes can be found at

[Zope] Pass index in a TAL path expr

2005-04-20 Thread Vangelis Mihalopoulos
Hello, if data is a tuple (or list), how can directly access it's contents using path expressions, like in: -- script s: return context.t(data=(one, two, three)) -- template t htmlbody span tal:replace=options/data/0/span /body/html The above example give out a TypeError for the index...

Re: [Zope] Pass index in a TAL path expr

2005-04-20 Thread Andreas Jung
--On Mittwoch, 20. April 2005 13:14 Uhr +0300 Vangelis Mihalopoulos [EMAIL PROTECTED] wrote: Hello, if data is a tuple (or list), how can directly access it's contents using path expressions, like in: -- script s: return context.t(data=(one, two, three)) -- template t htmlbody span

Re: [Zope] Problem with Zope Threads on Debain

2005-04-20 Thread Andrew Langmead
On Apr 20, 2005, at 5:43 AM, David wrote: I do : ps -aux . There is one zope process (user : zope) running in every moment : zope 19004 0.3 11.0 171460 114380 ? S09:58 0:16 /usr/bin/python2.3 /usr/lib/zope2.7/lib/python/Zope/Startup/run.py -C /var/lib/zope2.7/instance/ ...

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread David Given
On Tue, 2005-04-19 at 13:40 -0400, Paul Winkler wrote: [...] Sure, but that doesn't constrain the types you can add to a folder. Unfortunately if you want the same method to do something different on a text file than on an image then you can't put them in the same folder... if you want to do it

[Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread BonviciniJ
I have problem with my python script. I want to check if a user has a the manager role, and add an option in a menu in this case Here is my script: for el in rep.objectValues('Folder'): if el.id==Administration and AUTHENTICATED_USER.has_role(self, [Manager]):

[Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread BonviciniJ
I have another problem (not in relation with AUTHENTICATED_USER): I would like to know if a special function exists to transform special char in html (like HTMLentities in PHP or escape in javascript) ___ Zope maillist - Zope@zope.org

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread Andreas Jung
--On Mittwoch, 20. April 2005 16:30 Uhr +0200 [EMAIL PROTECTED] wrote: I have problem with my python script. I want to check if a user has a the manager role, and add an option in a menu in this case Here is my script: for el in rep.objectValues('Folder'): if el.id==Administration and

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread Milos Prudek
Ta. I'll check it out, although I suspect a ZClass may be more what I want... need to do some more reading up. Don't use ZClasses. They have been deprecated for more than a year and they are poorly supported. -- Milos Prudek ___ Zope maillist -

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-20 Thread Jürgen Herrmann
hi: AUTHENTICATED_USER is in REQUEST: hence you could write ... self.REQUEST.AUTHENTICATED_USER.has_role(self, [Manager]) ... regards, juergen herrmann [ [EMAIL PROTECTED] wrote:] I have problem with my python script. I want to check if a user has a the manager role, and add an option in a

Re: [Zope] Zope on cdrom

2005-04-20 Thread Nicolas Perrier - Zindep
Hi, it was a burning problem. In fact, if you want to use your cdrom both on windows and linux, you need to burn with rockridge AND joliet extensions... If not, it doesn't work. That was my case because i used vmware and burned my cdrom under windows. Now, it works fine. Thanks for your help.

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread Paul Winkler
On Wed, Apr 20, 2005 at 04:38:06PM +0200, Milos Prudek wrote: Ta. I'll check it out, although I suspect a ZClass may be more what I want... need to do some more reading up. Don't use ZClasses. They have been deprecated for more than a year and they are poorly supported. Poorly supported,

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread David Given
On Wednesday 20 April 2005 16:53, Paul Winkler wrote: [...] My interpretation: they aren't going away, but think twice before you get heavily invested in them now. Well, having done some research, they do appear to be precisely what I'm looking for. They're simple, fast to develop, and

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread Paul Winkler
On Wed, Apr 20, 2005 at 05:51:17PM +0100, David Given wrote: Any gotchas I should know about? I dunno, I never use 'em :-) What other approaches are there to doing this kind of thing, other than writing a fully-fledged Product? For creating new TTW types? I don't know of any, but that's

[Zope] Zope support for Blender .blend files

2005-04-20 Thread Rich3800
I would like to know more about how much an Apache-enabled Zope server supports hosting and distributed editing of Blender .blend files. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

[Zope] Zope via WebDAV

2005-04-20 Thread Erik Myllymaki
I am trying to use Zope with Dreamweaver via WebDAV. There are lots of good docs and plenty of info in the archives and I have one install setup and working really well. The one that works is Zope 2.7.4 on Win32. An older, production install I want to configure the same way is Zope 2.6.2 on a

Re: [Zope] Zope support for Blender .blend files

2005-04-20 Thread Phillip Hutchings
On 21/04/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I would like to know more about how much an Apache-enabled Zope server supports hosting and distributed editing of Blender .blend files. A file's a file, it'll be served just like a GIF, JPEG, Spreadsheet or text document. It might not

Re: [Zope] Zope2.7.4 with Python2.4?

2005-04-20 Thread Edward Hartfield
Luis N wrote: Hi, I fired up zope on a new server yesterday. It's very very slow! I didn't think about it much at first (because I didn't think it possible), but, sh bin/runzope /usr/local/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom module is deprecated; please use the

Re: [Zope] Zope via WebDAV

2005-04-20 Thread Erik Myllymaki
I see - I was connecting to port 8090 - the regular old HTTP port instead of port 9090 - my configured WebDAV port. Works just fine now. Erik Myllymaki wrote: I am trying to use Zope with Dreamweaver via WebDAV. There are lots of good docs and plenty of info in the archives and I have one install

Re: [Zope] Organisational vs. Functional hierarchies

2005-04-20 Thread Bakhtiar A Hamid
On 4/21/05, David Given [EMAIL PROTECTED] wrote: The actual amount of code I want to write is minimal; it looks like what I'll have is a subclass of File that processes its content and passes it as a parameter into a page template on itself. (What I actually want is a lightweight

Re: [Zope-DB] Returning values from Oracle function/procedure withZSQLMethod

2005-04-20 Thread Chris Withers
M.-A. Lemburg wrote: Not sure why they think that ODBC is deprecated - Oracle is happily working on their ODBC driver and it's one of the best bets you can find out there: http://www.oracle.com/technology/software/tech/windows/odbc/index.html Interesting, but people here, even M$ people,