[Zope-dev] Re: test.py
Hi! Tres Seaver wrote: yuppie wrote: Some grep results from Zope HEAD: setup.py: #! /usr/bin/env python test.py: #! /usr/bin/env python2.2 utilities\check_catalog.py: #!/usr/bin/env python2.1 utilities\requestprofiler.py: #!/usr/bin/env python utilities\compilezpy.py: #!/usr/bin/env python utilities\zpasswd.py: #!/usr/bin/env python utilities\testrunner.py: #! /usr/bin/env python2.2 utilities\ZODBTools\space.py: #! /usr/bin/env python And many tests, some of them still with python1.5, e.g. lib\python\TAL\tests\run.py: #! /usr/bin/env python1.5 Could we have a policy for this? I guess '#! /usr/bin/env python' is easier to keep up to date ... -1. We should specify the required minimum version everywhere. I'm fine with that. The 'env' hack is evil because it pretends to be flexible, while still leaving you vulnerable to strangeness. Is there a better alternative than the 'env hack'? (I had to google to find out what you mean by 'env hack' and found http://www.faqts.com/knowledge_base/view.phtml/aid/1406, but nothing about better solutions.) BTW, the space after the '!' should go, too; it is not guaranteed to be honored by all shells. Good to know. So you propose to replace *all* the #! lines by #!/usr/bin/env python2.3 Right? 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] help
hi after installing pysycopg following the steps as mentioned in the INSTALL file of pyscopg when i started Zope i got following error. Coluld anyone please guide me about it thanks you Vandana home4:/Zope-2.6.2-linux2-x86 # ./start -- 2004-03-11T15:45:49 INFO(0) zdaemon Started subprocess: pid 10269 -- 2004-03-11T15:45:51 ERROR(200) Zope Could not import Products.ZPsycopgDA Traceback (innermost last): File /Zope-2.6.2-linux2-x86/lib/python/OFS/Application.py, line 522, in import_product File /Zope-2.6.2-linux2-x86/lib/python/Products/ZPsycopgDA/__init__.py, line 92, in ? File /Zope-2.6.2-linux2-x86/lib/python/Products/ZPsycopgDA/DA.py, line 93, in ? File /Zope-2.6.2-linux2-x86/lib/python/Products/ZPsycopgDA/db.py, line 99, in ? ImportError: /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so: undefined symbol: PyType_IsSubtype -- 2004-03-11T15:45:51 PANIC(300) z2 Startup exception Traceback (innermost last): File /Zope-2.6.2-linux2-x86/z2.py, line 585, in ? File /Zope-2.6.2-linux2-x86/lib/python/Zope/__init__.py, line 46, in startup (Object: startup) File /Zope-2.6.2-linux2-x86/lib/python/Zope/App/startup.py, line 45, in startup File /Zope-2.6.2-linux2-x86/lib/python/OFS/Application.py, line 500, in import_products File /Zope-2.6.2-linux2-x86/lib/python/OFS/Application.py, line 522, in import_product File /Zope-2.6.2-linux2-x86/lib/python/Products/ZPsycopgDA/__init__.py, line 92, in ? File /Zope-2.6.2-linux2-x86/lib/python/Products/ZPsycopgDA/DA.py, line 93, in ? File /Zope-2.6.2-linux2-x86/lib/python/Products/ZPsycopgDA/db.py, line 99, in ? ImportError: /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so: undefined symbol: PyType_IsSubtype __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.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 )
Re: [Zope-dev] help
Il gio, 2004-03-11 alle 11:30, Vandana Bajaj ha scritto: /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so: undefined symbol: PyType_IsSubtype you probably built psycopg using python 2.2/2.3 and your zope still uses python 2.1. see psycopg's FAQ about building with the python packaged with zope (http://wiki.initd.org/Projects/PsycopgFaq). -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer[EMAIL PROTECTED] INIT.D Developer [EMAIL PROTECTED] Don't dream it. Be it. -- Dr. Frank'n'further signature.asc Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata ___ 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: [ZODB-Dev] Re: BTrees strangeness (was Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
Chris McDonough wrote: On Wed, 2004-03-10 at 19:30, Paul Winkler wrote: I suggested doing a bug day as part of the pycon z2 sprint, but we haven't really discussed the various sprint proposals in depth yet. Since you and I are going to be there on Saturday and Sunday, why don't we do this on those days and encourage people to participate via IRC? We can decide to do something else (or not) for Monday and Tuesday, if the mood strikes. What dates are those Saturday and Sunday? I'm not at PyCon but might see if I can pitch in from the UK... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] help
(Learn to use better subject lines!) Vandana Bajaj wrote: /Zope-2.6.2-linux2-x86/lib/python2.1/lib-dynload/psycopgmodule.so: undefined symbol: PyType_IsSubtype Looks like you didn't manage to compile it properly, maybe you compiled it to the wrong python version... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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: [ZODB-Dev] Re: BTrees strangeness (was Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
Saturday Mar 20, Sun Mar 21... On Thu, 2004-03-11 at 06:54, Chris Withers wrote: Chris McDonough wrote: On Wed, 2004-03-10 at 19:30, Paul Winkler wrote: I suggested doing a bug day as part of the pycon z2 sprint, but we haven't really discussed the various sprint proposals in depth yet. Since you and I are going to be there on Saturday and Sunday, why don't we do this on those days and encourage people to participate via IRC? We can decide to do something else (or not) for Monday and Tuesday, if the mood strikes. What dates are those Saturday and Sunday? I'm not at PyCon but might see if I can pitch in from the UK... cheers, Chris ___ 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] Product Access to Files
I'm overriding '__getitem__' and using Python's os package to directly access the local file system. I just sniff the file name extension and set the response content-type, then return the contents of the named file. Simple and stupid. Ooo... I hope you're confident in what you're doing :-S Should be vaguely okay, provided you're not writing to those files with the os module. Mindyou, Apache could serve 'em a LOT faster... (If anyone's curious, I'm using a Zope product for a back-end to a Mozilla/XUL front-end. This static file stuff allows the product to provide the XUL, JavaScript, and CSS files needed to define the Mozilla-based interface.) Cool :-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
On Thu, 2004-03-11 at 06:52, Chris Withers wrote: Well, what if you want to make a note in some object (say the error_log), that something bad happened? The error_log doesn't use persistent objects to keep its messages. What if you want to make a change in the error handler? If anyone had been depending on this behavior in their current error handlers, they would have seen weirdnesses in their applications like those being reported now. And no one has really complained, AFAICT. That leads me to believe it's a case of YAGNI (or even YNNI -- you never needed it). My view is that the error handler should oeprate in it's own transaction, and be aborted if any exceptions are raised in it... I guess this is a reasonable strategy too, but I just wonder if it's worth the bother. I guess you might want to write to a transactional relational database in your error page, but as far as I can tell no one does this, because if they did they would probably be complaining about lost records every so often. Unless they just never noticed. ...that said, I guess if you _really_ wanted to make changes in your error handler, would anything bad happen if your proposed changes are made, but the user's error handling code does a manaual get_transaction().commit() itself? Not that I can tell. - C ___ 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: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
On Thursday 11 March 2004 12:19, Chris McDonough wrote: What if you want to make a change in the error handler? If anyone had been depending on this behavior in their current error handlers, they would have seen weirdnesses in their applications like those being reported now. I have applications that send emails in error handlers. MailHost isnt transactional today, but Ive always wanted it to be. -- Toby Dickenson ___ 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: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
Hi Chris, On Tue, 9 Mar 2004, Chris McDonough wrote: But it seems I forget to install new Transience module to the new Zope instance. Should I? Yes, please! Sorry, it does not seems to work on my first attempt: Traceback (innermost last): * Module ZPublisher.Publish, line 163, in publish_module_standard * Module Products.iHotfix, line 80, in new_publish * Module ZPublisher.Publish, line 127, in publish * Module Zope.App.startup, line 203, in zpublisher_exception_hook * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module OFS.DTMLDocument, line 128, in __call__ DTMLDocument instance at 411643b0 URL: http://www.chalkface.com/custom/index_html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index_html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41164110 URL: http://www.chalkface.com/custom/index.html/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/custom/index.html * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Let, line 76, in render * Module OFS.DTMLDocument, line 121, in __call__ DTMLDocument instance at 41173080 URL: http://www.chalkface.com/catalog/html/zwarehouse_html_header/manage_main Physical Path:/www.chalkface.com/ZWarehouse_0.8/catalog/html/zwarehouse_html_header * Module DocumentTemplate.DT_String, line 474, in __call__ * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: cart_functions * Module string, line 1, in expression * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.PythonScripts.PythonScript, line 318, in _exec * Module None, line 16, in setSessionByRequest.py PythonScript at /www.chalkface.com/ZWarehouse_0.8/catalog/cart_functions/setSessionByRequest.py Line 16 * Module ZPublisher.HTTPRequest, line 1218, in __getattr__ * Module ZPublisher.HTTPRequest, line 1178, in get * Module Products.Sessions.SessionDataManager, line 93, in getSessionData * Module Products.Sessions.SessionDataManager, line 180, in _getSessionDataObject * Module Products.Transience.Transience, line 504, in new_or_existing * Module Products.Transience.Transience, line 332, in get * Module Products.Transience.Transience, line 204, in _move_item * Module Products.Transience.Transience, line 359, in _roll AttributeError: _max_timeslice -- Alex V. Koval http://www.halogen-dg.com/ http://www.zwarehouse.org/ ___ 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] Product Access to Files
On 2004-03-11 7:04 AM, Chris Withers is reputed to have said: I'm overriding '__getitem__' and using Python's os package to directly access the local file system. I just sniff the file name extension and set the response content-type, then return the contents of the named file. Simple and stupid. Ooo... I hope you're confident in what you're doing :-S Not in the least! =8-0 I've never mucked around this deep within Zope before. What's the danger... threading issues? Should be vaguely okay, provided you're not writing to those files with the os module. No writing, only reading. Mindyou, Apache could serve 'em a LOT faster... It's a whole lot easier to have those files nicely packaged inside my product, so that all someone needs to do is install the product and be done with it. No separate directory of files to put somewhere, no Apache configuration to do, no URL issues. I'm wide open to suggestions for a better way to do this! (If anyone's curious, I'm using a Zope product for a back-end to a Mozilla/XUL front-end. This static file stuff allows the product to provide the XUL, JavaScript, and CSS files needed to define the Mozilla-based interface.) Cool :-) I think so! ;-P In the long run, I may set up the XUL/etc. to be installed into the user's Mozilla Chrome, and then it would be permanently resident. So it would only be downloaded once per user, which makes efficiency less important and Apache (hopefully) unnecessary. Cheers, ..Ian -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- Dr. Ian Beatty [EMAIL PROTECTED] Physics Education Research Group voice: 413.545.9483 Department of Physics fax: 413.545.4884 Univ. of Massachusetts AIM: (available upon request) Amherst, MA 01003-4525 USA http://umperg.physics.umass.edu/ -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- ___ 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: test.py
yuppie wrote: So you propose to replace *all* the #! lines by #!/usr/bin/env python2.3 #!/usr/bin/python2.3 distutils will munge it anyway, if it installs the scripts. Tres. -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation Zope Dealers 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 )
Re: [Zope-dev] Re: test.py
On Thursday 11 March 2004 10:40 am, Tres Seaver wrote: #!/usr/bin/python2.3 distutils will munge it anyway, if it installs the scripts. That won't work for a lot of developers, I'll bet, who have python2.3 installed in /usr/local/bin. The env hack is more reasonable for developers; since distutils is going to munge the sh-bang line anyway, it's not an issue for real installations. -Fred -- Fred L. Drake, Jr. fred at zope.com PythonLabs at Zope Corporation ___ 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: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
On Thu, 2004-03-11 at 08:32, [EMAIL PROTECTED] wrote: Hi Chris, On Tue, 9 Mar 2004, Chris McDonough wrote: But it seems I forget to install new Transience module to the new Zope instance. Should I? Yes, please! Sorry, it does not seems to work on my first attempt: Right. Could you delete your Session.fs file and retry? - C ___ 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] Question about _v_ attributes and database connections
fwiw, i think this is a viable solution (although you should not only scope connections to thread local but to da paths in the module level global) as there are problems with zope and das going away because of their volatiles.. it can lead to strange behavior, like say your in the midst of a long txn, the da conn is involved gets registered w/ the txn. during the course of the txn the da persistent object is ghosted, latter it comes back but it will do so with a different connection if used again, this is bad from an rdb txn isolation pov, because assuming any isolation it can't see the changes done with the other as yet uncommitted connection (still alive cause its ref indirectly from the zope txn itself). unfortunately this is arch. problem with zope and current rdb/da integration and the only real solution that i see is via module level global storage for conns. as for shutdown of these conns, easiest might be to register an atexit function, or a cleaner sweeper thread with last usage times and in txn status on the otherwise thread local conn storage. cheers, -kapil On Thu, 2004-03-11 at 06:56, Marco Bizzarri wrote: On Thu, Mar 11, 2004 at 11:49:34AM +, Chris Withers wrote: Marco Bizzarri wrote: I'm trying something inspired to that at the moment... I succeeded in installing an hack, very inspired from your code (but at a much simpler level) and some code in the SecurityManager, ?! Look in AccessControl/SecurityManagement.py, the getSecurityManager()... it does in that way. where I mantain a dictionary of connections, indexed by the result of thread.get_ident(). :-( I know, it is an hack :( Once a thread needs a new connection, either it is present in the dictionary or not. If it is present, give it to the thread and assign that to the _v_database_connection attribute. Otherwise, create a new one, put in the dictionary, and go on as before. When do these connections get closed? Never, for the moment. ___ 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: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)
On Thu, 2004-03-11 at 07:29, Toby Dickenson wrote: I have applications that send emails in error handlers. MailHost isnt transactional today, but Ive always wanted it to be. I suppose that's true. If someone else doesn't do it first, during the bug day we'll try to support this use case, then, unless it turns out to be very problematic. - C ___ 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: 2.7 assertion with CVS of this morning
I seem to have a similar problem when using external editor on an archetype's RichWidget TextField : # Module ZPublisher.Publish, line 163, in publish_module_standard # Module Products.PlacelessTranslationService.PatchStringIO, line 45, in new_publish # Module ZPublisher.Publish, line 127, in publish # Module Zope.App.startup, line 203, in zpublisher_exception_hook # Module ZPublisher.Publish, line 100, in publish # Module ZPublisher.mapply, line 88, in mapply # Module ZPublisher.Publish, line 40, in call_object # Module Products.CMFCore.FSPythonScript, line 104, in __call__ # Module Shared.DC.Scripts.Bindings, line 306, in __call__ # Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec # Module Products.CMFCore.FSPythonScript, line 160, in _exec # Module None, line 2, in external_edit FSPythonScript at /daatep/external_edit Line 2 or using it's view property : # Module ZPublisher.Publish, line 163, in publish_module_standard # Module Products.PlacelessTranslationService.PatchStringIO, line 45, in new_publish # Module ZPublisher.Publish, line 127, in publish # Module Zope.App.startup, line 203, in zpublisher_exception_hook # Module ZPublisher.Publish, line 94, in publish # Module Zope.App.startup, line 257, in recordMetaData # Module OFS.SimpleItem, line 333, in getPhysicalPath # Module OFS.SimpleItem, line 76, in lambda # Module OFS.SimpleItem, line 310, in getId # Module OFS.SimpleItem, line 76, in lambda My question is : could you be more explicit as to what your solution is. I do not find a _NEED_WRAPPING anywhere not even in AccessControl.Implementation ? using (unreleased version, python 2.3.3, linux2) zope-2_7_0 Thanks Léo ___ 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] Using ObjectManager class
file min_all.py class min_all(SimpleItem.SimpleItem,ObjectManager): ... manage_options=(ObjectManager.manage_options + ({'label':'Edit Minimal', 'action':'manage_editMin_allForm'}, )) .. def addFoo(self,id,dn): "add Foo object to min_all object" O=Foo(id,dn) self._setObject(id, O) self._p_changed=1 def delFoo(self,id): "del Foo objectfrom min_all object" O=Foo(id,dn) self._delObject(id) self._p_changed=1 Function delFoo and addFoo working normally. For example, I can't add second Foo object with existing id, and I can't del Foo object with not existing id. But I can't see objects on ObjectManager.manage_options tab! I see only message: "There are currently no items inmin_all1". I think, that problem is in _getOb function of ObjectManager class How can I change this function? And where can I read information about using ObjectManager class? Regards,Serg. ___ 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: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of =?iso-8859-1?q?experience Zope?= developer, please)
On Thu, Mar 11, 2004 at 12:29:51PM +, Toby Dickenson wrote: On Thursday 11 March 2004 12:19, Chris McDonough wrote: What if you want to make a change in the error handler? If anyone had been depending on this behavior in their current error handlers, they would have seen weirdnesses in their applications like those being reported now. I have applications that send emails in error handlers. MailHost isnt transactional today, but Ive always wanted it to be. MaildropHost? http://zope.org/Members/jens/Folder.2003-08-11.1400/MaildropHost -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's INVESTIGATOR GAMMA! (random hero from isometric.spaceninja.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] How to create a product with all_meta_types and the name of the product
Hi all I would like to create a product knowing the name of these product. How to do it? I arrive to product but I don't know how to create it and set to de container With these code self['manage_addProduct']['product'].manage_addMyProductManageAdd(id, content) In the information retrieved by self.all_meta_types()['product']['action']I can retrivethe 'manage_addProduct' string, 'product' string but Idon'tretrieve manage_addMyProductManageAdd but Iretrievemanage_addMyProductManageAddForm (this is the form of the constructor) Any idea? Thanks ___ 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 )