I hope there is a dtml-continue, I also have not been able to find it
though.
What I have done is resorted to an dtml-if (or some times an
dtml-unless) that catches the condition I want to short circuit and
wrapped the code in the dtml-else. The dtml-unless probably the better
choice.
dtml-in
Hello,
Any help with the following questions appreciated:
1. I am currently calling the SQL session product with the following code:
dtml-call "SESSION.set('user_id',per_cpk)"
I would like to change this to include a variable, like so:
dtml-call
Oops. Forgot to mention, this patch adds a new param to the tree tag,
'urlparam_expr' which is a Python expression to evaluate and use as the
urlparam.
--jfarr
- Original Message -
From: Júlio Dinis Silva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 18, 2000 12:59 PM
peter be wrote:
Some objects (mostly DTML Documents) have a property (boolean) that tells
whether this is a helppage or not.
What I want to do is to loop though eash and every object in the entire site
(not very big) and check if the object has this property.
Does your site have any
Any other good solutions are welcomed!
There are several 'Sitemap' solutions that do this more or less, but...
Any reason you can't use a catalog for this and catalog on the property?
This is much faster and much more flexible
Rik
___
Zope
peter be writes:
In the root
A DTML Method
Some objects (mostly DTML Documents) have a property (boolean) that tells
whether this is a helppage or not.
What I want to do is to loop though eash and every object in the entire site
(not very big) and check if the object has
Tim Cook writes:
"Coleman, Bryan" wrote:
I am trying to itterate through a lines
SELECT name="mySelection"
dtml-in valid_codes
option value="dtml-var sequence-item" dtml-var sequence-item
nbsp; /option
In some cases, "html_quote" will be necessary, or a dtml-entity
I am trying to itterate through a lines property in the folder so that the
options will drop down. I did not think that the following code would work
but I could not think of anything else.
dtml-in valid_codes
option value="dtml-var valid_codes"dtml-var
"Coleman, Bryan" wrote:
I am trying to itterate through a lines property in the folder so that the
options will drop down. I did not think that the following code would work
but I could not think of anything else.
dtml-in valid_codes
option value="dtml-var
Nick Trout wrote:
DTML is pretty horrible. Does anyone have any solutions to allow DTML
methods to be generated using a more Pythonesque interface? It seems
to me that DTML is a bit of a shoddy half way house between HTML and
Python.
For someone who's posting HTML mail to a non-HTML list,
Nick Trout wrote:
DTML is pretty horrible. Does anyone have any solutions to allow DTML
methods to be generated using a more Pythonesque interface? It seems
to me that DTML is a bit of a shoddy half way house between HTML and
Python.
Use Python Methods
For someone who's posting HTML mail to a non-HTML list, you're a fine
one to talk ;-)
Oooer, *blush* sorry...
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related
+---[ Chris Withers ]--
| Andrew Kenneth Milton wrote:
| Th second part of the problem is that ChrisW(hinger) really wants it,
|
| "really wants it" might be a little strong... I'm not loosing any
| sleep...
|
| but,
| doesn't want to do what is necessary to do it.
|
They may be available in all installations but they aren't necessarily
available to all users )-:
Have fun, Murph (who is not actually complaining given the price he has
to pay for use of a public Zope server)
Rik Hoekstra [EMAIL PROTECTED] 05/09/00 11:51:35
Use Python Methods
ptember 04, 2000 5:11 PM
To: Kip Rugger
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] dtml-comment doesn't? Please fix... ;-)
Won't work, the container will still be parsed for correctness at 'save'
time.
The problem isn't getting nested comments per se, we already have that.
The problem is to complet
Jerry wrote:
Sure, dtml-comment is meant for "comments", but every
programmer needs to disable blocks of code to eliminate
factors while debugging. We all abuse comment characters for
this purpose, and it works well enough to get the job done.
Gotta agree with that!!
But in Zope it goes
Andrew Kenneth Milton wrote:
But then you'd have to parse the contents to find out if the comments are
properly nested...
Well, the parsing should be pretty simple:
1. find dtml-comment
2. search for /dtml-comment
3. if found:
ignore that block of text
else if end of text reached:
Dieter Maurer wrote:
Chris Withers writes:
Is is just me or does stuff inside a dtml-comment get parsed?
"dtml-comment" must do a bit of parsing:
It must at least recognized "/dtml-comment".
well, yeah, but that's not what I meant...
Maybe, it wants to recognize nested
+---[ Chris Withers ]--
| Andrew Kenneth Milton wrote:
| But then you'd have to parse the contents to find out if the comments are
| properly nested...
|
| Well, the parsing should be pretty simple:
| 1. find dtml-comment
| 2. search for /dtml-comment
Or dtml-comment
Andrew Kenneth Milton wrote:
| What's wrong with that?
It's wrong :-)
dtml-comment
crap
more crap
dtml-comment
Lots of crap
/dtml-comment
/dtml-comment
In order to parse that fragment, you need to parse the blocks in case you
find another opening block, so that you can
+---[ Kip Rugger ]--
|
| [snip]
|
| dtml-if "0"
| crap
| more crap
| dtml-if "0"
| Lots of crap
| /dtml-if
| /dtml-if
|
| by analogy with the common practice of #if 0 in C
Won't work, the container will still be parsed for correctness at 'save' time.
The problem isn't
on Thursday, August 31, 2000 Tim Hicks wrote :
TH OK, I have a standard_html_header for my site that uses the following
[snip]
THwith the correct property being
TH inserted, however, dtml-var id results in the id of the parent
TH folder of standard_html_header being inserted, instead of the
- Original Message -
From: "Geir Bfkholt" [EMAIL PROTECTED]
To: "Tim Hicks" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 31, 2000 2:30 PM
Subject: Re: [Zope] dtml-with and PARENTS[0]
on Thursday, August 31, 2000 Tim Hicks wrote :
TH OK, I have a
- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Hugo Ramos" [EMAIL PROTECTED]
Sent: Wednesday, August 30, 2000 6:14 PM
Subject: Re: [Zope] dtml-tree question
Hugo Ramos writes:
line 566 (original source):
s.append([id,[]])
Chris
- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Hugo Ramos" [EMAIL PROTECTED]
Cc: "ZOPE" [EMAIL PROTECTED]; "EUROZOPE" [EMAIL PROTECTED]
Sent: Tuesday, August 29, 2000 10:22 PM
Subject: Re: [Zope] dtml-tree question
Hugo Ramos
Hugo Ramos writes:
Is there a way to use my own self made '+' icon in a tree tag?
I'dd like to use my own icon only IF i want to... and not change the python
source to use my own icon all the time!
The code is partially there, but incomplete and commented out.
If you do not mind other
untested
dtml-in "PARENTS[0].objectItems(['ccDocClass'])" size=10 start=qs
sort=sort_key
/untested
???
- Original Message -
From: "Jean Jordaan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: "RC Compaan (E-mail)" [EMAIL PROTECTED]
Sent: Wednesday, August 23, 2000 2:52 PM
Subject:
e what I mean.
Phil
- Original Message -
From: "Jean Jordaan" [EMAIL PROTECTED]
To: "'Phil Harris'" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 23, 2000 3:45 PM
Subject: RE: [Zope] dtml-let .. method /dtml-let
hi Phil
???
nope ..
sort=sort_key
Phil Harris [EMAIL PROTECTED] wrote:
I seem to remember a entry to the collector about this
There is a patch for Zope 2.2.1b1:
http://classic.zope.org:8080/Collector/1542/view
Please for discussion about it.
Regards
--
Adam Karpierz
[EMAIL PROTECTED]
Hi Phil, RDM, Adam
I seem to remember a entry to the collector about this,
I think your stuck with having a 'static' sort key.
yeech!
or you could do something like
dtml-if "sort_key=='sort1'"
that'll do as a workaround ..
You can always you his patch in the meantime, though.
I'm
Jean Jordaan wrote:
Hi all
The answer to my previous question makes this one occur to
me: if dtml-var id in a method refers to the containing
document's id, does 'myMethod' get to see 'myVariable'?::
dtml-let myVariable='Beep'
dtml-var myMethod
/dtml-let
Testing .. yes, it
Andrew Kenneth Milton wrote:
+---[ [EMAIL PROTECTED] ]--
| Hi,
| I wonder how one would show the dtml documents in a folder with a
| dtml statement. I see it working with the tree command and I see
| it working in Yihaw, but there must be a simple way to show just
Okay, firstly, I notice dtml-tree doesn't support the standard
abbreviation:
dtml-TAG "x" - dtml-TAG expr="x"
As the following:
dtml-tree "_.getitem('sequence-item',0)" branches="postingValues"
gives me:
Error Type: KeyError
Error Value: "_.getitem('sequence-item',0)"
There is a patch for
+---[ Jan H. Haul ]--
| Tino Wildenhain wrote:
|
| dtml-comment is a tag like all the other tags. It does not
| control the parser. One advantage is, you may nest comment-tags.
|
| True.
| But still, the parser could read over all comments as long as the
| dtml-comment
Tino Wildenhain wrote:
So if you have:
dtml-comment
... some syntactically bad dtml ...
/dtml-comment
You still can't save the page 'cos the the parser throws up an error.
That seems silly to me. Anyone else agree?
No, I disagree. Why do you want bad dtml even inside
Yeah, that's the way it works. I'm not sure why, though I remember
someone trying to explain it to me around the time of the last Python
conference.
On Sat, 19 Aug 2000, Chris Withers wrote:
Hi,
Is is just me or does stuff inside a dtml-comment get parsed?
So if you have:
That's not very nice :(
Any reason why it can't be changed to be as expected?
I think it can safely be changed to not evaluate what's between
the comment tags. Patches accepted, as always. :-)
___
Zope maillist - [EMAIL PROTECTED]
Chris McDonough wrote:
Yeah, that's the way it works. I'm not sure why, though I remember
someone trying to explain it to me around the time of the last Python
conference.
That's not very nice :(
Any reason why it can't be changed to be as expected?
cheers,
Chris
Chris McDonough wrote:
That's not very nice :(
Any reason why it can't be changed to be as expected?
I think it can safely be changed to not evaluate what's between
the comment tags. Patches accepted, as always. :-)
I'd love to, btu I wouldn't know where to start.
Besides, I'm
Hi,
Chris Withers wrote:
Hi,
Is is just me or does stuff inside a dtml-comment get parsed?
So if you have:
dtml-comment
... some syntactically bad dtml ...
/dtml-comment
You still can't save the page 'cos the the parser throws up an error.
That seems silly to me. Anyone
Chris Withers writes:
Is is just me or does stuff inside a dtml-comment get parsed?
"dtml-comment" must do a bit of parsing:
It must at least recognized "/dtml-comment".
Maybe, it wants to recognize nested "dtml-comment" (probably not),
then it must look at all tags.
Probably, however,
Chris Withers wrote:
Hi,
Just noticed this:
If you do dtml-with object where object is something callable, it
calls it.
That's a bit unpleasant for things like Squishdot Sites which do
something (return a list of all their elements) when you call them.
So the only way to _really_
Chris Withers writes:
If you do dtml-with object where object is something callable, it
calls it.
That's a bit unpleasant for things like Squishdot Sites which do
something (return a list of all their elements) when you call them.
So the only way to _really_ do what I thought
dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')"
- Original Message -
From: "Scott Shepherd" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 16, 2000 5:06 AM
Subject: [Zope] DTML: fetch an object by its url?
In DTML is it possible to get an object using
What's the difference between:
dtml-with "_.string.split(URL,'/')[-2]" (for current folder)
or dtml-with "_.string.split(URL,'/')[-1]" (for current object)
and
dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')"
??
- Original Message -
From: "Scott Shepherd" [EMAIL
On Wed, 16 Aug 2000, Chris Withers wrote:
Shame no-one implemented this into the entity syntax :(
dtml-/some/folder/and/path/wotsit; would be so nice ;-)
Ooo, that's seriously *ugly* looking syntax grin.
--RDM
___
Zope maillist - [EMAIL
"R. David Murray" wrote:
On Mon, 14 Aug 2000, Jonothan Farr wrote:
Well in Python a list is mutable and a tuple is not.
Right, but he's asking why dtml-in treats tuples in a special way,
and exactly what that behavior is.
That's right :-)
..and in particular why it's so weird. It seems
Chris Withers wrote:
"R. David Murray" wrote:
On Mon, 14 Aug 2000, Jonothan Farr wrote:
Well in Python a list is mutable and a tuple is not.
Right, but he's asking why dtml-in treats tuples in a special way,
and exactly what that behavior is.
That's right :-)
..and in
Shane Hathaway wrote:
Looking at the code, it appears that if you pass a list of two-element
tuples, dtml-in will sort by the first element of each pair and render
the second element.
Unluckilly, that's exactly what I was passing it. But not the result I
was looking for :S
If, on the
Chris Withers wrote:
Shane Hathaway wrote:
Looking at the code, it appears that if you pass a list of two-element
tuples, dtml-in will sort by the first element of each pair and render
the second element.
Unluckilly, that's exactly what I was passing it. But not the result I
was
Shane Hathaway wrote:
snip tuple confusion
I don't know of any place. It ought to be in the DTML reference.
I guess I'll hope and wait for the Zope Book :-)
cheers,
Chris
___
Zope maillist - [EMAIL PROTECTED]
Chris Withers writes:
Why and how are python tuples (like, this) handled differently (and not
in a logical way I can see...) than python lists [like, this]?
The "how" has been explained already.
The "why" is only my guess: support for the widespread idiom
"dict.items()", "objectItems" etc.
On Wed, 16 Aug 2000, Scott Shepherd wrote:
In DTML is it possible to get an object using its url? Something like
dtml-with "get_object( '/some/local/url' )".../dtml-with
Something like.
I asked this question a long time ago, and refound the answer by
searching the zope.nipltd.com
Jason Cunliffe Wrote:
Hello
Please can someone help us understand how to avoid DTML method names
conflicting with other zope objects with same name.
...
2. Below this my DTML file includes calls to this template like this:
dtml-with Flash4
dtml-call "REQUEST.set('swf','login.swf')"
Well in Python a list is mutable and a tuple is not.
--jfarr
- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 14, 2000 3:38 PM
Subject: [Zope] dtml-in and tuples
Hi,
Why and how are python tuples (like, this) handled differently
Jean Jordaan writes:
I'd like to sort bunch of objects, and this doesn't seem to
work:
dtml-in "PARENTS[0].objectItems(['ccDocClassMetaType'])" sort=id
Should it work? How does one sort the results returned by an
expression such as the above?
I think so. Does it not?
I
Can someone explain the difference between:
dtml-with "PARENTS[-1]"
dtml-with squishdot
...do stuff here...
/dtml-with
/dtml-with
and
dtml-with "PARENTS[-1].squishdot"
...do stuff here...
/dtml-with
Do they behave differently? In what way?
Rik
Chris Withers writes:
Can someone explain the difference between:
dtml-with "PARENTS[-1]"
dtml-with squishdot
Here, your namespace contains all attributes (owned or acquired)
of "squishdot" and of "PARENTS[-1]".
...do stuff here...
/dtml-with
/dtml-with
and
dtml-with
This message is about how to use dtml-calendar to get it's data out of an
odbc database
on 3/8/00 5:35 pm, R. David Murray at [EMAIL PROTECTED] wrote:
On Thu, 3 Aug 2000, tom smith wrote:
I'm still getting allsorts of errors. My code is like this...
dtml-let yearnr="date.yy()"
My problem was with passing the arguments around
I used ...
dtml-in "get_days_events(startDateString=startDateString)"
dtml-var namebr
/dtml-in
notice the startDateString=StartDateString...which I thought the dtml-let
would've handled, anywaythis seems to have fixed it
can
On Fri, 4 Aug 2000, tom smith wrote:
notice the startDateString=StartDateString...which I thought the dtml-let
would've handled, anywaythis seems to have fixed it
can anyone tell me why?
ZSQL methods do not pick variables up out of the name space because
the possability of unintended
"R. David Murray" wrote:
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| Well, yeah. A restricted python environment. The point being, it follows
| python syntax rules grin.
kind of... :-)
In what way does it *not* follow Python (expression) syntax rules?
_['something']
on 3/8/00 10:14 am, Chris Withers at [EMAIL PROTECTED] wrote:
"R. David Murray" wrote:
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| Well, yeah. A restricted python environment. The point being, it follows
| python syntax rules grin.
kind of... :-)
In what way does it *not*
On Thu, 3 Aug 2000, Chris Withers wrote:
In what way does it *not* follow Python (expression) syntax rules?
_['something'] doesn't just return the value from the dictionary which
has the 'something' key, if it's callable, it'll try to call it and then
return that... not nice :(
If you
On Thu, 3 Aug 2000, tom smith wrote:
I'm still getting allsorts of errors. My code is like this...
dtml-let yearnr="date.yy()" monthnr="date.mm()" daynr="date.dd()"
dtml-let startDateString="monthnr+'/'+daynr+'/'+yearnr"
dtml-in expr="get_days_events(startDateString)"
On Sat, 12 Aug 2000, tom smith wrote:
dtml-in get_days_events(dtml-var "date.mm()"/dtml-var
"date.dd()"/dtml-var "date.yy()")
Untested:
dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())"
Inside the quotes you are in Python...
--RDM
+[ R. David Murray ]-
| On Sat, 12 Aug 2000, tom smith wrote:
| dtml-in get_days_events(dtml-var "date.mm()"/dtml-var
| "date.dd()"/dtml-var "date.yy()")
|
| Untested:
|
| dtml-in expr="get_days_events('%s/%s/%' %
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| Untested:
|
| dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())"
|
| Inside the quotes you are in Python...
kind of...
Well, yeah. A restricted python environment. The point being, it follows
python syntax
+[ R. David Murray ]-
| On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| | Untested:
| |
| | dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())"
| |
| | Inside the quotes you are in Python...
|
| kind of...
|
|
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| Well, yeah. A restricted python environment. The point being, it follows
| python syntax rules grin.
kind of... :-)
In what way does it *not* follow Python (expression) syntax rules?
--RDM
Hi
I had the same problem and found out there is no way yet of making dtml-in with
multiple conditions. Instead I had to do dtml-if's and make my own counter and
previous/next attributes to handle the batches.
Peter
Webmaster skrev:
I have a bunch of zClass instances and I want to display
Jonothan Farr wrote:
Is it because the document is at the top of the namespace stack instead of
the
request object in the dtml document case, but not in the dtml method case?
Hurm, thinking for the right words and I think(?) namespace is the right
one.
Anyway, DTML documents have one
Would this do it? :
dtml-let item=0
dtml-in wherever
dtml-let level="level+1"
/dtml-in
/dtml-let
Cheers,
Manuel
On Sat, 29 Jul 2000, Tim Cook wrote:
Kyle Burnett wrote:
so i have this loop and i want to count a variable:
dtml-in wherever
dtml-if
Cesar A. K. Grossmann writes:
I'm using a report that must return one instance by page, but it's not
working very well... If the query returns more than one result, Zope
presents only two pages. I'm using Zope 2.1.6 in a Linux box.
What does is mean: "presents only two pages"?
Probably,
Kyle Burnett wrote:
so i have this loop and i want to count a variable:
dtml-in wherever
dtml-if sequence-start
dtml-var count-id
/dtml-if
/dtml-in
but what i really want to count is specific values for id. so let's say
id=='value1', i want to try and do the following:
On Thu, 27 Jul 2000 [EMAIL PROTECTED] wrote:
I want to access a dtml page under a subfolder
- portal (folder)
- index1 (dtml)
- reunion (folder)
- index2 (dtml)
I want to acces the index2 variable in the index1 dtml page. How can I do
it ?
thks for your answer
arcel
Preda" Pour : [EMAIL PROTECTED]
marcel@puntocc :
.it Objet : Re: [Zope] dtml que
this is probably a hack but you could use the id of the document you want to
exclude with an unless statement. this is what i did when i wanted to
exclude the index_html doc
dtml-in "PARENTS[0].objectValues(['DTML Document'])" reverse
sort=bobobase_modification_time
dtml-unless
Wolfgang Klinger wrote:
Hi!
I use the following expression in a header file
which is included in every document/method
to get the content of the actual folder and
show the title as menue item.
dtml-in expr="PARENTS[0].objectValues(['DTML Document'])"
- Original Message -
From: "Gregory Haley" [EMAIL PROTECTED]
To: "Tim Hicks" [EMAIL PROTECTED]
Sent: Tuesday, July 18, 2000 7:35 PM
Subject: Re: [Zope] dtml-if errors in sql method
Hi,
Are you searching for the exact word "Plays", or is there a
varia
- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Tim Hicks" [EMAIL PROTECTED]
Sent: Tuesday, July 18, 2000 9:51 PM
Subject: Re: [Zope] dtml-if errors in sql method
Tim Hicks writes:
dtml-if "which_table == 'Plays'"
SELECT
Darin Lee writes:
Here is the proverbial rub. If I want to *test* for the presence of
"navigation_name" so I can print "title_or_id" if it's not defined, Zope
simply skips the "navigation_name" property. It's like it always evaluates
to false!
dtml-in "objectValues(['Category'])"
R. David Murray writes:
On Tue, 11 Jul 2000, Chris Withers wrote:
Tino Wildenhain wrote:
I want that too. When we are over it, how about replacing (or at least
aliasing)
these - variables to _ ? sequence-item, sequence-index etc. comes to
mind.
IF you've got a patch
- Original Message -
From: Curtis Maloney [EMAIL PROTECTED]
I suppose that your var is a dictionary
Well.. this is where things start to get fun. (o8
I have a dirty great array along the lines of :
[ [ 'string', 0, { 'name':'value' } ], [ 'string', 0, { 'name':'value' }
I have found function calls such as:
manage_roleForm=HTMLFile('roleEdit', globals()) which I believe creates
an HTML document template from the named file. But, what is the
mechanism that calls/displays mange_roleForm?
The class heirarchy looks something like this:
Globals.HTMLFile
The object has a method named manage_roleForm. In your example, an object
which is (or inherets from) Role will have a manage_roleForm, and can be
accessed just like any other method, assuming adequate permissions.
Using an example I am more familiar with, if you have a DTML Document
index_html
On Wed, 12 Jul 2000, Daniel Rusch wrote:
I have found function calls such as:
manage_roleForm=HTMLFile('roleEdit', globals()) which I believe creates
an HTML document template from the named file. But, what is the
mechanism that calls/displays mange_roleForm?
Actually, it creates a
Daniel wrote:
During this process I have noticed that Zope's dtml pages are stored on
the file system as .dtml files (i.e. roleEdit.dtml) The question then is
how does Zope display this pages??
The pages are usually accessed as attributes Python objects. They are
wrapped in a HTMLFile
Hi,
Chris Withers wrote:
Hmmm, how about just sorting out the problems: dtml-var and dtml-call
dtml-var "x(_,_.None,arg1=x,arg2='y',arg3=3)" html_quote
should really be:
dtml-var x arg1=x arg2='y' arg3=3 html_quote
I want that too. When we are over it, how about replacing (or at
Tino Wildenhain wrote:
I want that too. When we are over it, how about replacing (or at least
aliasing)
these - variables to _ ? sequence-item, sequence-index etc. comes to
mind.
Yes indeed! :-)
IF you've got a patch that will do this, please mail it to me and stick
it in the collector...
On Tue, 11 Jul 2000, Chris Withers wrote:
Tino Wildenhain wrote:
I want that too. When we are over it, how about replacing (or at least
aliasing)
these - variables to _ ? sequence-item, sequence-index etc. comes to
mind.
IF you've got a patch that will do this, please mail it to me
Chris Withers wrote:
Okay, seriously, DTML is really hurting Zope's chances with a lot of
people/companies. DTML should be easier than, say, creating a Form in
Lotus Notes or writing a component in Mason. That requries, IMHO:
1. Clear definition of when it should be used.
2. A clean, concise
Hi!
Brian Lloyd wrote:
snip id is sometimes a method (not always though ;-)
This is one of the things on my List Of Evil Things that
should be changed one day in Zope3K :)
RANT type="angry,frustrated"
How about the nasty hacky mess that is DTML?
Some priceless artifacts that need
Shane Hathaway wrote:
The idea of making an XML compliant DTML has been tossed around
before. It would remove the difference between dtml-var x and
dtml-var "x", since XML allows neither syntax. :-)
I'm not too hot on XML compliancy, but if it makes the problems I
mentioned go away, then
On Mon, 10 Jul 2000, Chris Withers wrote:
(Who just spent 1/2 hour figuring out how to do a multi-language site in
Zope, and now after 6hrs of trying has given up doing a recursive tree
copy to get the old site into the new structure with a DTML method or
two and is resorting to ugly hacky
On 5 Jul 2000, Clinton Roy wrote:
dtml-var notes null="nbsp;"
just doesn't seem to be working.
Hi Clinton,
null is only used in conjunction with fmt, so you would want to
use,
dtml-var notes fmt="%s" null="nbsp;"
If this does not work mail me back.
Thanks,
On Mon, Jul 03, 2000 at 06:41:45PM +0200, Stefan Franke wrote:
When rendering a DTML document with the following content
dtml-var standard_html_header
dtml-try
dtml-var "1/0"
dtml-except ZeroDivisionError
1/0 failed
/dtml-try
dtml-var standard_html_footer
Zope
And indeed the problem was with the fact that I was
subclassing the
DTML Document, which as explained in
http://www.zope.org/Members/AlexR/ZClassIDBug
somewhat mangles the Id property. Public thanks to Rik
Hoekstra [EMAIL PROTECTED]
for suggesting that.
I added this fix
Hello,
dtml-in "PARENTS[0].objectValues(['DTML Document'])" size=3 sort=id
should
work, no?
No.
This works on my production server, which runs Zope 2.1.14.
dtml-with history
dtml-with 2000
dtml-in "objectValues(['DTML Document'])" size=3 sort=title reverse
dtml-var
On Wed, 28 Jun 2000, Luke Tymowski wrote:
If the subfolder is down 2, then size=1 works, size=2 works, but size=3
returns everything.
By down 2 I mean like the example code above (folder I want to query is two
levels down).
Maybe it's a 2.2 bug?
Maybe you need the 'orphan' parameter on
201 - 300 of 313 matches
Mail list logo