Re: [Zope3-Users] question about a constraint conflict

2007-01-08 Thread FB
Hi, On Sun, Jan 07, 2007 at 02:10:20PM +0100, Christophe Combelles wrote: [snip] I understand there is an inconsistency between these two interfaces, and this is not a correct solution. But using just containers() on content objects doesn't prevent their containers from displaying

Re: [Zope3-Users] zope.app.cache.annotationcacheable question

2007-01-08 Thread Marcin Kołoczek
Nobody answered me, so maybe I should additional info about software: both computers run python 2.4.3, both Zopes are 3.3, first machine is normal PC with Windows2000, second is laptop with Ubuntu. I've tried googling and I've checked the most up-to-date svn version of the file, but nothing

[Zope3-Users] Re: very simple problem with getUtility

2007-01-08 Thread Rocky Burt
On Sun, 2007-07-01 at 18:05 +0100, Christophe Combelles wrote: But what did you mean as set the site? do you mean with hooks.setSite() ? Yes ... keeping in mind that this happens automatically during traversal by IBeforeTraversalEvent handlers. - Rocky -- Rocky Burt ServerZen Software --

Re: [Zope3-Users] question about a constraint conflict

2007-01-08 Thread Stephan Richter
On Sunday 07 January 2007 08:10, Christophe Combelles wrote: I understand there is an inconsistency between these two interfaces, and this is not a correct solution. But using just containers() on content objects doesn't prevent their containers from displaying everything in the Add Menu. It

Re: [Zope3-Users] 3 step selection widget

2007-01-08 Thread Stephan Richter
On Thursday 21 December 2006 10:12, Dennis Schulz wrote: I have the current use case to write a 3 step-selection widget. The user has to choose 1. Division, 2. Cost Center and 3. Budget (which is the actual choice) So I need 3 different vocabularies that change according to the current

Re: [Zope3-Users] zc.relationship or hurry.query and global intid utility

2007-01-08 Thread Stephan Richter
On Sunday 07 January 2007 07:06, Shaar Gabriel wrote: This utility is the one thing you should create before any other object because objects created prior to this utility will never have a unique ID. a debug session : daemon manager not running zopectl start . --

Re: [Zope3-Users] zope.app namespace packages

2007-01-08 Thread Stephan Richter
On Tuesday 26 December 2006 09:11, David Pratt wrote: With the latest changes to config files to zope.app package, will each zope.app package be available soon with its own setup from the repository and released as an egg? This is the goal... holy grail. However, this process will take a

Re: [Zope3-Users] Re: register and unregister Utility

2007-01-08 Thread Stephan Richter
On Saturday 30 December 2006 13:26, Florian Lindner wrote: from zope import component components = component.registry.Components() components.registerUtility(self, INewsfeed, self.__name__) (example from registry.txt from apidoc) It works so far that no error is raised. But I wonder why the

Re: [Zope3-Users] Zope 3 UML Model / Architecture

2007-01-08 Thread Stephan Richter
On Monday 18 December 2006 10:05, Dennis Schulz wrote: I am looking for examples of Zope 3 UML Diagrams / Architecture. I would be especially interested  in widget / view rendering. (maybe even formlib) but also basic architecture. Zope 3 does not have many UML diagrams, in fact none that are

Re: [Zope3-Users] Utility registration vanished after restart?

2007-01-08 Thread Stephan Richter
On Tuesday 02 January 2007 07:29, Florian Lindner wrote: getSiteManager().registerUtility(self, INewsfeed, self.__name__) both registration show up fine in the ZMI registration tab. But after a restart of Zope both object are unregistred again. Is this behavior correct? Why that? Well, if

Re: [Zope3-Users] How to get PAU working?

2007-01-08 Thread Stephan Richter
On Tuesday 19 December 2006 17:26, Jonas Jarutis wrote: I'm trying to set up a user folder for my site, but i cant get the PAU to work. I add the Pluggable Authentication Utility object, register it, add PrincipalFolder and SessionCredentials plugins and register them. Add a user in the

Re: [Zope3-Users] How to get PAU working?

2007-01-08 Thread Stephan Richter
On Wednesday 20 December 2006 01:45, FB wrote: Once the PAU is registered, the default IAuthentication utility which provides all the zcml-predefined principals becomes invisible (speak: useless). This means, you don't have a manager any more and you're unable to unregister the PAU again.

Re: [Zope3-Users] Grant problem

