dtml-if action == "add"
blah
/dtml-if
dtml-if "action == 'add'"
blah
/dtml-if
Things inside quotes get evaluated as Python expressions. :)
Have fun Zopeing!
-CJ
___
Zope maillist - [EMAIL PROTECTED]
Wilkinson Charlie E wrote:
In the top level folder (root) I have a dtml method title template
that contains html code and dtml vars that are (intended to be)
populated by properties of various subfolders as well as a value or
two passed directly. The title template is "called" from dtml
Well, I'd say that much of it relies on the kind of project you're
doing, too. Sure, if all your DTML is doing is simple if/then
statements, maybe a loop or two, it'll only take a few minutes to
get used to the management interface itself.
However, if you've got some seriously complicated
Sa wrote:
Hi, I stuck on a problem: I am creating a registration form. I need to check
if the person info has already in database. I created a Z SQL method which I
used "select usr_email from info(table name) where usr_email = dtml-sqlvar
usr_email type=string" I want to call this method
Tim Cook wrote:
Ok folks if you are like me and not only can't see the light but
can't even find the path to the light try these things:
1. Do the Python tutorial.
Well, I hardly count as a newbie any more, but I'll just add this:
Learning Python was the single most useful thing that helped
Diego Rodrigo Neufert wrote:
Why I cant use dtml-var "sequence-item"??
Because anything inside quotes is evaluated as a Python expression.
It's trying to subtract 'item' from 'sequence.'
Try:
dtml-var "_['sequence-item']"
-CJ
___
Zope maillist
Andreas Rippel wrote:
I couldn't add any kind of object, while getting messages like
...
Error Type: SuperCannotOwn
Error Value: Objects cannot be owned by the superuser
That's because in Zope 2.2.0, you can't create objects as the superuser.
You'll have to create a
Douglas Bates wrote:
I will be doing a demo of a Zope-based query system at a conference
soon and need to replicate my entire site on a stand-alone machine.
Is there a convenient way to archive a Zope site and move it to another
machine?
Just copy the Data.fs file. (And any External
Greetings!
I'm working on a Product, and I'd like to be able to do a RESPONSE.redirect()
from inside the Python code. What I had was basically this:
dtml-if "some number of conditions"
View the page . . .
dtml-else
dtml-call "RESPONSE.redirect('blahblahblah')"
/dtml-if
This works fine,
Jonothan Farr wrote:
Are you doing a dtml-var or dtml-call to call your external method? I believe
you need a dtml-call.
I've tried both. :) Other things I've tried:
* Explicitly passing in the REQUEST object
* Explicitly passing in the RESPONSE object
* slapping a "return" in front of
Marcin Kasperski wrote:
Has anyone considered preparing some collection of differently colorized
and sized 'Powered by Zope' logos? Recently I wanted to put it on two
I just created a few that would probably work well with your sites:
http://www.zope.org/Members/cyborg/icons
One is just a
Greetings!
I know I saw this discussed a long time ago, but I completely failed
to find the thread anywhere, so here goes . . .
We're running a somewhat older release of Zope with ZOracleDA, and
we've run up against a 1000-record limit when returning data for
reports, etc. I know that this is
A thousand apologies for such blatantly offtopic drivel, but this
leaped into my mind today and I figured if anyone could appreciate
it, it'd be somebody on this list.
a haiku:
request bracket tick
base zero tick bracket plus
tick
Alan Johnston wrote:
One (apparently simple) thing I cannot find a way to do is link to a PDF
file. I believe that everything ZServer serves up must come from the Zope
Object Database (right? wrong?). At any rate, how do you get ZServer to
send a 'raw' PDF file to the browser so that the
tom smith wrote:
I think there's a trick where dtml files can be saved as index.html,
and then you create a method that redirects index_html or
/whatever/wherever/ to index.html in the same folder, but I'm not
sure how to do that.
That should be pretty easy . . . Zope will let you add
Hello,
I'd like to be able to take a "snapshot" of a Zope site (probably using
the recursive "wget") so that it can be served from Apache alone.
I'm running into problems coping with files named "x_html" (most notably
"index_html") . . . Apache serves up the files as plaintext, so you
just get
Andreas Tille wrote:
I just gived Mozilla M18 a try and noticed that Back Button of the
browser doesn't work in zopĆ¼e management screen. Netscape 4.75 (and
Actually, that seems to be a problem with M18 and Frames in general.
Sometimes it works, sometimes it doesn't. I'm guessing this is
17 matches
Mail list logo