Re: [Zope] Zope2 - pro/contra

2015-03-04 Thread Eric Bréhault
Hello Sebastian, I guess the main problem is the future maintenance of Zope. For instance, it is pretty sure that nobody will invest the time needed to move it Python 3, and at some point it will probably be a problem. Eric On Wed, Mar 4, 2015 at 11:30 AM, Sebastian Tänzer wrote: > Hello ZOPE

Re: [Zope] Zopache = ZTK + Grok + ZMI

2014-07-30 Thread Eric Bréhault
Hello, Did you have a look to Substance D ? http://substanced.readthedocs.org/en/latest/ It is based on Pyramid, it uses a ZODB for storage, and it provides a ZMI like management interface. And you can use all the good ZCA stuff if you want to. Eric On Wed, Jul 30, 2014 at 12:56 PM, Christopher

Re: [Zope] How to add existing folder in Zope

2009-03-27 Thread Eric Bréhault
Hello, The best way to do it is probably to create a Zope product, and to put your js library into this product. Regards, Eric 2009/3/27 amol kumbhar : > Actually I want to use SmartClient for my web site and for this I have to > add the SmartClient Library folder into zope so using this I can

Re: [Zope] Unrestricted threads

2008-07-23 Thread Eric Bréhault
<[EMAIL PROTECTED]> wrote: > Le mardi 22 juillet 2008 à 19:43 +0200, Eric Bréhault a écrit : >> Hello Thierry, >> >> To schedule cron-like tasks on Zope, I use ZpCron: >> http://www.zope.org/Members/janik/ZpCron >> >> It works pretty fine (well, as far as y

Re: [Zope] Unrestricted threads

2008-07-22 Thread Eric Bréhault
Hello Thierry, To schedule cron-like tasks on Zope, I use ZpCron: http://www.zope.org/Members/janik/ZpCron It works pretty fine (well, as far as you do not use ZEO) and it allows to define the user you want to use to run such or such task, and the Zope security mechanisms are applied just like if

[Zope] Re: [Zope3-Users] is it possible to copy object b/w two zodb Database

2008-06-11 Thread Eric Bréhault
Hello, I do not know if you can open 2 ZODB but you can exchange objects between 2 instances: a method on instance A would export an object as zexp and stream it over http and a method on instance B would call this method on instance A, and would import the resulting zexp but there is maybe a sm

Re: [Zope] Progam To Write To PT

2007-12-05 Thread Eric Bréhault
Hello, is there any particular reason why you cannot make your program write its output in the ZODB and then access this content from a regular page template to display it properly ? Eric BREHAULT On Dec 5, 2007 8:19 PM, Victor Subervi <[EMAIL PROTECTED]> wrote: > Hi; > How do I programmaticall

Re: [Zope] Frustrated with Python and Frameworks. Zope, Grok, Django, CherryPy

2007-11-27 Thread Eric Bréhault
Hello, If you do not have time to program, and you want to build dynamic web sites, maybe you could use Zope2 with Plone, and just use the existing Plone products. Ok, you think "Plone is tooo much", but it should cover 99% of any basic dynamic web site features. Regards, Eric BREHAULT On Nov 2

Re: [Zope] character encoding

2007-11-09 Thread Eric Bréhault
Hello, Add a file named sitecustomize.py in python_path/lib/python/site-packages with the following code: import sys sys.setdefaultencoding('UTF-8') restart zope and it should fix your problem Eric On Nov 9, 2007 10:59 AM, adam molyneaux <[EMAIL PROTECTED]> wrote: > Hi > > I am currently havi

[Zope] ZCatalog indexes and unit testing

2007-07-26 Thread Eric Bréhault
Hello, I have created a ZCatalog object where I declare the following index: self.addIndex('featureType','FieldIndex') which works fine in my application But when I run it in my unit tests, I get the following error: self.addIndex('featureType','FieldIndex') File "/opt/Plone3/lib/py

