Re: [Zope3-Users] Need help with a Five / Viewlet Configuration Problem

2009-02-24 Thread kevin gill
It turned out that the problem was the viewlet manager. It was using the zope.viewlet.manager instead of the Five.viewlet.manager baseclasses. Once I changed the viewlet manager it worked fine. Kevin I am getting a ForbiddenAttribute error on 'render' when I try to display a viewlet in my

Re: [Zope3-Users] Need help with an urgent problem

2009-01-08 Thread kevin gill
On Wed, Jan 07, 2009 at 01:28:24PM -, kevin gill wrote: I am having a problem on my live site. The problem is todo with a DataBase connector object which ends up in an incorrect state: This is the important part of the traceback. File /home/kevin/src/castingzone.tables/castingzone

[Zope3-Users] Need help with an urgent problem

2009-01-07 Thread kevin gill
Hi, I am having a problem on my live site. The problem is todo with a DataBase connector object which ends up in an incorrect state: This is the important part of the traceback. File /home/kevin/src/castingzone.tables/castingzone/tables/person/extraaccount_db.py, line 460, in IsValidUser

Re: [Zope3-Users] Zope3 and SQLAlchemy

2008-11-18 Thread kevin gill
I investigated these last month. At the high-level there are two options, ORM or Direct SQL. If you are going down the route of ORM, there are two well supported and active ORMs, SQLAlchemy and Storm. If you are going with alchemy, there are several options. I made a few notes as I was looking

[Zope3-Users] z3c.selectWidget terms without vocabulary

2008-09-30 Thread kevin gill
I want to create a select widget based on a field which does not have a vocabulary. The possible values are determined based on the context or the view. How do I configure the z3c SelectWidget to pick up the terms from a set of terms I provide, rather than looking to the field. I see from the

Re: [Zope3-Users] z3c.selectWidget terms without vocabulary

2008-09-30 Thread kevin gill
OK, I have it working now. Here is what I did... 1. Subclass the schema type to create a specific class for my field, e.g. class LocalChoice(zope.schema.Choice): Marks this field uniquely 2. Make a new class based on z3c.form.terms.ChoiceTerms, and register it for the view and the

Re: [Zope3-Users] Help: I cannot login after installing z3c.formjs

2008-07-17 Thread kevin gill
with these changes. I will be interested in seeing where you are going with formjs. I am really using it to get the AjaxRequestHandler at the moment. Thanks Kevin - Paul On Tue, Jul 15, 2008 at 7:51 AM, kevin gill [EMAIL PROTECTED] wrote: Hi, I am integrating z3c.formjs to a new site

[Zope3-Users] Help: I cannot login after installing z3c.formjs

2008-07-15 Thread kevin gill
Hi, I am integrating z3c.formjs to a new site. After installing z3c.formjs I can no longer login. If I remove it, I can login again. It causes a problem with the SessionCredentials mechanism that I am using. The SessionCredentials annotations now contains event handlers of type

Re: [Zope3-Users] Zope 3 security model

2008-07-02 Thread kevin gill
1. First, I believe you need Groups. In your Group folder, you set up logical groups. You assign permissions to the groups and then assign one or more groups to your membership. 2. For the owner, it depends on whether the owner is Zope information or not. In my environment, I have members who

[Zope3-Users] Grant Permission to a Group

2008-07-01 Thread kevin gill
How do I go about granting permission to a group of users to do copy/paste/move on a folder. The copy/paste/move adapters are configured as zope.ManageContent, and I don't want these users to have the rest of zope.ManageContent. Just be able to copy content types that they can create. I tried

[Zope3-Users] How can I find all Local Registries (Sites)

2008-05-06 Thread kevin gill
How can I find all Local Registries (Sites)? I have a simple local utility that I need to register with a global utility when bootstrapping the application. I can find my global utility since it is in the global site manager. I registered my sites with the base local registry. I tried using the

[Fwd: Re: [Zope3-Users] How do I set up layers for functional testing]

2008-04-23 Thread kevin gill
Thanks for the pointer, Stephen. I have changed the tests from using TestRequest to using etestbrowser. I also found that I was doing unit test things (placefulSetup) in my functional tests (which cleared down the configurations setup via ZCML). Thanks, Kevin On Tuesday 22 April 2008, kevin

