[Zope-dev] dtml-try with z-sql

2013-02-01 Thread murat bilal
Hi all, I have DTML-Method like below dtml-try dtml-call deleteUser(USERNAME=USERNAME) dtml-except An error occurred. Entry was bNOT/b deleted. /dtml-try deleteUser is Z-SQL method.USERNAME is the argument in Z-SQL method also column name. When i click erase button it succesfully deletes

Re: [Zope-dev] dtml-try with z-sql

2013-02-01 Thread Jian Aijun
I'm not familiar with DTML, I would like to: deleteUser(USERNAME=invalid USERNAME) Does not throw an exception, Should be judged through a function return value. 2013/2/1 murat bilal murat.bi...@gmail.com Hi all, I have DTML-Method like below dtml-try dtml-call

Re: [Zope-dev] dtml-try with z-sql

2013-02-01 Thread Jian Aijun
I'm not familiar with DTML. In my opinion: deleteUser(USERNAME=invalid USERNAME) Does not throw an exception, Should be judged through a function return value. 2013/2/1 Jian Aijun jianai...@gmail.com I'm not familiar with DTML, I would like to: deleteUser(USERNAME=invalid USERNAME)

Re: [Zope-dev] dtml-try with z-sql

2013-02-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/01/2013 04:27 AM, murat bilal wrote: I have DTML-Method like below dtml-try dtml-call deleteUser(USERNAME=USERNAME) dtml-except An error occurred. Entry was bNOT/b deleted. /dtml-try deleteUser is Z-SQL method.USERNAME is the argument

[Zope-dev] dtml-sendmail issue

2011-07-02 Thread Babylakshmi Muthusamy
Hi, I tried to send mail through SMTP localhost using dtml-sendmail. It was working fine for many days. Currently it is not sending mails. Could you please provide me pointers to debug this issue? Thanks, Lakshmi ___ Zope-Dev maillist -

Re: [Zope-dev] dtml-sendmail issue

2011-07-02 Thread Christopher Lozinski
Break the problem up. First thing to do is to check if sendmail is working from the file system. on unix mail m...@mydomain.com If that breaks, you know what to fix. If that works, double check your configurations on your mailhost object. And finally try just a 3 line sendmail file. I have

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-05 Thread Vincent Fretin
Hi, For AGX3, we started to use Jinja for the template, for example for the generation of setup.py, we have: version = '{{version}}' setup(name='{{project}}', version=version, description={{description}}, ... The syntax is simpler than dtml we use in AGX2: dtml-var description

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-05 Thread Tim Hoffman
HI Vincent. I haven't looked an jinja to date. Will definately have a look at it. I generate a lot of code (sql, gae models, storm schema, formish schema's) from Enterprise Architect, and currently using dtml for all non html/xml output. Cheers T On Sun, Sep 5, 2010 at 3:35 PM, Vincent

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-05 Thread Laurence Rowe
On 5 September 2010 02:49, Tim Hoffman zutes...@gmail.com wrote: Please note that DTML is a dead (and horrid) technology. Martin But zpt is horrible for doing non html/xml based things ;-), What do you think is good alternative in the zope eco system now for templating other types of

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-05 Thread Florian Friesdorf
On Sun, Sep 05, 2010 at 11:13:05AM +0800, Tim Hoffman wrote: Hi Florian I use a model based generation approach (from enterprise architect) however even archgenxml has templates for large amounts of boiler plate under the hood. Have you actually looked at the src of archgenxml, if you

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-05 Thread Hanno Schlichting
On Sun, Sep 5, 2010 at 1:28 PM, Tim Hoffman zutes...@gmail.com wrote: So I was looking for zope eco system based non html/xml based templating systems as a response to Martin saying DTML is dead, as I am currently using DTML for these sorts of tasks. The Zope eco system for such tasks is the

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-04 Thread Tim Hoffman
Please note that DTML is a dead (and horrid) technology. Martin But zpt is horrible for doing non html/xml based things ;-), What do you think is good alternative in the zope eco system now for templating other types of things (sql, python ...) ? T

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-04 Thread Florian Friesdorf
On Sun, Sep 05, 2010 at 08:49:39AM +0800, Tim Hoffman wrote: Please note that DTML is a dead (and horrid) technology. Martin But zpt is horrible for doing non html/xml based things ;-), What do you think is good alternative in the zope eco system now for templating other types

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-04 Thread Tim Hoffman
Hi Florian I use a model based generation approach (from enterprise architect) however even archgenxml has templates for large amounts of boiler plate under the hood. Have you actually looked at the src of archgenxml, if you did you will notices it uses dtml for templating the code output ;-)

[Zope-dev] dtml-sqlgroup bounty

2005-09-16 Thread Peter George
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, We are offering another modest bounty. 3. Add dtml-comma to dtml-sqlgroup dtml-sqlgroup allows groups of SQL terms to be applied to SELECT statements but unfortunately it cannot be used with UPDATE. A patch was written to add this

Re: [Zope-dev] DTML

2004-03-04 Thread Christian Theune
On Tue, 2004-03-02 at 18:24, Fábio Bruno wrote: Dear Sir or Madamme We are working with zope at school, it was proppoused to us to do an imobiliary site and we like to know who we can do a for cicle or repeat to search in our document whow many houses where added. Your's faithfully,

[Zope-dev] DTML

2004-03-04 Thread Fábio Bruno
Dear Sir or Madamme We are working with zope at school, it was proppoused to us to do an imobiliary site and we like to know who we can do a for cicle or repeat to search in our document whow many houses where added. Your's faithfully, Fábio Bruno

[Zope-dev] dtml to zpt conversion-please help

2003-07-04 Thread Exteam
Hi, dtml-in "Catalog.searchResults({'meta_type':'Workitem', 'status':['active','inactive','fallout'], 'pull_roles':acl_users.getUser(REQUEST['worker']).getRoles()}) +Catalog.searchResults({'meta_type':'Workitem', 'status':['active','inactive','fallout'],'actor':worker})" sort=status,instance_id

Re: [Zope-Coders] Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-19 Thread Martijn Pieters
On Wed, Aug 14, 2002 at 04:25:09PM -0400, Brian Lloyd wrote: So here's what we'll do. Zope 2.6 will include the string tainting changes, enabled by default. The tainting can be turned off by providing an environment variable. The next Zope 2.5.x release will contain the tainting code, but

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-14 Thread Brian Lloyd
Like I said before, this is probably a good feature. If it was available as a patch then I would probably use it on a number of my sites, and would recommend it to others. I would be very happy see it (or something like it) in 2.7. But not 2.6. Then Jim wrote: WRT to this change,

Re: [Zope-dev] DTML and REQUEST data changes about to be checkedin

2002-08-13 Thread Max M
Jim Fulton wrote: The plan is to release 2.6 as soon as we can. We're really busy with a bunch of customer work and haven't had as much time to work on this as we'd like. Well actually this is more comforting than if you had a lot of time on your hands ;-) regards Max M -- Sorry I

Re: [Zope-Coders] Re: [Zope-dev] DTML and REQUEST data changesaboutto be checked in

2002-08-12 Thread Shane Hathaway
Dieter Maurer wrote: Adrian Hungate writes: We should avoid sending the wrong message by making a hotfix for every little thing. Shane I'd like to second this. It was one of the contibuting factors in the decision of my former employers to opt for spectra instead

Re: [Zope-Coders] Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-12 Thread Toby Dickenson
On Friday 09 Aug 2002 4:33 pm, Tres Seaver wrote: Whithout the fix, virtually every Zope site in the world is vulnerable to URL-based cross-site scripting exploits. For instance, any URL which contains invalid form variable marshalling can generate an error page which includes the erroneous

Re: [Zope-Coders] Re: [Zope-dev] DTML and REQUEST data changesabout to be checked in

2002-08-12 Thread Adrian Hungate
I'd like to second this. It was one of the contibuting factors in the decision of my former employers to opt for spectra instead of a Zope solution (That already existed!!). I, in contrary, appreciate the openess and fast response with respect to security problems. I do not

Re: [Zope-Coders] Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-12 Thread Martijn Pieters
On Mon, Aug 12, 2002 at 03:51:24PM +0100, Toby Dickenson wrote: On Friday 09 Aug 2002 4:33 pm, Tres Seaver wrote: Whithout the fix, virtually every Zope site in the world is vulnerable to URL-based cross-site scripting exploits. For instance, any URL which contains invalid form variable

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-12 Thread Jim Fulton
Jeffrey P Shell wrote: On 8/9/02 8:43 AM, Toby Dickenson [EMAIL PROTECTED] wrote: ... Like I said before, this is probably a good feature. If it was available as a patch then I would probably use it on a number of my sites, and would recommend it to others. I would be very happy see it (or

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-09 Thread Toby Dickenson
On Thursday 08 Aug 2002 9:29 pm, Martijn Pieters wrote: On Thu, Aug 08, 2002 at 08:19:12PM +0100, Toby Dickenson wrote: I am about to land some big changes in the way DTML deals with data taken from the REQUEST object when accessed implicitly, in both the Zope Trunk and the Zope 2.5

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-09 Thread Martijn Pieters
On Fri, Aug 09, 2002 at 09:56:45AM +0100, Toby Dickenson wrote: The risk for breakage is very small really Your choice of '' and html_quote suggests that my dtml code which generates javascript and vbscript carries a higher risk than dtml which generates html. Only if you generated that

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-09 Thread Toby Dickenson
On Friday 09 Aug 2002 3:12 pm, Martijn Pieters wrote: On Fri, Aug 09, 2002 at 09:56:45AM +0100, Toby Dickenson wrote: The risk for breakage is very small really Your choice of '' and html_quote suggests that my dtml code which generates javascript and vbscript carries a higher risk than

Re: [Zope-Coders] Re: [Zope-dev] DTML and REQUEST data changesabout to be checked in

2002-08-09 Thread Tres Seaver
On Fri, 2002-08-09 at 10:43, Toby Dickenson wrote: On Friday 09 Aug 2002 3:12 pm, Martijn Pieters wrote: On Fri, Aug 09, 2002 at 09:56:45AM +0100, Toby Dickenson wrote: The risk for breakage is very small really Your choice of '' and html_quote suggests that my dtml code which

Re: [Zope-Coders] Re: [Zope-dev] DTML and REQUEST data changesaboutto be checked in

2002-08-09 Thread Shane Hathaway
Tres Seaver wrote: Whithout the fix, virtually every Zope site in the world is vulnerable to URL-based cross-site scripting exploits. For instance, any URL which contains invalid form variable marshalling can generate an error page which includes the erroneous value, unquoted. E.g.:

Re: [Zope-dev] DTML and REQUEST data changes about to be checkedin

2002-08-09 Thread Jeffrey P Shell
On 8/9/02 8:43 AM, Toby Dickenson [EMAIL PROTECTED] wrote: I agree it is true in most cases, but not all. Have you analysed how many applications will be broken by this? how they can detect the breakage? I certainly will not have time to assess the implications on my applications before the

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-08 Thread Martijn Pieters
On Thu, Aug 08, 2002 at 08:19:12PM +0100, Toby Dickenson wrote: I am about to land some big changes in the way DTML deals with data taken from the REQUEST object when accessed implicitly, in both the Zope Trunk and the Zope 2.5 branch. In my opinion this change is completely unacceptable

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-03 Thread Florent Guillaume
The way I see it is this: ZPT has (amongst others) the very nice property that it's trivial to audit ZPT pages for non-quoted string output: just grep for 'structure'. OTOH in DTML there's no way to do that, the default is unquoted output. dtml-stuff; is a good step, but there's way too much

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-02 Thread Andy McKay
Likewise Im trying to digest all that and Im a little suprised. More magic in DTML? Not something I'd vote for normally. Im a little confused why this is suddenly an issue, yeah so we pull a string out of the REQUEST and thanks to DTML stack we may not know where it came from. Well thats always

Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-02 Thread Martijn Pieters
On Fri, Aug 02, 2002 at 08:55:13AM -0700, Andy McKay wrote: Likewise Im trying to digest all that and Im a little suprised. More magic in DTML? Not something I'd vote for normally. Im a little confused why this is suddenly an issue, yeah so we pull a string out of the REQUEST and thanks to

[Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-01 Thread Martijn Pieters
Hi folks, I am about to land some big changes in the way DTML deals with data taken from the REQUEST object when accessed implicitly, in both the Zope Trunk and the Zope 2.5 branch. These changes could potentially break existing Zope sites. Without these changes, Zope is somewhat vulnerable to

[Zope-dev] DTML Document textarea edit

2002-01-28 Thread Dirk Datzert
Hi! I want to suggest a modification for the DTML Document/Method dtml-file documentEdit.dtml On default the textarea will be displayd with wrap=off . If I imported XML-Files without line breaks it is difficult to edit the files via DTML-Webfrontend. A property wrapmode could solve this:

[Zope-dev] dtml-mime and MIME-Version

2001-11-18 Thread Julián Muñoz Domínguez
(I report this here because the bug collector is down) Having some problems sending attachements with dtml-sendmail, I have been reported that the bug is: dtml-mime doesn't generate MIME-Version: 1.0 header. Such a header is required by MIME in order to recognize the message as MIME message

Re: [Zope-dev] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-30 Thread Yves-Eric Martin
On Thu, 28 Jun 2001 22:42:13 +0200 (CEST) Dieter Maurer [EMAIL PROTECTED] wrote: I expect that dtml-sqltest does not support the expr attribute due to its optional. It is not easy to define the semantics of optional for arbitrary expressions. True, but you already found a possible

Re: [Zope-dev] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-30 Thread Dieter Maurer
Yves-Eric Martin writes: I expect that dtml-sqltest does not support the expr attribute due to its optional. It is not easy to define the semantics of optional for arbitrary expressions. To overcome that problem, I think it would make sense to treat the optional

[Zope-dev] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-28 Thread Yves-Eric Martin
Hello everyone, I was recently working on a quite big ZSQL method (around 100 lines). I was using only dtml-if and dtml-sqlvar tags and a lot of like '%...%', so thought I could make things look much nicer using dtml-sqlgroup and dtml-sqltest ... op=like optional. But I ran into a big hurdle:

Re: [Zope-dev] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-28 Thread Dieter Maurer
Yves-Eric Martin writes: But unfortunately, dtml-sqltest ... does not seem to work. We get the following error: The ... shorthand for expr was used in a tag that doesn't support expr attributes., for tag dtml-sqltest [...] I expect that dtml-sqltest does not support the expr

Re: [Zope-dev] dtml-in batching badly

2001-06-20 Thread Michael Bernstein
seb bacon wrote: * Joachim Werner [EMAIL PROTECTED] [010618 20:28]: That's not the behaviour I'd expect. Can anyone confirm this is a bug? As LEE Kwan Soo has already said, it is not a bug, but a clever (too clever?) feature that should maybe not be enabled by default. Every

Re: [Zope-dev] dtml-in batching badly

2001-06-20 Thread Dyon Balding
Michael Bernstein wrote: But the algorithm doesn't seem 'smart' enough to roll-up the batches by recursing through them in reverse order. Arguably though, you should never set your batch size smaller than the orphan size, so this isn't really an issue. so maybe the dtml batching code

Re: [Zope-dev] dtml-in batching badly

2001-06-19 Thread seb bacon
* Joachim Werner [EMAIL PROTECTED] [010618 20:28]: That's not the behaviour I'd expect. Can anyone confirm this is a bug? As LEE Kwan Soo has already said, it is not a bug, but a clever (too clever?) feature that should maybe not be enabled by default. Every second week or so somebody

RE: [Zope-dev] dtml-in batching improved

2001-06-19 Thread Jean Lagarde
Ivo, somehow I had missed the very start of the thread. I think that my change pretty much implements the third alternative you describe in your post, but for which you provided no patch (the one which defines the variables at the top and bottom only, because I leave the if index==first or

Re: [Zope-dev] dtml-in batching improved

2001-06-18 Thread Ivo van der Wijk
On Wed, Jun 13, 2001 at 04:28:12PM -0700, Jean Lagarde wrote: Good day all, Here is the original code, with my annotated change (I deleted an if test in two places): for index in range(first,end): # preset

[Zope-dev] dtml-in batching badly

2001-06-18 Thread seb bacon
Hi, First, I don't post to this list normally; is it the best place to discuss an apparent bug? Anyway, the lowdown: If you iterate over a list with a batch size of 1, it messes up towards the end of the sequence. For example, the following code: dtml-call REQUEST.set('hoo',(1,2,3,4))

Re: [Zope-dev] dtml-in batching badly

2001-06-18 Thread LEE, Kwan Soo
No it's not a bug(in code) but a feature. May You call it a bug (in usability), though. What causes it is that the orphan value defaults to 3 when not explicitely set. See the online help for in tag. LEE Kwan Soo

Re: [Zope-dev] dtml-in batching badly

2001-06-18 Thread Joachim Werner
That's not the behaviour I'd expect. Can anyone confirm this is a bug? As LEE Kwan Soo has already said, it is not a bug, but a clever (too clever?) feature that should maybe not be enabled by default. Every second week or so somebody runs into this and thinks it is a bug. To the DC people:

Re: [Zope-dev] dtml-in batching badly

2001-06-18 Thread Casey Duncan
Joachim Werner wrote: That's not the behaviour I'd expect. Can anyone confirm this is a bug? As LEE Kwan Soo has already said, it is not a bug, but a clever (too clever?) feature that should maybe not be enabled by default. Every second week or so somebody runs into this and thinks it

[Zope-dev] DTML-Python confusion (RE: [Zope] How to make a script return rendered dtml)

2001-06-13 Thread Bjorn Stabell
I've spent hours, maybe days, being confused about this as well. According to the Zope API documentation and ZDP at http://zdp.zope.org/projects/zfaq/faq/DTML/959888072 http://zdp.zope.org/projects/zsnippet/snippets/DTMLTags/CallingDTMLMetho ds someDTMLMethod(_.None, _) should

RE: [Zope-dev] dtml-in batching improved

2001-06-05 Thread Adrian Hungate
Title: RE: [Zope-dev] dtml-in batching improved Back before the zope.org product directory became so easy to navigate I wrote an index that I used to use which has batch links top and bottom: http://www.zope.org/Members/haqa/productlist/view_source Dunno if this helps... Adrian

Re: [Zope-dev] dtml-in batching improved

2001-06-03 Thread Chris Withers
Nope, my solution used only one dtml-in and maybe a dtml-let, no REQUEST munging :-) Ok, show me :) Hurm... gimme a shout next Thursday when I have access to the code again ;-) Actually, scratch that, check out the folder_contents.dtml file in CMFDefault/skins of the CMF. It does

Re: [Zope-dev] dtml-in batching improved

2001-06-02 Thread Chris Withers
Nope, my solution used only one dtml-in and maybe a dtml-let, no REQUEST munging :-) Ok, show me :) Hurm... gimme a shout next Thursday when I have access to the code again ;-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] dtml-in batching improved

2001-06-01 Thread Ivo van der Wijk
On Thu, May 31, 2001 at 05:36:21PM +0100, Chris Withers wrote: I've done it myself as well using (as described in the posting) two dtml-in's (the second one purely for displaying the prev/next links). Is your solution any different? (The only one I can think of is storing the info in

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Chris Withers
When using batching in dtml-in, why is 'previous-sequence' only defined at the first iteration of the current batch? And why is 'next-sequence' only defined at the last iteration of the current batch? I know this problem ;-) I had it too, and stuck something in the collector about it. I did

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Ivo van der Wijk
On Wed, May 30, 2001 at 10:02:31PM +0100, Chris Withers wrote: When using batching in dtml-in, why is 'previous-sequence' only defined at the first iteration of the current batch? And why is 'next-sequence' only defined at the last iteration of the current batch? I know this problem ;-)

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Casey Duncan
Ivo van der Wijk wrote: On Wed, May 30, 2001 at 10:02:31PM +0100, Chris Withers wrote: When using batching in dtml-in, why is 'previous-sequence' only defined at the first iteration of the current batch? And why is 'next-sequence' only defined at the last iteration of the current

