Re: [Zope] DTML Loop, is there a 'continue'?

2000-09-22 Thread Daniel Rusch
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

Re: [Zope] DTML call, form vars, submits

2000-09-19 Thread Chris McDonough
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

Re: [Zope] dtml-tree urlparam

2000-09-18 Thread Jonothan Farr
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

Re: [Zope] dtml-in theentiresite

2000-09-12 Thread Chris Withers
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

Re: [Zope] dtml-in theentiresite

2000-09-12 Thread Rik Hoekstra
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

Re: [Zope] dtml-in theentiresite

2000-09-12 Thread Dieter Maurer
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

Re: [Zope] DTML Question on lines

2000-09-08 Thread Dieter Maurer
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

Re: [Zope] DTML Question on lines

2000-09-07 Thread Rik Hoekstra
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

Re: [Zope] DTML Question on lines

2000-09-07 Thread Tim Cook
"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

Re: [Zope] DTML horror

2000-09-05 Thread Chris Withers
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,

Re: [Zope] DTML horror

2000-09-05 Thread Rik Hoekstra
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

Re: [Zope] DTML horror

2000-09-05 Thread Nick Trout
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

Re: [Zope] dtml-comment Fine, don't fix :P

2000-09-05 Thread Andrew Kenneth Milton
+---[ 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. |

Re: [Zope] DTML horror

2000-09-05 Thread JTC Murphy
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

RE: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-05 Thread T.J. Mannos
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

Re: [Zope] dtml-comment doesn't but should!

2000-09-04 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread 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 3. if found: ignore that block of text else if end of text reached:

Re: [Zope] dtml-comment yuk...

2000-09-04 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Andrew Kenneth Milton
+---[ 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

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Andrew Kenneth Milton
+---[ 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

Re: [Zope] dtml-with and PARENTS[0]

2000-08-31 Thread Geir Bækholt
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

Re: [Zope] dtml-with and PARENTS[0]

2000-08-31 Thread Tim Hicks
- 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

Re: [Zope] dtml-tree question

2000-08-30 Thread Hugo Ramos
- 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

[Zope-dev] Re: [Zope] dtml-tree question

2000-08-29 Thread Hugo Ramos
- 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

Re: [Zope] dtml-tree question

2000-08-29 Thread Dieter Maurer
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

Re: [Zope] dtml-let .. method /dtml-let

2000-08-23 Thread Phil Harris
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:

Re: [Zope] dtml-let .. method /dtml-let

2000-08-23 Thread Phil Harris
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

Re: [Zope] dtml-let .. method /dtml-let

2000-08-23 Thread Adam Karpierz
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]

RE: [Zope] dtml-let .. method /dtml-let

2000-08-23 Thread Jean Jordaan
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

Re: [Zope] dtml-let .. method /dtml-let

2000-08-23 Thread Bill Anderson
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

Re: [Zope] dtml syntax for showing folder objects?

2000-08-23 Thread Kapil Thangavelu
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

Re: [Zope] dtml-tree, the bane of my life :(

2000-08-22 Thread Adam Karpierz
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

Re: [Zope] dtml-comment doesn't?

2000-08-20 Thread Andrew Kenneth Milton
+---[ 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

Re: [Zope] dtml-comment doesn't?

2000-08-20 Thread Tim Cook
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris McDonough
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:

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris McDonough
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]

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Tino Wildenhain
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Dieter Maurer
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,

Re: [Zope] dtml-with object calls first?

2000-08-18 Thread Kapil Thangavelu
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_

Re: [Zope] dtml-with object calls first?

2000-08-18 Thread Dieter Maurer
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

Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread Phil Harris
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

Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread Peter Bengtsson
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

Re: [Zope] DTML: fetch an object by its url?

2000-08-16 Thread R. David Murray
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

Re: [Zope] dtml-in and tuples

2000-08-15 Thread Chris Withers
"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

Re: [Zope] dtml-in and tuples

2000-08-15 Thread Shane Hathaway
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

Re: [Zope] dtml-in and tuples

2000-08-15 Thread Chris Withers
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

Re: [Zope] dtml-in and tuples

2000-08-15 Thread Shane Hathaway
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

Re: [Zope] dtml-in and tuples

2000-08-15 Thread Chris Withers
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]

Re: [Zope] dtml-in and tuples

2000-08-15 Thread Dieter Maurer
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.

Re: [Zope] DTML: fetch an object by its url?

2000-08-15 Thread R. David Murray
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

RE: [Zope] dtml-with namespace conflict question needs explanation

2000-08-14 Thread Casey Duncan
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')"

Re: [Zope] dtml-in and tuples

2000-08-14 Thread Jonothan Farr
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

Re: [Zope] dtml-in sort question

2000-08-10 Thread Dieter Maurer
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

Re: [Zope] dtml-with confusion

2000-08-09 Thread Rik Hoekstra
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

Re: [Zope] dtml-with confusion

2000-08-09 Thread Dieter Maurer
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

Re: [Zope] dtml-calendar question (still not working)

2000-08-04 Thread tom smith
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()"

Re: [Zope] dtml-calendar question (I GOT IT!!!!!!!!)

2000-08-04 Thread tom smith
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

Re: [Zope] dtml-calendar question (I GOT IT!!!!!!!!)

2000-08-04 Thread R. David Murray
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

Re: [Zope] dtml-calendar question.

2000-08-03 Thread Chris Withers
"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']

Re: [Zope] dtml-calendar question (still not working)

2000-08-03 Thread tom smith
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*

Re: [Zope] dtml-calendar question.

2000-08-03 Thread R. David Murray
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

Re: [Zope] dtml-calendar question (still not working)

2000-08-03 Thread R. David Murray
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)"

Re: [Zope] dtml-calendar question.

2000-08-02 Thread 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/%' % (date.mm(),date.dd(),date.yy())" Inside the quotes you are in Python... --RDM

Re: [Zope] dtml-calendar question.

2000-08-02 Thread Andrew Kenneth Milton
+[ 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/%' %

Re: [Zope] dtml-calendar question.

2000-08-02 Thread 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... Well, yeah. A restricted python environment. The point being, it follows python syntax

Re: [Zope] dtml-calendar question.

2000-08-02 Thread Andrew Kenneth Milton
+[ 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... | |

Re: [Zope] dtml-calendar question.

2000-08-02 Thread R. David Murray
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

Re: [Zope] dtml-in question

2000-08-01 Thread Peter Arvidsson
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

Re: [Zope] dtml-tree question

2000-07-31 Thread Jonothan Farr
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

Re: [Zope] dtml-in syntax

2000-07-30 Thread Manuel Schulte
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

Re: [Zope] dtml-in 'one record per page' problem

2000-07-30 Thread Dieter Maurer
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,

Re: [Zope] dtml-in syntax

2000-07-29 Thread Tim Cook
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:

Re: [Zope] dtml question from a newbizzzzz I want to access a dtmlpage under a subfolder subfolder

2000-07-27 Thread Marcel Preda
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

[Zope] Réf. : Re: [Zope] dtml question from a newbizzzzz I want to access a dtmlpage under a subfolder subfolder: [Zope] dtml question from a newbizzzzz I want to access a dtmlpage under a subfolder subfolder

2000-07-27 Thread dsergent
arcel Preda" Pour : [EMAIL PROTECTED] marcel@puntocc : .it Objet : Re: [Zope] dtml que

Re: [Zope] DTML problem

2000-07-26 Thread George Donnelly
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

Re: [Zope] DTML problem

2000-07-26 Thread Bill Anderson
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'])"

Re: [Zope] dtml-if errors in sql method

2000-07-18 Thread Tim Hicks
- 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

Re: [Zope] dtml-if errors in sql method

2000-07-18 Thread Tim Hicks
- 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

Re: [Zope] DTML Problem (from the newbie hair ripper category)

2000-07-17 Thread Dieter Maurer
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'])"

Re: [Zope] DTML?

2000-07-17 Thread Dieter Maurer
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

Re: [Zope] dtml-in and maps...

2000-07-12 Thread Marcel Preda
- 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' }

Re: [Zope] .dtml files

2000-07-12 Thread Jonothan Farr
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

Re: [Zope] .dtml files

2000-07-12 Thread Patrick Lewis
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

Re: [Zope] .dtml files

2000-07-12 Thread R. David Murray
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

re: [Zope] .dtml files

2000-07-12 Thread Steve Alexander
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

Re: [Zope] DTML?

2000-07-11 Thread Tino Wildenhain
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

Re: [Zope] DTML?

2000-07-11 Thread Chris Withers
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...

Re: [Zope] DTML?

2000-07-11 Thread R. David Murray
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

Re: [Zope] DTML?

2000-07-10 Thread Shane Hathaway
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

Re: [Zope] DTML?

2000-07-10 Thread Christian Scholz
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

Re: [Zope] DTML?

2000-07-10 Thread Chris Withers
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

Re: [Zope] DTML?

2000-07-10 Thread R. David Murray
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

Re: [Zope] dtml-var null

2000-07-05 Thread Brenton Bills
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,

Re: [Zope] dtml-try error in 2.2.0b3?

2000-07-03 Thread Martijn Pieters
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

RE: [Zope] DTML Document class Id bug, somewhat fixed. But now setName ...

2000-06-29 Thread Brian Lloyd
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

Re: [Zope] DTML question

2000-06-28 Thread Luke Tymowski
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

Re: [Zope] DTML question

2000-06-28 Thread R. David Murray
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

<    1   2   3   4   >