Using collective.z3cform.datagridfield with Dexterity

I'm somewhat of a newbie to Plone and I'm attempting to use DataGridField with Dexterity. The goal is to use Plone 4.1 to publish the results of a usability study on our intranet. I've created a...

How do I make a boolean field required in a z3c.form?

I'm using z3c.form to create a form in Plone 4.1.4. I need a boolean field which is required: the user must tick the box. (In my case, the user must agree to the terms and conditions.) Using...

Provide a default value on a field also on edit form

So I have a form (just getting the example from plone.directives.form): from plone.directives import form from zope import schema class IMySchema(form.Schema): title =...

plone.app.blob RuntimeError while migrating ATFile

I'm doing a blob migration onto a 3.2.1 site and I'm getting "RuntimeError: maximum recursion depth exceeded while calling a Python object error." on some file during @@blob-file-migration. I...

How to add a plone.registry record programatically

I'm writing an upgrade step that adds a record to a registry that will be used on a control panel configlet. I started by adding a profile with a registry.xml file on it but then I though there...

Traceback when viewing @@personal-information page after following collective.userdata.examples Plone 4

I have been following collective.examples.userdata in a Plone 4 site in an attempt to add more fields to the /@@personal-information page. I am looking to add the following fields (all will be...

Vocabulary do not work on collective.z3cform.datagridfield's sub object schema because of the context is NO_VALUE

I'm working on a content type that uses datagridfield. Within the subobject, I have a choice field with a custom vocabulary. The vocabulary work outside the datagrid (If I use it directly in the...

ComponentLookupError: (<InterfaceClass zc.relation.interfaces.ICatalog>, '') with Dexterity references

The following is a snippet from a dexterity content type which I'm working on. There are two content types, Programmes and Projects. It should be possible to associate a Project with a Programme...

Plone dexterity multiselect field via model xml file

How can I add multiselect field to a dexterity content type via model xml file? It is clear how to add single selection dropdown field: <field name="dummy"...

Plone portlet using plone.namedfield.field.NamedImage

I'm running Plone 4.3 and have been trying to create a custom portlet. The portlet is simple and should allow the user to upload an image and provide some descriptive text which can be displayed...

How to format an integer widget on the controlpanel using plone.app.registry

I have an add-on configuration page/form generated by plone.app.registry.browser.controlpanel Using these...

How can I change fieldsets order?

I have a form schema which inherits from another form schema. Both have fieldsets. However, the fieldsets are put in the order they are created. So the fieldset described in the last schema will...

Plone custom edit/add form using Dexterity/Grok

I am trying to create a custom edit/add form for my form package that I built using Dexterity types. I am following the Schema-driven types tutorial on the Plone Developer Documentation in the...

Extending the personal preferences page

I'm attempting to make an add-on that, among other things, adds another option to the personal preferences page. I've tried to piece together how to do this properly from various guides on loosely...

non required SelectFieldWidget

I have a dexterity content type and I'd like to have a Select-Field which is not required and which values came from a vocabulary. This is the vocabulary: @grok.provider(IContextSourceBinder) def...

Sql Alchemy QueuePool limit overflow

I have a Sql Alchemy application that is returning TimeOut: TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30 I read in a different post that this...

Is DECIMAL_DIGITS an Oracle field, and if not, how do I get that info?

I've been using dbVisualizer as a quick-and-dirty database viewer, since I'm unfamiliar with Oracle and don't have sqlplus/gqlplus available. I assumed that its "columns" view was showing me the...

Python/Plone - Is it possible to call a global utility at module level of a py file?

I have a product for a plone site with a module containing a utility class, and in the module that will/should use this utility, I am trying to have it setup at the module level. In the module...

Zope.Schema/Plone - How can I set the value of a Datetime field in an updateWidget function?

On a plone site I am working on, I have a form that is used to edit records of objects stored mapped to a table in the backend database. In the interface class, one of the fields is a...

Extend Dexterity add form without extending the type

For a custom Dexterity type, I'd like to add a checkbox to the (autogenerated) add form, asking user whether to also create some associated subcontent. Upon form submit, a customized factory would...

LookupError on form render if RelationChoice field in custom Dexterity type is not required

I have some custom Dexterity types with RelationChoice fields. Everything works fine except that if I set the required property of the RelationChoice field to False, I get an error when trying to...

Plone: Add additional registration fields to users (members)

I have two additional fields for my group objects (like described here). Now I need (other) additional fields for my member objects as well (short strings). I have created them in...

Script Python using plone.api to create File appear error WrongType when set a file

Dears, I'm creating a script python to mass upload files in Plone site, the installation is UnifiedInstaller Plone 4.3.10. This script read a txt, and this txt have separation with semicolon, the...

What are the possible causes of a ConnectionStateError?

I'm having trouble with a ConnectionStateError that happens sometimes on a Plone 4.3.8 site. I can't find the reason why it happens. I get it in many different situations, I'll post a couple...

how I fix unicode error in Python Dexterity Type?

I created one Dexterity Type using python, and the code is: # -*- coding: utf-8 -*- from plone.app.textfield import RichText from plone.autoform import directives from plone.namedfile import field...

How to setup default date in Dexterity Type schema.datetime?

I'm writing a Dexterity Type using Python 2.7.x to Plone 4.3.10. I want setup a default date to field schema.Datetime. import datetime agoradatetime =...

How I set default value to zope.schema.datetime?

I codding a product using Python Dexterity Type, and I have one field shema.Datetime (see below), And I want set a default date time when form was create in Plone. I tried using Zope DateTime and...

How to override or inherit a z3c.form widget?

I need to override the behavior of the widget assigned to a field on a z3c.form (specifically the widget used for a schema.Bool field like the one declared below) to change the way the widget mode...

How I delete custom dexterity objects in Plone 4?

I'm trying delete some custom dexterity objects, bellow have snipets code of this custom object. class IDigitalFile(model.Schema): """Dexterity-Schema """ ... ...

My Archetypes-based content type can't be added

I'm developing an add-on package which introduces a few Archetypes-based content types; these are defined in the default profile of that package. After (re-) installing my package in the...