Questions tagged [dtml]
7 questions
2
votes
1 answer
Python script in Zope can't find function name in external method
I am having a problem getting a Python script in Plone to find an External Method. Given three different objects:
An external method called CloneList (Id and Function Name)
A DTML Document that references it successfully using this

Jane Wilkie
- 1,703
- 3
- 25
- 49
2
votes
1 answer
How to render a Zope DTML from the REPL
How do you render a Zope DTML from the REPL say without the Folder Object or anything like that for a test case ?
I have a file called /tmp/tmp.dtml with the following content:
I could get this far :
from AccessControl import ImplC…

Nishant
- 20,354
- 18
- 69
- 101
1
vote
1 answer
Zope PostgreSQL variable with HTML and DTML
I have a postgresql db table called blog_post and in that table a column called post_main. That column stores the entire blog post article, including various HTML and DTML tags.
For reference (and yes, I know it's old), this is Zope 2.13 with…

kittonian
- 1,020
- 10
- 22
1
vote
2 answers
Validating reCaptcha2 with Zope2
Using Zope 2.13.29 and Python 2.7.15, I am trying to validate Google's reCaptcha2 using a Python script being called from a DTML document. The DTML document contains the form, and the same DTML document uses a dtml-if statement to determines whether…

kittonian
- 1,020
- 10
- 22
0
votes
1 answer
Python: Obtain a URL
Because I cant get this working: Python: KeyError with form.getfirst
I have an alternative option, I have a function in DTML which needs to obtain a URL:
For example if the dtml webpage is located at
www.blah.com/foo/foo2?variable=55
How would i…

Harpal
- 691
- 2
- 6
- 8
0
votes
2 answers
Python: KeyError with form.getfirst
I have a dtml page, which calls a function, with this code:
But i get a key error? stating KeyError: "public_blast(form.getfirst('job_ID'))". I can see the job_ID variable at the top of the page. So…

Harpal
- 799
- 1
- 8
- 7
0
votes
1 answer
Zope/Plone If Statement Evaluation
I have two very distinct regions of my page that I would like to swap between based on a the setting of a dtml-var.
The variable is loaded when the page is built and is called GENDER_DESC. I can display the contents with ,…

Nathan Tornquist
- 6,468
- 10
- 47
- 72