[Zope3-Users] Question about menu.py

2009-02-03 Thread Simon Elbaz
-surely- have missed something ? Thanks for your explanation Simon Elbaz ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Question about menu.py

2009-02-04 Thread Simon Elbaz
nt/backup_software/virtualgrok/Menutest/etc/site.zcml", line 4.2-4.32 ZopeXMLConfigurationError: File "/mnt/backup_software/virtualgrok/Menutest/src/menutest/configure.zcml", line 5.2-5.27 InvalidInterface: Concrete attribute, __implements_advice_data__ Thanks for your h

[Zope3-Users] test writing with z3c.testsetup

2009-03-15 Thread Simon Elbaz
Hi, I have some difficulties to run tests with z3c.testsetup. Running cdcadama/bin/test yields this output: bash-3.00$ cdcadama/bin/test -vvv Running tests at level 1 Running unit tests: Running: /home/simon/.buildout/eggs/z3c.testsetup-0.2.1-py2.4.egg/z3c/testsetup/basicsetup.txt (0.140 s)

Re: [Zope3-Users] test writing with z3c.testsetup

2009-03-17 Thread Simon Elbaz
Hi, I've finally been able to solve the problem after upgrading to z3c.testsetup>=0.3 and zope.testing>=3.7.1. It is maybe the download list http://download.zope.org/distribution/ that is not up to date. Regards, Simon On Mon, Mar 16, 2009 at 12:15 AM, Simon Elbaz wrote: > Hi,

[Zope3-Users] Working with the last version of a module

2009-03-26 Thread Simon Elbaz
Hi, I need to use z3c.form and the last downloadable release is 1.9.0 in the python package index. However, I would like to use the last version of z3c.form (trunk revision in svn.zope.org). How I could do that ? Thanks for your help Simon ___ Zope3-use

Re: [Zope3-Users] Working with the last version of a module

2009-03-26 Thread Simon Elbaz
t; [versions] > z3c.form = > > (note the z3c.form version is specifically left blank so it uses the > develop egg) > > 2009/3/26 Simon Elbaz : > > Hi, > > I need to use z3c.form and the last downloadable release is 1.9.0 in the > > python package index. >

[Zope3-Users] Executing code a server startup

2009-05-17 Thread Simon Elbaz
Hi, I am trying to execute some code at zope3 server startup. Zope3 posts hint using a IProcessStartingEvent subscriber in configure.zcml. Here is an extract of configure.zcml: and the handler definition: def onStartup(event): print 'hello' The problem is that the function is not call

Re: [Zope3-Users] Executing code a server startup

2009-05-18 Thread Simon Elbaz
It is now better: the event DatabaseOpened is caught at startup. However, it is surprising that ProcessStartingEvent is not caught. Simon On Mon, May 18, 2009 at 6:46 AM, Andreas Jung wrote: > On 18.05.09 00:42, Simon Elbaz wrote: > > Hi, > > I am trying to execute some code

[Zope3-Users] z3c.form: Setting HTTP_AUTHORIZATION in header

2009-05-25 Thread Simon Elbaz
Hi, I would like to setup authentication in an application using HTTPBasicAuthCredentialsPlugin. For that, I need to set HTTP_AUTHORIZATION environment variable. How could I do that from within the add z3c.form method for example? Thanks for your help Simon ___

Re: [Zope3-Users] z3c.form: Setting HTTP_AUTHORIZATION in header

2009-05-31 Thread Simon Elbaz
on* * On Tue, May 26, 2009 at 12:22 AM, Simon Elbaz wrote: > Hi, > I would like to setup authentication in an application using > HTTPBasicAuthCredentialsPlugin. For that, I need to set HTTP_AUTHORIZATION > environment variable. > > How could I do that from within the add z3c.form m

Re: [Zope3-Users] Assigning programmatically a Role to a Principal

2009-06-04 Thread Simon Elbaz
Hi, I have a similar difficulty. In site.zcml, the role 'zope.Member' is defined and a permission is granted: How can I assign a role to a principal who is created on the fly: a_principal = zope.app.authentication.principalfolder.InternalPrincipal(login=tab[0].encode('utf-8'), password=tab[1].e

[Zope3-Users] Paste sending 'Authentication Required' popup

2009-06-11 Thread Simon Elbaz
Hi, I am trying to set a session credentials plugins in an application. A request on 'http://localhost:8080/' sends me to the login form as defined in the plugin. Whereas, a request on 'http://localhost:9030/++skin++Login/@@search.html' triggers the 'Authentication Required' popup (realm Zope). I

Re: [Zope3-Users] Paste sending 'Authentication Required' popup

2009-06-11 Thread Simon Elbaz
zed.py(32)__call__() -> self.request.unauthorized('basic realm="Zope"') * I wonder how zope gets into this piece of code and don't use ./zope.app.exception-3.5.0-py2.5.egg/zope/app/exception/browser/unauthorized.py Thanks for your help Simon On Thu, Jun 11, 2009 at 4:4

[Zope3-Users] Unauthorized object not the same

2009-06-13 Thread Simon Elbaz
Hi, I am trying to set a SessionCredentialsPlugin in a application. When I try to access the following URL http://localhost:9030/++skin++Login/@@search.html, the result of the call: > /home/simon/.buildout/eggs/zope.app.publication-3.7.0-py2.5.egg/zope/app/publication/zopepublication.py(322)handle

Re: [Zope3-Users] Unauthorized object not the same

2009-06-15 Thread Simon Elbaz
Sun, Jun 14, 2009 at 1:27 AM, Simon Elbaz wrote: > Hi, > I am trying to set a SessionCredentialsPlugin in a application. > > When I try to access the following URL > http://localhost:9030/++skin++Login/@@search.html, the result of the call: > > > /home/simon/.buildout/eggs/zope

Re: [Zope3-Users] Unauthorized object not the same

2009-06-17 Thread Simon Elbaz
n Mon, Jun 15, 2009 at 6:02 PM, Simon Elbaz wrote: > Hi, > I have added : > > in the file > browser/configure.zcml and the result is the same. > > I have identified the function that makes the difference, it is: > > > /home/simon/.buildout/eggs/zope.interface-3.5.1-

Re: [Zope3-Users] logging in in interactive shell?

2009-06-23 Thread Simon Elbaz
Hi, the way I've seen to get the root Folder is: from zope.site import folder r_folder = folder.rootFolder() Regards Simon On Tue, Jun 23, 2009 at 9:36 AM, Edward Zwart wrote: > Is there an easy way to use the interactive shell as though I were the > logged in admin user? > > Following the do

[Zope3-Users] Using homefolder in a TALES expression

2009-07-09 Thread Simon Elbaz
Hi, I'm trying to reproduce the example given in zope.app.homefolder/trunk/src/zope/app/homefolder/README.txt and I have some difficulties to understand. The error traceback seems to say that principal cannot be traversed to the homefolder. The used template test_homefolder.pt looks like: http://w

[Zope3-Users] Question about z3c:layout

2009-07-15 Thread Simon Elbaz
Hi, the question I have is: when a z3c.form is rendered, how can I tell to zope3 to use z3c.pagelet.browser.BrowserPagelet.__call__ and not z3c.form.form.Form.__call__ in order to use the layout defined by a global z3c:layout in zcml ? Thanks for your help Simon The code part (copied from P. Card

Re: [Zope3-Users] Question about z3c:layout

2009-07-15 Thread Simon Elbaz
You pointed the right error: I was using z3c.form.form and not z3c.formui.form. Thks On Wed, Jul 15, 2009 at 4:45 PM, Michael Howitz wrote: > Am 15.07.2009 um 16:10 schrieb Simon Elbaz: > >> Hi, >> the question I have is: >> when a z3c.form is rendered, how ca

[Zope3-Users] Accessing homefolder through an URL

2009-09-30 Thread Simon Elbaz
Hi, I am using the zope.app.homefolder in an application. As explained in the README, IPathAdapter + TALESgive access to the homefolder. What i would like to do is to access the homefolder through an URL (for example, a link to an element of the homefolder). How could i do that ? Thanks for your

[Zope3-Users] z3c.traverser and stackinfo

2009-10-20 Thread Simon Elbaz
Hi, I am trying to use stackinfo module from z3c.traverser and don't understand the following error because ITraversalStackInfo should adapt BrowserRequest class according to (http://svn.zope.org/z3c.traverser/trunk/src/z3c/traverser/stackinfo/consumer.py?rev=95983&view=auto): - __traceback_

Re: [Zope3-Users] z3c.traverser and stackinfo

2009-10-21 Thread Simon Elbaz
That was the problem ! :) Thx a lot Simon Dan Korostelev wrote: > 2009/10/21 Simon Elbaz : > >> I am trying to use stackinfo module from z3c.traverser and don't >> understand the following error because ITraversalStackInfo should adapt >> BrowserReques

[Zope3-Users] How to modify the action value in a form

2009-11-11 Thread Simon Elbaz
Hi, I access a z3c.form with the following url: http://localhost:9060/++skin++Adama/mysite/kv/object_portfolio/OBJ_REF1/hf A stack consumer (from z3c.traverser.stackinfo.consumer) consumes the arguments kv/object_portfolio/OBJ_REF1. Finally, in the rendered form, I get: http://localhost:9060/++

[Zope3-Users] LoginPassword error

2010-01-10 Thread Simon Elbaz
Hi, I've been quietly working with zope3 until I recently launched a buildout. Now, the following error occurs when trying to access the ZMI. Thanks for your help Simon 2010-01-11T14:11:15 ERROR SiteError http://localhost:9060/@@login.html Traceback (most recent call last): File "/home/simon/.

Re: [Zope3-Users] LoginPassword error

2010-01-12 Thread Simon Elbaz
After adding zope.login to configure.zcml, all is fine. Thanks Baiju. Baiju M wrote: > On Mon, Jan 11, 2010 at 6:45 PM, Simon Elbaz wrote: > >> Hi, >> I've been quietly working with zope3 until I recently launched a buildout. >> Now, the following error occurs

[Zope3-Users] How to make a field not modifiable ?

2010-05-25 Thread Simon Elbaz
Hi, I use the following interface: class ILettrage(IRecord): record_to_write = zope.schema.List( title= u'Record to write', description = u'Records written', required=False, value_type = zope.schema.Object(schema=IRecordLettree) ) This interface is used in

Re: [Zope3-Users] How to make a field not modifiable ?

2010-05-25 Thread Simon Elbaz
Hi, > Sorry my previous mail was incomplete. > I use the following interfaces: > * class IRecordLettree(zope.interface.Interface): t_sub_ref = zope.schema.TextLine( title=u"Sub Ref.", required=True) class ILettrage(zope.interface.Inter

[Zope3-Users] SVG files

2010-08-09 Thread Simon Elbaz
Hi all, I would like to know if there is a way to include SVG files into HTML pages. These files are dynamically generated and their name change. Thx for your help Simon ___ Zope3-users mailing list Zope3-users@zope.org https://mail.zope.org/mailman/list

Re: [Zope3-Users] SVG files

2010-08-10 Thread Simon Elbaz
Hi, the zope.browserresource package solved the issue. Simon On Mon, Aug 9, 2010 at 3:26 PM, Jonathan (dev101) wrote: > > > > > *From:* zope3-users-boun...@zope.org [mailto:zope3-users-boun...@zope.org] > *On Behalf Of *Simon Elbaz > *Sent:* August-09-10 9:12 AM > *To:

[Zope3-Users] z3c.formjs widgetselector customization

2011-02-13 Thread Simon Elbaz
Hi all, I use z3c.formjs in a project and would like to customize the selector id used into jsaction.handler for form field. Why ? because the z3c.formui templates add "-row" suffix to the widget id and I need also to add the "-row" suffix to the selector id in the event handler. I have attached a

Re: [Zope3-Users] Referencing objects

2011-02-21 Thread Simon Elbaz
Hi, here is what I have understood in zope3 security policy: On Mon, Feb 21, 2011 at 1:28 PM, Michael Seifert wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Am 04.02.2011 17:04, schrieb Thierry Florac: > > Hi, > > > > > > Le vendredi 4 février 2011, > > Michael Seifert a écrit :

[Zope3-Users] core dump with zope.interface and zope.security

2013-06-05 Thread Simon Elbaz
Hi, A developement zope server crashes with a segmentation fault on a unix server. I am trying to figure out how the error happens. If someone has already encountered the same error, thanks for any advices ... Here is the stack of the core: #0 0x0dfe8108 in PyDict_GetItem () from /usr/local/l

[Zope3-Users] label customisation

2013-07-13 Thread Simon Elbaz
form=StepAddForm) Thanks for your help Simon Elbaz ___ Zope3-users mailing list Zope3-users@zope.org https://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] label customisation

2013-07-19 Thread Simon Elbaz
Regards, Simon On Sun, Jul 14, 2013 at 3:12 AM, Simon Elbaz wrote: > Hi, > > In the z3c.form.AddForm, zope.schema.List field is rendered with > Add/Delete buttons. > > How to customize those labels ? > > My code does not have any effect: > AddAction = button.StaticButt