Re: [Zope3-Users] [RFC] Merging zope3-users list with z...@zope.org list
On 15.01.2009, at 09:47, Andreas Jung wrote: > - one "user" list is enough (as we already have merged the > zope3-dev list into the zope-dev list) +1 Stefan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Find the zope3 instance home directory (or the /var directory)
I don't think there is any way whatsoever in Zope 3. There is no "instance" home to begin with, and the os.pardir hacks don't work either because you can't really know where your package is installed. Stefan On 6. Nov 2007, at 11:02, Eric Bréhault wrote: I had a look to different source code, and apparently the solution is to use the path of the current file to get the instance home, so we have code like this: os.path.normpath( os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, os.pardir)) Is there any easier (and cleaner) way to do it ? -- Anything that, in happening, causes itself to happen again, happens again. --Douglas Adams ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Modified IntId utility
On 24. Sep 2007, at 18:53, Maken Seteva wrote: Fellow Zopers. I have made a slight modification to my intid util by inheriting from IntId and overriding _generateId(). I do this to be sure that all new created objects will have an incrementing number where the first object created gets id 1, the next gets id 2 and so on. This way I get for "free" sorting by oldest/newest. Please do not attach additional "meaning" to intids. The value of an object's intid is (and should be) completely irrelevant. [snip] What do you think about this? Is it "safe" to do this, or have i forgotten any unforseen oddities that might occur in the future :O Your code looks like a conflict-magnet to me. I suggest you read up on why counting in the ZODB is a bad idea. Stefan -- It doesn't necessarily do it in chronological order, though. --Douglas Adams ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zopeproject 0.4: using without easy_installing, egg-info error
virtualenv is a pretty cool way of keeping your system python clean: http://pypi.python.org/pypi/virtualenv On 19. Sep 2007, at 21:50, Jeff Kowalczyk wrote: I would like to use zopeproject without easy_installing zopeproject and dependencies into the system python. -- Anything that, in happening, causes itself to happen again, happens again. --Douglas Adams ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Still trying to connect to ZODB from external
You *must* either commit or abort your transaction. Stefan On 8. Mai 2007, at 23:02, Florian Lindner wrote: File "/home/florian/Zope3/src/ZODB/Connection.py", line 268, in close raise ConnectionStateError("Cannot close a connection joined to " ZODB.POSException.ConnectionStateError: Cannot close a connection joined to a transaction What is the right way to do it? -- Anything that happens, happens. --Douglas Adams ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users