Questions tagged [zcml]

21 questions
8
votes
1 answer

What are the valid conditions for zcml:condition?

ZCML can include conditional directives of the form (conditional configuration directives) What is the expression syntax for condition? Is 'or' allowed?
joeforker
  • 40,459
  • 37
  • 151
  • 246
6
votes
3 answers

What is the difference between template in ZCML and ViewPageTemplateFile

When creating a BrowserView in Plone, I know that I may optionally configure a template with ZCML like so:
aclark
  • 4,345
  • 1
  • 19
  • 31
4
votes
1 answer

ZCML configuration conflict between Zope2 and another zope.* package

I have a Plone add-on with the following setup.py setup( ... install_requires=[ ... 'zope.i18n', ... 'Zope2', ], ... ) If I run bin/instance I get the following traceback: File…
gforcada
  • 2,498
  • 17
  • 26
4
votes
2 answers

What's the buildout:zcml option for?

In one of my projects' buildout.cfg files I have something like this: [buildout] ... zcml = my.package plone.reload ... Everything works fine but I'm still puzzled about what's the reason some packages do need to be listed here and why…
gforcada
  • 2,498
  • 17
  • 26
3
votes
1 answer

Grok equivalent for ZCML's "require" directive

I'm writing an add-view adapter and want to restrict its use to a specific permission. In ZCML I can do the following:
JC Brand
  • 2,652
  • 18
  • 18
3
votes
1 answer

Zope3 browser:page multiple interfaces

Let's say I have the following code in my configure.zcml file. I want my class to be implemented for another interface too, let's say Interface2
bogtan
  • 825
  • 2
  • 13
  • 23
3
votes
2 answers

Do *.zcml files get parsed i18n wise?

I have named utilities and would like to mark names for later i18n usage. Is this the right way?
iElectric
  • 5,633
  • 1
  • 29
  • 31
3
votes
1 answer

Customize Plone view class without touching the template

If a view is registered like this, with the template definition in zcml: and i want to…
Cekk
  • 67
  • 6
3
votes
1 answer

Serving static html secured by permissions in Plone

I'd like to use something like the ZCML snippet below in my ZCML file to serve static HTML files from a directory. The files must be secured by a permission such as "cmf.ManagePortal", "zope.ManageContent" or…
David Bain
  • 2,439
  • 1
  • 17
  • 19
2
votes
2 answers

Plone : unbound prefix in configure.zcml

I am developing a new add-on for my Plone site so as a result it showing my an error in configure.zcml : unbound prefix. Here i am writing my zcml code :
Bharti Rawat
  • 1,949
  • 21
  • 32
2
votes
2 answers

What is the difference between a Zope utility defined with a factory versus a component?

It's a little confusing that ZCML registrations for Zope utilities can accept a component or a factory. versus What is the difference?
joeforker
  • 40,459
  • 37
  • 151
  • 246
2
votes
1 answer

Overriding transmogrifier:registerConfig without using overrides.zcml

I am using quintagroup.transmogrifier and I'd like to provide my on 'import.cfg' pipeline. Normally, I would put something like this in overrides.zcml:
zupo
  • 1,556
  • 1
  • 13
  • 17
1
vote
1 answer

Zope register external methods using zcml configure

Is it possible to register external methods for Zope using a configure.zcml file or something similar? I'm trying to register external Python scripts (similar to other registry items such as "jsregistry.xml" or "cssregistry.xml" in themes)
lightningmanic
  • 2,025
  • 5
  • 20
  • 41
1
vote
1 answer

Plone: access permission on a add-on package

I'm new on Plone and I'm developing a small add-on package. How can I define a permission so that only logged users can access to the pages of the package? The actual permission is the following:
Massimo Variolo
  • 4,669
  • 6
  • 38
  • 64
1
vote
1 answer

Plone/ZCML: Where is/should zcml-additional be located?

I am trying to set up through the zcml the engine and session for connection to a database with the use of z3c.saconfig. I am using Plone 4.3.2. I was following along with a book on Plone 4 called Professional Plone Develop book and under…
Patrick Downey
  • 965
  • 8
  • 13
1
2