Re: [Zope3-Users] problem installing in debian

2005-10-16 Thread Christian Lueck
Hi Leticia, the german guy says, that he tried another tool to unpack the archive and then succeeded. I'm working on debian too and use "tar -xzf Zope-3.1.0.tgz" from the commandline for the tarballs. You may have to perform "chown userId:groupId * --recursive" in the unpacked archive. Kind rega

Re: [Zope3-Users] IPluggableAuthentication -- 'new style' authentication problem

2005-10-13 Thread Christian Lueck
Christian Lueck wrote: >How do I get the PAUtility? (or the several PAUs?) >paus = >zapi.getAllUtilitiesRegisteredFor(zope.app.authentication.interfaces.IPluggableAuthentication) >returns no pau at all, neither in the context of the root-folder, nor in >the context of the lo

Re: [Zope3-Users] IPluggableAuthentication -- 'new style' authentication problem

2005-10-13 Thread Christian Lueck
Tom Dossis wrote: > Christian Lueck wrote: > >> Note: Since I don't know how to get into a site's context with the >> debugger (zopectl debug) ... > > > Hi Christian, here's some code to get the root object of a zope3/zeo > site... > > >>

[Zope3-Users] IPluggableAuthentication -- 'new style' authentication problem

2005-10-13 Thread Christian Lueck
Hi list! I'd like to write a custom principal source for signup analgous to chapter 19.2 of Philipp's book BUT based on the 'new style' authentication (zope.app.authentication instead of the old zope.app.pluggableauth). But I'm totally stuck with it. I have registered a Pluggable Authentication U

Re: [Zope3-Users] Problem importing zope modules from /usr/local/zope3Instance/lib/python/productname folder

2005-10-07 Thread Christian Lueck
You have to set the PYTHONPATH environment variable, see page 9 of Philipp's book. Kind regards, Christian Ronald L Chichester wrote: > In chapter 4 of Philipp's book, he runs the python interpreter from > the command line and imports several zope modules. I tried doing that > from /usr/local/z

[Zope3-Users] Oh no, doncha violate the o-v-p

2005-09-29 Thread Christian Lueck
Hi, I found a relatively easy way to write an addview for multiple objects. As this violates the object view paradigm (o-v-p) I'd like to have your expert critiques/comments: Are there any risks regarding the violation? The task was to have one view V to create two objects A and B. A is a contain

Re: [Zope3-Users] Re: formlib.form.Action.render()

2005-09-27 Thread Christian Lueck
Ruslan Spivak wrote: >> The action.render() call causes a component lookup error: >> >> >> Module formlibexample.browser, line 89, in renderActions >> result.append(action.render()) >> Module zope.formlib.namedtemplate, line 61, in __get__ >> return component.getAdapter(instance, INamed

[Zope3-Users] formlib.form.Action.render()

2005-09-15 Thread Christian Lueck
Hi there! I have a problem with formlib, form.Fields are rendered correctly :) but I got stuck with Actions Well, I followed the lines of formlib/form.txt but adapted the examples for use with ZPT by overridding the template method: template = ViewPageTemplateFile('mytemplate.pt') The widgets are

Re: [Zope3-Users] stuck with zope.schema.List and subwidget

2005-08-29 Thread Christian Lueck
Stephan Richter schrieb: > > The problem, I think (actually I just checked, so I know ;-), is that > CustomWidgetFactory was not designed to work well with advanced widgets, i.e. > widgets that have more constructor arguments beyond the field and the > request. > Hm, so you think :-) I should

[Zope3-Users] stuck with zope.schema.List and subwidget

2005-08-26 Thread Christian Lueck
Hi! Did anyone ever test or succeed using the subwidget-directive of zope.app.form.browser.sequencewidget.SequenceWidget? Following the lines of zope/app/form/browser/widgets.txt a widget for a list of objects would be defined by something like this: author_w = CustomWidgetFactory(ObjectWidget,

[Zope3-Users] zope.schema.Object - Object of Objects

2005-08-25 Thread Christian Lueck
Hi! I want to define add- and edit-views for objects of objects with zope.schema.Object and zope.app.form.browser.ObjectWidget. Roger Ineichen and Andreas Reuleaux explained (on this list) howto write custom widgets for objects. I was trying to define a widget for objects of objects (objects whi