Re: [Zope-dev] Installer for Windows (quick question)
Sidnei da Silva wrote: Since I saw this, I've changed the default directory to Program Files\Zope\2.9.5. Bleugh. I hate Program Files :-( There will be two sub-directories here, 'Zope' and 'Python'. This is so Python is not buried inside a 'bin' directory. yay :-) What would be a good default for instance? I thought of \Zope\Instance\Version or maybe even \Zope\Version. Shouldn't affect you since you seem to not use the default anyway. Honestly, loose the version from that completely. I'm pretty sure I'm not the only person who moves intances from version to version as new versions are released ;-) 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 )
[Zope-dev] Re: Installer for Windows (quick question)
It´s very nice to hear that you take care of the windows builds. It would be nice to get an little description how to build an WZope, which tools are needed. So we can take a look how difficult it is to build an WZope. My windows zope configuration would be c:\zope\version\instance some applications use tinytables which is not supported in new zope versions. So my solution is in thinking of versions, not in instances. I dont like the program folder (in germany called Programme) because on an Windows Server there is not so much services on the computer - so an exclusive c:\zope is the best ;) I dont need an service installer but i know many windows administrators that would ask me - why did this product doesnt run as service stupid open source software or somethink like that ... i like the zope window on the desktop, nice debugging ;) greetings many thanks for taking care of the windows builds, christian ___ 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] Re: Installer for Windows (quick question)
Hi Christian(s)! I know most people dislike Program Files. I do too! But it's the closest we have to a 'standard' place for installing applications. As bad as it is, I too don't like Documents and Settings\username, but that's the closest we have from $HOME. As noted, you have the choice at install time to change the default directory if you wish. We are just presenting the user with 'sane defaults'. -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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] Installer for Windows -- Icon
is it possible to use the logo from zope corp? http://www.zope.com/about_us/legal/zope_logo_usage.html if yes i can convert it an give all knows formats and sizes you need. christian -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Sidnei da Silva Gesendet: Donnerstag, 9. November 2006 22:04 An: zope-dev@zope.org Betreff: [Zope-dev] Installer for Windows -- Icon Anyone has a good Zope icon for Windows, with multiple sizes, that can be contributed? -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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 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] Re: Installer for Windows (quick question)
Sidnei da Silva wrote: Hi Christian(s)! I know most people dislike Program Files. I do too! But it's the closest we have to a 'standard' place for installing applications. It's not the 'standard'. To name a few examples, all of Python, Lotus Notes and, perhaps most tellingly, IIS and Microsoft's other server offerings, don't install themselves in Program Files, they create their own top level directory. As bad as it is, I too don't like Documents and Settings\username, but that's the closest we have from $HOME. Please god no. Again, from the above examples, Notes stores its data in C:\Notes\data and IIS in C:\inetpub\wwwroot, I think that's ample precedent for C:\Zope\instancex... As noted, you have the choice at install time to change the default directory if you wish. We are just presenting the user with 'sane defaults'. They're not sane, even by Microsoft's judgement ;-) Some more questions: - what's the difference between a Full and Compact installation? - what's the process going to be to get these releases onto zope.org? (I'm quite happy to do this manually if needed ;-) ) Many thanks for your work on this, though! cheers, 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] Installer for Windows -- Icon
On 11/10/06, Christian Steinhauer [EMAIL PROTECTED] wrote: is it possible to use the logo from zope corp? http://www.zope.com/about_us/legal/zope_logo_usage.html Yes. if yes i can convert it an give all knows formats and sizes you need. All you need to know about icons: http://msdn.microsoft.com/library/en-us/dnwxp/html/winxpicons.asp?frame=true -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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] Windows Installer Nice-to-have
Hi Sidnei, I don't know how easy this is to do, but one thing that would be _really_ nice would be to use an existing compatible python install rather than Zope splatting it's own in regardless. In fact, if we're re-doing the layout (which is, I think, a VERY good idea) my ideal layout would be: C:\Python24 C:\Zope\2.10.0 (NB: C:\Zope\2.10.0\Zope would NOT exist) C:\Zope\instance With C:\Python24 either being an existing Python install, if selected by the user, or being created in the same way as the normal Python installer does if its not there. Of course, if this option is implemented, you'd need to be able to specify where python gets put in case you don't want to overwrite an existing normal Python 2.4 install. I don't know what make a Zope python install special... What do other people think about this? cheers, 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] Re: Installer for Windows (quick question)
On 11/10/06, Chris Withers [EMAIL PROTECTED] wrote: Sidnei da Silva wrote: Hi Christian(s)! I know most people dislike Program Files. I do too! But it's the closest we have to a 'standard' place for installing applications. It's not the 'standard'. To name a few examples, all of Python, Lotus Notes and, perhaps most tellingly, IIS and Microsoft's other server offerings, don't install themselves in Program Files, they create their own top level directory. Just as a note, those are pretty 'Advanced' applications. OTOH, Zope is too. So I buy your argument. What's your proposal for default Installation and Instance directories? Some more questions: - what's the difference between a Full and Compact installation? Good question. I just copied that over from the old installer. I will remove it, it doesn't seem to do anything useful. - what's the process going to be to get these releases onto zope.org? (I'm quite happy to do this manually if needed ;-) ) Yeah, my guess is that someone will do at least some quick QA before uploading it. So yes, manual would be preferred. Many thanks for your work on this, though! Thanks for helping me in the process! -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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] Re: Windows Installer Nice-to-have
On 11/10/06, Chris Withers [EMAIL PROTECTED] wrote: Hi Sidnei, I don't know how easy this is to do, but one thing that would be _really_ nice would be to use an existing compatible python install rather than Zope splatting it's own in regardless. It is rather hard. I will wait until more people can give their own opinion before expressing mine though. In fact, if we're re-doing the layout (which is, I think, a VERY good idea) my ideal layout would be: C:\Python24 C:\Zope\2.10.0 (NB: C:\Zope\2.10.0\Zope would NOT exist) Should we go for Zope210 since Python is Python24? -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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] Re: Installer for Windows (quick question)
Sidnei da Silva wrote: Just as a note, those are pretty 'Advanced' applications. OTOH, Zope is too. So I buy your argument. Yay :-) What's your proposal for default Installation and Instance directories? I borrowed Guido's time machine an answered this already in another message ;-) - what's the difference between a Full and Compact installation? Good question. I just copied that over from the old installer. I will remove it, it doesn't seem to do anything useful. Cool :-) - what's the process going to be to get these releases onto zope.org? (I'm quite happy to do this manually if needed ;-) ) Yeah, my guess is that someone will do at least some quick QA before uploading it. So yes, manual would be preferred. I volunteer for doing that, although that's like just meaning downloading, installing and starting using it when I'm poked to do so as I guess your buildbot already runs all the tests? cheers, 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 )
[Zope-dev] Zope Tests: 9 OK
Summary of messages to the zope-tests list. Period Thu Nov 9 11:00:00 2006 UTC to Fri Nov 10 11:00:00 2006 UTC. There were 9 messages: 9 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.6 Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:27:51 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006521.html Subject: OK : Zope-2.6 Python-2.3.5 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:29:21 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006522.html Subject: OK : Zope-2.7 Python-2.3.5 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:30:51 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006523.html Subject: OK : Zope-2.7 Python-2.4.3 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:32:21 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006524.html Subject: OK : Zope-2.8 Python-2.3.5 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:33:51 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006525.html Subject: OK : Zope-2.8 Python-2.4.3 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:35:22 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006526.html Subject: OK : Zope-2.9 Python-2.4.3 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:36:52 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006527.html Subject: OK : Zope-2.10 Python-2.4.3 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:38:22 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006528.html Subject: OK : Zope-trunk Python-2.4.3 : Linux From: Zope Unit Tests Date: Thu Nov 9 21:39:52 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006529.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] Re: Windows Installer Nice-to-have
Sidnei da Silva wrote: C:\Python24 C:\Zope\2.10.0 (NB: C:\Zope\2.10.0\Zope would NOT exist) Should we go for Zope210 since Python is Python24? Nah, I like having C:\Zope\* as I always have several Zope versions on the go. I wish python would switch to C:\Python\2.4, but that's probably a harder persuasion to make ;-) 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] Re: Installer for Windows (quick question)
Previously Chris Withers wrote: Sidnei da Silva wrote: Hi Christian(s)! I know most people dislike Program Files. I do too! But it's the closest we have to a 'standard' place for installing applications. It's not the 'standard'. To name a few examples, all of Python, Lotus Notes and, perhaps most tellingly, IIS and Microsoft's other server offerings, don't install themselves in Program Files, they create their own top level directory. For their data, not for their binaries libraries. Wichert. -- Wichert Akkerman [EMAIL PROTECTED]It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ___ 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] Re: Installer for Windows (quick question)
Wichert Akkerman wrote: For their data, not for their binaries libraries. Actually no, all of their data, binaries and libraries live in their own top level directories... 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] Installer for Windows -- Icon
On 11/9/06, Sidnei da Silva [EMAIL PROTECTED] wrote: Anyone has a good Zope icon for Windows, with multiple sizes, that can be contributed? Sure: http://svn.zope.org/Zope/trunk/lib/python/OFS/standard/favicon.ico -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.nuxeo.org/ ___ 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] Installer for Windows -- Icon
Ah, great! Thanks! -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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] Re: Windows Installer Nice-to-have
Alright, latest build is ready to go, including Lennart's icon. Let me know how that works for you. If there are no outstanding issues I would like to declare this the official release to be uploaded to Zope.org. http://files.enfoldsystems.com/Zope-2.9.5-Final-6514.exe If you want to test 2.10 as well: http://files.enfoldsystems.com/Zope-2.10.0-Final-6513.exe (The only change from 6513 to 6514 is the icon, latest 2.10 didn't finish building yet). -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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] Zope 3 Views for Errors
Hi there, I was wondering why there is no easy way to register a view for an exception in Zope 2 yet (not even in Zope 2.10!). There is a product in the z3-base called FiveException: http://codespeak.net/svn/z3/FiveException/trunk/ It basically replaces zpublisher_exception_hook to get a view called. I would like to change zpublisher_exception_hook in Zope 2.10 and up to lookup a view for the exception there and get rid of this ugly patch. +1/-1? -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ 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] Can't Track Simple Bug
Nancy Donnelly wrote: 7373 You really need to sort your mail client out... You may also want to look at MailingLogger (http://www.simplistix.co.uk/software/zope/mailinglogger103) so that you get emailed salient log entries... Nice! I like that! But I'm confused on one thing. In your instructions, you say: import Products.MailingLogger Not really, it's a snippet for inserting into zope.conf alongside the other logging configuration. You appear to have chopped off the %, which you need to make it a valid zope.conf import statement. I assume that's at the instance level, where the zope.conf file is? That's a command, correct? No, see my previous comment. # Zope zctl settings ZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome') ZOPE_OPTS = '-p - -D' ZOPE_PORT = 7080 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = (%(SOFTWARE_PRODUCTS)s: + pjoin(HERE, '..', 'OtherProducts') + :%(INSTANCE_PRODUCTS)s) ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG # ZEO Environment settings #ZEO['ZEO_SERVER_NAME'] = 'www.example.com' ZEO['ZEO_SERVER_PORT'] = # ZEO zctl settings ZEO_WAIT_BAILOUT = 160 # Don't try for more than num seconds What on earth is this? It's certainly note a zope.conf file... What version of Zope are you running? Also, can you tell me how to enter a variable into the eventlog to email address so that I could change it in a file on the server whenever I wanted to? I've been wondering how to do that. I'm afraid I have no idea what you're talking about here... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] Troubleshooting Maildrop Host
Nancy Donnelly wrote: try: mailhost=getattr(context, context.superValues('Mail Host')[0].id) 'Mail Host' won't find a Maildrop Host... except: Bare excepts like this are extremely bad programming practice... raise AttributeError, Can't find a Mail Host object Why not just let the original exception get raised?! Yet, when I go to fire up the script, the email is not sent. What am I doing wrong here? Quite a lot, I'm afraid... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] What is an InvalidObjectReference?
Garth B. wrote: I'm sporadically getting the following error thrown as a result of a routine I've written. The routine is likely not managing its connections properly. What does this routine look like? Can you boil it down to a simple example which fails? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] __bobo_traverse__ help
Dieter Maurer escribió: Garito wrote at 2006-11-9 03:07 +0100: ... What you see is an authentication weekness with __bobo_traverse__: Zope's security machinery requires acquisition wrappers to work reliably. When __bobo_traverse__ returns a non acquisition wrapped object without public security declarations, then the normal security check would not help. Zope therefore tries to check whether a standard 'getattr' would return the same object and accept it in this case. Otherwise, it will raise Unauthorized with the intent that an unmotivated Unauthorized is better than giving access to some piece of information that should be protected. In my view, the behaviour is buggy as __bobo_traverse__ has no way to return a non-trivial elementary data type -- but almost surely, it will not be changed... ... Then: what solution did you think will be the best solution for my request? You may try to return a wrapper that behaves the same way as the original object (by deriving from the respective type) but has __roles__ = None as additional attribute (which declares the object public). Uau! Can you point me to a simple example or similar? I'm not sure if I understand what you are telling me Thanks! -- Mis Cosas http://blogs.sistes.net/Garito ___ 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] Can't Track Simple Bug
- Original Message From: Chris Withers [EMAIL PROTECTED]First up, rifling through my trash, I noticed a response of yours to a previous email that I missed. Concerning the line of my script:try: mailhost=getattr(context, context.superValues('Mail Host')[0].id)what should I substitute for "Mail Host" if I want to call Maildrop? I tried "Maildrop Host" but for some crazy reason the script redirected to a slightly different URL and threw an error. (That URL should have worked anyway due to inheritance, so I don't know what's up.) This is the information in the Maildrop README that wasn't helpful in this regard: - Now you can create emails using e.g. the dtml-sendmail tag and point the sendmail tag to the Maildrop Host instance using the mailhost="XYZ" argument inside the sendmail tag, or by using the MailHost API (see the Zope Help System).Now, the rest ;) Not really, it's a snippet for inserting into zope.conf alongside the other logging configuration. You appear to have chopped off the %, which you need to make it a valid zope.conf import statement.Okay, corrected and entered into zope.confYes, Chris, the below is, in fact, my zope.conf file. I inherited this box. All I can tell you is the below code does, in fact, work. I've added yours to it and now we'll see if they play nicely together ;) I am running Zope 2.7.8. I welcome any suggestions, of course :) # Zope zctl settings ZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome') ZOPE_OPTS = '-p - -D' ZOPE_PORT = 7080 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:" + pjoin(HERE, '..', 'OtherProducts') + ":%(INSTANCE_PRODUCTS)s") ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG # ZEO Environment settings #ZEO['ZEO_SERVER_NAME'] = 'www.example.com' ZEO['ZEO_SERVER_PORT'] = # ZEO zctl settings ZEO_WAIT_BAILOUT = 160 # Don't try for more than num secondsTIA,Nancy___ 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] Re: Can't Track Simple Bug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nancy Donnelly wrote: - Original Message From: Chris Withers [EMAIL PROTECTED] First up, rifling through my trash, I noticed a response of yours to a previous email that I missed. Concerning the line of my script: try: mailhost=getattr(context, context.superValues('Mail Host')[0].id) what should I substitute for Mail Host if I want to call Maildrop? I tried Maildrop Host but for some crazy reason the script redirected to a slightly different URL and threw an error. (That URL should have worked anyway due to inheritance, so I don't know what's up.) This is the information in the Maildrop README that wasn't helpful in this regard: - Now you can create emails using e.g. the dtml-sendmail tag and point the sendmail tag to the Maildrop Host instance using the mailhost=XYZ argument inside the sendmail tag, or by using the MailHost API (see the Zope Help System). Now, the rest ;) Not really, it's a snippet for inserting into zope.conf alongside the other logging configuration. You appear to have chopped off the %, which you need to make it a valid zope.conf import statement. Okay, corrected and entered into zope.conf Yes, Chris, the below is, in fact, my zope.conf file. I inherited this box. All I can tell you is the below code does, in fact, work. I've added yours to it and now we'll see if they play nicely together ;) I am running Zope 2.7.8. I welcome any suggestions, of course :) The script you are using to start Zope with looks like it must be 'zctl', the ancient precursor to the current 'zopectl': it 'execed' its Python config file (which is what you have here). That version was never shipped with Zope, and has not been in active use by its authors (I'm one of them) for more than three years now. None of Chris' advice, which applies to *curreent* Zope config stuff, is going to apply to your setup. # Zope zctl settings ZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome') ZOPE_OPTS = '-p - -D' ZOPE_PORT = 7080 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = (%(SOFTWARE_PRODUCTS)s: + pjoin(HERE, '..', 'OtherProducts') + :%(INSTANCE_PRODUCTS)s) ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG # ZEO Environment settings #ZEO['ZEO_SERVER_NAME'] = 'www.example.com' ZEO['ZEO_SERVER_PORT'] = # ZEO zctl settings ZEO_WAIT_BAILOUT = 160 # Don't try for more than num seconds - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFVJ1Q+gerLs4ltQ4RAsBmAKCr+0ycfdouC/V/S9tqKA7ptRnCzACghXQu RCfYlKObb2MR8aolIkoqxNQ= =H2iq -END PGP SIGNATURE- ___ 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] Re: __bobo_traverse__ help
Hi Garito, You may try to return a wrapper that behaves the same way as the original object (by deriving from the respective type) but has __roles__ = None as additional attribute (which declares the object public). Uau! Can you point me to a simple example or similar? I'm not sure if I understand what you are telling me I guess Dieter is telling you something like this: def __bobo_traverse__(self, REQUEST, name): obj = self.Propiedad(name) if obj is None: return self else: obj.__roles__ = None return obj Although, I would try this as well: def __bobo_traverse__(self, REQUEST, name): obj = self.Propiedad(name) if obj is None: return self else: return obj.__of__(self) I was having a similar problem (not with __bobo_traverse__), but it was an UnauthorizedException, and I could solve it by using the second sintax: __of__(self) Regards Josef ___ 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] What is an InvalidObjectReference?
Garth B. wrote at 2006-11-9 16:29 -0500: ... Can I programmatically determine whether an object is already loaded/cached by a different connection? The connection an object o belongs to is accessed via o._p_jar. Would it help to try isolate this routine to a single connection? *Can* I isolate this routine to a single connection? Usually, a Zope application will in each request only deal with objects from the same connection. Some class or module level storage for objects is usually involved when problems such as observed by you arise. Of course, I cannot tell you, where in your application is something like this... -- Dieter ___ 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] __bobo_traverse__ help
Garito wrote at 2006-11-10 15:00 +0100: ... You may try to return a wrapper that behaves the same way as the original object (by deriving from the respective type) but has __roles__ = None as additional attribute (which declares the object public). Uau! Can you point me to a simple example or similar? I'm not sure if I understand what you are telling me Here is a wrapper for the str type: class WrappedStr(str): __roles__ = None Instead of returning some_str you would return WrappedStr(some_str). The __roles__ = None tells the Zope security machinery that the object is public. WrappedStr(some_str) would almost behave like some_str (but of course not completely). -- Dieter ___ 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] __bobo_traverse__ help
Dieter Maurer escribió: Garito wrote at 2006-11-10 15:00 +0100: ... You may try to return a wrapper that behaves the same way as the original object (by deriving from the respective type) but has __roles__ = None as additional attribute (which declares the object public). Uau! Can you point me to a simple example or similar? I'm not sure if I understand what you are telling me Here is a wrapper for the str type: class WrappedStr(str): __roles__ = None Instead of returning some_str you would return WrappedStr(some_str). The __roles__ = None tells the Zope security machinery that the object is public. WrappedStr(some_str) would almost behave like some_str (but of course not completely). Hi! Perfect, that's what I need (I hope so :-) ) Thank you so much, I try it! -- Mis Cosas http://blogs.sistes.net/Garito ___ 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] Re: Can't Track Simple Bug
75From: Tres Seaver [EMAIL PROTECTED] The script you are using to start Zope with looks like it must be 'zctl', the ancient precursor to the current 'zopectl': it 'execed' its Python config file (which is what you have here). That version was never shipped with Zope, and has not been in active use by its authors (I'm one of them) for more than three years now. Hmm. Okay. I took over this box recently. So, how do I change things? Here's my current zopectl:#! /bin/shPYTHON="/usr/local/zope/py235/bin/python"ZOPE_HOME="/usr/local/zope/278"INSTANCE_HOME="/usr/local/zope/instance2"CONFIG_FILE="/usr/local/zope/instance2/etc/zope.conf"ZEO_CONFIG_FILE="/usr/local/zope/instance2/var/zeo/etc/zeo.conf"SOFTWARE_HOME="/usr/local/zope/278/lib/python"PYTHONPATH="$SOFTWARE_HOME"export PYTHONPATH INSTANCE_HOME SOFTWARE_HOMEZEOCTL="$SOFTWARE_HOME/Zope/Startup/zeoctl"ZDCTL="$SOFTWARE_HOME/Zope/Startup/zopectl.py"# exec "$PYTHON" "$ZEOCTL" -C "$ZEO_CONFIG_FILE" "$@"exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"And, of course, my current zope.conf: # Zope zctl settings ZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome') ZOPE_OPTS = '-p - -D' ZOPE_PORT = 7080 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:" + pjoin(HERE, '..', 'OtherProducts') + ":%(INSTANCE_PRODUCTS)s") ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG # ZEO Environment settings #ZEO['ZEO_SERVER_NAME'] = 'www.example.com'112 ZEO['ZEO_SERVER_PORT'] = # ZEO zctl settings ZEO_WAIT_BAILOUT = 160 # Don't try for more than num secondsTIA,Nancy___ 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 )