Re: [Zope-dev] Re: Post-mortem [Was: Zope 2.7.0 b3 regressions]
From: Evan Simpson [EMAIL PROTECTED] Lennart proposed additional methods, but I'm going to work on that in the post-2.7 branches, since I really want to clean up this mess properly, and beta 3 isn't the time. I totally agree. This is new features, introducing that in a beta3 seems very bad. I proposed introducing them in 2.7 only to: 1. Get things moving by scaring people. :-) 2. A way of fixing absolute_url by making it's bugs less important. If absolute_url can be fixed so it doesn't break backwards compatibility, then number 2 is of no importance. //Lennart ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZOPE + SSL
Another solution (although I've not actually used it) is the load balancer Pound by Robert Segall in front of Zope. Pound has explicit Zope/SSL support. On Wed, 2003-12-10 at 04:36, Illarramendi Amilibia, Aitor wrote: Hello all: Which is the best (or more used) solution at this moment for having Zope supporting SSL secure connections? ZOPE + Apache + Apache mod_ssl + openSSL + Virtual_Host(or similiar solution)? Is ok, but it is not a little bit contradictory to need to use a second Web Server for supporting the first one? Redirecting URLs, and all... Dunno, there would be a day where ZOPE could have it's own support? ZOPE + OpenSSL + M2Crypto + SWIG? (this one rewrites Zserver parts) Is a little bit tricky to handle with the building, and i've found many exception problems when using it, especifically in BIO access types. Looks like the error handling is not very improved. ZOPE + OpenSSL + pyOpenSSL? This needs to be integrated in ZOPE, as a product, or anyway. Is there a most used recipe or case study examples? The environment where i'm planning to do it could be directed to Win32 platform, and at least over Zope 2.6.1 release. Regards. Aitor Illarramendi Amilibia Ingeniero de software Mando y Control Carretera de Loeches, 9 28850 - Torrejón de Ardoz, Madrid (ESPAÑA) Tel: +34-91-626.80.60 Fax: +34-91-626.81.14 [EMAIL PROTECTED] --- Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente. The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] api docs [Was: Re: Post-mortem ...]
Hi! Brian Lloyd wrote: Good call. I think it would be best to make sure the docstring of the new method is clear on its reason for being. I think somewhere there is an interface file that is used to generate some of the api docs - ideally that can get updated too. What is the Right Way to keep api docs in sync? Example 1: ZCatalog/IZCatalog.py seems to be more up to date, but ZCatalog/help/ZCatalog.py is used by the Zope Help System and I guess also to generate api docs. Example 2: I did add OFS/IOrderSupport.py, but how will it become part of help and api docs? Is there a better way than copying it to OFSP/help? I hate to add redundant code because - as example 1 shows - it is hard to keep the files in sync. CMF uses the interface files also as help files. As interface files become more and more common in Zope it might make sense to do the same in Zope. Cheers, Yuppie ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] RE: api docs [Was: Re: Post-mortem ...]
What is the Right Way to keep api docs in sync? Example 1: ZCatalog/IZCatalog.py seems to be more up to date, but ZCatalog/help/ZCatalog.py is used by the Zope Help System and I guess also to generate api docs. Example 2: I did add OFS/IOrderSupport.py, but how will it become part of help and api docs? Is there a better way than copying it to OFSP/help? I hate to add redundant code because - as example 1 shows - it is hard to keep the files in sync. CMF uses the interface files also as help files. As interface files become more and more common in Zope it might make sense to do the same in Zope. Ghaaa... :( API docs come from OFSP/help, so you'll probably have to copy it for now. As you rightly pointed out, this is problematic for keeping things in sync, but we should hold our nose for now and do it, since it's too late in the 2.7 cycle to contemplate that big a restructuring. Making this sane would be a good potential project for an enterprising zopista for 2.8... Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] To the brave folks trying Zope HEAD...
Has anyone run into this one? -- 2003-12-10T14:07:53 ERROR(200) Zope Couldn't install Formulator Traceback (most recent call last): File /var/src/zope/head/lib/python/Zope/Startup/run.py, line 27, in ? run() File /var/src/zope/head/lib/python/Zope/Startup/run.py, line 24, in run start_zope(opts.configroot) File /var/src/zope/head/lib/python/Zope/Startup/__init__.py, line 50, in start_zope starter.startZope() File /var/src/zope/head/lib/python/Zope/Startup/__init__.py, line 218, in startZope Zope.startup() File /var/src/zope/head/lib/python/Zope/__init__.py, line 46, in startup _startup() File /var/src/zope/head/lib/python/Zope/App/startup.py, line 95, in startup OFS.Application.initialize(application) File /var/src/zope/head/lib/python/OFS/Application.py, line 420, in initialize install_products(app) File /var/src/zope/head/lib/python/OFS/Application.py, line 579, in install_products folder_permissions, raise_exc=debug_mode) File /var/src/zope/head/lib/python/OFS/Application.py, line 694, in install_product get_transaction().commit() File /var/src/zope/head/lib/python/ZODB/Transaction.py, line 254, in commit self._cleanup(objects, ncommitted, jars, subjars) File /var/src/zope/head/lib/python/ZODB/Transaction.py, line 233, in commit ncommitted += self._commit_objects(objects) File /var/src/zope/head/lib/python/ZODB/Transaction.py, line 352, in _commit_objects jar.commit(o, self) File /var/src/zope/head/lib/python/ZODB/Connection.py, line 279, in commit p = w.serialize(obj) File /var/src/zope/head/lib/python/ZODB/serialize.py, line 114, in serialize return self._dump(getClassMetadata(obj), obj.__getstate__()) File /var/src/zope/head/lib/python/ZODB/serialize.py, line 123, in _dump self._p.dump(state) ZODB.POSException.InvalidObjectReference: Attempt to store an object from a foreign database connection -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher Don't hit the keys so hard, it hurts. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, Dec 10, 2003 at 02:14:22PM -0200, Sidnei da Silva wrote: | Has anyone run into this one? snip For the records, here's 'classmeta' and 'state' one line before the exception: (('Products.Formulator.FieldHelpTopic', 'FieldHelpTopic'), None) {'field_class': class 'Products.Formulator.StandardFields.LabelField', 'id': 'LabelField', 'title': 'Formulator Field - LabelField'} -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher Basic is a high level languish. APL is a high level anguish. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
| Do you actually have more than one database connection? In other words, | is the error totally nonsensical or could the bug be that something is | getting stored in a foreign database connection? I'm just starting Zope by './bin/runzope' from a newly-created instance. No ZEO, no nothing. -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher I came, I saw, I deleted all your files. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
The default Zope setup has two databases: the main database and the session database. So it's not completely nonsensical for any default-configured Zope to raise the error (although I have no idea how this error is occurring). It might be worthwhile to specify a main database explicitly in zope.conf. This will prevent the default database setup from being invoked and then you will be sure that you only have one database connection. On Wed, 2003-12-10 at 11:19, Jeremy Hylton wrote: On Wed, 2003-12-10 at 11:14, Sidnei da Silva wrote: Has anyone run into this one? [ traceback snipped ] ZODB.POSException.InvalidObjectReference: Attempt to store an object from a foreign database connection Do you actually have more than one database connection? In other words, is the error totally nonsensical or could the bug be that something is getting stored in a foreign database connection? Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, Dec 10, 2003 at 11:32:27AM -0500, Chris McDonough wrote: | The default Zope setup has two databases: the main database and the | session database. So it's not completely nonsensical for any | default-configured Zope to raise the error (although I have no idea how | this error is occurring). It might be worthwhile to specify a main | database explicitly in zope.conf. This will prevent the default | database setup from being invoked and then you will be sure that you | only have one database connection. If I don't specify the temp_folder mount database, I get this error: 2003-12-10T14:37:46 ERROR(200) ZODB Failed to mount database. DBTab.Exceptions.DBTabConfigurationError (No database configured for mount point at /temp_folder) Traceback (most recent call last): File /var/src/zope/head/lib/python/Products/ZODBMountPoint/Mount.py, line 86, in _getOrOpenObject conn = self._getMountedConnection(anyjar) File /var/src/zope/head/lib/python/Products/ZODBMountPoint/Mount.py, line 63, in _getMountedConnection db_name = self._getDBName() File /var/src/zope/head/lib/python/Products/ZODBMountPoint/MountedObject.py, line 154, in _getDBName return getConfiguration().getDatabaseFactory(self._path).getName() File /var/src/zope/head/lib/python/DBTab/DBTab.py, line 107, in getDatabaseFactory self._mountPathError(mount_path) File /var/src/zope/head/lib/python/DBTab/DBTab.py, line 71, in _mountPathError raise DBTabConfigurationError( DBTabConfigurationError: No database configured for mount point at /temp_folder Traceback (most recent call last): File /var/src/zope/head/lib/python/Zope/Startup/run.py, line 27, in ? run() File /var/src/zope/head/lib/python/Zope/Startup/run.py, line 24, in run start_zope(opts.configroot) File /var/src/zope/head/lib/python/Zope/Startup/__init__.py, line 50, in start_zope starter.startZope() File /var/src/zope/head/lib/python/Zope/Startup/__init__.py, line 218, in startZope Zope.startup() File /var/src/zope/head/lib/python/Zope/__init__.py, line 46, in startup _startup() File /var/src/zope/head/lib/python/Zope/App/startup.py, line 95, in startup OFS.Application.initialize(application) File /var/src/zope/head/lib/python/OFS/Application.py, line 348, in initialize tf._setObject('session_data', toc) AttributeError: _setObject -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher Nuclear war can ruin your whole compile. -- Karl Lehenbauer ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, Dec 10, 2003 at 12:19:47PM -0500, Chris McDonough wrote: | Right. Ugh. I need to fix this. To work around if for the meantime, | you could comment out Application.py's line 348 and other related lines | around it. Ok, commented out 292-360, and now I'm back to the previous traceback. So, it seems to be happening with only one database open. -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher Linux - Where do you want to fly today? -- Unknown source ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
And you see only the main database in Control_Panel-Databases? On Wed, 2003-12-10 at 12:35, Sidnei da Silva wrote: On Wed, Dec 10, 2003 at 12:19:47PM -0500, Chris McDonough wrote: | Right. Ugh. I need to fix this. To work around if for the meantime, | you could comment out Application.py's line 348 and other related lines | around it. Ok, commented out 292-360, and now I'm back to the previous traceback. So, it seems to be happening with only one database open. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, Dec 10, 2003 at 12:36:53PM -0500, Chris McDonough wrote: | And you see only the main database in Control_Panel-Databases? No, I can't get this far. The error happens on startup. -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher %DCL-MEM-BAD, bad memory VMS-F-PDGERS, pudding between the ears ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
Right. ;-) At this point I should just try it myself but if you remove the Formulator product, does Zope start? On Wed, 2003-12-10 at 12:52, Sidnei da Silva wrote: On Wed, Dec 10, 2003 at 12:36:53PM -0500, Chris McDonough wrote: | And you see only the main database in Control_Panel-Databases? No, I can't get this far. The error happens on startup. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, Dec 10, 2003 at 12:50:29PM -0500, Chris McDonough wrote: | Right. ;-) At this point I should just try it myself but if you remove | the Formulator product, does Zope start? If I remove Plone and Formulator it starts yes. -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher Equal bytes for women. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
| Probably a good next step is to set a breakpoint in | ZODB/coptimizations.c where this exception is raised and find out what | object is causing the problem, which jar it's already in, and why it's | getting added to a different jar. Or you could add some print | statements. I figured out how to set a breakpoint in gdb, but I don't know how to get at the object and inspect it. Can I get a quick hint? I know there has to be some pointer cast probably, just need to know which one. :) -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher fortune: cannot execute. Out of cookies. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, 2003-12-10 at 14:01, Sidnei da Silva wrote: | Probably a good next step is to set a breakpoint in | ZODB/coptimizations.c where this exception is raised and find out what | object is causing the problem, which jar it's already in, and why it's | getting added to a different jar. Or you could add some print | statements. I figured out how to set a breakpoint in gdb, but I don't know how to get at the object and inspect it. Can I get a quick hint? I know there has to be some pointer cast probably, just need to know which one. :) I think you're looking for the helpers defined in Misc/gdbinit in the Python distribution. If you add them to your .gdbinit, you'll be golden. I've included that file's contents below so you don't have to go hunting. # -*- ksh -*- # # If you use the GNU debugger gdb to debug the Python C runtime, you # might find some of the following commands useful. Copy this to your # ~/.gdbinit file and it'll get loaded into gdb automatically when you # start it up. Then, at the gdb prompt you can do things like: # #(gdb) pyo apyobjectptr #module 'foobar' (built-in) #refcounts: 1 #address: 84a7a2c #$1 = void #(gdb) # Prints a representation of the object to stderr, along with the # number of reference counts it current has and the hex address the # object is allocated at. The argument must be a PyObject* define pyo print _PyObject_Dump($arg0) end # Prints a representation of the object to stderr, along with the # number of reference counts it current has and the hex address the # object is allocated at. The argument must be a PyGC_Head* define pyg print _PyGC_Dump($arg0) end # If you are in an eval_frame() function, calling pyframe with no # arguments will print the filename, function name, and line number. # It assumes that f is the name of the current frame. define pyframe x/s ((PyStringObject*)f-f_code-co_filename)-ob_sval x/s ((PyStringObject*)f-f_code-co_name)-ob_sval p f-f_lineno end ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
| I think you're looking for the helpers defined in Misc/gdbinit in the | Python distribution. If you add them to your .gdbinit, you'll be | golden. | | I've included that file's contents below so you don't have to go | hunting. Neat! There we have 'object', 'self' and 'self-jar', as of line 183 of coptimizations.c: object : class 'Products.Formulator.StandardFields.LabelField' type: ExtensionClass.ExtensionClass refcount: 7 address : 0x8503bec object : persistent_id object at 0x415b87b8 type: persistent_id refcount: 1 address : 0x415b87b8 object : Connection at 414b80ac type: Connection refcount: 238 address : 0x414b80ac 'jar' gives: object : attribute '_p_jar' of 'persistent.Persistent' objects type: getset_descriptor refcount: 2 address : 0x40621e6c Does that help? -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher [We] use bad software and bad machines for the wrong things. -- R.W. Hamming ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, 2003-12-10 at 14:18, Sidnei da Silva wrote: 'jar' gives: object : attribute '_p_jar' of 'persistent.Persistent' objects type: getset_descriptor refcount: 2 address : 0x40621e6c Does that help? Yes. The code is getting an unexpected raw descriptor. Someone should be calling __get__() on this descriptor to get the value. I'll have to look into it to see how it's going wrong. Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Head (2.8) breaks refresh
Stuart Bishop wrote at 2003-12-10 11:24 +1100: On 08/12/2003, at 12:15 AM, Dieter Maurer wrote: Playing with Zope Head (as of 2003-12-04) revealed problems with refresh. This is not just a 2.8 issue - the behavior is in the 2.7 betas (at least up to beta 2 - havn't tested autorefresh with beta 3 yet) as well: http://collector.zope.org/Zope/1010 Manually refreshing works fine, but automatic refreshes cause the ValueErrors. Then, try my patch... -- Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
Actually, there are two equally valuable clues from the debugger session: object : class 'Products.Formulator.StandardFields.LabelField' type: ExtensionClass.ExtensionClass refcount: 7 address : 0x8503bec If I understand correctly: LabelField is a class that inherits from Persistence and some other object has a reference to it that isn't via __class__. persistent.Persistent._p_jar attribute '_p_jar' of 'persistent.Persistent' objects If you ask a class for an attribute, it seems you can get a descriptor back. I vaguely recall Guido saying that this was the intended behavior last time I asked about it. 'jar' gives: object : attribute '_p_jar' of 'persistent.Persistent' objects type: getset_descriptor refcount: 2 address : 0x40621e6c Thus, asking for the class's _p_jar gives the descriptor back. In ZODB4 I hacked around this by requiring that the value of _p_jar be None or a string. Would there be any objection to having the same requirement in ZODB3? Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Post-mortem [Was: Zope 2.7.0 b3 regressions]
Brian Lloyd wrote: Good call. I think it would be best to make sure the docstring of the new method is clear on its reason for being. I think somewhere there is an interface file that is used to generate some of the api docs - ideally that can get updated too. Done and done! Cheerios, Evan ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, Dec 10, 2003 at 03:26:03PM -0500, Jeremy Hylton wrote: | Actually, there are two equally valuable clues from the debugger | session: | | object : class 'Products.Formulator.StandardFields.LabelField' | type: ExtensionClass.ExtensionClass | refcount: 7 | address : 0x8503bec | | If I understand correctly: LabelField is a class that inherits from | Persistence and some other object has a reference to it that isn't via | __class__. Makes sense to me. How can I find the referencing object? | persistent.Persistent._p_jar | attribute '_p_jar' of 'persistent.Persistent' objects | | If you ask a class for an attribute, it seems you can get a descriptor | back. I vaguely recall Guido saying that this was the intended behavior | last time I asked about it. Yes, I've learnt this the hard way, when Jim tried to explain me and I kept banging my head against the wall :) | 'jar' gives: | object : attribute '_p_jar' of 'persistent.Persistent' objects | type: getset_descriptor | refcount: 2 | address : 0x40621e6c | | Thus, asking for the class's _p_jar gives the descriptor back. In ZODB4 | I hacked around this by requiring that the value of _p_jar be None or a | string. Would there be any objection to having the same requirement in | ZODB3? I have no clue about the implications of this, but it seems like a reasonable constraint to me. -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher MS-DOS, you can't live with it, you can live without it. -- from Lars Wirzenius' .sig ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] To the brave folks trying Zope HEAD...
On Wed, 2003-12-10 at 15:36, Sidnei da Silva wrote: | 'jar' gives: | object : attribute '_p_jar' of 'persistent.Persistent' objects | type: getset_descriptor | refcount: 2 | address : 0x40621e6c | | Thus, asking for the class's _p_jar gives the descriptor back. In ZODB4 | I hacked around this by requiring that the value of _p_jar be None or a | string. Would there be any objection to having the same requirement in | ZODB3? I have no clue about the implications of this, but it seems like a reasonable constraint to me. Actually, that's just a brain cramp on my part. We can check that an oid is a string or None, but not a jar. I'll have to think about an efficient check. Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zopectl start not working on Mac OS X
We are planning on shipping Zope 2.7 with the Plone 2 installer for Mac OS X. I can start a Zope instance on Mac OS X 10.2.8 using $INSTANCE_HOME/bin/runzope, but not using $INSTANCE_HOME/bin/zopectl start. I'm using Python 2.3.2 built from source, and Zope was built using: ./configure --with-python=/Applications/Plone2/Library/Software/Zope270/Python/bin/ python --prefix=/Applications/Plone2/Library/Software/Zope270/Zope --optimize make make install (note, the same thing happens whether or not i use the --optimize option) This happens with b3 and Zope-2_7-branch from today. cd $INSTANCE_HOME ./bin/zopectl start Traceback (most recent call last): File /Applications/Plone2/Library/Software/Zope270/Zope/lib/python/Zope/ Startup/zopectl.py, line 215, in ? main() File /Applications/Plone2/Library/Software/Zope270/Zope/lib/python/Zope/ Startup/zopectl.py, line 198, in main c.onecmd( .join(options.args)) File /Applications/Plone2/Library/Software/Zope270/Python/lib/python2.3/ cmd.py, line 210, in onecmd return func(arg) File /Applications/Plone2/Library/Software/Zope270/Zope/lib/python/Zope/ Startup/zopectl.py, line 134, in do_start ZDCmd.do_start(self, arg) File /Applications/Plone2/Library/Software/Zope270/Zope/lib/python/ zdaemon/zdctl.py, line 214, in do_start os.spawnvp(flag, args[0], args) File /Applications/Plone2/Library/Software/Zope270/Python/lib/python2.3/ os.py, line 543, in spawnvp return _spawnvef(mode, file, args, None, execvp) File /Applications/Plone2/Library/Software/Zope270/Python/lib/python2.3/ os.py, line 504, in _spawnvef wpid, sts = waitpid(pid, 0) OSError: [Errno 10] No child processes I added code to zdctl.py to print out the environment and the command line used in os.spawnvp. It is (including some environment variables I set before running it): SOFTWARE_HOME=/Applications/Plone2/Library/Software/Zope270/Zope/lib/ python INSTANCE_HOME=/Applications/Plone2/Sites/Testing PYTHONPATH=/Applications/Plone2/Library/Software/Zope270/Zope/lib/python CLIENT_HOME=/Applications/Plone2/Sites/Testing/var ZOPE_HOME=/Applications/Plone2/Library/Software/Zope270/Zope export SOFTWARE_HOME INSTANCE_HOME PYTHONPATH CLIENT_HOME ZOPE_HOME /Applications/Plone2/Library/Software/Zope270/Python/bin/python /Applications/Plone2/Library/Software/Zope270/Zope/lib/python/zdaemon/ zdrun.py -S /Applications/Plone2/Library/Software/Zope270/Zope/lib/python/Zope/ Startup/zopeschema.xml -b 10 -d -s /Applications/Plone2/Sites/Testing/var/zopectlsock -x 0,2 -z /Applications/Plone2/Sites/Testing /Applications/Plone2/Sites/Testing/bin/runzope I get this output: Another zrdun is already up using socket '/Applications/Plone2/Sites/Testing/var/zopectlsock': status=running now=1070998107.721581 mood=1 delay=0 backoff=0 lasttime=1070998096.551084 application=1152 manager=1141 backofflimit=10 filename='/Applications/Plone2/Sites/Testing/bin/runzope' args=['/Applications/Plone2/Sites/Testing/bin/runzope'] I've looked at the source and nothing is popping out as being obviously wrong. If you have any suggestions for ways I can debug this further I can go further on this. For now I think I'm going to have to stick with runzope... but I'd really like to be using zopectl start/stop/status instead. Jim -- Jim Roepcke Tyrell Software Corp http://www.tyrell.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Preview of a Stackless Zope Application
Howdy, I made a little demo of Stackless Zope. It is just a quick hack to see how things can work. The example is a long-running Python method which prints lines to the browser. The key to this surprizing solution is tasklets, channels, and thread pickling. Let me know your thoughts... http://www.centera.de/tismer/stackless/zope_demo -- Christian Tismer :^) mailto:[EMAIL PROTECTED] Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9a :*Starship* http://starship.python.net/ 14109 Berlin : PGP key - http://wwwkeys.pgp.net/ work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )