Re: [Zope3-Users] Required choice without default value in formlib

2007-03-08 Thread Stephan Richter
On Friday 12 January 2007 05:02, Thierry Florac wrote: I use formlib to handle my forms. In a AddForm, how can I have a required choice property, using a dynamic vocabulary, without a default selected value ? You would have to write your own widget that displays a blank value by default. If

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

2007-03-08 Thread Stephan Richter
On Monday 08 January 2007 09:54, Michael Haubenwallner wrote: /home/user/Zope3/src/zope/configuration/config.py:690: DeprecationWarning: Change the site.zcml Replace: include package=zope.app / with: include package=zope.app.zcmlfiles / This will go away in Zope 3.6.    actions =

Re: [Zope3-Users] interview for my diploma thesis about Zope 3 in education

2007-03-08 Thread Stephan Richter
On Monday 22 January 2007 07:08, Dominique Lederer wrote: For my diploma thesis, i would like to ask you to anwer or discuss a few questions, to see, what you think about this. (of course i will cite all the stuff) I hope it is not too late. Here they are: * Do you think Zope (3) can be

Re: [Zope3-Users] Containers Contains

2007-03-08 Thread Stephan Richter
On Sunday 28 January 2007 06:32, David Johnson wrote: This I know, so that is exactly my question.  What is the preferred   approach in Zope?  The contains and containers, or the more explicit   methods? contains() and containers() Regards, Stephan -- Stephan Richter CBU Physics Chemistry

Re: [Zope3-Users] Get a site

2007-03-08 Thread Stephan Richter
On Sunday 28 January 2007 12:23, Florian Lindner wrote: exceptions.ValueError: I/O operation on closed file any idea what caused it? I think you violate the transaction mechanism. I think it would be easier to make a call via the publisher. Regards, Stephan -- Stephan Richter CBU Physics

Re: [Zope3-Users] Vocabularly

2007-03-08 Thread Stephan Richter
On Sunday 28 January 2007 12:51, David Johnson wrote: def getFunctions():      values = [ 'Black', 'Red', 'Blue' ]      return SimpleVocabulary.fromValues(values) This looks good. I thought this would be a good chance to build my vocabulary skills.   I followed Stephan's book but I am

Re: [Zope3-Users] Wierd Error

2007-03-08 Thread Stephan Richter
On Monday 29 January 2007 16:15, David Johnson wrote: I am receiving this error and I am not sure why.      return self._dump(meta, obj.__getstate__())    File /Users/djohnson/sandbox/Zope-3.3.0/build/lib.macosx-10.3- fat-2.4/ZODB/serialize.py, line 416, in _dump      self._p.dump(state)    

Re: [Zope3-Users] Timezones and zope.i18n.locale

2007-03-08 Thread Stephan Richter
On Friday 16 February 2007 02:48, FB wrote: AFAIK there's is no easy way of automatically determining a user's timezone. I have recently checked in a package called z3c.iplocation. It requires you to buy some data (there is a short version too), but if you really want it, it's worth it.

Re: [Zope3-Users] Using zope.component outside Zope 3-how to bootstrap the registries

2007-03-08 Thread Stephan Richter
On Friday 16 February 2007 08:15, Andreas Jung wrote: I am trying to use zope.component (Zope3 3.0) within a Python module (not running the whole Zope 3 boilerplate). I want to register a utility. What is the correct way to setup the registries (in particular the Utility registry) in order

Re: [Zope3-Users] win32 setup

2007-03-08 Thread Stephan Richter
On Friday 02 February 2007 03:00, Ivan Horvath wrote: i've downloaded the latest zope version (http://www.zope.org/Products/Zope3/3.3.0/Zope-3.3.0.win32-py2.4.exe). how can i customize the installation path? because it is installed on the site_packages folder in python/lib folder. i would

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

2007-03-08 Thread Stephan Richter
On Thursday 01 February 2007 05:55, Martin Aspeli wrote: Any pointers? The only thing that I know is that zope.app.cache was effectively a copy of the Zope 2 code, so it behaves in similar fashion. I do not see why you could not make use of the package via Five, there is nothing magical there.

Re: [Zope3-Users] ImportError: type zope.app.boston.app.boston.* is unknown

2007-03-08 Thread Stephan Richter
On Saturday 03 March 2007 13:49, Myles English wrote: Can anyone please tell me what might be causing this error when I try to start zope?  I used to be able to fix it temporarily by commenting out the parts of a browser.skin.configure.zcml but I have forgotten how and never understood why

