[Zope-Checkins] SVN: Zope/trunk/lib/python/ add tests for on-error handling in macros for errors in slot fillers; errors
Log message for revision 66017: add tests for on-error handling in macros for errors in slot fillers; errors in the filler can now be handled by the macro, as intended Changed: U Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py U Zope/trunk/lib/python/TAL/TALInterpreter.py -=- Modified: Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py === --- Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py 2006-03-14 17:46:42 UTC (rev 66016) +++ Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py 2006-03-14 17:47:30 UTC (rev 66017) @@ -135,9 +135,49 @@ expect = util.read_output('DTML3.html') util.check_xml(expect, o) +def check_on_error_in_slot_filler(self): +# The `here` isn't defined, so the macro definition is +# expected to catch the error that gets raised. +text = '''\ +div metal:define-macro=foo + div tal:on-error=string:eek + div metal:define-slot=slot / + cool + /div +/div + +div metal:use-macro=template/macros/foo + div metal:fill-slot=slot + p tal:content=here/xxx / + /div +/div +''' +self.t.write(text) +aa = util.argv(('one', 'two', 'three', 'four', 'five')) +self.t.__of__(aa)() + +def check_on_error_in_slot_default(self): +# The `here` isn't defined, so the macro definition is +# expected to catch the error that gets raised. +text = '''\ +div metal:define-macro=foo + div tal:on-error=string:eek + div metal:define-slot=slot +div tal:content=here/xxx / + /div + /div +/div + +div metal:use-macro=template/macros/foo +/div +''' +self.t.write(text) +aa = util.argv(('one', 'two', 'three', 'four', 'five')) +self.t.__of__(aa)() + + def test_suite(): return unittest.makeSuite(DTMLTests, 'check') if __name__=='__main__': main() - Modified: Zope/trunk/lib/python/TAL/TALInterpreter.py === --- Zope/trunk/lib/python/TAL/TALInterpreter.py 2006-03-14 17:46:42 UTC (rev 66016) +++ Zope/trunk/lib/python/TAL/TALInterpreter.py 2006-03-14 17:47:30 UTC (rev 66017) @@ -769,11 +769,13 @@ slot = slots.get(slotName) if slot is not None: prev_source = self.sourceFile -self.interpret(slot) -if self.sourceFile != prev_source: -self.engine.setSourceFile(prev_source) -self.sourceFile = prev_source -self.pushMacro(macroName, slots, entering=0) +try: +self.interpret(slot) +finally: +if self.sourceFile != prev_source: +self.engine.setSourceFile(prev_source) +self.sourceFile = prev_source +self.pushMacro(macroName, slots, entering=0) return self.pushMacro(macroName, slots) # Falling out of the 'if' allows the macro to be interpreted. ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] CVS: Packages/TAL - TALInterpreter.py:1.78.4.7.24.1
Update of /cvs-repository/Packages/TAL In directory cvs.zope.org:/tmp/cvs-serv1857/lib/python/TAL Modified Files: Tag: zc-Zope-2-7-5 TALInterpreter.py Log Message: add tests for on-error handling in macros for errors in slot fillers; errors in the filler can now be handled by the macro, as intended === Packages/TAL/TALInterpreter.py 1.78.4.7 = 1.78.4.7.24.1 === --- Packages/TAL/TALInterpreter.py:1.78.4.7 Thu Aug 12 12:15:14 2004 +++ Packages/TAL/TALInterpreter.py Tue Mar 14 12:48:21 2006 @@ -691,11 +691,13 @@ slot = slots.get(slotName) if slot is not None: prev_source = self.sourceFile -self.interpret(slot) -if self.sourceFile != prev_source: -self.engine.setSourceFile(prev_source) -self.sourceFile = prev_source -self.pushMacro(macroName, slots, entering=0) +try: +self.interpret(slot) +finally: +if self.sourceFile != prev_source: +self.engine.setSourceFile(prev_source) +self.sourceFile = prev_source +self.pushMacro(macroName, slots, entering=0) return self.pushMacro(macroName, slots) # Falling out of the 'if' allows the macro to be interpreted. ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] CVS: Products/PageTemplates/tests - testDTMLTests.py:1.8.108.1
Update of /cvs-repository/Products/PageTemplates/tests In directory cvs.zope.org:/tmp/cvs-serv1857/lib/python/Products/PageTemplates/tests Modified Files: Tag: zc-Zope-2-7-5 testDTMLTests.py Log Message: add tests for on-error handling in macros for errors in slot fillers; errors in the filler can now be handled by the macro, as intended === Products/PageTemplates/tests/testDTMLTests.py 1.8 = 1.8.108.1 === --- Products/PageTemplates/tests/testDTMLTests.py:1.8 Wed Sep 18 11:12:46 2002 +++ Products/PageTemplates/tests/testDTMLTests.py Tue Mar 14 12:48:20 2006 @@ -135,9 +135,49 @@ expect = util.read_output('DTML3.html') util.check_xml(expect, o) +def check_on_error_in_slot_filler(self): +# The `here` isn't defined, so the macro definition is +# expected to catch the error that gets raised. +text = '''\ +div metal:define-macro=foo + div tal:on-error=string:eek + div metal:define-slot=slot / + cool + /div +/div + +div metal:use-macro=template/macros/foo + div metal:fill-slot=slot + p tal:content=here/xxx / + /div +/div +''' +self.t.write(text) +aa = util.argv(('one', 'two', 'three', 'four', 'five')) +self.t.__of__(aa)() + +def check_on_error_in_slot_default(self): +# The `here` isn't defined, so the macro definition is +# expected to catch the error that gets raised. +text = '''\ +div metal:define-macro=foo + div tal:on-error=string:eek + div metal:define-slot=slot +div tal:content=here/xxx / + /div + /div +/div + +div metal:use-macro=template/macros/foo +/div +''' +self.t.write(text) +aa = util.argv(('one', 'two', 'three', 'four', 'five')) +self.t.__of__(aa)() + + def test_suite(): return unittest.makeSuite(DTMLTests, 'check') if __name__=='__main__': main() - ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/lib/python/App/Extensions.py removed support for .pyp files ...no idea
Log message for revision 66019: removed support for .pyp files ...no idea what they were used for but the related code will definetely no longer work under Python 2.4 because the rotor module has gone... Changed: U Zope/trunk/lib/python/App/Extensions.py -=- Modified: Zope/trunk/lib/python/App/Extensions.py === --- Zope/trunk/lib/python/App/Extensions.py 2006-03-14 19:59:04 UTC (rev 66018) +++ Zope/trunk/lib/python/App/Extensions.py 2006-03-14 20:05:29 UTC (rev 66019) @@ -110,12 +110,12 @@ return old[name] base, ext = os.path.splitext(module) -if ext in ('py', 'pyp', 'pyc'): +if ext in ('py', 'pyc'): # XXX should never happen; splitext() keeps '.' with the extension p = base else: p = module -p=getPath('Extensions', p, suffixes=('','py','pyp','pyc')) +p=getPath('Extensions', p, suffixes=('','py','pyc')) if p is None: raise NotFound, ( The specified module, em%s/em, couldn't be found. % module) @@ -129,16 +129,6 @@ file.close() m=binmod.__dict__ -elif ext=='.pyp': -import rotor -prod_id=module.split('.', 1)[0] -data=zlib.decompress( -rotor.newrotor(prod_id +' shshsh').decrypt(open(p,'rb').read()) -) -execsrc=compile(data, module, 'exec') -m={} -exec execsrc in m - else: try: execsrc=open(p) except: raise NotFound, ( ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.txt Remove stale To-do's.
Log message for revision 66020: Remove stale To-do's. Changed: U Zope/trunk/doc/CHANGES.txt -=- Modified: Zope/trunk/doc/CHANGES.txt === --- Zope/trunk/doc/CHANGES.txt 2006-03-14 20:05:29 UTC (rev 66019) +++ Zope/trunk/doc/CHANGES.txt 2006-03-15 04:42:02 UTC (rev 66020) @@ -6,22 +6,14 @@ To-do - - Reenable C permission roles by implementing recent Python - changes in C, brining the Python and C implementations back in - sync. See lib/python/AccessControl/PermissionRole.py. - - Add cyclic-garbage collection support to C extension classes, especially to acquisition wrappers. - - Reenable C Zope security policy by implementing recent Python - changes in C, bringing the Python and C implementations back in - sync. See lib/python/AccessControl/ZopeSecurityPolicy.py. + N.B: ExtensionClassType already declares that it supports GC + (via the Py_TPFLAGS_HAVE_GC flag), but does not appear to conform + to the rules for such a type laid out in the Python docs: + http://docs.python.org/api/supporting-cycle-detection.html - - Change acquisition wrappers to implement the descr get slot - directly, thus speeding the use of the slot. - - - Collector #1233: port ZOPE_CONFIG patch from Zope 2.7 to Zope 2.8 - Trunk only (unreleased) Restructuring ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-dev] Re: running unit tests for Zope 2.8
Balazs, That almost did the trick. In the end I found that having both --libdir=/opt/Zope-2.8/lib/python/Products and --dir=/opt/Zope-2.8/lib/python/Products/SiteAccess/tests enabled the tests to run. Thanks! Geoff ___ 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: PDBDebugMode 0.1 Release
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ross Patterson wrote: http://www.zope.org/Members/rossp/PDBDebugMode PDBDebugMode - PDB post-mortem debugging on exceptions when debug-mode=on If a relevant error log object is found, exceptions included in the error log's ignored exception types will be ignored and the debugger won't be invoked. It also enables the import of the pdb module in unprotected code. On encountering an error, the port-mortem debugger is invoked with the error's traceback. Once in the debugger you can examine objects, variables, etc. at all levels of the call stack. This is, of course, extremely useful for debugging. Since it only does anything if the instance is running with debug-mode=on, I find this product useful not only for debugging on my development instances, but also for doing quick emergency debugging on a live production site. IOW, if the problem is only reproducable on the production site but not on my development instance, I'll restart the production instance in debug-mode with pdb in emacs, reproduce the error, inspect the call stack. Way cool! What would you think about incorporating a version of this into the Zope2 core for version 2.10? I think we would need to add some additional ZConfig schema to support it, as the mere presence of the product would not be sufficient as an enabling knob (in fact, there mightn't be any product at all). If you're willing, I'd be glad to help land it (I think Z3 already has a similar feature, wired in as a separate server). Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEFwPR+gerLs4ltQ4RAgSXAJ9yBgpP74cQc+8gDoQScdhdV9fZkgCffP4N FJ3XyKUG/hijv0ZaM3Se3+0= =EL3t -END PGP 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] Re: PDBDebugMode 0.1 Release
On Tue, Mar 14, 2006 at 12:56:33PM -0500, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ross Patterson wrote: http://www.zope.org/Members/rossp/PDBDebugMode PDBDebugMode - PDB post-mortem debugging on exceptions when debug-mode=on (snip) Way cool! What would you think about incorporating a version of this into the Zope2 core for version 2.10? I think we would need to add some additional ZConfig schema to support it, as the mere presence of the product would not be sufficient as an enabling knob (in fact, there mightn't be any product at all). If you're willing, I'd be glad to help land it (I think Z3 already has a similar feature, wired in as a separate server). I've only just tried PDBDebugMode, very handy since you don't have to put set_trace() in your code (and remember to remove it). I have also sometimes used Chris Withers' zdb product, http://www.simplistix.co.uk/software/zope/zdb, which has some overlap in that it allows you to do this in restricted code, e.g. cmf scripts: from Products.zdb import set_trace set_trace() ... and, very usefully, once in the debugger you can use the l command to see the script source and it gets line numbers right. So Ross, maybe you can borrow some of Chris' code :-) Unfortunately zdb doesn't appear to work with zope 2.9 / python 2.4. I'll file a bug report with Chris. It works great with zope 2.8 / python 2.3. -- Paul Winkler http://www.slinkp.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] How to delete an object given a path in Zope
Hi guys, I am trying to figure out how to delete an object in Zope given a path. Using restrictedTraverse Im able to get the object by its path. I then want to delete this object. Im assigning the result to obj as shown here: obj = context.restrictedTraverse('webcasts/courses/temp') The goal here is to be able to delete temp by giving it a path. Any help is greatly appreciated. Thanks, Mike ___ 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] App.Product - distribution related code?
I'm not entirely sure what this code is. But I've never used it or seen anyone else use it. I suspect it can go. - C On Mar 14, 2006, at 3:14 PM, Andreas Jung wrote: lib/python/App/Product.py contains code that deals *somehow* with distributions (whatever this means). Does any one know what this code is doing?...anyway this code uses the Python rotor module which was removed in Python 2.4. This code is a clear candidate to be kicked... objections? -aj___ 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] App.Product - distribution related code?
It seems to be ZClasses relatedso it can go :-) --On 14. März 2006 15:40:55 -0500 Chris McDonough [EMAIL PROTECTED] wrote: I'm not entirely sure what this code is. But I've never used it or seen anyone else use it. I suspect it can go. - C On Mar 14, 2006, at 3:14 PM, Andreas Jung wrote: lib/python/App/Product.py contains code that deals *somehow* with distributions (whatever this means). Does any one know what this code is doing?...anyway this code uses the Python rotor module which was removed in Python 2.4. This code is a clear candidate to be kicked... objections? -aj___ 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 ) --- - Andreas JungZOPYX Ltd. Co KG- - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com, www.zopyx.de - --- pgpbyt9mu2sMy.pgp Description: PGP 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] Re: PDBDebugMode 0.1 Release
I've only just tried PDBDebugMode, very handy since you don't have to put set_trace() in your code (and remember to remove it). Glad you like it :) I have also sometimes used Chris Withers' zdb product, http://www.simplistix.co.uk/software/zope/zdb, which has some overlap in that it allows you to do this in restricted code, e.g. cmf scripts: from Products.zdb import set_trace set_trace() ... and, very usefully, once in the debugger you can use the l command to see the script source and it gets line numbers right. So Ross, maybe Oooh! I'd love that. I'll look into it. You should really try using a editor/IDE that automatically shows the corresponding code along side the debugger, like Emacs' gud-mode which can be invoked with M-x pdb. It rocks! Thanks for the suggestion! Ross ___ 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] App.Product - distribution related code?
On 3/14/06, Andreas Jung [EMAIL PROTECTED] wrote: lib/python/App/Product.py contains code that deals *somehow* with distributions (whatever this means). Does any one know what this code is doing?...anyway this code uses the Python rotor module which was removed in Python 2.4. This code is a clear candidate to be kicked... objections? No objections. With it you could package ZClass-based Products up for redistribution; the redstributed version could then be installed like a regular product, complete with locked code... -- Martijn Pieters ___ 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: PDBDebugMode 0.1 Release
Paul Winkler wrote: All hail Ken Manheimer, pdbtrack is very cool. HAIL! Also hail Ross and hail Chris. I didn't know about that trick for debugging restricted code with source. ___ 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] Error: gaierror: (-2, 'Name or service not known')
On 3/13/06, Martin Koekenberg [EMAIL PROTECTED] wrote: I get the following error: gaierror: (-2, 'Name or service not known') http://plone.org/documentation/error/gaierror Seems to be a failure to do a ns lookup. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ 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] Error: gaierror: (-2, 'Name or service not known')
On 3/13/06, Martin Koekenberg [EMAIL PROTECTED] wrote: Module OFS.Image, line 269, in _range_request_handler Module mimetools, line 130, in choose_boundary gaierror: (-2, ' Name of service not known ') In order to send partial responses (such as Acrobat Reader might issue for a web-optimized PDF), the File object uses the mimetypes.choose_boundary method to serve multiple such partial responses. The choose_boundary method, in turn, attempts to generate a unique boundary string, and uses various OS parameters to do so. One of these is the ip address of the host, which choose_boundary obtains by looking at the current hostname, then asking for the ip address belonging to that hostname. The latter step fails. You can reproduce this by opening a python interpreter prompt and typing the following: import socket hostname = socket.gethostname() print hostname yourhostnamehere socket.gethostbyname(hostname) 'your.ip.address.here' The latter will probably throw the same error as above. To fix this you'll have to either bug your system admin, or acquire enough UNIX sysop knowledge to fix the problem yourself. I suspect that the hostname has no DNS entry anywhere; adding it to /etc/hosts should be enough. -- Martijn Pieters ___ 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] localfs cannot save (ValueError: assigning to _p_jar is not supported )
I have created some localfs directory. I can see files from filesystem and delete them from Zope, but I cannot upload them or modify text files from Zope, because I get the following error : Traceback (innermost last): * Module ZPublisher.Publish, line 113, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.LocalFS.LocalFS, line 3, in manage_edit * Module OFS.Image, line 449, in manage_edit * Module ZODB.Connection, line 853, in register ValueError: assigning to _p_jar is not supported Searching this in google, seems to me that this is somehow related to the lack of Zope OIDs for localfs objects, and I suspect changes in Zope = 2.8 but I cannot get any further in the solution Is localfs still supported? Zope has full access rights to the local directory, this is my configuration : Zope Version (Zope 2.9.0-, python 2.4.2, sunos5) Python Version 2.4.2 (#1, Oct 3 2005, 01:55:05) [GCC 3.3.2] System Platform sunos5 Thank you in advance, any hint is welcome! Luca ___ 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] installation security best practice question
HI i am installing zope in on linux fedora core 3 however i am having problems when setting up the permissions. Currently i am installing zope as root and then logging in as a user and making an instance. When i go to run the zope instance as the user its says i do not have the permissions to run the files. If i change the permissions on the zope folder so that everyone has all permissions then it works however this isnt a great securtiy option Does anyone have any ideas on how to sort this one out Thanks -- View this message in context: http://www.nabble.com/installation-security-best-practice-question-t1278137.html#a3394930 Sent from the Zope - General forum at Nabble.com. ___ 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] installation security best practice question
Currently i am installing zope as root and then logging in as a user and making an instance. When i go to run the zope instance as the user its says i do not have the permissions to run the files. If i change the permissions on the zope folder so that everyone has all permissions then it works however this isnt a great securtiy option Does anyone have any ideas on how to sort this one out The best way to install and run Zope is to have a dedicated user account and install and run it as that user. Most everything else will lead to problems and frustration. jens ___ 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: installation security best practice question
Hi Currently i am installing zope as root and then logging in as a user and making an instance. When i go to run the zope instance as the user its says i do not have the permissions to run the files. If i change the permissions on the zope folder so that everyone has all permissions then it works however this isnt a great securtiy option Give your Zope Instance(s) one dedicated user (e.g. 'zope'), i.e. Change the owner of the whole Instance to this user and then you won't have any troubles with the standard permissions that are configured by mkzopeinstance.py If you start your Instance(s) as that above user then you can avoid running your Instance(s) as root. Not much magic involved there... Kind Regards Maik ___ 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] installation security best practice question
I have tried this method i have made a zope instance as a dedicated user the owner of this file is that of the dedicated user. when i go to run zope as this user i get an error message saying that there is an error opening a file in the install directory ( not the zope instance) if i change the permssions on that file i get an error saying that there is an error opening another file (in the install directory). any ideas how i can avoid this. -- View this message in context: http://www.nabble.com/installation-security-best-practice-question-t1278137.html#a3395576 Sent from the Zope - General forum at Nabble.com. ___ 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: management of project
On 2006-03-13, gus [EMAIL PROTECTED] wrote: Hello One questions Is there a program in zope for management project!!! eXtreme Management is great: http://plone.org/products/extreme-management-tool/ My company made it, so I may be biased. :) -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc Do only what only you can do. --- Edsger Wybe Dijkstra ___ 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] installation security best practice question
On 14 Mar 2006, at 12:31, JulianRead wrote: I have tried this method i have made a zope instance as a dedicated user the owner of this file is that of the dedicated user. when i go to run zope as this user i get an error message saying that there is an error opening a file in the install directory ( not the zope instance) if i change the permssions on that file i get an error saying that there is an error opening another file (in the install directory). any ideas how i can avoid this. I repeat: *Install* and run with the same user. jens ___ 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: installation security best practice question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 JulianRead wrote: I have tried this method i have made a zope instance as a dedicated user the owner of this file is that of the dedicated user. when i go to run zope as this user i get an error message saying that there is an error opening a file in the install directory ( not the zope instance) if i change the permssions on that file i get an error saying that there is an error opening another file (in the install directory). any ideas how i can avoid this. The Zope user needs to be able to read every file under the install directory. Those files are software, and should be safe to make world readable, e.g.: # chmod -R a+r /path/to/installed/zope The Zope user needs *write* access only into the 'var' and 'log' subdirectories of the instance, but must have read access to the whole instance. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEFsjg+gerLs4ltQ4RAsUoAJ9KQgxtYKqMyTFwX6HeF2rYbGavvQCfcwGq SJPdrmowKRyb8dUNyCihCCo= =0RLo -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: installation security best practice question
Jens Vagelpohl [EMAIL PROTECTED] writes: I repeat: *Install* and run with the same user. I second that, since it is probably easier for you to set up a new instance this way than to bug around with your existing Instance. ( a simple chown -R zope /path/to/your/instance should have worked to, but I guess something is borked in your instance - so you'd better start from zero with a fresh instance ) Kind Regards Maik ___ 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] installation security best practice question
En/na Jens Vagelpohl ha escrit: The best way to install and run Zope is to have a dedicated user account and install and run it as that user. Most everything else will lead to problems and frustration. Only because the zope-2.8.6 tarball has wrong permissions. It worked before, it will work once you fix the permission on the installed zope. Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 ___ 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] Re: Ape
This might be of interest to you: http://www.zope.org/Members/jdoyon/svnapezope Doesn't fix the issue of Ape only working with 2.7 however, obviously :( J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Kratz Sent: March 13, 2006 3:07 PM To: zope@zope.org Subject: Re: [Zope] Re: Ape On Saturday 11 March 2006 11:16 am, Shane Hathaway wrote: Dennis Allison wrote: I am looking to map a portion of the local file system into Zope. One way to do this is to use LocalFS, another is to use Ape. I am sure there are onter approaches as well. We are using Zop 2.9.X. Will Ape work in this context? What would you suggest? Ape doesn't work with Zope 2.9 yet. Shane We are very interested in this as well. We have a large application using Apelib right now to persist our zope application onto the filesystem so we can use subversion. It's quite elegant for multiple developers, branching, etc. I'd be interested to know if anyone else has had success with other file system persistence and zope. Most seem to save as blobs (at last our last survey of the options did). Apelib is wonderfull because in most cases it saves the contents in text files which can be accessed by external editors which is how we do all our development now. Diffs and merges are easy plus we get history of changes over time. Because APE doesn't work in 2.9, we are kind of stuck as far as upradeing zope and will need to go to localFS or something like it I guess at some point in the future. I would be curious to know where you come out with this Dennis. -Chris ___ 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 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] installation security best practice question
On 14 Mar 2006, at 14:09, Luca Olivetti wrote: En/na Jens Vagelpohl ha escrit: The best way to install and run Zope is to have a dedicated user account and install and run it as that user. Most everything else will lead to problems and frustration. Only because the zope-2.8.6 tarball has wrong permissions. It worked before, it will work once you fix the permission on the installed zope. The advice has nothing to do with Zope 2.8.6 or any other tarball. Trying to be overly clever and not using a dedicated account for both installation and running your Zope doesn't add much security, it only adds complication. Unless you install software that lets users write to the file system through the web people cannot get to the filesystem. jens ___ 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] Re: Ape
I wasn't aware of that project. We are doing the same sort thing in a manual way, ie the developers get to decide when the commits happen. But it's interesting. Unfortunately, as you noted, it's based on Ape as well and so suffers the same problems with newer versions of zope. Thanks for the pointer though. It's interesting to see where these things get taken. -Chris On Tuesday 14 March 2006 09:28 am, Doyon, Jean-Francois wrote: This might be of interest to you: http://www.zope.org/Members/jdoyon/svnapezope Doesn't fix the issue of Ape only working with 2.7 however, obviously :( J.F. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Kratz Sent: March 13, 2006 3:07 PM To: zope@zope.org Subject: Re: [Zope] Re: Ape On Saturday 11 March 2006 11:16 am, Shane Hathaway wrote: Dennis Allison wrote: I am looking to map a portion of the local file system into Zope. One way to do this is to use LocalFS, another is to use Ape. I am sure there are onter approaches as well. We are using Zop 2.9.X. Will Ape work in this context? What would you suggest? Ape doesn't work with Zope 2.9 yet. Shane We are very interested in this as well. We have a large application using Apelib right now to persist our zope application onto the filesystem so we can use subversion. It's quite elegant for multiple developers, branching, etc. I'd be interested to know if anyone else has had success with other file system persistence and zope. Most seem to save as blobs (at last our last survey of the options did). Apelib is wonderfull because in most cases it saves the contents in text files which can be accessed by external editors which is how we do all our development now. Diffs and merges are easy plus we get history of changes over time. Because APE doesn't work in 2.9, we are kind of stuck as far as upradeing zope and will need to go to localFS or something like it I guess at some point in the future. I would be curious to know where you come out with this Dennis. -Chris ___ 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 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 ) -- Chris Kratz ___ 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] Vacancy in Central London
The UCL Institute of Child Health, in partnership with Great Ormond Street Hospital for Children NHS Trust, is seeking an Applications Developer. Working in a small and dedicated team using rapid application development techniques and open source technologies, the main focus is our Zope-based Content Management System which is being developed to manage the joint GOSH / ICH web site. The post is actively involved in joint application development sessions with representatives from a 200+ user community and will also work on other web enabled applications, including our Research and Development Management System. For further details, please see: http://www.ich.ucl.ac.uk/ich/humanresources/jobvacancy_00394 The job vacancy system linked above forms part of the CMS developed to date. --- Trevor Peacock - Manager - Information Systems Unit Institute of Child Health - 30 Guilford St - London - WC1N 1EH Tel: 020 7905 2624 ___ 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] Zope Managed Server
Thanks to all for the advice. It feels like I'm better off with a dedicated server on which I can install and configure zope myself. I wonder now about what type of machine is ideal. Eventually I hope to be serving many (possibly hundreds) small websites via VHM. I'm sure that I need plenty of memory, but what about CPU? Are there any statistics or recommended configurations out there? How can I know what sort of load a particular server will be able to withstand? Thanks for your help! Dan Servelocity at http://www.servelocity.net/ are also very good. You can rent your own dedicated server and install what you want on it. Excellent support and service. On 3/12/06, Allen Schmidt [EMAIL PROTECTED] wrote: +1 for Zettai. Have had great success with them. If you need a place to stick a server then I highly recommend bayMountain. Amazing service and support. A great team of open source and Zope experts there. Allen David wrote: J Cameron Cooper wrote: Dan Gaibel wrote: Hello Folks, I'm interested in finding a company that will do monthly managed zope hosting. We're looking for a dedicated machine. I know that Zope Corp does this and it is quite expensive. I wonder if anyone has had any experiences with such a service. Any advice is highly appreciated, and I apologize if this list is an inappropriate venue to pose such a question. There are a number of these companies around. iMeme and Zettai come to mind. I'm sure there are more nowadays. --jcc Dan, I use Zettai. Can't complain at all. Even though I use virtual host plan (I share a server with about 8(?) others) the performance is better than I feared might be the case. The best of all worlds is to at least co-host your server. But thats more over-head for the developer. Zettai support is excellent. (although they do get cranky if you lean too much on them). I just checked out the iMeme site - and they may be pretty good ( jcc wouldn't recommend them otherwise) but their presentation is gawd-awful and not confidence inspiring. David ___ 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 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 ) -- michael ___ 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 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] Zope Managed Server
Depending on what performance levels you need, I've used these folks in the past and have had excellent service from them: aplus.net (http://servers.aplus.net/valueservers.html) - Their $49.00/mo server was an awesome buy for what I needed - and it's fully dedicated. They have higher end machines as well. You get root, so you can do whatever you wish. Andrew Sawyers On Mon, 2006-03-13 at 22:56 +, michael nt milne wrote: Servelocity at http://www.servelocity.net/ are also very good. You can rent your own dedicated server and install what you want on it. Excellent support and service. On 3/12/06, Allen Schmidt [EMAIL PROTECTED] wrote: +1 for Zettai. Have had great success with them. If you need a place to stick a server then I highly recommend bayMountain. Amazing service and support. A great team of open source and Zope experts there. Allen David wrote: J Cameron Cooper wrote: Dan Gaibel wrote: Hello Folks, I'm interested in finding a company that will do monthly managed zope hosting. We're looking for a dedicated machine. I know that Zope Corp does this and it is quite expensive. I wonder if anyone has had any experiences with such a service. Any advice is highly appreciated, and I apologize if this list is an inappropriate venue to pose such a question. There are a number of these companies around. iMeme and Zettai come to mind. I'm sure there are more nowadays. --jcc Dan, I use Zettai. Can't complain at all. Even though I use virtual host plan (I share a server with about 8(?) others) the performance is better than I feared might be the case. The best of all worlds is to at least co-host your server. But thats more over-head for the developer. Zettai support is excellent. (although they do get cranky if you lean too much on them). I just checked out the iMeme site - and they may be pretty good ( jcc wouldn't recommend them otherwise) but their presentation is gawd-awful and not confidence inspiring. David ___ 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 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 ) -- michael ___ 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 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] installation security best practice question
En/na Jens Vagelpohl ha escrit: On 14 Mar 2006, at 14:09, Luca Olivetti wrote: En/na Jens Vagelpohl ha escrit: The best way to install and run Zope is to have a dedicated user account and install and run it as that user. Most everything else will lead to problems and frustration. Only because the zope-2.8.6 tarball has wrong permissions. It worked before, it will work once you fix the permission on the installed zope. The advice has nothing to do with Zope 2.8.6 or any other tarball. Trying to be overly clever and not using a dedicated account for both installation and running your Zope doesn't add much security, it only adds complication. But one zope instance doesn't need write access to zope itself, only to the instance directory. It needs read access though, and it's not setup this way by the latest zope, so I think that the problem of the OP come from this change in permissions in the tarball. Unless you install software that lets users write to the file system through the web people cannot get to the filesystem. I usually install zope as root to /usr/local, then setup (or actually use the already set up) instances for two different users, one for production and the other for testing, so I don't want to install as the same user, since I don't want to duplicate the zope installation, only the instance, and that should be possible (in fact it has been until now) without compromising security. Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 ___ 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] installation security best practice question
On 14 Mar 2006, at 15:13, Luca Olivetti wrote: Unless you install software that lets users write to the file system through the web people cannot get to the filesystem. I usually install zope as root to /usr/local, then setup (or actually use the already set up) instances for two different users, one for production and the other for testing, so I don't want to install as the same user, since I don't want to duplicate the zope installation, only the instance, and that should be possible (in fact it has been until now) without compromising security. My point was that the security you speak of is illusory. You don't win anything. jens ___ 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] importing error
Hi all, I had taken a class using zope last summer and had worked on a project, on completion of the class, I exported my project folder via the zmi interface. I have tried to load it on to my local zope instance and it does not import. I can import files into it with out a problem, but for some reason the folder does not import, I get a page can not be displayed error. I do not know whta products are missing if any, as fas as the Prof said, the only thing I needed way Mysql installed, which I have and I have linked it to zope. still no luck I have tried inporting it into a different folder adn intot he root directory with no luck. does anyone have any suggestions thanks in advance -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3398691 Sent from the Zope - General forum at Nabble.com. ___ 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] importing error
--On 14. März 2006 07:38:21 -0800 wavemaster2000 [EMAIL PROTECTED] wrote: Hi all, I had taken a class using zope last summer and had worked on a project, on completion of the class, I exported my project folder via the zmi interface. I have tried to load it on to my local zope instance and it does not import. I can import files into it with out a problem, but for some reason the folder does not import, I get a page can not be displayed error. I do not know whta products are missing if any, as fas as the Prof said, the only thing I needed way Mysql installed, which I have and I have linked it to zope. If there is an error you should find additional information including a traceback in /error_log. You must provide these informations for getting help. -aj --- - Andreas JungZOPYX Ltd. Co KG- - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com, www.zopyx.de - --- pgpKVgpdwl7C3.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 )
[Zope] Re: AttributeError on SESSION
Okay ... I figure I've probably managed to really hose up my Zope instance somehow but I can't figure out what it would be. Whenever I'm trying to access the SESSION data, I get an AttributeError on SESSION. This used to work for me and on another Zope instance I have it does indeed work. I used the session test PythonScript from The Zope Book, as follows: To follow up on this, I'm not sure why there was a problem here but I ended up deleting re-adding the session data manager. Should have been one of the first things I tried, but Anyways, it works now. Thanks ___ 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] importing error
this is what I found on the traceback 2006-03-14T10:42:06 ERROR Zope Could not import Products.ZMySQLDA Traceback (most recent call last): File C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py, line 695, in import_product product=__import__(pname, global_dict, global_dict, silly) File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py, line 91, in ? import DA File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py, line 92, in ? from db import DB File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py, line 89, in ? import _mysql ImportError: DLL load failed: The specified module could not be found. -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3399075 Sent from the Zope - General forum at Nabble.com. ___ 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] importing error
--On 14. März 2006 07:53:50 -0800 wavemaster2000 [EMAIL PROTECTED] wrote: this is what I found on the traceback 2006-03-14T10:42:06 ERROR Zope Could not import Products.ZMySQLDA Traceback (most recent call last): File C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py, line 695, in import_product product=__import__(pname, global_dict, global_dict, silly) File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py, line 91, in ? import DA File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py, line 92, in ? from db import DB File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py, line 89, in ? import _mysql ImportError: DLL load failed: The specified module could not be found. Well, this message is obvious: you don't have mysql-python installed or the installation is broken. -aj --- - Andreas JungZOPYX Ltd. Co KG- - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com, www.zopyx.de - --- pgpplUCwiYJep.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 )
[Zope] to hide a portlet for certain groups
hello, I have several portlets, and several user groups. now I want to hide the portlet for some groups, and show it to some others. I found this site: http://64.233.179.104/search?q=cache:y8smCcbQ9TAJ:zope.groupsense.co.nz/grou psense.co.nz/zwiki/PersonalisingAccess+tal:condition+grouphl=nlgl=bect=cl nkcd=4 so I tried: html xmlns:tal=http://xml.zope.org/namespaces/tal; xmlns:metal=http://xml.zope.org/namespaces/metal; i18n:domain=plone body div metal:define-macro=portlet div class=portlet id=portlet-partners tal:condition=python: 'partners' in user.getGroups() ... but it doesn't work. now, when I log in as a member of the 'partners' group, the portlet doesn't show, when I log in as a member of another group, it doesn't show either, and when I look at the site as an anonymous user, ... I get an error, thanks in advance, Olivier here's the traceback: Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 175, in publish_module_standard Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish Module ZPublisher.Publish, line 132, in publish Module Zope.App.startup, line 204, in zpublisher_exception_hook Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.CMFCore.FSPageTemplate, line 191, in _exec Module Products.CMFCore.FSPageTemplate, line 124, in pt_render Module Products.PTProfiler.ProfilerPatch, line 66, in __patched_render__ Module Products.PageTemplates.PageTemplate, line 96, in pt_render FSPageTemplate at /pss-ccs/logged_out Module TAL.TALInterpreter, line 190, in __call__ Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 671, in do_useMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 702, in do_defineSlot Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 637, in do_condition Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 702, in do_defineSlot Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 671, in do_useMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 637, in do_condition Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 613, in do_loop_tal Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 637, in do_condition Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 409, in do_optTag_tal Module TAL.TALInterpreter, line 394, in do_optTag Module TAL.TALInterpreter, line 389, in no_tag Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 671, in do_useMacro Module TAL.TALInterpreter, line 234, in interpret Module TAL.TALInterpreter, line 636, in do_condition Module Products.PageTemplates.TALES, line 221, in evaluate URL: /pss-ccs/portal_skins/custom/portlet_partners Line 11, Column 6 Expression: PythonExpr 'partners' in user.getGroups() Names: {'container': PloneSite instance at 593e91a0, 'context': PloneSite instance at 593e91a0, 'default': Products.PageTemplates.TALES.Default instance at 0x5634680c, 'here': PloneSite instance at 593e91a0, 'loop': SafeMapping instance at 5b738f30, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x563462cc, 'nothing': None, 'options': {'args': ()}, 'repeat': SafeMapping instance at 5b738f30, 'request': HTTPRequest, URL=http://www.naturalsciences.be/pss-ccs/logged_out, 'root': Application instance at 571676e0, 'template': FSPageTemplate at /pss-ccs/logged_out, 'traverse_subpath': [], 'user': Anonymous User} Module Products.PTProfiler.ProfilerPatch, line 25, in __patched_call__ Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ __traceback_info__: 'partners' in
Re: [Zope] installation security best practice question
En/na Jens Vagelpohl ha escrit: On 14 Mar 2006, at 15:13, Luca Olivetti wrote: [...] the same user, since I don't want to duplicate the zope installation, only the instance, and that should be possible (in fact it has been until now) without compromising security. My point was that the security you speak of is illusory. You don't win anything. I win 58M of space (since I install zope only once), and I lose nothing (unless you're saying that the product of ./configure; make; make install is a security problem if world readable). Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 ___ 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] importing error
I had MySQLdb (MySQL for Python) 0.9.1, downloaded another one and will try it out, will post backa s soon as I am done -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3399566 Sent from the Zope - General forum at Nabble.com. ___ 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] importing error
didnt seem to help, I got the same error, I am running python 2.4 and I downloaded and installed Mysql for python 1.20 2006-03-14T11:22:26 ERROR Zope Could not import Products.ZMySQLDA Traceback (most recent call last): File C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py, line 695, in import_product product=__import__(pname, global_dict, global_dict, silly) File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py, line 91, in ? import DA File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py, line 92, in ? from db import DB File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py, line 89, in ? import _mysql ImportError: DLL load failed: The specified module could not be found. -- 2006-03-14T11:22:27 INFO Zope Ready to handle requests -- 2006-03-14T11:22:38 WARNING ZODB Could not import class 'PloneFolder' from module 'Products.CMFPlone.PloneFolder' -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3399845 Sent from the Zope - General forum at Nabble.com. ___ 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: installation security best practice question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca Olivetti wrote: En/na Jens Vagelpohl ha escrit: On 14 Mar 2006, at 15:13, Luca Olivetti wrote: [...] the same user, since I don't want to duplicate the zope installation, only the instance, and that should be possible (in fact it has been until now) without compromising security. My point was that the security you speak of is illusory. You don't win anything. I win 58M of space (since I install zope only once), and I lose nothing (unless you're saying that the product of ./configure; make; make install is a security problem if world readable). Note that I think the original poster must not have done 'make install', but rather was using an inplace build directly from the unpacked tarball: the install process would have fixed up the permissions otherwise. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEFvMW+gerLs4ltQ4RAj+3AJ9tLsowf2algCaDuBmn5NUQUQgJegCgkEnO 4IXSI8Q4ORBMNcJy9j6SPXc= =HTIJ -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 )
Re: [Zope] importing error
You're running on Windows? The windows zope installer comes with its own Python. I think you have to make sure that the mysql extension gets installed for the right python. Sorry, I don't run windows so I can't suggest anything more detailed. -PW On Tue, Mar 14, 2006 at 08:28:32AM -0800, wavemaster2000 wrote: didnt seem to help, I got the same error, I am running python 2.4 and I downloaded and installed Mysql for python 1.20 2006-03-14T11:22:26 ERROR Zope Could not import Products.ZMySQLDA Traceback (most recent call last): File C:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py, line 695, in import_product product=__import__(pname, global_dict, global_dict, silly) File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\__init__.py, line 91, in ? import DA File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\DA.py, line 92, in ? from db import DB File C:\Program Files\Zope-2.8.1-final\lib\python\Products\ZMySQLDA\db.py, line 89, in ? import _mysql ImportError: DLL load failed: The specified module could not be found. -- 2006-03-14T11:22:27 INFO Zope Ready to handle requests -- 2006-03-14T11:22:38 WARNING ZODB Could not import class 'PloneFolder' from module 'Products.CMFPlone.PloneFolder' -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3399845 Sent from the Zope - General forum at Nabble.com. ___ 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 ) -- Paul Winkler http://www.slinkp.com ___ 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] importing error
hey Bert, I tried what you suggested and no luck -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3401665 Sent from the Zope - General forum at Nabble.com. ___ 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] importing error
--On 14. März 2006 10:01:56 -0800 wavemaster2000 [EMAIL PROTECTED] wrote: hey Bert, I tried what you suggested and no luck You should check if there is something like a _mysql.* file ...try to locate it move and try to move it e.g. the lib/python directoy of your Zope installation. -aj --- - Andreas JungZOPYX Ltd. Co KG- - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com, www.zopyx.de - --- pgpNLmhEXNmHT.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] importing error
these are the files that I had copied into C:\Program Files\Zope-2.8.1-final/lib/python/ MySQLdb _mysql.pyd _mysql.exceptions.py _mysql.exceptions.pyc and ZMySQLDA to: C:\Program Files\Zope-2.8.1-final/lib/python/Products/ -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3401965 Sent from the Zope - General forum at Nabble.com. ___ 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] Error: gaierror: (-2, 'Name or service not known')
Hi! I get the following error: *gaierror: (-2, 'Name or service not known')* I've seen error: 'Name or service not known' when I was working with sending email with smtplib. It was a problem with lack of entry in /etc/hosts on my system (linux). I don't know what exactly you're doing but I think it is something with your network setup. -- Maciej Wisniowski ___ 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] No module named rotor
Hello ... I've been trying to put together a relatively small ZMI based product. When I go to distribute it, I click on the distribution tab, select to allow redistribution and then create distribution archive, as per the Zope Book. (And I've also tried this w/o allowing redistribution, as well as tried this on the toy Zoo Exhibit product in the Zope Book). When I click on create distribution archive I get: * Module ZPublisher.Publish, line 175, in publish_module_standard * Module ZPublisher.Publish, line 132, in publish * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module App.Product, line 489, in index_html * Module App.Product, line 200, in _distribution ImportError: No module named rotor This also crashes Zope entirely (needs to be restarted). This is with Zope 2.7.3 with python 2.4.1. From what I've read, the rotor module was deprecated in python 2.3 and then removed in python 2.4, which would be why I don't have the rotor module. One page I found: http://savannah.nongnu.org/bugs/?func=detailitemitem_id=14434 Seems to describe exactly the situation I'm having. My question is what is the appropriate workaround here? Is this considered an issue w/ the version of Python I'm using or the version of Zope? One piece of advice I read (involving importing rotor but not w/ Zope) was to downgrade to Python 2.3 but I'd prefer not to do that. If I upgrade Zope will that remove the dependence on the rotor module? Thanks -J ___ 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] No module named rotor
--On 14. März 2006 14:12:53 -0500 Jeff Gentry [EMAIL PROTECTED] wrote: My question is what is the appropriate workaround here? Fix the related code and replace the rotor with something similar (never seen any code that uses enigma-style encryption for _serious_ reasons). Is this considered an issue w/ the version of Python I'm using or the version of Zope? One piece of advice I read (involving importing rotor but not w/ Zope) was to downgrade to Python 2.3 but I'd prefer not to do that. I If you run Zope 2.7 or 2.8 then using Python 2.4 is and was neither supported nor recommended. Zope 2.9 _requires_ Python 2.4. As stated above: fix the related code or kick the related product. -aj --- - Andreas JungZOPYX Ltd. Co KG- - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com, www.zopyx.de - --- pgpElmVz2U3Wi.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] No module named rotor
Fix the related code and replace the rotor with something similar (never seen any code that uses enigma-style encryption for _serious_ reasons). It is unclear to me why they were using that in the first place. I'm not sure which you mean by 'the related code', you mean the internal Zope code yes? (Since as far as I can tell it isn't being triggered by something I've written). If you run Zope 2.7 or 2.8 then using Python 2.4 is and was neither supported nor recommended. Zope 2.9 _requires_ Python 2.4. Ah ... In the 2.7 version of the zope book I saw this: 'Zope 2.7 requires Python 2.3.2 or later' and assumed that the 'or later' was inclusive of later Python versions beyond 2.3.x. Thanks. -J ___ 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] No module named rotor
--On 14. März 2006 14:34:27 -0500 Jeff Gentry [EMAIL PROTECTED] wrote: Fix the related code and replace the rotor with something similar (never seen any code that uses enigma-style encryption for _serious_ reasons). It is unclear to me why they were using that in the first place. I'm not sure which you mean by 'the related code', you mean the internal Zope code yes? (Since as far as I can tell it isn't being triggered by something I've written). Zope does not use the rotor module and I don't think that it used the rotor module in the past. -aj --- - Andreas JungZOPYX Ltd. Co KG- - E-mail: [EMAIL PROTECTED] Web: www.zopyx.com, www.zopyx.de - --- pgp4iMT4ciIpi.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] No module named rotor
Rotor was removed form python for a variety of reasons (see the mailing list archives) but one of them was that it's a terrible way to do any sort of encryption. There are numberous python extensions that do encryption and decryption which could be incorporated into your product. Alternatively, you can add rotor as a python script into your product-- and interesting programming project smile. Or you can add back in the rotormodule as a Python Extension. The rotormodule can be picked up for the Module directory of the Python 1.5 directory. On Tue, 14 Mar 2006, Jeff Gentry wrote: Hello ... I've been trying to put together a relatively small ZMI based product. When I go to distribute it, I click on the distribution tab, select to allow redistribution and then create distribution archive, as per the Zope Book. (And I've also tried this w/o allowing redistribution, as well as tried this on the toy Zoo Exhibit product in the Zope Book). When I click on create distribution archive I get: * Module ZPublisher.Publish, line 175, in publish_module_standard * Module ZPublisher.Publish, line 132, in publish * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module App.Product, line 489, in index_html * Module App.Product, line 200, in _distribution ImportError: No module named rotor This also crashes Zope entirely (needs to be restarted). This is with Zope 2.7.3 with python 2.4.1. From what I've read, the rotor module was deprecated in python 2.3 and then removed in python 2.4, which would be why I don't have the rotor module. One page I found: http://savannah.nongnu.org/bugs/?func=detailitemitem_id=14434 Seems to describe exactly the situation I'm having. My question is what is the appropriate workaround here? Is this considered an issue w/ the version of Python I'm using or the version of Zope? One piece of advice I read (involving importing rotor but not w/ Zope) was to downgrade to Python 2.3 but I'd prefer not to do that. If I upgrade Zope will that remove the dependence on the rotor module? Thanks -J ___ 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 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] No module named rotor
Zope does not use the rotor module and I don't think that it used the rotor module in the past. Extensions.py and Product.py both have 'import rotor' calls in Zope 2.7.3-0, from Zope-2.7.3-0/lib/python/App in my installation. ___ 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] No module named rotor
Rotor was removed form python for a variety of reasons (see the mailing list archives) but one of them was that it's a terrible way to do any sort of encryption. There are numberous python extensions that do encryption and decryption which could be incorporated into your product. Alternatively, you can add rotor as a python script into your product-- and interesting programming project smile. As I said elsewhere, I am not doing any encryption. I get the same error using the sample ZooExhibit product in the 2.7 book. My error is coming from Zope files as near as I can tell. Until yesterday evening I had never heard of the rotor module. :) Actually I just downloaded the 2.9.1 tarball and there are references to rotor in there as well: [EMAIL PROTECTED] App]$ pwd /home/jgentry/Zope-2.9.1/Dependencies/App-Zope-2.9.1/App [EMAIL PROTECTED] App]$ grep rotor * Extensions.py:import rotor Extensions.py:rotor.newrotor(prod_id +' shshsh').decrypt(open(p,'rb').read()) Product.py:import rotor Product.py:rot=rotor.newrotor(id+' shshsh') Product.py:import rotor Product.py:rot=rotor.newrotor(rot) -J ___ 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] No module named rotor
On Tue, 14 Mar 2006, Andreas Jung wrote: Scary enough, but obviously this is dead code...otherwise Zope would not work. Okay ... I will try upgrading Zope (which I've been meaning to do anyways) and see if that changes things. Thanks -J ___ 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] localfs cannot save (ValueError: assigning to _p_jar is not supported )
Luca Dall'Olio wrote at 2006-3-14 12:26 +0100: I have created some localfs directory. I can see files from filesystem and delete them from Zope, but I cannot upload them or modify text files from Zope, because I get the following error : Traceback (innermost last): * Module ZPublisher.Publish, line 113, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.LocalFS.LocalFS, line 3, in manage_edit * Module OFS.Image, line 449, in manage_edit * Module ZODB.Connection, line 853, in register ValueError: assigning to _p_jar is not supported LocalFS should not touch persistency attributes at all. Almost surely, the wrapper used by LocalFS for a File is a bit too near OFS.File which was designed for ZODB storage (and not a filesystem proxy). ... Is localfs still supported? LocalFS was always a third party product. The first author has LocalFS meanwhile abandoned. The latest adaptions to LocalFS where done by some Andreas. Maybe, he is willing to continue to support LocalFS. -- 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] importing error
I have reinstalled zope, but now when I try to import, the files in the import folder dont show up in the drop down box, the box does not show up, I know there somethign you have to do to get zope initialize importing stuff, but I cant remember what exactly it is -- View this message in context: http://www.nabble.com/importing-error-t1279324.html#a3404114 Sent from the Zope - General forum at Nabble.com. ___ 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] No module named rotor
On 3/14/06, Jeff Gentry [EMAIL PROTECTED] wrote: Ah ... In the 2.7 version of the zope book I saw this: 'Zope 2.7 requires Python 2.3.2 or later' and assumed that the 'or later' was inclusive of later Python versions beyond 2.3.x. Which would have been impossible since they didn't exist then. As a good reason as any not to write or later. :-) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ 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] No module named rotor
On Tue, 14 Mar 2006, Jeff Gentry wrote: On Tue, 14 Mar 2006, Andreas Jung wrote: Scary enough, but obviously this is dead code...otherwise Zope would not work. Okay ... I will try upgrading Zope (which I've been meaning to do anyways) and see if that changes things. So I upgraded to Zope 2.9.1, using Python 2.4.2, and get the exact same problem. I should note that if I make an empty product, ie just add product, enter it and go to distribute that I get this same error. exceptions.ImportError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 188, in publish_module_standard * Module ZPublisher.Publish, line 145, in publish * Module ZPublisher.Publish, line 114, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module App.Product, line 491, in index_html * Module App.Product, line 202, in _distribution ImportError: No module named rotor ___ 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] No module named rotor
Jeff, Looks like you've happened on a real bug. rotor() is used when building and loading pyp files but is no longer provided with Python. You should file a bug report. lib/python/App/Extensions.py lib/python/App/Product.py both contain references. If you do not need cross Zope compatibility you should be able to safely remove the calls to rotor objects. Alternatively, you can write a rotor object which does nothing and use that. Rotor is used to encrypt and decrypt products. This is an obsolete feature of Zope and generally not used (hence, no bug reports). If you must have compatability, you can download Python1.5 and take the rotormodule extension (it's in C) and use it. You'll possibly have to upgrade the API to conform with Zope 2.9.1 and Python 2.4.2. Me, I'd strip out rotor and be done with it. On Tue, 14 Mar 2006, Jeff Gentry wrote: On Tue, 14 Mar 2006, Jeff Gentry wrote: On Tue, 14 Mar 2006, Andreas Jung wrote: Scary enough, but obviously this is dead code...otherwise Zope would not work. Okay ... I will try upgrading Zope (which I've been meaning to do anyways) and see if that changes things. So I upgraded to Zope 2.9.1, using Python 2.4.2, and get the exact same problem. I should note that if I make an empty product, ie just add product, enter it and go to distribute that I get this same error. exceptions.ImportError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 188, in publish_module_standard * Module ZPublisher.Publish, line 145, in publish * Module ZPublisher.Publish, line 114, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module App.Product, line 491, in index_html * Module App.Product, line 202, in _distribution ImportError: No module named rotor -- ___ 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: No module named rotor
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Gentry wrote: Zope does not use the rotor module and I don't think that it used the rotor module in the past. Extensions.py and Product.py both have 'import rotor' calls in Zope 2.7.3-0, from Zope-2.7.3-0/lib/python/App in my installation. It was there to support a (lame) opaque product distribution (for Lever / ZClass products). Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEFzp8+gerLs4ltQ4RAtLIAKDEzS9slAeJzlmnyQ1R8p4WA6TDIgCgphIw xG5w1g20dJ1qlv4YiJCpiX0= =euVv -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 )
Re: [Zope] No module named rotor
Hi Dennis ... both contain references. If you do not need cross Zope compatibility you should be able to safely remove the calls to rotor objects. I was just looking at that. By cross Zope compatibility do you mean ability to give the tarball to other people for installation in their Zope? If so, then yes that will be a bit of a problem (The intention here was to distribut to a small group of people). My understanding though was that the tarball that comes out of the distribution generator was to just be unrolled in the Zope instance's Product directory much like python based products though, correct? In which case once I manage to get the built tarball it should be A-OK regardless? that. Rotor is used to encrypt and decrypt products. This is an obsolete feature of Zope and generally not used (hence, no bug reports). This is something that I don't understand. As far as I can tell I'm not in any shape/way/form requesting encryption and briefly looking at the appropriate files in the Zope directory I don't see how they couldn't be triggered. Is there indeed some way to physically avoid this or do people simply not build products via the ZMI - IE is building of ZMI based Products the obsolete feature or is the rotor encryption? Me, I'd strip out rotor and be done with it. I was just getting ready to do just that and see what happens at the other end. :) Thanks -J ___ 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] management of project
Jean Jordaan wrote: Hi gus Is there a program in zope for management project!!! Here's a basic one: http://plone.org/products/upfrontproject/ Hi Jean Does anyone know of a good project management tool for zope/plone? and other!!! thanks gus ___ 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] Re: No module named rotor
--On 14. März 2006 16:49:48 -0500 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff Gentry wrote: Zope does not use the rotor module and I don't think that it used the rotor module in the past. Extensions.py and Product.py both have 'import rotor' calls in Zope 2.7.3-0, from Zope-2.7.3-0/lib/python/App in my installation. It was there to support a (lame) opaque product distribution (for Lever / ZClass products). Now that ZClasses are deprecated in Zope 2.10 I will remove the related distribution code from the trunk. ZClasses-adieu, Andreas pgpVUZ92a9guo.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] Re: installation security best practice question
En/na Tres Seaver ha escrit: Note that I think the original poster must not have done 'make install', but rather was using an inplace build directly from the unpacked tarball: the install process would have fixed up the permissions otherwise. No, it doesn't (with 2.8.6) Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 ___ 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-DB] DCOracle2 on AIX5.2 -- issues
[EMAIL PROTECTED] wrote at 2006-3-13 13:32 -0500: ... However, during compilation of cdo2.o, I did encounter these symptoms: cc_r -DNDEBUG -O -I/oracle/product/9.2.0.6/rdbms/demo -I/oracle/product/9.2.0.6/network/public -I/oracle/product/9.2.0.6 /plsql/public -I/oracle/product/9.2.0.6/rdbms/public -I/oracle/product/8.1.7.2/rdbms/demo -I/oracle/product/8.1.7.2/rdbms/public -I/app/sandbox/s625662/installed/include/python2.4 -c src/dco2.c -o build/temp.aix-5.2-2.4/src/dco2.o -brtl -bexpall -DORACLE8i src/dco2.c, line 5004.38: 1506-280 (W) Function argument assignment between types unsigned long* and long* is not allowed. src/dco2.c, line 6066.25: 1506-068 (W) Operation between types short* and unsigned short* is not allowed. src/dco2.c, line 6109.25: 1506-068 (W) Operation between types short* and unsigned short* is not allowed. Obviously, your compiler does not like thing (to be precise: the implicit conversion between short and unsigned short) that the author did not expect to hurt compilers (and which most compilers accept). Your options: * use a different (less strict) compiler * fix the code (such that even your strict compiler feels happy). -- Dieter ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db