[Zope3-Users] overriding single resources from resourcedirectories

2008-06-02 Thread Tom Gross
Hi, is it possible to override single resources from a previously defined resourcedirectory? I have let's say a 3rd party product defining ... resourceDirectory name=mycss directory=resources permission=zope.Public / ... Now I need to override a single css-file

Re: [Zope3-Users] imports cleanup

2007-03-15 Thread Tom Gross
Hi Christophe, you may want to take a look at pylint. www.logilab.org/project/name/pylint It is a coding standard checker, finding unused imports as well but does much more. Cheers -Tom Christophe Combelles wrote: Hello, As I'm experimenting with various components, I'm adding more and

Re: [Zope3-Users] Zope 3 and menus

2007-03-13 Thread Tom Gross
Hi there, I override BrowserMenu from zope.app.publisher.browser.menu and add a entry 'abs_action' to the resulting dictionary. Something like: class MyBrowserMenu(BrowserMenu): def modify(self, menu, request): siteurl = absoluteURL(hooks.getSite(), request) for item in

Re: [Zope3-Users] objectwidget help

2007-02-01 Thread Tom Gross
-- index end -- Tom Gross wrote: Hi Ivan, did you get the code from the repository? It's: svn checkout http://zope3demos.googlecode.com/svn/trunk/ zope3demos Cheers -Tom Ivan Horvath wrote: thank you Tom! i downloaded, but unfortunately i cannot see it in my browser. what is the url

Re: [Zope3-Users] objectwidget help

2007-01-31 Thread Tom Gross
Hi Ivan, I might be wrong, but I think there's an example for listwidgets containing objects in the zope3demos-package: http://code.google.com/p/zope3demos/ Maybe it helps. Cheers -Tom Ivan Horvath wrote: Dear All, in my implementation there is an object. one of this object properties

Re: [Zope3-Users] objectwidget help

2007-01-31 Thread Tom Gross
package? Tom Gross wrote: Hi Ivan, I might be wrong, but I think there's an example for listwidgets containing objects in the zope3demos-package: http://code.google.com/p/zope3demos/ Maybe it helps. Cheers -Tom Ivan Horvath wrote: Dear All, in my implementation there is an object. one

[Zope3-Users] Customized NotFound-Page

2007-01-12 Thread Tom Gross
Hi, I created a customized 'NotFound'-Page which displays fine itself. Now the page should render in a skin with some security sensitive viewlets. These viewlets disappear when rendering the 'NotFound'-Page. Is there a known solution to the problem? Thanks, Tom

Re: [Zope3-Users] Registered utility is never found

2006-12-12 Thread Tom Gross
Hi Frank, is your InitIndicator-instance implementing the IInitIndicatorFB-interface. This is absolutely necessary for providing it as an utility. There's an easy test for this: from zope.interface.verify import verifyObject ii = InitIndicator() verifyObject(IInitIndicatorFB, ii) True

Re: [Zope3-Users] Registered utility is never found

2006-12-12 Thread Tom Gross
Hi Frank, you are trying to lookup the utility with the name None. If you don't specify a name when registering the utility, omit the second parameter: zapi.getUtility(IInitIndicator) Cheers -Tom FB wrote: On Tue, Dec 12, 2006 at 05:29:55PM +0300, Garanin Michael wrote: FB wrote:

Re: [Zope3-Users] Custom Content Container

2006-11-29 Thread Tom Gross
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Johnson Sent: Tuesday, November 28, 2006 2:21 PM To: 'Tom Gross' Cc: zope3-users@zope.org Subject: RE: [Zope3-Users] Custom Content Container Yes indeed. I'm only using 1 Text and 3 TextLine fields. This is my first attempt

Re: [Zope3-Users] Custom Content Container

2006-11-28 Thread Tom Gross
Hi David, which fields does your IOwner-interface consist of? You get this error if you call an auto generated form from a List-field, without having value_type specified, but there are other scenarios, so this information would be helpful. Cheers -Tom David Johnson wrote: I created a

Re: [Zope3-Users] how to know which port zope is runnning on?

2006-11-28 Thread Tom Gross
Hi Shailesh, try request.get('SERVER_PORT'). Cheers -Tom Shailesh Kumar wrote: Hi, Is it possible for the application code to figure out the port number on which zope is running? What is the suitable api for that? With regards, -shailesh

Re: [Zope3-Users] question about MailDir folder for queuedDelivery on windows

2006-11-17 Thread Tom Gross
Hi Shailesh, just make sure there are three subdirectories available in the directory of your mailqueue: cur, tmp, new. This is the common maildir format. see: man 5 maildir *THE* *MAILDIR* *STRUCTURE* A directory in /maildir/ format has three subdirectories, all on

Re: [Zope3-Users] how to access the root folder in normal operation

2006-11-17 Thread Tom Gross
content objects inside the root folder. Something like: root = getRootFolder() #using some way I don't know. root['etc'] = Folder() root['var'] = Folder() ... Is it possible to do that? With regards, -shailesh On 11/15/06, *Tom Gross* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

Re: [Zope3-Users] how to access the root folder in normal operation

2006-11-15 Thread Tom Gross
Hi Shailesh, have a look at zope.traversing.api. There's a getRoot-method. Cheers -Tom Shailesh Kumar wrote: Hi, In a functional test setup, one can access the root folder using getRootFolder() of FunctionalTestSetup. How can I access the root folder in a nomal operation mode? Is