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 "deleteUser(USERNAME=USERNAME)"> > > An error occurred. Entry was NOT deleted. > > > deleteUser is Z-SQL method.USERNAME is the argument in Z-SQL method > also column na

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 > I'm not familiar with DTML, > I would like to: > > deleteUser(USERNAME=invalid USERNAME) > > Does not throw a

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 > Hi all, > > I have DTML-Method like below > > > > > An error occurred. Entry was NOT deleted. > > >

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-sendmail issue

2011-07-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/02/2011 11:35 AM, Babylakshmi Muthusamy wrote: > 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 issu

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 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 same as the wider

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

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

2010-09-05 Thread Tim Hoffman
Hi Laurence I think you missed my point. I was talking about generating code (sql as DDL for instance) not sql statements. I use Enterprise architect to model the application in UML for the data model, entity model, I generate generate storm schema and DDL for accessing the database from the mo

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

2010-09-05 Thread Laurence Rowe
On 5 September 2010 02:49, 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 of things (sql

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 Fretin

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: Vincent On Sun, Sep

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 ;-) 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 templa

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

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, >

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, b

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 wro

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-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

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 v

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

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 errone

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 f

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

2002-08-11 Thread Dieter Maurer
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 of a Zope > solutio

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

2002-08-09 Thread Adrian Hungate
> [Snip] > > I just want to keep the security worries in check. Let me ramble for a > bit... We've released a lot of hotfixes, but *none* of the > vulnerabilities could give an attacker root access, and none of them > could give console access to anonymous users AFAIK. All of the > vulnerabilit

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 > befo

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-Coders] Re: [Zope-dev] DTML and REQUEST data changes aboutto be checked in

2002-08-09 Thread Oliver Bleutgen
Tres Seaver wrote: > Martijn did add a knob to turn the feature off, via a new environment > variable. With a security vulnerability, we have to come up with some > kind of balance between the need to propagate the fix as quickly as > possible and the need (as you point out) not to disrupt produ

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

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

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 t

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 Zop

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 unacc

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 co

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

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 b

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

2001-06-30 Thread Yves-Eric Martin
On Sat, 30 Jun 2001 11:41:57 +0200 (CEST) Dieter Maurer <[EMAIL PROTECTED]> wrote: > If I were a purist, I would answer: no. > > The name error could come from a nested call that incidentally > uses the same name for a variable as a request argument. Granted. But I have just been t

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

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

2001-06-29 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

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, 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 http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding!

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 index=

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 > kw['previous-s

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

2001-06-13 Thread Jean Lagarde
Good day all, I wouldn't consider myself as a Zope developper, but since that's where the thread was... I've read the thread with interest but so far all I've read in it are workarounds that I do not find particularly nice. I did find a bug w/patch in the collector (#1317), which I thought was m

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

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 i

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.)

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 cu

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 probl

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 di

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 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: > > > > a > > *

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 > > > > A

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 > > > > A

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? > -Br

Re: [Zope-dev] dtml-in performance

2001-04-04 Thread Jens Vagelpohl
call the daatabase query in an external method and convert the result to a simple object (like a dictionary), then pass that back and iterate over it jens on 4/4/01 20:54, Brett Carter at [EMAIL PROTECTED] wrote: > What can I do to maximize the peformance of a dtml-in statement? > When iterati

Re: [Zope-dev] dtml-in performance

2001-04-04 Thread Andy
Yes, but iterating over a list of 2000 rows is a long process. Things like using mapping slow it down even further as you get each column. Less rows will make all the difference. - Original Message - From: "Brett Carter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 0

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 Bryan Baszczewski
I found this in some Zope documentation. It wont give you "1,2,3,4,5...10" it gives "(1-10)(11-20)(21-30)...". Monkey with it a little and you'll get it. Beware it will call your External Method or ZSQL as many times/10. , ( - ) , ( - ) )"> -Bryan -Original Message-

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

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'

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 fo

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 >>, 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 Dieter Maurer
Itai Tavor writes: > I got a ZClass 'Test', with a DTML Method 'view' containing 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 >

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 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 getId()"""

Re: [Zope-dev] dtml-in batching

2001-01-24 Thread Chris Withers
[EMAIL PROTECTED] wrote: > Well that's odd - I searched the collector for "dtml-in" and got no > matches. that's because of the - in dtml-in being treated as a stop character by ZCatalog. Ironically, ZCatalog is not very good at indexing stuff that contains documentation about Zope, stripping

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

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

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

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 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 :)

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 go

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? > > > > > >Some code commented out > > > >Documentation in a comment > > > >Rest of code commented out > > > > > > -- > > Steve Alexander > > Softwar

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? > > >Some code commented out > >Documentation in a comment > >Rest of code commented out > > > -- > Steve Alexander > Software Engineer > Cat-Box limited > http://www.cat-box

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 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 dtml-comment tags

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

Re: [Zope-dev] dtml-in batching

2001-01-22 Thread Brad Clements
+1100 To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Subject: Re: [Zope-dev] dtml-in batching > [EMAIL PROTECTED] wrote: > > > > The dtml-in batching mechanisms are quite difficult to debug - the DTML > > documentation I have has e

Re: [Zope-dev] DTML block parsing

2001-01-22 Thread ender
On Monday 22 January 2001 08:54, Casey Duncan wrote: > I am working on a custom DTML tag (that I may unleash on the world when > finished) that has brought to my attention an interesting feature of the > DTML parser: > > It preparses everything in the block(s) between the start and end tags > befo

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 b

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 b

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

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 thin

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) "David W. Damon" wrote: > > Hey all, > > I'm having difficulty getting dtml-in to iterate ov

RE: [Zope-dev] dtml-var tag suggestion

2000-07-31 Thread Casey Duncan
Booth [mailto:[EMAIL PROTECTED]] Sent: Monday, July 31, 2000 10:09 AM To: Casey Duncan; [EMAIL PROTECTED] Subject: Re: [Zope-dev] dtml-var tag suggestion > I have been using dtml to create dynamic JavaScripts for some forms I am > creating. In doing this I came upon the standard problem of ins

Re: [Zope-dev] dtml-var tag suggestion

2000-07-31 Thread Duncan Booth
> I have been using dtml to create dynamic JavaScripts for some forms I am > creating. In doing this I came upon the standard problem of inserting > strings containing double quotes into a JavaScript such as where title = > '"Quoted String"': > > form.select.options[0].text = ""; > > And you win

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

2000-06-20 Thread mike
Oleg Broytmann wrote: > > 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

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 > > ? > > I use > A bit slower but works like hammer. I want to use all power of dtml-in and other zope tools. There are things where I ca

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

2000-06-20 Thread mike
Stephan Richter wrote: > > At 01:30 PM 6/20/00 +0800, you wrote: > >Does anybody have subject? > > Well, I use SGML-MODE. Works for me. Which DTD do you use? If I have 'ignore undefined elements' option set it does not indent tags properly (of course). If I unset this option, 'normalize' comm

Re: [Zope-dev] DTML tag creation.

2000-05-25 Thread Itamar Shtull-Trauring
Bill Anderson wrote: > I am about to dive into a custom tag, it will be a 'container' tag. > I have seen the HowTo, and it really isn't that clear when you get to > the container tag info. > > Can anyone provide a better rundown? Anyone have a custom tag they > would mind sharing for perusal? >