[Zope-dev] Zope Tests: 4 OK, 1 Unknown
Summary of messages to the zope-tests list. Period Sun Aug 17 11:00:00 2008 UTC to Mon Aug 18 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Unknown --- Subject: UNKNOWN : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Sun Aug 17 20:39:07 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/010025.html Tests passed OK --- Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 17 20:40:38 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/010026.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 17 20:42:08 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/010027.html Subject: OK : Zope-2.11 Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 17 20:43:38 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/010028.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Tests Date: Sun Aug 17 20:45:08 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-August/010029.html ___ Zope-Dev maillist - Zope-Dev@zope.org 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] is this how we fix test breakage in tests? :-S
Hi Benji, Was a bit shocked to see your name against the rather disappointing commenting out of a doctest in doctest.py (lines 2214-2218). What gives? So if tests don't pass now we just comment them out? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org 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] is this how we fix test breakage in tests? :-S
On Mon, Aug 18, 2008 at 3:19 PM, Chris Withers [EMAIL PROTECTED] wrote: Hi Benji, Was a bit shocked to see your name against the rather disappointing commenting out of a doctest in doctest.py (lines 2214-2218). Commenting out that test was an accident of a merge. But, that doesn't really matter much, because test in question has never run, and can never have passed (since the time when zope.testing's doctest was forked from Python). It expects to call functions in the current module (which is zope.testing.doctest) to mutate module globals and see the results in the globals of the module imported by import doctest (which will be the doctest from the standard library). I suggest deleting the test in question. It doesn't really test anything worth testing as far as I can tell. Then we should make bin/test run the tests in doctest.py. Ultimately we'd really like to defork doctest, but that's a non-trivial task. -- Benji York Senior Software Engineer Zope Corporation ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Need some help to get rid of an InvalidObjectReference exception
Need some help to get rid of an InvalidObjectReference exception Hi zopers, In my zope product, when I try to put some specific object in the session, I get this : 2008-08-18T14:51:02 ERROR(200) SiteError http://www.afdas.com:8091/noyauafdas/tests/testAdresses Traceback (most recent call last): File /opt/Zope-2.7/lib/python/ZPublisher/Publish.py, line 107, in publish transactions_manager.commit() File /opt/Zope-2.7/lib/python/Zope/App/startup.py, line 222, in commit get_transaction().commit() File /opt/Zope-2.7/lib/python/ZODB/Transaction.py, line 241, in commit ncommitted += self._commit_objects(objects) File /opt/Zope-2.7/lib/python/ZODB/Transaction.py, line 356, in _commit_objects jar.commit(o, self) File /opt/Zope-2.7/lib/python/ZODB/Connection.py, line 452, in commit dump(state) InvalidObjectReference: Attempt to store an object from a foreign database connection after hours of googling and debugging (not very easy because traceback does not show the line of your product code that fired the exception), I found the line that is breaking everything. def remonterAdresses(self,p_idEntreprise=0): Sans arguments, cette methode retourne les adresses stockees en session. # XXX : attention, p_idEntreprise est totalement ignore si entreprise deja en session entreprise = self.REQUEST.SESSION.get('entreprise') print GestionnaireEntreprises::remonterAdresses... if not entreprise : entreprise = Entreprise(self,p_idEntreprise) print mise de entreprise en session.. self.REQUEST.SESSION.set('entreprise',entreprise) print ...mise en session OK adresses = entreprise.remonterAdresses() print GestionnaireEntreprises::remonterAdresses OK, adresses = ,adresses return adresses Now, the bug comes form the line self.REQUEST.SESSION.set('entreprise',entreprise) entreprise is an instance of Entreprise. I never put objects of this class in the ZODB because I don't need them to persist, they're just temporary. However, because Entreprises objects need to access to other objects that are in the ZODB, I pass them self as first argument, so that they can use it as a context to acquire other objects (for examples, Z SQL Methods). So inside Entreprise code, I can do something like self.context.zsql_method_something... because self.context is a reference to the caller, which lives in the ZODB. The caller is gestionnaireEntrprises. So my question is : what is wrong with that ? Why do I get this InvalidObjectReference ? is it the entreprise object that is in the session ? is it the gestionnaireEntreprises that is stored as an attribute of the entreprise object ? maybe both ? Thank you for any advice. Zope 2.7 python 2.3 plone 2.0.5 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] emails
I am now and have been getting emails from everyone who comunicates with your site. There were seven new emails this am. I have done every I know of to stop them. All of the unwanted emails I get look like this in the subject line: [Zope] Need so...etc. Re: [Zope] SCRIPT (Python) ...etc. [Zope] Searching for etc. Re: [Zope] trying ZODB etc. They all come frome individuals and have [Zope] in the subject line. Can you help me or refer me to someone who can. What would do if you were getting as many as 27 of these every day? Please help me. Michael Arnoldy at: [EMAIL PROTECTED] I have been getting these emails ever since I first visited your site. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] emails
+---[ Michael Arnoldy ]-- | What would do if you were getting as many as 27 of these every day? I would have looked at the footer of the email where it points to the mailing list and unsubscribed myself. | ___ | Zope maillist - Zope@zope.org | http://mail.zope.org/mailman/listinfo/zope -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] emails
In all of my tries to stop the emails below, I may have blocked any replies you might have sent me. If so you can reach me at my secure address: [EMAIL PROTECTED] - Original Message From: Michael Arnoldy [EMAIL PROTECTED] To: Zope@zope.org Sent: Monday, August 18, 2008 11:06:45 AM Subject: [Zope] emails I am now and have been getting emails from everyone who comunicates with your site. There were seven new emails this am. I have done every I know of to stop them. All of the unwanted emails I get look like this in the subject line: [Zope] Need so...etc. Re: [Zope] SCRIPT (Python) ...etc. [Zope] Searching for etc. Re: [Zope] trying ZODB etc. They all come frome individuals and have [Zope] in the subject line. Can you help me or refer me to someone who can. What would do if you were getting as many as 27 of these every day? Please help me. Michael Arnoldy at: [EMAIL PROTECTED] I have been getting these emails ever since I first visited your site. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] emails
+---[ Michael Arnoldy ]-- | In all of my tries to stop the emails below, I may have blocked any replies you | might have sent me. | If so you can reach me at my secure address: [EMAIL PROTECTED] Dickhead -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )