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 Withers has been hit by this bug, too.
 
 Maybe, he found a patch/workaround by now.
 
 I never saw this problem, but, up to now, used the tree tag
 only in Zope 2.1.x.


I have that error all the time if I use the dtml-tree tag inside a ZClass.

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[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 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 extensions as well, I could provide
 a TreeTag patch for several extensions, including the
 icon customization.


hello Dieter,

I've tryied to hack the treetag source already... but there's some kind of
bug in it:

line 566 (original source):
s.append([id,[]])

Why is this trying to append to 's' when 's' has become a tupple somewhere
before this line???... tupples don't accept append!!

This bug is really making me crazy... because it makes an error when
clicking the + icon in a dtml-tree that I must use...



Another thing:
I hacked the source of treetag.py to accept 2 more parameters in the
dtml-tree... icon_mi and icon_pl

The hacked source is in the attach.
Changes go from line 411-427. Of course i defined the 2 new parameters as
None in the file top.

Please somebody help me... I'm running out of ideias...

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


##
# 
# Zope Public License (ZPL) Version 1.0
# -
# 
# Copyright (c) Digital Creations.  All rights reserved.
# 
# This license has been certified as Open Source(tm).
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions in source code must retain the above copyright
#notice, this list of conditions, and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions, and the following disclaimer in
#the documentation and/or other materials provided with the
#distribution.
# 
# 3. Digital Creations requests that attribution be given to Zope
#in any manner possible. Zope includes a "Powered by Zope"
#button that is installed by default. While it is not a license
#violation to remove this button, it is requested that the
#attribution remain. A significant investment has been put
#into Zope, and this effort will continue if the Zope community
#continues to grow. This is one way to assure that growth.
# 
# 4. All advertising materials and documentation mentioning
#features derived from or use of this software must display
#the following acknowledgement:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#In the event that the product being advertised includes an
#intact Zope distribution (with copyright and license included)
#then this clause is waived.
# 
# 5. Names associated with Zope or Digital Creations must not be used to
#endorse or promote products derived from this software without
#prior written permission from Digital Creations.
# 
# 6. Modified redistributions of any form whatsoever must retain
#the following acknowledgment:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#Intact (re-)distributions of any official Zope release do not
#require an external acknowledgement.
# 
# 7. Modifications are encouraged but must be packaged separately as
#patches to official Zope releases.  Distributions that do not
#clearly separate the patches from the original work must be clearly
#labeled as unofficial distributions.  Modifications which do not
#carry the name Zope may be packaged in any form, as long as they
#conform to all of the clauses above.
# 
# 
# Disclaimer
# 
#   THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
#   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#   PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
#   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
#   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,

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 extensions as well, I could provide
a TreeTag patch for several extensions, including the
icon customization.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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()" monthnr="date.mm()" daynr="date.dd()"
 dtml-let startDateString="monthnr+'/'+daynr+'/'+yearnr"
 
 
 dtml-in expr="get_days_events(startDateString)"
 dtml-var EventName
 /dtml-in
 
 /dtml-let
 
 /dtml-let
 
 I'm having trouble passing StartDateString to get_days_events. If I look at
 StartDateString using dtml-var startDateString it looks OK.
 
 What kind of errors?

I get

Zope has encountered an error while publishing this resource.

Error Type: Bad Request
Error Value: ['startDateString']

the get_days_events() sql function looks like this...

SELECT * FROM tblCalendar
WHERE
(startDate ='dtml-var startDateString 23:59:00'
AND endDate = 'dtml-var startDateString 00:00:00')
OR 
(startDate = 'dtml-var startDateString 00:00:00'
AND startDate = 'dtml-var startDateString  23:59:00')
ORDER BY startDate

with startDateString entered into the arguments field

I know the sql is a bit ugly but it's what I'm stuck with
:-|


I tried using dtml-sqlvar but it wrapped quotes around my date which also
needs the time to work.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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 anyone tell me why?

cheers

tom


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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 collision with database variables is
considered too high.  So ZSQL forces you to be fairly explicit
about which variables you are passing.

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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'] 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 want to be safe, use _.getitem('something',0)...

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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* 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 want to be safe, use _.getitem('something',0)...

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)"
dtml-var EventName
/dtml-in

/dtml-let

/dtml-let

I'm having trouble passing StartDateString to get_days_events. If I look at
StartDateString using dtml-var startDateString it looks OK.

one last attempt anyone?

cheers

tom


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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 want to be safe, use _.getitem('something',0)...

True enough, that's a somewhat weird semantic, but it's still
following python *syntax* rules grin.

--RDM



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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)"
 dtml-var EventName
 /dtml-in
 
 /dtml-let
 
 /dtml-let
 
 I'm having trouble passing StartDateString to get_days_events. If I look at
 StartDateString using dtml-var startDateString it looks OK.

What kind of errors? 

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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

kind of...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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 rules grin.

I see I made a typo: '%s/%s/%s'.

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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...
| 
| Well, yeah.  A restricted python environment.  The point being, it follows
| python syntax rules grin.

kind of... :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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 only the ones that
 match all three criterion (approved=1, goLiveDate=ZopeTime(), expired=0).
 I'm not exactly sure how to do this. I have tried dtml-if statements
 inside the dtml-in/dtml-in statements but the "in", even though it does
 not show the files that don't match, still counts all of them which messes
 up the next and previous. How do I write my code to correctly show and count
 only the matching instances?

 I have searched both the zope.org site and the eGroups list for the answer
 and if it is there I can't find it :-(

 Thanks!!

 Jamey

 Here is the code.

 dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate"
 reverse size="5" start="batch_start" next
  p
  a
 href="dtml-URL;dtml-sequence-query;batch_start=dtml-next-sequence-start-n
 umber;"
  Next dtml-next-sequence-size; older Releases
  /a
 /dtml-in

 dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate"
 reverse size="5" start="batch_start"
  dtml-if "goLiveDate = ZopeTime"
   pba href="dtml-var "id"/release.html"
 dtml-pr_title;
/a/b - dtml-var goLiveDate fmt="%m/%d/%Y"br
 font size="2"dtml-summary;/font
/p
  /dtml-if
 /dtml-in

 dtml-in "PARENTS[0].objectValues(['PressRelease'])" sort="goLiveDate"
 reverse size="5" start="batch_start" previous
 p
  a
 href="dtml-URL;dtml-sequence-query;batch_start=dtml-previous-sequence-sta
 rt-number;"
  Next dtml-previous-sequence-size; more recent Releases
  /a
 /dtml-in

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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 and DTML methods don't.

 Hence your tree tag is using the DTML documents namespace, which has
 nothing in it apart from the properties of the document.


I don't think that's entirely accurate. There's a lot more in the namespace of a
DTML document. I think you're right, though, in that it's a namespace issue. I
found that the results of the SQL query where not part of the namespace in the
DTML Document case, but they were in the DTML Method case. Here's how I got it
working:

dtml-var standard_html_header

dtml-tree
branches_expr="select_subprojects(project_id=REQUEST.get('project_id',0)
id=project_id

  dtml-call "REQUEST.set('project_id', project_id)"

  smalla
href="edit_project?project_id=dtml-project_id;"edit/a/smallnbsp;

  a href="view_project?project_id=dtml-project_id;"dtml-var
project_name/anbsp;/td

  td align=right valign=topdtml-var task_count

/dtml-tree

dtml-var standard_html_footer


In other words, I have to explicitly get the parameter from the result object
and pass it back into the sql query. What I'd like to know is why? Is this a bug
or a feature?

Thanks,
--jfarr



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DTML/ZClass question

2000-06-27 Thread Andy McKay

You are correct, you're ZClass is not rendering the dtml and it wont. The
easiest way I found is simply not to try and find another solution. I came
across the same problem a while ago when I was just starting out with Zope.

I have solved the problem now, its written in python and derives from
DTMLDocument and its based on the ZWiki code which accomplishes rendering
quite well.

- Original Message -
From: "James W. Howe" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 27, 2000 11:50 AM
Subject: [Zope] DTML/ZClass question


 I have a ZClass that I created to hold information about a person.  The
 object has two attributes at the moment, name and bio.  Elsewhere I have a
 page layout which makes reference to a "pageContents" value.  I want to
 display my person objects using this layout but the object doesn't have a
 pageContents attribute.  I added a pageContents method to the ZClass which
 references my "bio" property.  The bio information appears, but if the bio
 text contains any dtml, the raw dtml code is displayed (actually it's not
 visible except if you do a "View Source").  I'm assuming that what is
 happening is that somehow my "bio" information isn't being rendered, but
is
 being returned intact as a string which ultimately gets stuck in my
browser
 page.  My question is this, what is the recommended way to create an
 "alias" for a property defined in a ZClass?

 Thanks.

 James W. Howe mailto:[EMAIL PROTECTED]
 Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
 Ann Arbor, MI  48103


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DTML-IN Question

2000-06-21 Thread Jim Washington

from the DTML reference page 41, regarding dtml-in:

the default setting for the orphan attribute is 3.

So you might try:

dtml-in ranked_stories size=3 orphan=0 

-- Jim Washington

Tom Scheidt wrote:
 
 Hi my problem is that Im setting my batch size to 3, yet I keep getting
 5 items. As a matter of fact, sometimes I get 4 when asking for 2 and so on.
 Here's what Im using:
 

[code snipped]

 
 Thanks in advance.
 Tom Scheidt   |   www.falsemirror.com   |   [EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DTML newbie question on summation

2000-06-02 Thread Peter Sabaini


try 

  dtml-let total="_.int(SUNDAY) + _.int( ...

_.int() method tells zope you want (integer) numbers.

hth peter.


On Fri, 2 Jun 2000, Coleman, Bryan wrote:

:I can't seem to add variables using let. I just get a concatination of the
:integers. I am using ...
:
:dtml-let total="SUNDAY + MONDAY + TUESDAY + WEDNESDAY + THURSDAY + FRIDAY +
:SATURDAY"
:
:The days represent hours but are stored as integers in the database.
:
:- Bryan Patrick Coleman
:  Questcon Technologies
:  (336)273-2428
:  [EMAIL PROTECTED]
:
:
:___
:Zope maillist  -  [EMAIL PROTECTED]
:http://lists.zope.org/mailman/listinfo/zope
:**   No cross posts or HTML encoding!  **
:(Related lists - 
: http://lists.zope.org/mailman/listinfo/zope-announce
: http://lists.zope.org/mailman/listinfo/zope-dev )
:

-- 

_
peter sabaini, mailto: [EMAIL PROTECTED]
-


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )