Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-09 Thread Bernd Dorn
On 09.02.2006, at 19:27, Florian Lindner wrote: Hello, I try to create a form build from a schema with browser:form: form name=registrationForm.html schema=.interfaces.registrationForm class=.views.registrationForm permission=zope.Public

Re: [Zope3-Users] PyWebOff

2006-03-20 Thread Bernd Dorn
On 03.03.2006, at 08:27, Shane Hathaway wrote: Hello, I've been assigned to present Zope in a local upcoming Python user group meeting. As part of the assignment, I'm supposed to solve the PyWebOff challenge using Zope: http://pyre.third-bit.com/pyweb/challenge.html I'd like to do

Re: [Zope3-Users] Tales slot-fill'ing order

2006-04-03 Thread Bernd Dorn
On 03.04.2006, at 15:32, Frank Burkhardt wrote: Hi, one of my objects has to add a list of keywords as meta-tag to the html-head. The keyword list is dynamically created during fill-slot of the body. The template looks like this: div metal:use-macro=context/@@standard_macros/page

Re: [Zope3-Users] request ?param=val

2006-04-08 Thread Bernd Dorn
On 08.04.2006, at 10:26, Pete Taylor wrote: Hi all, I must just be overlooking something, but i'm running into a problem... (could be that it's 4:00a on a saturday morning, and i'm writing code for work. that alone might be my problem ;) ). I have a url like the following:

Re: [Zope3-Users] error headache: __init__() takes exactly 1 argument (3 given)

2006-04-27 Thread Bernd Dorn
did you override the constructor in vine.vinePackage.VinePackage or one of its superclasses? iv yes, then you need def __init__(self,context,request): ... as constructor, you can test it by just removing the class attribute of your page directive On 27.04.2006, at 21:08, Jachin

Re: [Zope3-Users] Checking if an interface is provided by an object or could be adapted to

2006-04-30 Thread Bernd Dorn
i would use return IFoo(context, False) is not False or False On 01.05.2006, at 00:22, Martin Aspeli wrote: Hi, I'm probably doing something very wrong, but ... I have a general interface that can either by directly provided by an object or class (typically with implements() on the

Re: [Zope3-Users] Re: Checking if an interface is provided by an object or could be adapted to

2006-04-30 Thread Bernd Dorn
On 01.05.2006, at 00:39, Martin Aspeli wrote: On Sun, 30 Apr 2006 23:31:37 +0100, Bernd Dorn zope- [EMAIL PROTECTED] wrote: i would use return IFoo(context, False) is not False or False Aha, didn't know you could do that. Thanks :) How do I do that for multi-adapters, though? you

Re: [Zope3-Users] Re: Checking if an interface is provided by an object or could be adapted to

2006-05-01 Thread Bernd Dorn
On 01.05.2006, at 01:55, Stephan Richter wrote: On Sunday 30 April 2006 19:34, Bernd Dorn wrote: component.queryMultiAdapter((bar,baz), IFoo) is not None or False this way you always get True or False ok, for this case it is ok but when you have a class that uses __conform__ None may

Re: [Zope3-Users] Re: Re: Checking if an interface is provided by an object or could be adapted to

