[Zope-dev] Zope Tests: 9 OK
Summary of messages to the zope-tests list. Period Wed Nov 8 11:00:00 2006 UTC to Thu Nov 9 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: Wed Nov 8 21:26:47 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006512.html Subject: OK : Zope-2.6 Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:28:17 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006513.html Subject: OK : Zope-2.7 Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:29:47 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006514.html Subject: OK : Zope-2.7 Python-2.4.3 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:31:17 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006515.html Subject: OK : Zope-2.8 Python-2.3.5 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:32:47 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006516.html Subject: OK : Zope-2.8 Python-2.4.3 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:34:17 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006517.html Subject: OK : Zope-2.9 Python-2.4.3 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:35:47 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006518.html Subject: OK : Zope-2.10 Python-2.4.3 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:37:18 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006519.html Subject: OK : Zope-trunk Python-2.4.3 : Linux From: Zope Unit Tests Date: Wed Nov 8 21:38:48 EST 2006 URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006520.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] Installer for Windows (quick question)
Since I'm going to be building the installer for Windows I would like to quickly ask if anyone expects multiple Zope installs to live side-by-side. The existing installer atempted that but I don't believe it was very successful. I would like to know if anyone has multiple Zope installations on Windows side-by-side and if they consider that important. -- 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] Installer for Windows (quick question)
Sidnei da Silva-2 wrote: Since I'm going to be building the installer for Windows I would like to quickly ask if anyone expects multiple Zope installs to live side-by-side. The existing installer atempted that but I don't believe it was very successful. I would like to know if anyone has multiple Zope installations on Windows side-by-side and if they consider that important. I find it quite useful for testing e.g. with Plone 2.1 and 2.5 and 3.0, which require different Zope versions... I don't have an understanding of how hard it is to do, though - but I certainly have no idea how I'd build Zope myself on Windows and therefore manage my instances myself. I'd be happy if only the last installed one owned the *service*, if I could use runzope.bat on the others. Martin -- View this message in context: http://www.nabble.com/Installer-for-Windows-%28quick-question%29-tf2601515.html#a7257902 Sent from the Zope - Dev mailing list archive at Nabble.com. ___ 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)
Sidnei da Silva [EMAIL PROTECTED] wrote: Since I'm going to be building the installer for Windows I would like to quickly ask if anyone expects multiple Zope installs to live side-by-side. The existing installer atempted that but I don't believe it was very successful. I would like to know if anyone has multiple Zope installations on Windows side-by-side and if they consider that important. Yes and yes. Same as Martin Aspeli's reasons: testing on multiple plone versions. I think the main thing is to be sure that the installation doesn't add any zope specific folders to PythonPath in the registry. The Plone installation for example adds (or added) some folders to PythonPath which meant that multiple plones using the same major python version would try to share parts of the Plone installation. Not adding folders to the pythonpath registry key allows coexistence, and there are more than enough ways to add folders to pythonpath without using the registry. ___ 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 (quick question)
Hi, Sidnei da Silva wrote: Since I'm going to be building the installer for Windows I would like to quickly ask if anyone expects multiple Zope installs to live side-by-side. The existing installer atempted that but I don't believe it was very successful. I would like to know if anyone has multiple Zope installations on Windows side-by-side and if they consider that important. I wouldn't believe to install the same version twice. But different versions should be able to live together. Thanks for taking care for the windows builds! Christian -- gocept gmbh co. kg - forsterstraße 29 - 06112 halle/saale - germany www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 - fax +49 345 122 9889 1 - zope and plone consulting and development signature.asc Description: OpenPGP digital signature ___ 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 (quick question)
Sidnei da Silva wrote: I would like to know if anyone has multiple Zope installations on Windows side-by-side and if they consider that important. Well, I do that all the time, I have: C:\Zope\2.7.3 C:\Zope\2.7.8 C:\Zope\2.9.1 C:\Zope\2.9.3 C:\Zope\2.9.4 ...and then lots of instances, which sometimes run at the same time listening on different ports: C:\Zope\projecta C:\Zope\projectb C:\Zope\projectc ...etc... ...but I never run these as a service, so I don't know if it's important from your point of view? 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 (quick question)
On 11/9/06, Chris Withers [EMAIL PROTECTED] wrote: Sidnei da Silva wrote: I would like to know if anyone has multiple Zope installations on Windows side-by-side and if they consider that important. Well, I do that all the time, I have: C:\Zope\2.7.3 C:\Zope\2.7.8 C:\Zope\2.9.1 C:\Zope\2.9.3 C:\Zope\2.9.4 ...and then lots of instances, which sometimes run at the same time listening on different ports: C:\Zope\projecta C:\Zope\projectb C:\Zope\projectc ...etc... ...but I never run these as a service, so I don't know if it's important from your point of view? That's exactly what I wanted to hear. Thanks everyone for the feedback. -- 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] Installer for Windows (quick question)
On 11/9/06, Sidnei da Silva [EMAIL PROTECTED] wrote: On 11/9/06, Chris Withers [EMAIL PROTECTED] wrote: Sidnei da Silva wrote: I would like to know if anyone has multiple Zope installations on Windows side-by-side and if they consider that important. Well, I do that all the time, I have: C:\Zope\2.7.3 C:\Zope\2.7.8 C:\Zope\2.9.1 C:\Zope\2.9.3 C:\Zope\2.9.4 Since I saw this, I've changed the default directory to Program Files\Zope\2.9.5. There will be two sub-directories here, 'Zope' and 'Python'. This is so Python is not buried inside a 'bin' directory. ...and then lots of instances, which sometimes run at the same time listening on different ports: C:\Zope\projecta C:\Zope\projectb C:\Zope\projectc 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. -- 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
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] Installer for Windows -- Extras
I'm thinking about shipping easy-install pre-installed with the installer. Anyone thinks that's a good/bad idea? Would anyone be interested in shipping more goodies (eg, PIL, PyXML, elementree)? -- 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] Installer for Windows -- Extras
Sidnei da Silva wrote: I'm thinking about shipping easy-install pre-installed with the installer. Anyone thinks that's a good/bad idea? Would anyone be interested in shipping more goodies (eg, PIL, PyXML, elementree)? I'm unsure about that. As soon as you include it, it becomes a part of what we have to promise to maintain. Does your Python register correctly? Then it should be easy for people to install Python packages that were build for distutils for example. Christian -- gocept gmbh co. kg - forsterstraße 29 - 06112 halle/saale - germany www.gocept.com - [EMAIL PROTECTED] - phone +49 345 122 9889 7 - fax +49 345 122 9889 1 - zope and plone consulting and development signature.asc Description: OpenPGP digital signature ___ 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 - Status
Hi there, I've managed to get the Installers for Windows back into shape, using our internal build system/buildbot. You can follow the progress of the builds here: http://buildbot.enfoldsystems.com/zope/ New builds will appear on this page once they are ready: http://www.enfoldsystems.com/downloads.html The known-good build is 6511+, which has not appeared on the downloads page yet. It should show up there in 2-3h at most. Please send your comments/feedback/critics. -- 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: [ZWeb] Move-Message in Wiki pages
Ok, I have simplified the redirect message. I promised d2m I would post apache rewrite rules here and request installation by whoever has that access. I haven't spent the time to figure them out yet. I'd like to redirect each page in each old wiki to the corresponding page in the new location and I think that can be done. You can see the old wiki urls at http://wiki.zope.org/OldWikis . The new urls are http://wiki.zope.org/SAMEFOLDERID (except ComponentArchitecture is now zope3). So, how would we write this. Is there someone more apache-wizardly who can get us started ? ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [Zope] Can't Track Simple Bug
Nancy Donnelly wrote: 7171 What's with this appearing at the start of all your mails? Silly me! I got so caught up in that error that I didn't think to check the error log! It said it couldn't find a Mail Host. Now, on the first instance, I just added the regular plain vanilla mail host, but on this instance, I got fancy with a Maildrop Host. Well, it didn't like that. It took the regular mail host just fine. But why didn't it like maildrop? MailTemplates work seamlessly with either MailHosts or Maildrop Hosts 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] Can't Track Simple Bug
Nancy Donnelly wrote: I have two Zope instances. On one of them, I have a boilerplate script that I use for all my clients' Web sites. Works fine. Has for years. I decided to copy it over to my other instance and I get an error. Here's the line in question: p tal:on-error=string: mailScript() isn't defined! This should be in your *s* dir with the default installation. tal:replace=structure python:here.mailScript() / This is extremely bad programming style. Look at customising standard_error_message if you want to make error messages prettier... You may also want to look at MailingLogger (http://www.simplistix.co.uk/software/zope/mailinglogger) so that you get emailed salient log entries... 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] Can't Track Simple Bug
7373- Original Message From: Chris Withers [EMAIL PROTECTED] p tal:on-error="string: mailScript() isn't defined! This should be in your *s* dir with the default installation." tal:replace="structure python:here.mailScript()" / This is extremely bad programming style. Look at customising standard_error_message if you want to make error messages prettier...Yeah, the above is for me :) I have customized the standard error msg for the visitor. 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.MailingLoggerI assume that's at the instance level, where the zope.conf file is? That's a command, correct? Not something entered into the zope.conf file. I issued that command at the prompt and got this:# import Products.MailingLoggerimport: unable to open X server `'.Is there something I should edit first? Like zope.conf? Your instructions seem to indicate first issue the command, then edit zope.conf. And I'm confused as to if I should be editing zope.conf or something else, because my zope.conf file doesn't look like, for example, an httpd.conf file, where one would have syntax similar to what you propose. Here's my zope.conf:# Zope zctl settingsZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome')ZOPE_OPTS = '-p - -D'ZOPE_PORT = 7080ZOPE_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 settingsZEO_WAIT_BAILOUT = 160 # Don't try for more than num secondsAlso, 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.TIA,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 )
Re: [Zope] Zope2.9 sqllite
I found that ZSQLiteDA does some evil connection pooling resulting in the error you see. You may want to check out http://www.zope.org/ Members/zoping/ZSQLite3DApkg instead. Stefan P.S. I have a fixed version of ZSQLiteDA 0.4.0 hanging around. Holler if you want it. On 8. Nov 2006, at 18:34, Chris Hoy wrote: Zope 2.9 ZSQLiteDA ZSQLiteDA-0.4.1 Pysqlite 2.3.2 I can connection to the database but whenever it try to render a page template that uses a SQL Method to get data from the database I get the following error Error Type: ProgrammingError Error Value: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 3968 and this is thread id 4328 -- It doesn't necessarily do it in chronological order, though. --Douglas Adams ___ 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] Troubleshooting Maildrop Host
102Hi;I can't get Maildrop Host to work. I have a working SMTP, Python 2.3.5, Zope 2.7.8, and am running FreeBSD. I've edited the config.py file thus:PYTHON="/usr/bin/python"MAILDROP_HOME="/tmp/maildrop"MAILDROP_SPOOL="/tmp/maildrop/spool-1; /tmp/maildrop/spool-2; /tmp/maildrop/spool-3; /tmp/maildrop/spool-4"MAILDROP_VAR="/tmp/maildrop/var"MAILDROP_PID_FILE="/var/run/maildrop/maildrop.pid"MAILDROP_LOG_FILE="/var/log/maildrop/maildrop.log"SMTP_HOST="localhost"SMTP_PORT=25MAILDROP_INTERVAL=120DEBUG=0DEBUG_RECEIVER=""MAILDROP_BATCH=0MAILDROP_TLS=0MAILDROP_LOGIN=""MAILDROP_PASSWORD=""WAIT_INTERVAL=0.0ADD_MESSAGEID=1I've fired up ./start_maildrop from the Products/Maildrop/maildrop/bin folder and a ps wax|grep maildrop yields a favorable result.I've added an instance of Maildrop through the ZMI.It appears I can reach the mail host because I use this code in my script:try: mailhost=getattr(context, context.superValues('Mail Host')[0].id)except: raise AttributeError, "Can't find a Mail Host object"and the error is not raised (rather, an error from a following page is raised, although perhaps I'm mistaken here?).Yet, when I go to fire up the script, the email is not sent. What am I doing wrong here?TIA,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] What is an InvalidObjectReference?
Hello everyone,I'm sporadically getting the following error thrown as a result of a routine I've written.InvalidObjectReference: Attempt to store a reference to an object from a separate connection to the same database or multidatabase. I can often run this routine several times without a problem. After a fresh Zope (re)start, this error never happens on the first run. Once the problem does occur I need to restart Zope to make it go away. Can anyone tell me what this error actually means, and what bad practices could cause it?I've found a couple of hits about InvalidObjectReference: Attempt to store an object from a foreign database connection error in the archives, but I don't know how close this is to my problem. An example traceback would be:---2006-11-08T16:47:49 ERROR Zope.SiteErrorLog http://localhost:8080/WebSites/dev/test1/manage_publish Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module Products.DWT.WebBase , line 756, in manage_publish Module Products.DWT.WebBase, line 724, in manage_publish Module OFS.CopySupport, line 564, in _getCopy Module transaction._manager, line 110, in savepoint Module transaction._transaction, line 295, in savepoint Module transaction._transaction, line 292, in savepoint Module transaction._transaction, line 675, in __init__ Module ZODB.Connection, line 1012, in savepoint Module ZODB.Connection, line 526, in _commit Module ZODB.Connection, line 553, in _store_objects Module ZODB.serialize, line 407, in serialize Module ZODB.serialize, line 416, in _dump Module ZODB.serialize, line 341, in persistent_idInvalidObjectReference: Attempt to store a reference to an object from a separate connection to the same database or multidatabase ---I'm only dealing with one ZODB, so perhaps this is a multiple connection issue (although I have no idea how/why).In case it helps to know the context of the problem, I have a collection of objects I've written: 1) WebSite, based on OrderedFolder2) WebSection, based on OrderedFolder3) WebPage, based on ZopePageTemplate4) WebImage, based on Image.Each of these classes inherit a common base of functionality from a WebBase class. The manage_publish() method, defined in WebBase, copies the current object (one of #'s 2-4) to the same relative path within the context of another WebSite. This gives me a basic dev to live publishing process. Perhaps the most complex part of this routine is its ability to recurse. For example, a WebPage on the dev WebSite will first call its parent WebSection's manage_publish() if the parent WebSection doesn't exist on the live WebSite. Other things do happen during the process which might be causing this InvalidObjectReference, but if I can get a grip on what kinds of programming offenses causes this exception then I can make a more educated review of my code. I will happily provide a copy of the source if anyone is interested or thinks it will be useful. Thank you for any help or advice!Garth ___ 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] the name of the 'user' running zope
Hi dears, Is there a way (method or attribute) of getting the string for the 'user' running zope? Many thanks in advance. Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate Department of Biochemistry, University of Cambridge. 80 Tennis Court Road, Cambridge CB2 1GA, UK. http://www.bio.cam.ac.uk/~awd28 ___ 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] the name of the 'user' running zope
--On 9. November 2006 16:36:39 + Alan [EMAIL PROTECTED] wrote: Hi dears, Is there a way (method or attribute) of getting the string for the 'user' running zope? os.getuid() - 'pwd' module of Python -aj pgpaUYsdO31l8.pgp Description: 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 )
Re: [Zope] __bobo_traverse__ help
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). -- 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] What is an InvalidObjectReference?
Garth B. wrote at 2006-11-9 11:21 -0500: I'm sporadically getting the following error thrown as a result of a routine I've written. InvalidObjectReference: Attempt to store a reference to an object from a separate connection to the same database or multidatabase. This is in indication that you have introduced a persistency bug: It is very essential that you use a persistent object only in the context of the ZODB connection that loaded this object. Failing to fulfill this requirement can lead to several kinds of difficult to understand errors. The one, you see above is one such kind. Apparently, you try to store a persistent object from a connection C1 as attribute of a persistent object from a different connection C2. The bug is usually introduced by storing persistent objects outside of their connection cache -- e.g. on class level or in a module level cache. -- 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] What is an InvalidObjectReference?
Ok, I understand in theory what the problem is, I'm just not clear where in code this could be happening. I'm not consciously manipulating connections and I guess Zope is taking care of those low-level connection details with the ZODB for me. Can I programmatically determine whether an object is already loaded/cached by a different connection?Would it help to try isolate this routine to a single connection?*Can* I isolate this routine to a single connection? You know, I'm starting to think that my fancy little recursion between objects is what's royally screwing things up. A lot of loading of objects occurs here, possibly touching on the same objects between calls... Any other pointers/hints are welcome!Thank you Dieter and anyone else who can help out!GarthOn 11/9/06, Dieter Maurer [EMAIL PROTECTED] wrote:Garth B. wrote at 2006-11-9 11:21 -0500:I'm sporadically getting the following error thrown as a result of a routine I've written.InvalidObjectReference: Attempt to store a reference to an object from aseparate connection to the same database or multidatabase.This is in indication that you have introduced a persistency bug: It is very essential that you use a persistent object onlyin the context of the ZODB connection that loaded this object.Failing to fulfill this requirement can lead to several kindsof difficult to understand errors. The one, you see above is one such kind.Apparently, you try to store a persistent object from a connection C1as attribute of a persistent object from a different connection C2.The bug is usually introduced by storing persistent objects outside of their connection cache -- e.g. on class level or in a module levelcache.--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 )