2007-01-08 Thread Stephan Richter
On Tuesday 19 December 2006 17:15, Jonas Jarutis wrote: I get this error the i try to enter grant screen from ZMI: Does anyone know what is the problem? No, I cannot reproduce this problem. You might have to tell us more about your authentication utility setup. Traceback (most recent call

Re: [Zope3-Users] Multiple zcml-overrides of the same component

2007-01-08 Thread Stephan Richter
On Friday 08 December 2006 03:53, FB wrote: I've got a Package B depending on a Package A - both of them are zcml-overriding an adapter which is originally defined in zope itself. Unfortunately, zope doesn't seem to like that - Package B's override causes a ConfigurationConflictErrorwhich

Re: [Zope3-Users] Formlib: passing default values

2007-01-08 Thread Stephan Richter
On Monday 04 December 2006 08:57, Dennis Schulz wrote: How can I provoke that a display field is also included in the field set? Is there a way to provoke the getInput or something? This problem I only have with AddFormbase. EditFormbase works fine. I think you might be setting the rendered

Re: [Zope3-Users] better selection widget

2007-01-08 Thread Stephan Richter
On Friday 15 December 2006 07:02, Dennis Schulz wrote: - probably the best option is, I recently thought, is to pack the table selection view into a somehow modified sequence selection widget, that has a source / vocabulary having all action happening same form but only show this widget and

Re: [Zope3-Users] changing behaviour of PAU SessionCredentialsPlugin

2007-01-08 Thread Stephan Richter
On Thursday 16 November 2006 12:05, Dominique Lederer wrote: i would like to change the behaviour of extractCredentials in the SessionCredentialsPlugin of the PAU. i´m still fighting a bit with the framework: would i use an adapter for this, or subclassing? or would i use the

Re: [Zope3-Users] Zope SVN

2007-01-08 Thread Stephan Richter
On Friday 22 December 2006 13:13, David Pratt wrote: A second issue I noticed is checking out dotted namespace folder on my Mac. I have been following some well established z3 patterns and package structures. What I have discovered in checking out a hierarchy from svn, folders with dotted

Re: [Zope3-Users] Custom Content Container

2007-01-08 Thread Stephan Richter
On Wednesday 29 November 2006 04:08, Tom Gross wrote: Although  it's a workaround it looks a bit nicer in the code :). You can use container constraints the intended way. Well, or simply select all the fields you want to display, simply excluding __parent__ and __name__. Regards, Stephan --

Re: [Zope3-Users] zope3 collector monitor list?

2007-01-08 Thread Stephan Richter
On Friday 03 November 2006 06:34, Sascha Ottolski wrote: there was a discussion last year[1] about setting up a monitor list for the zope3 collector, but that never seemed to happen. Wouldn't that make sense? At least I think it would :-) Yes, it would. I think it was a matter of noone working

Re: [Zope3-Users] Little problem with I18n properties

2007-01-08 Thread Stephan Richter
On Monday 20 November 2006 06:12, Thierry Florac wrote:         class BaseForm(formlib.EditForm):           @property           def title(self):             return %s: %s %         (II18n(self.context).queryAttribute('title'),                                self._title) This is not correct.

Re: [Zope3-Users] Select Field with Widget

2007-01-08 Thread Stephan Richter
On Tuesday 28 November 2006 07:57, Dennis Schulz wrote: Here is the interface:     countrySelect = Choice(         title=ucountrySelect,         description=ucountrySelect,         values=vocabulary) This should be vocabulary=vocabulary. I think there should not be any problems on

Re: [Zope3-Users] zc.table delete action column

2007-01-08 Thread Stephan Richter
On Wednesday 22 November 2006 05:39, Dennis Schulz wrote: I would like to make a column in my zc.table based table that renders a trash icon link to a delete handler function inside the same class. Is it possible somehow to insert a real action like in formlib inside a table column? I could

Re: [Zope3-Users] ComponentLookupError

2007-01-08 Thread Stephan Richter
On Wednesday 13 December 2006 15:40, David Johnson wrote: ComponentLookupError: ((decimalwidget.widget.Decimal object at   0x4203972c, zope.publisher.browser.BrowserRequest instance   URL=http://192.168.81.89:8090/CRM/Vanderbilt/@@+/action.html),   InterfaceClass

Re: [Zope3-Users] where are the 3.3 eggs ?

2007-01-08 Thread Stephan Richter
On Sunday 03 December 2006 12:10, Olivier Grisel wrote: I was wondering where are the eggs for the version 3.3.0 of the main components of Zope3. I am mainly interested in the following components: - zope.interface - zope.component - zope.testing I think we were too lazy to do them.

Re: [Zope3-Users] schema field for an Image?

2007-01-08 Thread Stephan Richter
On Wednesday 06 December 2006 11:07, Adam Summers wrote: If I wanted to use formlib to build the form, and wanted to build a HTML widget for the image field that had a file input for uploading, and if img already had content woudl display a thumbnail; how would I go about this? I'm afraid I'm

Re: [Zope3-Users] formlib widget

2007-01-08 Thread Stephan Richter
On Wednesday 29 November 2006 12:37, Dennis Schulz wrote: is it possible to call widget with a specific name directly instead of running through all on a repeat loop? for example   div tal:define=name string:1;                   w1 view/widgets.get(name) I saw that there is a get method

Re: [Zope3-Users] server shutdown event

2007-01-08 Thread Stephan Richter
On Friday 01 December 2006 07:04, Shailesh Kumar wrote: Just want to confirm, is it the right way to do, or there is some better way to do things? If you use twisted, this is a good way though we probably should have a shutdown event. Could you add this to the issue collector? Regards,

Re: [Zope3-Users] zope.app.cache.annotationcacheable question

2007-01-08 Thread Stephan Richter
On Friday 05 January 2007 07:43, Marcin Kołoczek wrote: Hi! I have question about AnnotationCacheable from module as in subject. Why getCacheId and setCacheId methods gets annotations in different way? I'm talking about: annotations = IAnnotations(self._context) vs annotations =

Re: [Zope3-Users] question about ftesting.zcml

2007-01-08 Thread Stephan Richter
On Friday 10 November 2006 10:07, Shailesh Kumar wrote: A small question about functional testing. What is the purpose of ftesting.zcml ? It loads some directives that you only want to be available during functional tests. For example, it creates special principals, so that the tests are

Re: [Zope3-Users] ConnectionStateError when a worker thread finishes

2007-01-08 Thread Stephan Richter
On Wednesday 03 January 2007 05:46, Shailesh Kumar wrote: In my application, some background threads are being created. But when a thread finishes up its work, a strange exception is thrown: The callstack doesn't show any part of my application code. You have to use threads very carefully, if

Re: [Zope3-Users] traceback on startup from a wsgi server

2007-01-08 Thread Stephan Richter
On Saturday 11 November 2006 07:11, Michael Haubenwallner wrote: Do you see a way to solve the problem except from commenting the directive ? Does the problem still occur? I have never seen this issue. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D.

Re: [Zope3-Users] Problem with zope.i18n.locales, currency formatting, and encodings

2007-01-08 Thread Stephan Richter
On Friday 22 December 2006 13:41, Doyon, Jean-Francois wrote: For posterity and the list archive: - currency formatting, as provided by zope.i18n.locales is broken, it does not add the proper currency symbol.  Instead, a strange circle/star character always appears where a currency symbol

Re: [Zope3-Users] default text for dropdown widget empty selection

2007-01-08 Thread Stephan Richter
On Tuesday 02 January 2007 14:10, Roy Mathew wrote: Currently, the builtin dropdown widgets show the string '(no value)' as the empty default. Is it possible to show different text in its place? Yes, you have three choices: 1. Provide a translation for English to change it globally. 2.

Re: [Zope3-Users] Annotations factory

2007-01-08 Thread Stephan Richter
On Tuesday 28 November 2006 14:07, Rupert Redington wrote: I've just made my first annotation adapter using zope.annotation.factory, but I find myself needing access to some attributes of the adapted object. Using the older pattern I would gain access to the original object through the context

Re: [Zope3-Users] zope.app.cache.annotationcacheable question

2007-01-08 Thread Marcin Kołoczek
Stephan Richter napisał(a): On Friday 05 January 2007 07:43, Marcin Kołoczek wrote: Hi! I have question about AnnotationCacheable from module as in subject. Why getCacheId and setCacheId methods gets annotations in different way? I'm talking about: annotations = IAnnotations(self._context)

Re: [Zope3-Users] traceback on startup from a wsgi server

2007-01-08 Thread Michael Haubenwallner
Stephan Richter wrote: On Saturday 11 November 2006 07:11, Michael Haubenwallner wrote: Do you see a way to solve the problem except from commenting the directive ? Does the problem still occur? I have never seen this issue. Yes, still reproducable (it has always been the Import error):

[Zope3-Users] Re: very simple problem with getUtility

2007-01-08 Thread Philipp von Weitershausen
Rocky Burt wrote: On Sun, 2007-07-01 at 18:05 +0100, Christophe Combelles wrote: But what did you mean as set the site? do you mean with hooks.setSite() ? Yes ... keeping in mind that this happens automatically during traversal by IBeforeTraversalEvent handlers. Right. setSite() should not

Re: [Zope3-Users] zope.app.cache.annotationcacheable question

2007-01-08 Thread Stephan Richter
On Monday 08 January 2007 09:49, Marcin Kołoczek wrote: I've received it a few hours after my 'self-reply' (at least my mail agent says that)... So sorry for unrelated first sentence ;P:     Nobody answered me No, the delay was on my site. I wrote the E-mails in the airport and only sent

Re: [Zope3-Users] ConnectionStateError when a worker thread finishes

2007-01-08 Thread Shailesh Kumar
Thanx for the guidance. I did figure out that the whole problem was happening because of threads trying to access the ZODB. For the time being, I got rid of that, and had a separate sheduler event which queries the background threads to get update information and put it in the ZODB. It seems to