Re: [Zope-dev] ExtensionClass and __radd__()?
On Wed, 5 Jul 2000, Greg Ward wrote: > > Well, it's a nice theory. It doesn't explain why '__add__()' works for > ExtensionClass while '__radd__()' does not; perhaps ExtensionClass > implements that much of Python's class semantics, but doesn't go as far > as '__radd__()'. > A quick note which you probably already know: grep add ExtensionClass.c gives: static PyObject *py__add__, *py__sub__, *py__mul__, *py__div__, INIT_PY_NAME(__add__); BINOP(add,Add) FILLENTRY(nm->nb, add, add, METH_VARARGS, "Add to another"); FILLENTRY(sm->sq, concat, add, METH_VARARGS, SET_SPECIAL(add,add); subclass_add(PyObject *self, PyObject *v) UNLESS(m=subclass_getspecial(self,py__add__)) return NULL; && AsCMethod(m)->meth==(PyCFunction)add_by_name ASSIGN(m,AsCMethod(m)->type->tp_as_number->nb_add(self,v)); (binaryfunc)subclass_add, /*nb_add*/ (binaryfunc)subclass_add, /*sq_concat*/ return; /* we added a reference; don't delete now */ whereas grep radd ExtensionClass.c returns nothing Pavlos ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] [ANN] FSSession-0-4-0
FSSession 0-4-0 is available at: http://www.zope.org/Members/gaaros/FSSession FSSession 0-4-0 corrects a bug in the transaction management. Now tpc_finish always succeeds and all the storing actions are performed in tpc_begin. tpc_finish simply performs a 'rename' operation which is atomic in Unix. Pavlos ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Confera fix
On Tue, 27 Jun 2000, Jon Franz wrote: > Attached is a slightly modified Confera.py that does not require the > ts_regex > python package (something I do not have on my system and cant seem to > find - and yet something Confera will choke on during message posting if > it doesn't exist) > I have not been follwoing the email list so ignore my comments if not applicable. ts_regex used to be part of the Zope distribution. I am not sure what happened with the newer versions ... Pavlos ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] zopectl (was: 2.2.0a1 Problems)
On Tue, 23 May 2000, Brian Lloyd wrote: > > Well, no one here is actively working on it right now - we just know > we want it to happen :^) If you have something working, that would > seem to be a good baseline to build on and start discussing what > the zopectl script should do. I'd really like the zopistas to take > the lead on this - I've started a discussion and contributed some > basic requirements at: > > http://www.zope.org/Products/Zope/Wiki/zopectl > > DJB (author of Qmail) has a set of supervising programs to start stop and monitor subprocesses. I have written a similar product in pure python (based on some of his ideas). It can basically start stop restart and monitor any number of subprocesses. this is a typical usage example from our site: [root@mail ZopeLab]# ./tellzope status +OK Zsupervisor Info UID: root PID: 3626 PGRP: 3626 Started: 23/May/2000:13:48:40 Zsupervised process: /linux2/ZopeLab/start Started: 23/May/2000:17:48:32 with PID 9894 PGRP 3626 kill 9894 (log file reports) WARNING [23/May/2000:18:30:50 ] "Zsupervisor" Process /linux2/ZopeLab/start with pid 16636 pgrp 16608 died - signal 15 INFO [23/May/2000:18:30:50 ]"Zsupervisor" Forked a child INFO [23/May/2000:18:30:50 ] "Zsupervisor" Process /linux2/ZopeLab/start started with pid 16716 pgrp 16608 ./tellzope stop +OK We have been using for over a year and it seems ok. But it needs named pipes support for communication between supervisor and control client. If you want I can place the code on my Members folder. I did announce it a year ago but I placed it on starship so it is not available anymore. Pavlos ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )