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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
? 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
24 matches
Mail list logo