Re: [Zope-dev] dtml-in batching improved

2001-05-31 Thread Chris Withers
I've done it myself as well using (as described in the posting) two dtml-in's (the second one purely for displaying the prev/next links). Is your solution any different? (The only one I can think of is storing the info in your REQUEST object and using it later, but that's really ugly.)

[Zope-dev] dtml-in batching improved

2001-05-29 Thread Ivo van der Wijk
Hi all, When using batching in dtml-in, why is 'previous-sequence' only defined at the first iteration of the current batch? And why is 'next-sequence' only defined at the last iteration of the current batch? This behaviour makes it difficult to display a batch like this: -- begin sample --

[Zope-dev] dtml-in bug?

2001-05-28 Thread Christian Scholz
Hi! Dunno if it's again my strange setup, but I have some problem with dtml-in or maybe I simply didn't get something right.. Well, I used the following dtml code: html dtml-in expr=[1,2,3,4,5,6] size=4 abr /dtml-in /html and I thought I will get three a's as output.. instead I get 6.. If I

Re: [Zope-dev] dtml-in bug?

2001-05-28 Thread Tino Wildenhain
Hi Christian, --On Montag, 28. Mai 2001 15:38 +0200 Christian Scholz [EMAIL PROTECTED] wrote: Hi! Dunno if it's again my strange setup, but I have some problem with dtml-in or maybe I simply didn't get something right.. Well, I used the following dtml code: html dtml-in

Re: [Zope-dev] dtml-in bug?

2001-05-28 Thread Christian Scholz
Hi! ok, some more people told me now about it.. ;-) It's not that intuitive nevertheless.. (IMHO) ;-) cheers and thx, Christian On Mon, May 28, 2001 at 05:20:39PM +0200, Tino Wildenhain wrote: Hi Christian, --On Montag, 28. Mai 2001 15:38 +0200 Christian Scholz [EMAIL PROTECTED]

Re: [Zope-dev] dtml-in performance

2001-04-05 Thread Casey Duncan
Brett Carter wrote: What can I do to maximize the peformance of a dtml-in statement? When iterating over a 2000 row database query, it takes about 20 seconds - time mostly spent doing security checks, and calling __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? -Brett

Re: [Zope-dev] dtml-in performance

2001-04-05 Thread Joachim Werner
What can I do to maximize the peformance of a dtml-in statement? When iterating over a 2000 row database query, it takes about 20 seconds - time mostly spent doing security checks, and calling __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? -Brett Another

[Zope-dev] dtml-in performance

2001-04-04 Thread Brett Carter
What can I do to maximize the peformance of a dtml-in statement? When iterating over a 2000 row database query, it takes about 20 seconds - time mostly spent doing security checks, and calling __getitem__ in DT_InSV.py. Is the performance of dtml-in just slow? -Brett

Re: [Zope-dev] dtml-in: next-batches

2001-03-08 Thread Dieter Maurer
Brett Carter writes: I tried accessing keys off the 'data' object, and I just get an 'unathorized' error. Dieter The attributes your are looking for are in fact keys Dieter of the mapping 'data'. Sorry for the misleading answer. "data" is not supposed to be used directly.

Re: [Zope-dev] dtml-in: next-batches

2001-03-07 Thread Brett Carter
I tried accessing keys off the 'data' object, and I just get an 'unathorized' error. -Brett "Dieter" == Dieter Maurer [EMAIL PROTECTED] writes: Dieter Brett Carter writes: I'm running Zope 2.2.2, and I'm trying to use the batching stuff for the dtml-in tag, however, I can't seem

[Zope-dev] dtml-in: next-batches

2001-03-07 Thread Brett Carter
Does anybody have an example of how to use the supposed next-batches mapping returned by dtml-in? I'm trying to build a google-like pageing feature into my application, so we just show the first 5 results, then have a link to each next page, ie "1,2,3,4..." Thanks, -Brett

RE: [Zope-dev] dtml-in: next-batches

2001-03-07 Thread Bryan Baszczewski
ECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brett Carter Sent: Wednesday, March 07, 2001 6:34 PM To: [EMAIL PROTECTED] Subject: [Zope-dev] dtml-in: next-batches Does anybody have an example of how to use the supposed next-batches mapping returned by dtml-in? I'm trying to build a google-like pag

Re: [Zope-dev] dtml-in: next-batches

2001-03-02 Thread Brett Carter
I've also discovered that setting overlap = 0 actually causes everything to overlap by 1. I didn't see anything in the collector about this either... -Brett "Brett" == Brett Carter [EMAIL PROTECTED] writes: Brett I'm running Zope 2.2.2, and I'm trying to use the batching stuff for

Re: [Zope-dev] dtml-in: next-batches

2001-03-02 Thread Dieter Maurer
Brett Carter writes: I'm running Zope 2.2.2, and I'm trying to use the batching stuff for the dtml-in tag, however, I can't seem to access any attributes off the 'next-batches' or 'previous-batches' mapping object that's supposed to be available, with the attributes 'batch-start-index',

[Zope-dev] dtml-in: next-batches

2001-03-01 Thread Brett Carter
I'm running Zope 2.2.2, and I'm trying to use the batching stuff for the dtml-in tag, however, I can't seem to access any attributes off the 'next-batches' or 'previous-batches' mapping object that's supposed to be available, with the attributes 'batch-start-index', 'batch-end-index', and

Re: [Zope-dev] DTML Documents/Folders in ZClasses fail to accessanything

2001-02-22 Thread Itai Tavor
Steve Alexander wrote: Itai Tavor wrote: Hi, I got a ZClass 'Test', with a DTML Method 'view' containing dtml-var id, and a DTML Document 'view2' with the same line. instance/view works. instance/view2 returns (ZDebug output): From SimpleItem.py: """Direct use of the 'id' attribute is

Re: [Zope-dev] DTML Documents/Folders in ZClasses fail to access anything

2001-02-21 Thread Steve Alexander
Itai Tavor wrote: Hi, I got a ZClass 'Test', with a DTML Method 'view' containing dtml-var id, and a DTML Document 'view2' with the same line. instance/view works. instance/view2 returns (ZDebug output): From SimpleItem.py: """Direct use of the 'id' attribute is deprecated - use

[Zope-dev] DTML Documents/Folders in ZClasses fail to access anything

2001-02-20 Thread Itai Tavor
Hi, I got a ZClass 'Test', with a DTML Method 'view' containing dtml-var id, and a DTML Document 'view2' with the same line. instance/view works. instance/view2 returns (ZDebug output): Error type: Unauthorized Error value: The object /test/view2, which is contained in /test/view2, is marked

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Tres Seaver
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Steve Alexander
Casey Duncan wrote: If not, I will make a patch for DT_String to support this. The beneficial side affect would be that dtml-comment could be "fixed" so that its contents need not be parsable anymore, just like every other language I know of. With your patch applied, will nested

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Casey Duncan
Steve Alexander wrote: With your patch applied, will nested dtml-comment tags still work? dtml-comment Some code commented out dtml-comment Documentation in a comment /dtml-comment Rest of code commented out /dtml-comment -- Steve Alexander Software Engineer

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Casey Duncan
Casey Duncan wrote: Steve Alexander wrote: With your patch applied, will nested dtml-comment tags still work? dtml-comment Some code commented out dtml-comment Documentation in a comment /dtml-comment Rest of code commented out /dtml-comment --

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread richard
Tres Seaver wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Tres Seaver
On Wed, 24 Jan 2001 [EMAIL PROTECTED] wrote: Tres Seaver wrote: Please post this as a "Bug w/ patch" to the Collector: http://classic.zope.org:8080/Collector That way we don't lose your fix in the list traffic (losing it along with our marbles is another problem :) Someone

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Brad Clements
On 24 Jan 2001, at 9:43, [EMAIL PROTECTED] wrote: Tres Seaver wrote: Please post this as a "Bug w/ patch" to the Collector: http://classic.zope.org:8080/Collector That way we don't lose your fix in the list traffic (losing it along with our marbles is another problem :)

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread richard
Brad Clements wrote: On 24 Jan 2001, at 9:43, [EMAIL PROTECTED] wrote: Tres Seaver wrote: Please post this as a "Bug w/ patch" to the Collector: http://classic.zope.org:8080/Collector That way we don't lose your fix in the list traffic (losing it along with our marbles is

Re: [Zope-dev] dtml-in batching

2001-01-23 Thread Brad Clements
On 24 Jan 2001, at 11:15, [EMAIL PROTECTED] wrote: Brad Clements wrote: I posted this same bug AND a patch as bug # 1566 on Aug 28th, 2000. http://classic.zope.org:8080/Collector/1566/view Sad to see its *still* pending Well that's odd - I searched the collector for "dtml-in"

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Steve Alexander
Casey Duncan wrote: OK, I have developed a new patch that almost completely fixes this issue. In fact I am happier with it in general than my first patch. There is only one flaw, although you can nest comments inside of one another, and you can have any manner of broken dtml inside, if you

[Zope-dev] dtml-in batching

2001-01-21 Thread richard
The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering of the previous and next blocks. I've hacked my code so that

Re: [Zope-dev] dtml-in batching

2001-01-21 Thread richard
[EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering of the previous and next

Re: [Zope-dev] dtml-in batching

2001-01-21 Thread richard
[EMAIL PROTECTED] wrote: The dtml-in batching mechanisms are quite difficult to debug - the DTML documentation I have has examples which break it and there's no indication of why. It turns out the DT_In renderwb() code gobbles all exceptions from the rendering of the previous and next

Re: [Zope-dev] DTML Documents == DTML Methods that are anchored?

2000-12-30 Thread Dieter Maurer
The Doctor What writes: What are the differences between DTML Documents and Methods internally? There are too small differences: 1. DTML documents implement the "PropertyManager" interface, i.e. they can have properties other than "id" and "title". 2. DTML documents place themselves

[Zope-dev] DTML Documents == DTML Methods that are anchored?

2000-12-29 Thread The Doctor What
What are the differences between DTML Documents and Methods internally? I was just thinking about the problems every new user (and experienced users, every so often) have regarding DTML Documents vs DTML Methods. Aren't they really the same except that Documents are anchored (ie, don't allow

Re: [Zope-dev] DTML Documents == DTML Methods that are anchored?

2000-12-29 Thread matt
You should look through the mailing lists there is generous amounts of answers to this. For me the two sit philosophically linked in the acquisition model. Acquisition is partially about actions working in environments, with the environment decribing the quality of the result. You can

Re: [Zope-dev] DTML processing variable

2000-11-10 Thread Paul Erickson
If this is your exact code, it looks like you should be using "sequence-item", instead of "sequence_item". You should also be able to do it without the external method like this: (100% untested) dtml-in expr="_.string.split(acctUsersEmail)" dtml-var name="sequence-item" /dtml-in "David W.

[Zope-dev] DTML Entity Syntax, was (no subject)

2000-10-27 Thread Spicklemire, Jerry
Johann Loibl wonders: What does the following line means? href="dtml.url-mail_password_form; how to work with '' ? This means to substitue the value stored in the variable "mail_password_form" as an "absolute URL". It's known as "DTML Entity Syntax". Check out:

[Zope-dev] dtml-try/except triggers namespace bug

2000-07-08 Thread Ng Pheng Siong
Hi, I've run into a bug with dtml-try/except with Zope 2.2.0b3. I have a folder called 'root' that looks like this: one (folder) two (folder) three (folder) a_one (dtml method) a_two (dtml method) index_html (dtml method) index_html looks like this: dtml-try dtml-var

[Zope-dev] dtml-in: sort is not locale-aware

2000-06-20 Thread Oleg Broytmann
Hello! Currently dtml-in does not use locale when sorting the sequence. Before creating a patch I want to discuss a way dtml-in should handle this. The problem is that list.sort() does not sort according to koi8-r cyrillic locale; to make sort locale-aware I need to list.sort(locale.strcoll).

Re: [Zope-dev] dtml-in: sort is not locale-aware

2000-06-20 Thread Oleg Broytmann
On Tue, 20 Jun 2000, mike wrote: But how I could ask dtml-in to use locale.strcoll? Should I add another option to dtml-in? Something like dtml-in somesequence sort=name use_locale ? I use dtml-in "ru_sort( somesequence)" A bit slower but works like hammer. I want to use all

[Zope-dev] DTML DTD (or DTML mode for EMACS)?

2000-06-19 Thread mike
Does anybody have subject? Thanks, Mike ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce

  1   2   >