Re: [Zope3-Users] problems using os.popen2 in a heavily used utility

2007-03-08 Thread Stephan Richter
On Tuesday 30 January 2007 15:57, Shaar Gabriel wrote: i read somewhere that os.popen2 is not friendly towards twisted framework, and that twisted.internet.reactor.spawnProcess or twisted.internet.process.Process should be used. i can't undersnad what format the parameter childfds should look

Re: [Zope3-Users] Doctests and authenticated principal

2007-03-08 Thread Stephan Richter
On Wednesday 31 January 2007 05:28, Maciej Wisniowski wrote: In doc test I may use: request = TestRequest() class User(object): ...     id = 'Jan' ...     title = 'Jan Kowalski' request.setPrincipal(User()) ..rest of the test.. and after this everything works. Is this

Re: [Zope3-Users] Permission Question

2007-03-08 Thread Stephan Richter
On Wednesday 07 February 2007 10:23, FB wrote: I tried using security-annotations which worked fine for single users:   ('user-xy','zope.ManageContent',Deny)   ('user-owner','zope.ManageContent',Allow) However, this is rather impractical for 1000+ users - so I tried:  

Re: [Zope3-Users] formlib sequences

2007-03-08 Thread Stephan Richter
On Wednesday 14 February 2007 06:47, Dennis Schulz wrote: Generally it is hard or impossible to find UML stuff about Zope 3. And I also think that Zope 3 does not fit very good into the common patterns of UML. I agree. I also have an extremely hard time developing sequence and class diagrams

Re: [Zope3-Users] Change site-wide error logging behaviour

2007-03-08 Thread Stephan Richter
On Thursday 15 February 2007 20:21, Andrew Groom wrote: I need to change the default error logging behaviour to send me an email when there's an error. I'm guessing this involves adapting an interface in etc/overrides.zcml or something like that - has anyone done this before and, if so, is

Re: [Zope3-Users] Okay, i have a product, but now I want a website (2nd try)

2007-03-08 Thread Stephan Richter
On Saturday 17 February 2007 08:32, Robert-Reinder Nederhoed wrote: I would like to separate the website parts from the Mobile Home code, so I can start integrating other Zope3 products with the website. (like a blog) Somehow it seams difficult. You want to write your own skin from scratch. We

Re: [Zope3-Users] z3c.ajax help

2007-03-08 Thread Stephan Richter
On Tuesday 06 March 2007 10:41, Ricardo Sixel wrote: Could anyone help me with z3c.ajax ? I cannot find neither instructions nor examples showing how to use or deploy it. In instance/src/z3c, do: svn co svn://svn.zope.org/repos/main/z3c.ajax/trunk/src/z3c/ajax . In

Re: [Zope3-Users] Get a site

2007-03-08 Thread Florian Lindner
Am Donnerstag, 8. März 2007 20:10 schrieb Stephan Richter: On Sunday 28 January 2007 12:23, Florian Lindner wrote: exceptions.ValueError: I/O operation on closed file any idea what caused it? I think you violate the transaction mechanism. I think it would be easier to make a call via

[Zope3-Users] Re: z3c.ajax help

2007-03-08 Thread Ricardo Sixel
Hi Stephan, I've bought Weitershausen's book, 2nd edition, and It's very straightforward. I'll try to use you hint as a starting point, developing it on my own. Thank you, Sixel Stephan Richter escreveu: On Tuesday 06 March 2007 10:41, Ricardo Sixel wrote: Could anyone help me with

[Zope3-Users] general zope question

2007-03-08 Thread tyson
I would like to build an application with Zope3 that does not use the ZODB at all. I want to pull my data from my own database, display it to the user and allow them to change and edit the values with forms. Is Zope the right solution for this situation? I know everyone says the ZODB is

Re: [Zope3-Users] general zope question

2007-03-08 Thread Paul Winkler
On Thu, Mar 08, 2007 at 04:40:11PM -0600, tyson wrote: I would like to build an application with Zope3 that does not use the ZODB at all. (snip) Check the archives of the past month or two, there's been some recent discussion of this exact topic. -- Paul Winkler http://www.slinkp.com

[Zope3-Users] FreeBSD zopectl socket.error: (13, 'Permission denied')

2007-03-08 Thread David Christensen
zope3-users: I am a FreeBSD 6.2 and Zope newbie who is attempting to get Zope 3.3.0 working. I have made and installed Zope 3 using the ports collection, and run mkzopeinstance. Everything seemed to go okay. When I try to use zopectl to start Zope, I get an error: 2007-03-08 18:52:21