Re: [Zope-dev] [Bug] DateTime(string) uses GMT as timezone
Hi! Stephan Richter has started to re-implement DateTime using mxDateTime a couple of weeks ago. That should fix all the various problems with DateTime. At Zope Corporation, Andreas Jung took care of that. So if you complain loud enough, I guess the fix could go into the 2.5 release. It just might be hard to be backward-compatible with all the errors, but maybe there could be something like a legacy mode you can activate if you need it ... ;-) Joachim - Original Message - From: Steve Alexander [EMAIL PROTECTED] To: Dieter Maurer [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, September 30, 2001 11:08 PM Subject: Re: [Zope-dev] [Bug] DateTime(string) uses GMT as timezone Dieter Maurer wrote: Unfortunately DateTime(year,month,day) != DateTime(%d-%d-%d % (year,month,day)) The former uses the local timezone (which I think is right) while the latter uses GMT+0 (which seems not right). Thinks are quite bad, as the latter is used to convert :date form values into DateTime objects. See also here: http://lists.zope.org/pipermail/zope-dev/2001-August/012974.html I get different times from a string, depending whether I use '-' or '/' as a date delimiter. from DateTime.DateTime import DateTime DateTime('2001-08-20').pCommonZ() 'Aug. 20, 2001 12:00 am GMT+0' DateTime('2001/08/20').pCommonZ() 'Aug. 20, 2001 12:00 am GMT+1' I find the difference a tad surprising. Is this a bug or a feature? If it's a bug, I'll work on a fix. I'm guessing this is a feature; perhaps using the '-' delimiter suggests I'm trying to use ISO formatting. I'm running this in a GMT+1 timezone btw. Zope latest from CVS, Python 2.1. I never got a reply as to whether it was a bug or a feature, so I didn't work on a fix. -- Steve Alexander Software Engineer Cat-Box limited ___ 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 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] syslog
I am looking to configure my Zope to use syslog for the first time. I see that 2.4 uses the same environment variables to control whether syslog is used for access logs and event logs. This seems like a bad idea to me; the two log sources have completely different purposes, and I dont think it is possible to separate the two using syslog rules. Am I missing something? Toby Dickenson [EMAIL PROTECTED] ___ 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] DISCUSS: Community checkins for CVS
On Tue, 25 Sep 2001 08:27:13 -0400, Paul Everitt [EMAIL PROTECTED] wrote: Martijn Faassen wrote: http://dev.zope.org/CVS/Contributor.pdf This says 'you must indicate your agreement to the term below'; shouldn't it be 'terms'? Uhh...well...yes! I'll make the change. I'm waiting for news back from the lawyer about provisions for handling patches. I'll then post a new rev of the materials. Does anyone think this is close enough that I can go ahead and get the bootstrap group (under ten, selected by us) going? I'd like to avoid making them sign and mail an agreement, then do it again if there's substantive changes. Yes, I think it is close enough to get started. Toby Dickenson [EMAIL PROTECTED] ___ 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] Stored Procedures with Sybase and the Sybase DA
Hello, Does anybody know of any development going on regarding Sybase and stored procedures? Christopher Petrilli declared them a future goal, but I urgently need them by now. So if anybody has a workarround, please let me know. Yours Thomas PS: Do reply directly to my address since I'm not a member of this mailing list. Thanks ___ 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] Stored Procedures with Sybase and the Sybase DA
At 01:50 PM 10/1/01 +0200, [EMAIL PROTECTED] wrote: Does anybody know of any development going on regarding Sybase and stored procedures? Christopher Petrilli declared them a future goal, but I urgently need them by now. So if anybody has a workarround, please let me know. Ty did some work on this for Zope 2.2 which you can find at: http://cvs.eby-sarna.com/ZProducts/SybaseStoredProcedure/ There's no docs to speak of. Feel free to use it if you can get it to work. I think that to get this to work, we also had to patch the Sybase DA to handle status result codes, but that patch might have been incorporated into Zope. I'm not positive about any of this. :( All I can tell you is that the code above is in actual use in a production application that needed stored-procedure support. Note that it does not support returning SELECT results from procedures; only non-negative status returns. It assumes a negative status is an error, and if it's one of the standard Sybase status error codes (e.g. -3 for a deadlock), it throws a SybaseProcError with an explanation and the original query text. The return value from calling a StoredProcedure object is always an integer 0 or greater, unless the status return is negative, in which case an exception is raised. ___ 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] Problems with Oracle DA and Dates
(I apologise in advance for the crosspost, but I think this is a valid question on both the zope-db and zope-dev lists. If you disagree, flame away, and I'll never do it again. oh, btw: flame in private mail, please) Hello! We have run into a showstopper problem here where it seems (we're not sure yet) that there is a severe problem using dates returned from the Oracle DA adapter. Other possible culprits include LocalFS, Transparent Folder, Formulator and the source release of Zope 2.4.1. The problem is that Zope either dies, core dumps and dies, or slows down to a crawl. We are using the Zope 2.4.1 release, with Transparent folders and LocalFS, latest, and a sligthly modified Formulator. There are about 2-6 people working and developing in it during all hours of the day (24 hours). Unfortunately nothing shows up in any of the logs, so they are of little use; I don't even have a traceback so display. We *think* we found sometign pointing at LocalFS in one of the coredumps, but we are lowly non-unix programmers, and have no idea if this is accurate info or not. It could just be un-collected garabage memory. Is anybody noticing anything similar, or if you have any opinion on what might be going on, please reply; we are in DS mode here (we are having a prototype presentation during two weeks, starting tomorrow) and are feeling a bit desperate. Sincerely, /dario - Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology [EMAIL PROTECTED] ICQ will yield no hitsIT Systems Services ___ 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] KeyError on UnIndex.keyForDocument
On Saturday 29 September 2001 04:29 pm, Chris McDonough allegedly wrote: Yeah, I could see this error being raised if you had just added an index to use as the sort index and it didn't have all objects indexed within it yet... And yes, if this is what it is, it's a bug. But it's structural and not operational... we need to think a bit about what it means to add an unpopulated index to an existing catalog. Currently you just need to know that you must reindex the catalog. - C What would the reaction be to changing this behavior. I have written some code that automatically populates the index when it is added. I personally think that reindexing every index just to populate one is grossly inefficient. I wrote this single index update because of the DocumentLibrary product which performs real-time document format conversions when documents are indexed. With a catalog of more than 100 MSWord documents, It is glacial to update the entire catalog. Although I have not put this code into a DocumentLibrary release yet, I would prefer to see it put directly into the catalog. Whaddya think? /---\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association [EMAIL PROTECTED] \---/ ___ 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] KeyError on UnIndex.keyForDocument
What would the reaction be to changing this behavior. I have written some code that automatically populates the index when it is added. I personally think that reindexing every index just to populate one is grossly inefficient. I think populating only one index on add is a great idea... the main issue is backwards-compatibility... but that shouldn't be too hard to maintain. ___ 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] Stored Procedures with Sybase and the Sybase DA
At 03:33 PM 10/1/01 +0200, [EMAIL PROTECTED] wrote: I use the newest version of the Sybase DA, but it doesn't seem to work. Can you help me finding the appropriate patches, etc? Are they available anywhere in that CVS-tree?` I don't think so. Ty was going to submit them to ZC for inclusion; I don't know if he did or not. It had to do with a Sybase discriminator code that the existing DA didn't handle. ___ 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] compiling Zope 2.4.1 on Mac OS 10.1
Mitchell L Model wrote: Trouble compiling Zope 2.4.1 on Mac OS 10.1: tried 'python wo_pcgi' with both a Python 2.2a4 I just made and with my previous Python 2.1, both with and without sudo cc -bundle -undefined suppress ./ExtensionClass.o -o ./ExtensionClass.so /usr/bin/ld: -undefined error must be used when -twolevel_namespace is in effect [...] The 'two-level namespace' business is a change from the OX X developer tools version 10.0 to 10.1. Anyone know what's going on here and how to fix it? Well, besides the obvious that MacOS 10.1 is only hot-off-the-shelves for a few hours, the problem is that the dynamic loader under Darwin used a flat namespace to load ALL shared libraries into (does Windows do the same? I dont know) whereas most Unixes load each shared library with its own namespace [which is a bit of a technical abstraction and hand waving]. It sure looks to me like Apple is trying to fix the namespace collision problems with dyld, with that -twolevel_namespace (which sounds like a funky namespace munger). My best guess at noodling the error message is that it means your library must use the symbol 'undefined error' when the loader goes to load a name from the library and it is not present. It may be that there is something like a interrogation call to the library -- do you have member X? -- rather than what I'm used to, which is the loader looking in the library's table of contents. I suspect, but dont know, that it has to do with how Objective C methods get bound dynamically. Thats not a very helpful response, but until I go to an Apple store to get OS 10.1, I can't see it in action or read the docs. ___ 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] syslog
I'll admit that I don't know. The ZLogger module makes some noise about syslog, but I dont even know if and when that module is used (as opposed to the zLOG module). Have you verified this by trying it? Toby Dickenson wrote: I am looking to configure my Zope to use syslog for the first time. I see that 2.4 uses the same environment variables to control whether syslog is used for access logs and event logs. This seems like a bad idea to me; the two log sources have completely different purposes, and I dont think it is possible to separate the two using syslog rules. Am I missing something? Toby Dickenson [EMAIL PROTECTED] ___ 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 ) -- Chris McDonoughZope Corporation http://www.zope.org http://www.zope.com Killing hundreds of birds with thousands of stones ___ 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] syslog
I'll admit that I don't know. The ZLogger module makes some noise about syslog, but I dont even know if and when that module is used (as opposed to the zLOG module). It is actually always used unless Zope is started read-only. Its not easy to follow *how* this happens - and I am still not sure *why* its done this way. As for the how: ZLogger starts out with a from zLog import *, it then sets up the list of standard logger objects, and defines the log_write function. Later, z2.py transplants the log_write function from ZLogger into zLOG, where it is used by the implementation of zLOG.LOG (the usual logging API) Have you verified this by trying it? Definitely yes - my syslog filled up with access log information. A question for all syslog users; is it ever useful to send access logs to syslog? (I can't think of good reason, but my syslog zen quotient is still low). Is anyone else even using syslog? Anyway, for anyone else interested, below a patch so that the configuration of access-syslog uses different environment variables to event-syslog. Index: z2.py === RCS file: /home/cvs/development/external/Zope2/z2.py,v retrieving revision 1.14 diff -c -2 -r1.14 z2.py *** z2.py 10 Sep 2001 15:32:28 - 1.14 --- z2.py 1 Oct 2001 14:35:43 - *** *** 635,646 if READ_ONLY: lg = logger.file_logger('-') # log to stdout ! elif os.environ.has_key('ZSYSLOG'): ! lg = logger.syslog_logger(os.environ['ZSYSLOG']) ! if os.environ.has_key(ZSYSLOG_FACILITY): ! lg = logger.syslog_logger(os.environ['ZSYSLOG'],facility=os.environ['ZSYSLOG_FACI LITY']) else: ! lg = logger.syslog_logger(os.environ['ZSYSLOG']) ! elif os.environ.has_key('ZSYSLOG_SERVER'): ! (addr, port) = string.split(os.environ['ZSYSLOG_SERVER'], ':') lg = logger.syslog_logger((addr, int(port))) else: --- 635,646 if READ_ONLY: lg = logger.file_logger('-') # log to stdout ! elif os.environ.has_key('ZSYSLOG_ACCESS'): ! lg = logger.syslog_logger(os.environ['ZSYSLOG_ACCESS']) ! if os.environ.has_key(ZSYSLOG_ACCESS_FACILITY): ! lg = logger.syslog_logger(os.environ['ZSYSLOG_ACCESS'],facility=os.environ['ZSYSL OG_FACILITY']) else: ! lg = logger.syslog_logger(os.environ['ZSYSLOG_ACCESS']) ! elif os.environ.has_key('ZSYSLOG_ACCESS_SERVER'): ! (addr, port) = string.split(os.environ['ZSYSLOG_ACCESS_SERVER'], ':') lg = logger.syslog_logger((addr, int(port))) else: ___ 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] DISCUSS: Community checkins for CVS
On Thu, 20 Sep 2001 16:13:57 -0400 (Eastern Daylight Time), Paul Everitt [EMAIL PROTECTED] wrote: So, let's begin what I'm sure will be a lively and illuminating discussion. :^) A question about Joint Ownership The ZPL currently includes a no-liability clause. If one half-owner were to make the source available under a different license without such a clause, would the other half-owner be liable too? Toby Dickenson [EMAIL PROTECTED] ___ 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] syslog
On Mon, Oct 01, 2001 at 04:14:47PM +0100, Toby Dickenson wrote: A question for all syslog users; is it ever useful to send access logs to syslog? (I can't think of good reason, but my syslog zen quotient is still low). Is anyone else even using syslog? It may prove to be useful when you want to do remote logging: you send all to the local syslog which in fact forwards it to a remote syslog server. hth. Jerome Alet ___ 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] somehow OT: How do I get a tar file containing the .dtml files only?
Joachim Werner wrote: Hi! I am working on internationalizing a Zope 2.4.1 instance with ZBabel and providing a set of patches for Zope 2.4.1. My idea was that things would become much easier if I had a tarball that just contains all *.dtml files and the folder structure for them, so I can distribute the tarball as a patch that can be applied to a plain 2.4.1 instance. Do we have any Unix/Linux/GNU experts on the list who know how to write that as a shell command? I am sure that with tar and grep and some pipes or so it is possible, I am just too dumb to find out the right syntax ... Cheers Joachim So you want something like a find . -name '*.dtml' which doesn't show directories? Well, what you could do to create the tarball is something like: find . -name '*.dtml' | tar -T - -cvf dtml.tar which uses -T on gnu tar to read the filenames from stdin. ___ 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] Attribute error: extends ...
Hi! Has anybody also had that with a Zope 2.4.1 instance (Linux)? It happens not only with Metapublisher (as in the example), but seems to occur quite randomly. It might be a problem with my local install, but even if it is, it should not happen (as I just have some custom Products installed) ... Cheers Joachim _ Error Type: AttributeError Error Value: extends Traceback (innermost last): File /home/ftp/root/kue-projekt/kue_9080/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/ftp/root/kue-projekt/kue_9080/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/ftp/root/kue-projekt/kue_9080/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook File /home/ftp/root/kue-projekt/kue_9080/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/ftp/root/kue-projekt/kue_9080/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addMetaPublisher) File /home/ftp/root/kue-projekt/kue_9080/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addMetaPublisher) File /usr/local/zope/skkoeln240/lib/python/Products/MetaPublisher/MetaPublisher.p y, line 247, in manage_addMetaPublisher File /usr/local/zope/skkoeln240/lib/python/Products/MetaPublisher/MetaPublisher.p y, line 108, in __init__ (Object: SupportManageHandler) File /home/ftp/root/kue-projekt/kue_9080/lib/python/Products/ZCatalog/ZCatalog.py , line 124, in manage_addZCatalog (Object: SupportManageHandler) File /home/ftp/root/kue-projekt/kue_9080/lib/python/Products/ZCatalog/ZCatalog.py , line 256, in __init__ (Object: LockableItem) File /home/ftp/root/kue-projekt/kue_9080/lib/python/Products/ZCatalog/ZCatalog.py , line 815, in addIndex (Object: LockableItem) File /home/ftp/root/kue-projekt/kue_9080/lib/python/OFS/ObjectManager.py, line 247, in all_meta_types (Object: LockableItem) AttributeError: (see above) ___ 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] compiling Zope 2.4.1 on Mac OS 10.1
i think i found a working solution. since my knowledge of compilers and linkers isn't the greatest i'll just explain what i did. trying to compile python2.1.1 on OS X 10.1 failed for me displaying the very same error. searching through apple's discussion i found the following link: http://fink.sourceforge.net/doc/porting/shared.php it explains that some linker/compiler default options have changed. in order to get python compiled and running i edited the toplevel Makefile after running ./configure and edited the lines starting with LDSHARED and BLDSHARED, this is what they look like now in my setup: LDSHARED= $(CC) $(LDFLAGS) -bundle -flat_namespace -undefined suppress BLDSHARED= $(CC) $(LDFLAGS) -bundle -flat_namespace -undefined suppress notice the -flat_namespace switch, this gets rid of the new default twolevel_namespace that complains about undefined warning. running make was now successful and i was able to compile and run Zope 2. 4.1. you will probably have to recompile your python to set that switch under 10.1. i only did some light testing, no guarantees and before using this in production you might want to read up on those compiler/linker options... jens On Sunday, September 30, 2001, at 07:19 , Mitchell L Model wrote: Trouble compiling Zope 2.4.1 on Mac OS 10.1: installed a fresh 10.1 that I just got from Apple downloaded the Zope 2.4.1 src tried 'python wo_pcgi' with both a Python 2.2a4 I just made and with my previous Python 2.1, both with and without sudo Whatever I do, it breaks in the same place. Here's the end of the output: sed -f sedscript ./Makefile.pre.in Makefile.pre /usr/local/lib/python2.1/config/makesetup \ -m Makefile.pre -c /usr/local/lib/python2.1/config/config.c.in Setup -n /usr/local/lib/py\ thon2.1/config/Setup.config /usr/local/lib/python2.1/config/Setup.local /usr/local/lib/python2.1/co\ nfig/Setup make -f Makefile do-it-again /usr/local/lib/python2.1/config/makesetup \ -m Makefile.pre -c /usr/local/lib/python2.1/config/config.c.in Setup -n /usr/local/lib/py\ thon2.1/config/Setup.config /usr/local/lib/python2.1/config/Setup.local /usr/local/lib/python2.1/co\ nfig/Setup make cc -g -O2 -Wall -Wstrict-prototypes -I/usr/local/include/python2.1 -I/usr/local/include/python2.1 \ -DHAVE_CONFIG_H -I../Components/ExtensionClass/src -c ././../Components/ ExtensionClass/src/Extensi\ onClass.c -o ./ExtensionClass.o In file included from /usr/local/include/python2.1/pyport.h:84, from /usr/local/include/python2.1/Python.h:54, from ././../Components/ExtensionClass/src/ExtensionClass. h:114, from ././../Components/ExtensionClass/src/ExtensionClass. c:61: /usr/include/math.h:191: warning: function declaration isn't a prototype cc -bundle -undefined suppress ./ExtensionClass.o -o ./ExtensionClass. so /usr/bin/ld: -undefined error must be used when -twolevel_namespace is in effect make: *** [ExtensionClass.so] Error 1 Traceback (most recent call last): File wo_pcgi.py, line 117, in ? File wo_pcgi.py, line 105, in main File /usr/local/src/Zope-2.4.1-src/inst/build_extensions.py, line 102, in ? make('lib','python') File /usr/local/src/Zope-2.4.1-src/inst/do.py, line 135, in make do('make') File /usr/local/src/Zope-2.4.1-src/inst/do.py, line 104, in do if i and picky: raise SystemError, i SystemError: 512 The 'two-level namespace' business is a change from the OX X developer tools version 10.0 to 10.1. Anyone know what's going on here and how to fix it? -- --- Mitchell ___ 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] 2.5 roadmap and schedule?
The current roadmap for Zope 2.5 sets an alpha release date for sometime in september, but is that still likely? Michael Bernstein. Since today is Oct. 1, I would say... no :^) The roadmap serves as a high-level way for me to relay the basic plan for the next release to those in the community who don't pay day-to-day attention to zope-dev or zope-coders. It is also sometimes wrong, since I have to make a best-guess at dates based on circumstances that sometimes change without much notice. The dates are based on my best guesses at what resources will be available when, and sometimes those get pre-empted by things like customer engagements, etc. Hopefully my guesses will be less wrong as the community gets more actively involved. That will expand the resource pool which should help - but this will be a learning process. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.361.1716 Zope Corporation http://www.zope.com ___ 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] compiling Zope 2.4.1 on Mac OS 10.1
At 3:58 PM -0400 10/1/01, Jens Vagelpohl wrote: i think i found a working solution. since my knowledge of compilers and linkers isn't the greatest i'll just explain what i did. trying to compile python2.1.1 on OS X 10.1 failed for me displaying the very same error. searching through apple's discussion i found the following link: http://fink.sourceforge.net/doc/porting/shared.php it explains that some linker/compiler default options have changed. in order to get python compiled and running i edited the toplevel Makefile after running ./configure and edited the lines starting with LDSHARED and BLDSHARED, this is what they look like now in my setup: LDSHARED= $(CC) $(LDFLAGS) -bundle -flat_namespace -undefined suppress BLDSHARED= $(CC) $(LDFLAGS) -bundle -flat_namespace -undefined suppress notice the -flat_namespace switch, this gets rid of the new default twolevel_namespace that complains about undefined warning. running make was now successful and i was able to compile and run Zope 2. 4.1. you will probably have to recompile your python to set that switch under 10.1. i only did some light testing, no guarantees and before using this in production you might want to read up on those compiler/linker options... jens On Sunday, September 30, 2001, at 07:19 , Mitchell L Model wrote: Trouble compiling Zope 2.4.1 on Mac OS 10.1: ... Wonderful! Thanks!! Great information. Having said that, and having spent a couple of hours experimenting, let me try to clarify things a bit: 1. Python 2.2a4 defaults to --with-dylib, so you don't need that when making Python 2.2a4 as you did for 2.1. 2. Likewise, you don't need to set OPT the way the 2.1 README says for Mac OS 10. 3. Similarly, the Python2.2a4 configure.in knows to add -flat_namespace to Makefile.pre and therefore Makefile. 4. Both 2.1 and 2.2a4 correctly specify -undefined suppress. So, whereas I did need to fix the Python 2.1 Makefile to build it, I didn't need to fix the Python 2.2a4 Makefile to build it. (I guess I didn't try building Python 2.1 yesterday, or I would have realized the problem wasn't in Zope, but in Python, as you discovered.) From my experience this evening, I'm surprised that fixing the Python Makefile would allow you to compile Zope. It turns out that the zope configuration process uses the Makefile.pre.in installed in (typically) /usr/local/lib/python2.{1,2}/config. It also turns out that although Python 2.2a4 correctly adds -flat_namespace to Makefile.pre and Makefile, it doesn't add it to Makefile.pre.in! So for both 2.1 and 2.2 I had to add: LDSHARED= $(CC) $(LDFLAGS) -flat_namespace -undefined suppress to Makefile.pre.in, either in the Python src directory before doing 'make install' or in the /usr/local/lib/python2.{1,2}/config after doing the install. I'll report this problem to the Python developers. Thanks for you hints and your careful reading of the fink documentation on shared libraries. (fink is a fabulous resource!) -- --- Mitchell ___ 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] Read only ZEO
HI Dieter I had a look at z2.py (it's actually -r) so any way I tried (not too successfully). I have zeo running with 2.4.1 I have a zss and 2 zeo clients. One running without -r switch and one running with -r In z2.py the -r switch is documented as follows -r Run ZServer is read-only mode. ZServer won't write anything to disk. No log files, no pid files, nothing. This means that you can't do a lot of stuff like use PCGI, and zdaemon. ZServer will log hits to STDOUT and zLOG will log to STDERR. Well when running a zeo client with -r switch results in no log files being written and the log is written to STDOUT, but the ZEO client is definately not in readonly mode ie I can create and modify documents. (It probably means it can;t cache to disk ;-) I need to track down where READ_ONLY flag is used. There isn't an occurrance with the ZEO code, so unless the READ_ONLY capability is implemented higher up in the transaction service, thenI think it isn't going to work. This document http://www.amk.ca/zodb/zodb-zeo.html which is linked to on the Zeo Product page actually mentions using Zeo client in readonly mode. I wonder if anyone has actually done it? Tim Dieter Maurer wrote: Tim Hoffman writes: In some of the overview documents discussing ZEO, there is reference to a ZEO client potentially mounted a ZSS in read only mode. (I want to have some ZEO's in read/write as well) When you start Zope with the -R option (I think, look at z2.py!), it is in read-only mode. I have been trying to work out how this might be achieved but have pretty much drawn a blank, has anyone done this I have any idea how I might go about doing such a thing. There is a patch at http://www.dieter.handshake.de/pyprojects/zope which allows Zope to be started with a read only storage. Maybe, you can adapt it for ZEO. Dieter ___ 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 )