2006-05-01 Thread Bernd Dorn
On 01.05.2006, at 02:17, Martin Aspeli wrote: On Mon, 01 May 2006 00:55:46 +0100, Stephan Richter [EMAIL PROTECTED] wrote: On Sunday 30 April 2006 19:34, Bernd Dorn wrote: component.queryMultiAdapter((bar,baz), IFoo) is not None or False Why not just: component.queryMultiAdapter((bar

Re: [Zope3-Users] Searching and Indexing in Zope3

2006-05-10 Thread Bernd Dorn
. The indexing works. Appriciate your help SreeramOn 5/9/06, Bernd Dorn [EMAIL PROTECTED] wrote: On 09.05.2006, at 17:32, Sreeram Raghav wrote:Hi Frank, Thanks for the Zope3 Indexing and Searching HOWTO I translated your page to english and was trying to work it out. Here's exactly what i did:   1. Logge

Re: [Zope3-Users] Unable to get z3c with svn

2006-06-06 Thread Bernd Dorn
On 06.06.2006, at 15:00, Stéphane Brault wrote: Hi, I'm interested by the z3c.javascript package, but I can't get it through svn (I'm using tortoisesvn). When I try I get : Error: PROPFIND request failed on '/z3c.javascript' Error: PROPFIND of '/z3c.javascript': 301 Moved

Re: [Zope3-Users] IntID utility not found

2006-06-12 Thread Bernd Dorn
On 11.06.2006, at 23:39, Florian Lindner wrote: Hello, suddenly I get this error, the code used to work File /home/xgmde/Zope3//lib/python/zope/component/_api.py, line 207, in getUtility raise ComponentLookupError(interface, name) ComponentLookupError: (InterfaceClass

Re: [Zope3-Users] small bug in z3c.multiform package

2006-07-17 Thread Bernd Dorn
On 17.07.2006, at 09:46, Lorenzo Gil Sanchez wrote: Hi, I found a bug in FilterMapping class of the z3c.multiform package. Basically the problem is due to the way the __len__ method is computed. Attached is a tiny patch for this bug. Feel free to use any copyright ownership you want

[Zope3-Users] Re: [Zope3-dev] z3c - be or not to be

2006-08-28 Thread Bernd Dorn
On 27.08.2006, at 18:53, Dieter Maurer wrote: Roger Ineichen wrote at 2006-8-25 18:27 +0200: ... The reason why; We really have no time to do this in the next couple of month. And the option sombody else doing it is also *NO* option because we have allready productive projects build on this

Re: [Zope3-Users] z3c.extfile and ZEO ?

2006-09-06 Thread Bernd Dorn
On 01.09.2006, at 15:36, Thierry Florac wrote:   Hi, I just discovered the "z3c.extfile" package that I'd like to use in my current Zope3 development. My question is simple : what are the requirements to use this package in a ZEO context with several servers ?no problem, as stephan said you just

Re: [Zope3-Users] Local configuration settings via ZCML

2006-09-25 Thread Bernd Dorn
On 25.09.2006, at 06:05, Andrew Groom wrote: Hi All, I have a component that's doing a database connection, and the connection is described in configure.zcml as: rdb:provideConnection name='my_db' component='psycopgda.adapter.PsycopgAdapter'

Re: [Zope3-Users] traversing/publishing a simple attribute

2006-11-11 Thread Bernd Dorn
On 11.11.2006, at 18:34, Sascha Ottolski wrote: Now all I want is being able to visit http://localhost:8080/testhing/something, which would simply return the string sometext. I'm wondering if this can be done without writing a view, and without making MyThing a Container. there is a

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-06 Thread Bernd Dorn
On 06.03.2007, at 18:54, Christophe Combelles wrote: Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be able to retrieve the list of

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-06 Thread Bernd Dorn
On 07.03.2007, at 01:32, Christophe Combelles wrote: Bernd Dorn a écrit : On 06.03.2007, at 18:54, Christophe Combelles wrote: Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category

Re: [Zope3-Users] Remote authentication

2007-05-10 Thread Bernd Dorn
as a plugin example you may want to take a look at http:// svn.zope.org/ldappas/ regards, bernd On 10.05.2007, at 18:13, David Pratt wrote: Hi. Has anyone got a bit of a blueprint for a remote authentication in zope 3. I wish to authenticate on a z3 site (site 1) using credentials stored

Re: [Zope3-Users] Small skinning question...

2007-05-11 Thread Bernd Dorn
On 10.05.2007, at 12:14, Thierry Florac wrote: Hi, I'm building a new application with Zope3. In this application, I can use several skins : - for all back-office and management pages, a single skin is used ; it's defined via an Apache rewrite rule on a specific virtual host - for

Re: [Zope3-Users] Permissions to use IWriteZopeDublinCore

2007-05-17 Thread Bernd Dorn
On 17.05.2007, at 18:56, Kevin Gill (Newaddress) wrote: Hi, I am putting together a simple application based on Philipp Von Weitershausen's book. When an object is updated, I update the Dublin Core metadata in an event handler. The code is similar to the following... @adapter(IListing,

[Zope3-Users] Re: [Zope3-dev] z3c.form 1.0.0 released!

2007-05-25 Thread Bernd Dorn
On 24.05.2007, at 18:01, Stephan Richter wrote: Roger and I are proud to announce the first release of the new form and widget framework ``z3c.form``! After years of talking about it, months of thinking about it and many weeks of implementation, we have finally completed it. hi stephan

Re: [Zope3-Users] z3c.form 1.0.0 released!

2007-05-30 Thread Bernd Dorn
On 31.05.2007, at 05:08, Stephan Richter wrote: On Sunday 27 May 2007 18:55, Vinny wrote: I did try the above, but it complained about needing a newer setuptools than I had. No big deal, I can update that easily enough. This is really strange. I thought that bootstrap.py would install

Re: [Zope3-Users] problems with catalog: indexing field from an objects adapter

2007-06-06 Thread Bernd Dorn
On 28.03.2007, at 13:19, Dominique Lederer wrote: hi, I want to index a field from an object, which works perfectly via Catalog and Field Index. But if my callable field returns a value, which is returned from an adapter of the object, things get complicated for me: i create my object

Re: [Zope3-Users] making anything taggable

2007-09-14 Thread Bernd Dorn
On 14.09.2007, at 12:05, Maken Seteva wrote: Hi! Opening up a new thread since the old one is using some old ideas, but still thanks to Douglas for replying :) What I'm really trying to do is probably analogous to the buzzword tagging. In other words a component can have a list of

Re: [Zope3-Users] A question regarding zope generations

2007-11-17 Thread Bernd Dorn
On 16.11.2007, at 13:56, Shailesh Kumar wrote: As of now, I am thinking of a following solution. For the current upgrade, I will have some code which will automatically evolve the existing installation during startup (i.e. DatabaseOpenedEvent) and actually assign a generation number in

Re: [Zope3-Users] ZODB conflict for session data container

2008-03-20 Thread Bernd Dorn
On 20.03.2008, at 07:07, Yuan HOng wrote: Now comes the part that I can not understand. This simultaneous adding to the BTree seem to cause the conflict error, since the BTree and Bucket are also persistent object themselves. This would mean that ZODB is not suitable for the cases of

Re: [Zope3-Users] retrieving zope.conf parameters and paths of buildout dirs

2008-04-17 Thread Bernd Dorn
On 17.04.2008, at 18:23, Christophe Combelles wrote: Hi, I'm looking for reliable ways in my application code to retrieve the path of some directories or files in a zopeproject buildout. When I need to get a sample data file for tests in a package I'm just using

Re: [Zope3-Users] z3c.extfile bug: unicode path name

2008-04-23 Thread Bernd Dorn
On Apr 23, 2008, at 11:14 AM, Yuan HOng wrote: Hello, With z3c.extfile, if the path name of the HashDir utility is a unicode string, as configured by the hashDir directive in zcml, a unicode digest will be returned. However, loading the file with this digest raises a ValueError, since the

Re: AW: [Zope3-Users] Disabling authentication for resources

2008-07-10 Thread Bernd Dorn
On Jul 10, 2008, at 6:47 AM, andrew wrote: On Thu, 2008-07-10 at 02:44 +0200, Roger Ineichen wrote: I guess bypass the authentication process is not supported for zope.Public protected objects. Zope does authenticate the user. And later it checks security for the object based on that user