[Zope3-Users] How do I set up layers for functional testing

2008-04-22 Thread kevin gill
I am trying to use the functional test tools on pages created with the z3c.forms library. zopeproject created a function testing layer for me in testing.py and matching ftesting.zcml. When I setup my z3c.forms layouts I registered my own layer and configured them on that specific layer (rather

Re: [Zope3-Users] How do I automatically login a user

2008-04-03 Thread kevin gill
Thanks for that Jim, The code does what I want. I will have a good look at it and respond on zope-dev on Tuesday (I only work Tuesday, Wedensdays and Thurday). Thanks Kevin Let's move this discussion to zope-dev. On Apr 2, 2008, at 5:36 AM, kevin gill wrote: Please check in the code

Re: [Zope3-Users] How do I automatically login a user

2008-04-02 Thread kevin gill
Please check in the code to the sandbox and I will have a look at it. The coding looks straight-forward, but choosing how to work it into the existing components. I will look at the code and come back with questions. Thanks Kevin On Apr 1, 2008, at 12:33 PM, kevin gill wrote: During my

[Zope3-Users] How do I automatically login a user

2008-04-01 Thread kevin gill
During my registration process I want to automatically login the user (in Zope3). I can see how to programatically logout a user using ILogout().logout(request), but I don't see an equivalent for logging in. I intend to use session cookies for tracking users. Thanks Kevin

[Zope3-Users] z3c.formjs in a viewlet

2008-02-07 Thread kevin gill
I am trying to put a z3c.formjs form into a viewlet. I run into a problem with the generation of the JSSubscriptions code in the resulting page. By default the formjs code puts the IHaveJSSubscriptions marker interface and the jsSubscriptions variable on the viewlet rather than the view. There

[Zope3-Users] z3c:layout - not working with z3c.form.EditForm

2008-01-29 Thread kevin gill
I am having a problem configuring a layout template. It works with z3c.form.DisplayForm but not with z3c.form.EditForm. formdemo works fine for me. It seems to use an identical approach. Thanks, Kevin --- Here is the details to

Re: [Zope3-Users] z3c:layout - not working with z3c.form.EditForm

2008-01-29 Thread kevin gill
In answer to my own question, the EditForm must also inherit from the z3c.formuilayout.FormLayoutSupport class. This code now works: from z3c.form import form from z3c.formui import layout class IndexForm(layout.FormLayoutSupport, form.EditForm): pass Thanks, Kevin I am

[Zope3-Users] Viewlet Manager Configuration

2008-01-16 Thread kevin gill
Is it possible to pass parameters from a skin page template to a Viewlet Manager? The requirement is to use the same Viewlet Manager in different places on a page, and control the content based on configuration information. For example: Adverts are served on pages with unique slot information

[Zope3-Users] Tutorial on Security Configuration with External DB Data

2008-01-15 Thread kevin gill
I have loaded a tutorial into the Zope3 wiki, Zope In Anger section about how to store security configuration on your relational database. It is essentially a second part of the How do I use SQLScript tutorial, as storing principals is the hard part of using an external database. If anyone has

[Zope3-Users] SQL and Zope3 Tutorial - Feedback needed

2008-01-08 Thread kevin gill
I found that there is a lack of documentation for using SQLDTML with Zope3. SQLAlchemy is newer and exciting and SQLDTML is mostly ignored. This is unfortunate as it works well and is well known to Zope2 developers. I have made an attempt to redress the balance by adding a tutorial on it to the

[Zope3-Users] RE: Annotations when creating a Principal

2007-05-10 Thread Kevin Gill (Newaddress)
Further to my last email, it appears that my error is using the FoundPrincipalFactory. I changed the code to use the getPrincipal method of the PAU and it works fine. pau = getUtility(IAuthentication) principal = pau.getPrincipal(principal_id) Thanks Kevin I am following the

[Zope3-Users] Annotations when creating a Principal

2007-05-09 Thread Kevin Gill (Newaddress)
? Would it be easier to replace the InternalPrincipal with a content object which contains my new data? If I do that can I access that data via the standard principal machinery? Thanks in advance Kevin Gill