Re: [Zope] Simple ZODB Search and Edit

2007-04-10 Thread Eric Bréhault
Hello, ZCatalog is already included in Zope (you will find it in zope/lib/python/Products/ZCatalog ) You will have to declare the objects' attributes as catalog indexes, and make sure you index or re-index any object after creation or modification. Regarding the rest, I am not sure to understan

Re: [Zope] smart development & debugging

2007-03-25 Thread Eric Bréhault
Hello, Marco's recommendations are very good, I would just add the following: - each developer works on his own instance, and commits his work in SVN or CVS, then everything must be regularly delivered in an integration instance where the latest current versions of all the developers can be teste

Re: [Zope] What is the best way to debug a Zope 2.62 application.

2007-03-19 Thread Eric Bréhault
You can launch Zope 2.6.2 from Python prompt: you set your PYTHONPATH to target zope/lib/python, then you launch python, then you just do this: from Zope import app root=app() (have a look here: http://www.zopelabs.com/cookbook/1054240694 ) Note: it works with 2.6, but if you want to to it with 2

Re: [Zope] build a safe proxy

2007-03-16 Thread Eric Bréhault
oh, cool ! I was not aware of that, so that's exactly what I need. Thanks, Eric BREHAULT On 3/16/07, Martijn Pieters <[EMAIL PROTECTED]> wrote: On 3/16/07, Eric Bréhault <[EMAIL PROTECTED]> wrote: > My understanding of PythonScripts is it is a way to allow the import of s

Re: [Zope] build a safe proxy

2007-03-16 Thread Eric Bréhault
My understanding of PythonScripts is it is a way to allow the import of such or such module, and the use of such or such method in those modules, but it doesn't prevent the access to such or such attributes on existing objects, does it ? Eric BREHAULT On 3/16/07, Andrew Milton <[EMAIL PROTECTED

Re: [Zope] build a safe proxy

2007-03-16 Thread Eric Bréhault
restricted. That is precisely what I am working on. Eric BREHAULT http://www.brehault.net/plomino/ On 3/15/07, Jens Vagelpohl <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15 Mar 2007, at 21:19, Eric Bréhault wrote: > What would you recommend ? What is the

Re: [Zope] build a safe proxy

2007-03-15 Thread Eric Bréhault
Jung <[EMAIL PROTECTED]> wrote: --On 15. März 2007 16:33:56 +0100 Eric Bréhault <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to build a safe proxy to wrap the Plone portal object in order > to control what is allowed or not. You&#

[Zope] build a safe proxy

2007-03-15 Thread Eric Bréhault
Hello, I am trying to build a safe proxy to wrap the Plone portal object in order to control what is allowed or not. Here is my code: class SafeProxy: def __init__(self, obj): self.__dict__['_obj'] = obj def __getattr__(self, attr): attributes_whitelist=['portal_membership',

Re: [Zope] problem with manage_importObject

2007-03-12 Thread Eric Bréhault
Hello, What about just doing the import yourself: container._importObjectFromFile(f) (rather than using the ZMI's manage_importObject method through a zope client connection) ? Eric BREHAULT On 3/12/07, Fabio Marcone <[EMAIL PROTECTED]> wrote: Jens Vagelpohl wrote: >>> I have a problem using

Re: [Zope] safe read-only access to acquisition parent objects

2007-03-07 Thread Eric Bréhault
3/6/07, Dieter Maurer <[EMAIL PROTECTED]> wrote: Eric Bréhault wrote at 2007-3-5 13:14 +0100: >I have build a Plone product which allows users to enter a piece of Python >code. >This way, users can easily define their own actions without changing the >product source code. > >T

[Zope] safe read-only access to acquisition parent objects

2007-03-05 Thread Eric Bréhault
Hello, I have build a Plone product which allows users to enter a piece of Python code. This way, users can easily define their own actions without changing the product source code. Those pieces of code are executed using the exec Python command. The problem is that nothing prevents the user to