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

2006-11-17 Thread Shailesh Kumar
Hi, I am trying to use mail:queuedDelivery. It says that the *...\lib\python\baton\mail_queue is not a Maildir folder* I am using Zope on Windows-XP box. How can I setup a Maildir folder? With regards, -shailesh ___ Zope3-users mailing list

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] Utilities naming convention

2006-11-17 Thread FB
Hi, On Thu, Nov 16, 2006 at 04:09:52PM -0400, David Pratt wrote: Probably should have clarified - I am referring to Utility container names not anything to do with Python coding standards. None that I'm aware of. Only the title of the utility's registration matters for your application - which

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

2006-11-17 Thread Shailesh Kumar
Hi, zope.traversing.api.getRoot returns the root of a given object. What I wanted to do was that when zope starts, I would like to create a few content objects inside the root folder. Something like: root = getRootFolder() #using some way I don't know. root['etc'] = Folder() root['var'] =

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

2006-11-17 Thread Tom Gross
Hi Shailesh, take a look at zope.app.appsetup. You could subscribe to the DatabaseOpenedWithRoot-event. Cheers -Tom Shailesh Kumar wrote: Hi, zope.traversing.api.getRoot returns the root of a given object. What I wanted to do was that when zope starts, I would like to create a few

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

2006-11-17 Thread Thierry Florac
Le vendredi 17 novembre 2006 à 16:59 +0530, Shailesh Kumar a écrit : Hi, zope.traversing.api.getRoot returns the root of a given object. What I wanted to do was that when zope starts, I would like to create a few content objects inside the root folder. Something like: root =

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

2006-11-17 Thread Shailesh Kumar
Thank you very much. This technique works perfectly. -shailesh On 11/17/06, Thierry Florac [EMAIL PROTECTED] wrote: Le vendredi 17 novembre 2006 à 16:59 +0530, Shailesh Kumar a écrit : I currently use something like this, to handle a site configuration on startup (define catalog indexes...)

[Zope3-Users] zc.table FieldColumn question

2006-11-17 Thread ksmith93940-dev
Does anyone have a simple example of how FieldColumn is used? I'm quite sure I'm missing a very serious step here, but have been unable to figure out how to trigger the update method. Any help at all would be appreciated. I've tried the following, the request values show on screen but fail to

Re: [Zope3-Users] zc.table FieldColumn question

2006-11-17 Thread ksmith93940-dev
Ok, so the following works, but if someone with more knowledge could comment on this I'd appreciate it. class MovieColumnSubmit(fieldcolumn.SubmitColumn): def getId(self, item, formatter): return fieldcolumn.toSafe(item.__name__) def update(self, items, data, formatter):

Re: [Zope3-Users] zc.table FieldColumn question

2006-11-17 Thread Gary Poster
On Nov 17, 2006, at 3:00 PM, [EMAIL PROTECTED] wrote: Ok, so the following works, but if someone with more knowledge could comment on this I'd appreciate it. We have two separate stages (and methods) in our views, update and render. In our views, we *explicitly* call the field columns'

Re: [Zope3-Users] Utilities naming convention

2006-11-17 Thread David Pratt
Hi Frank, I guess I have just seen more Utilities named this way than not - so just confirming things for myself. I am also using zapi all over the place. Perhaps I should stop... I am not seeing deprecation warnings yet. Many thanks. Regards David FB wrote: Hi, On Thu, Nov 16, 2006 at