Re: [Zope] dtml-except

2010-10-04 Thread Jaroslav Lukesh
- Puvodní zpráva - Od: Komu: Odesláno: 4. ríjna 2010 21:57 Predmet: [Zope] dtml-except > Hi, > > I need the old timers to help with a zope dtml-try/dtml-except conditions. > I am using Zope 2.6.1. My problem is as follows: > > > fluency - ** > > > > > > > > > > > > > > > Inval

Re: [Zope] dtml-in pagination

2009-04-10 Thread Dieter Maurer
Bobby wrote at 2009-4-7 09:58 -0700: > > previous > next > > > > > Not sure, whether you will find it useful. But, you may have a look at "http://www.handshake.de/~dieter/pyprojects/zope/book/chap3.html#c37ac15c14b4";. Search there for "4.3.5.2.3. Batch control". -- Dieter

Re: [Zope] dtml-in pagination

2009-04-08 Thread Jeff Peterson
PT though. http://www.zopelabs.com -- Jeffrey D Peterson Webmaster Crary Industries, Inc. -Original Message- From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Bobby Sent: Tuesday, April 07, 2009 2:48 PM To: zope@zope.org Subject: Re: [Zope] dtml-in pagination Could someone

Re: [Zope] dtml-in pagination

2009-04-07 Thread Bobby
Could someone point me to some documentation on how to do pagination? Thanks. --- On Tue, 4/7/09, Bobby wrote: > From: Bobby > Subject: [Zope] dtml-in pagination > To: zope@zope.org > Date: Tuesday, April 7, 2009, 10:58 AM > Hi, > > I'm trying to do pagination with dtml-in; could one of > y

Re: [Zope] dtml-in

2009-04-02 Thread Bobby
that works, thanks. --- On Wed, 4/1/09, Andreas Jung wrote: From: Andreas Jung Subject: Re: [Zope] dtml-in To: cybercruis...@yahoo.com Cc: zope@zope.org Date: Wednesday, April 1, 2009, 10:56 PM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02.04.2009 5:20 Uhr, Bobby wrote: > Hi, >

Re: [Zope] dtml-in

2009-04-01 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02.04.2009 5:20 Uhr, Bobby wrote: > Hi, > > I have a variable called "checkGroup" where its values are the record ids > that the user selected to be deleted. I have a deleteRecord method that takes > two arguements, one the sql table and the reco

Re: [Zope] dtml-tree documentation

2008-05-27 Thread Tim Nash
http://www.zope.org/Members/anthony/tree-coding-tricks and http://www.zope.org/Members/cybertad/how_to/working_with_tree > Where can I find out about this 'advanced usage'? > Regards > Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mai

Re: [Zope] dtml-tree documentation

2008-05-26 Thread Stefan H. Holek
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html On 25.05.2008, at 16:54, Garry Saddington wrote: Is there a complete documentation of the dtml-tree tag anywhere? -- Stefan H. Holek [EMAIL PROTECTED] ___ Zope maillist - Zope@zop

Re: [Zope] dtml-tree documentation

2008-05-25 Thread Andreas Jung
--On 25. Mai 2008 15:54:58 +0100 Garry Saddington <[EMAIL PROTECTED]> wrote: Is there a complete documentation of the dtml-tree tag anywhere? The dtml reference of the Zope book has the following for some options: "This attribute is for advanced usage only" Where can I find out about this 'a

Re: [Zope] dtml-tree - change icons

2007-11-23 Thread Sascha Welter
(Wed, Nov 21, 2007 at 07:10:32PM +0100) Dieter Maurer wrote/schrieb/egrapse: > However, I was told that there is a better tree package (forgot > its name). We're using ExpansionTree, which is ages-old, but it works. Maybe that was the name you were looking for. Regards, Sascha ___

Re: [Zope] dtml-tree - change icons

2007-11-21 Thread Dieter Maurer
Ulla Theiss wrote at 2007-11-21 15:52 +0100: > ... >we are using the dtml-tree - and we need other pictures for the plus and >the minus symbol. How can we change them? The code does not support to change the plus and minus symbols. Your options: * You change the code (--> "TreeDisplay.TreeTa

Re: [Zope] dtml method contents

2007-08-30 Thread garry saddington
On Thu, 2007-08-30 at 19:31 +0100, garry saddington wrote: > On Thu, 2007-08-30 at 18:44 +0100, Peter Bengtsson wrote: > > > > garry saddington wrote: > > > I found this method on Zopelabs to get the contents of all ZSQL methods. > > > > > > > > Method'], search_sub=1)"> > > > &dtml.-id; (&dtm

Re: [Zope] dtml method contents

2007-08-30 Thread Dieter Maurer
garry saddington wrote at 2007-8-30 15:46 +0100: >I found this method on Zopelabs to get the contents of all ZSQL methods. > >Method'], search_sub=1)"> > &dtml.-id; (&dtml.-title_or_id;) > > > > > >Is it possible to do the same with all dtml methods? I have tried >replacing "template" with "d

Re: [Zope] dtml method contents

2007-08-30 Thread garry saddington
On Thu, 2007-08-30 at 18:44 +0100, Peter Bengtsson wrote: > > garry saddington wrote: > > I found this method on Zopelabs to get the contents of all ZSQL methods. > > > > > Method'], search_sub=1)"> > > &dtml.-id; (&dtml.-title_or_id;) > > > > > > > > > > > > Is it possible to do the

Re: [Zope] dtml method contents

2007-08-30 Thread Peter Bengtsson
garry saddington wrote: I found this method on Zopelabs to get the contents of all ZSQL methods. &dtml.-id; (&dtml.-title_or_id;) Is it possible to do the same with all dtml methods? I have tried replacing "template" with "document_src" but this gives a mixture of part rendered m

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Paul Winkler
On Thu, Mar 22, 2007 at 08:11:21AM -0400, Allen Schmidt Sr. wrote: > Just use REPLACE instead of INSERT. > If REPLACE statement is able to determine a unique value for a row and > sees that that unique value exists for a row, the valued will be > updated. If it does not exist, a new row will be i

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Allen Schmidt Sr.
Just use REPLACE instead of INSERT. If REPLACE statement is able to determine a unique value for a row and sees that that unique value exists for a row, the valued will be updated. If it does not exist, a new row will be inserted. This is what I use with MySQL. Allen Tino Wildenhain wrote:

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Tino Wildenhain
Remil Mathew schrieb: Hi all, I need to insert a row to mysql table if the corresponding data not exist, if it exist i need to update the row. Can we do it using a single Z SQL method. Well thats not business of ZSQL methods but rather stuff you do with the instruments of your database. Sa

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Maciej Wisniowski
> Hi all, > > I need to insert a row to mysql table if the corresponding data not > exist, if it exist i need to update the row. > > Can we do it using a single Z SQL method. Yes, if your ZSQL will call stored procedure that will handle this logic. Otherwise, I think you can't (but I might be wro

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
[EMAIL PROTECTED] schrieb: Changing the dash to an underscore in the variable name solved the problem. I'm quite sure you could solve it even better - if we would know where these variables come from and what their meaning is. I suspect some kind of form? Regards Tino Wildenhain _

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
[EMAIL PROTECTED] schrieb: Hi Tino. Yes, that is correct. This application has variables named like: 'AR-DA-08' Not very clever. This also fails in a Page Template: you still have to quote if you mean the variable with that weird name. Otherwise its an expression in python. _['AR-

Re: [Zope] DTML Call Fails

2006-10-24 Thread hpinson
Changing the dash to an underscore in the variable name solved the problem. -- Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Phone: 505 994-2135 Fax: 505 994-3603 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zop

Re: [Zope] DTML Call Fails

2006-10-24 Thread hpinson
Yep, changing to a underscore from a dash does the trick. Thanks to everyone who helped me understand this. -- Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Phone: 505 994-2135 Fax: 505 994-3603 ___ Zope maillist - Zope@zope.org http://ma

Re: [Zope] DTML Call Fails

2006-10-24 Thread David H
[EMAIL PROTECTED] wrote: A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: With the error: "Expression (Python) Syntax error: invalid token" Whereas this works fine: Any insight is appreciated. hpinson, Maybe you

Re: [Zope] DTML Call Fails

2006-10-24 Thread Jonathan
- Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, October 24, 2006 1:04 PM Subject: Re: [Zope] DTML Call Fails Hi Tino. Yes, that is correct. This application has variables named like: 'AR-DA-08' This also fails in a Page Template:

Re: [Zope] DTML Call Fails

2006-10-24 Thread hpinson
Hi Tino. Yes, that is correct. This application has variables named like: 'AR-DA-08' This also fails in a Page Template: With the error: Compilation failed TAL.TALDefs.TALError: Python expression error: invalid token (Python expression "data.set('AR-DA-08',AR-DA-08)", line 1) in expre

Re: [Zope] DTML Call Fails

2006-10-24 Thread Andrew Milton
+---[ Tino Wildenhain ]-- | [EMAIL PROTECTED] schrieb: | >A little bit of legacy DTML fun here... Zope 2.9.3 | > | >On save of a DTML Method, why would this dtml-call fail: | > | > | > | > | > | >With the error: | > | >"Expression (Python) Syntax error: invalid token" | >

Re: [Zope] DTML Call Fails

2006-10-24 Thread Alexis Roda
En/na [EMAIL PROTECTED] ha escrit: A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: AR - DA - 08 ^ octal literal HTH ___ Zope maillist - Zope@zope.org http://mail.zope.

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
[EMAIL PROTECTED] schrieb: A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: With the error: "Expression (Python) Syntax error: invalid token" Whereas this works fine: I doubt any of that really "works". So you happen t

Re: [Zope] dtml-in sorting bug (collector #1884)

2006-09-01 Thread Andreas Jung
--On 1. September 2006 07:46:33 -0400 "Allen Schmidt Sr." <[EMAIL PROTECTED]> wrote: r.__cmp__(x,y) requires y to be a 'r', not a 'ImplicitAcquirerWrapper' http://www.zope.org/Collectors/Zope/1884 I see this is a pending case but does anyone have any idea if it will be fixed in future relea

Re: [Zope] DTML -> ZPT

2006-08-31 Thread Tino Wildenhain
Antonio Beamud Montero wrote: > Is this the equivalence? > > > > http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )

Re: [Zope] DTML -> ZPT

2006-08-31 Thread Andreas Jung
--On 31. August 2006 20:36:32 +0200 Antonio Beamud Montero <[EMAIL PROTECTED]> wrote: Is this the equivalence? No. -aj pgpXRn0rh7dcJ.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/z

Re: [Zope] dtml forwarding request

2006-06-08 Thread Paul Winkler
On Thu, Jun 08, 2006 at 11:39:19PM +0200, Tino Wildenhain wrote: > Alric Aneron wrote: > > So there is no way to do it through python and DTML? > > > > I know Java has something like that. > ZEO is the canonical way to distribute zope stuff. > Well you should be sure you know what you do anywa

Re: [Zope] dtml forwarding request

2006-06-08 Thread Tino Wildenhain
Alric Aneron wrote: > So there is no way to do it through python and DTML? > > I know Java has something like that. *lol* Well you should be sure you know what you do anyways. Forwarding requests means you trust the users browser to do the right thing. Maybe you can instead make a subrequest by

Re: [Zope] dtml forwarding request

2006-06-08 Thread Alric Aneron
---From:AlricAneronTo: Jonathan ; zope@zope.orgSent: Thursday, June 08, 2006 4:31 PM Subject: Re: [Zope] dtml forwardingrequest The dtml_method where I want to forward to is on anotherserver, so your may would be a little hard to do.  Sorry, I didn't make

Re: [Zope] dtml forwarding request

2006-06-08 Thread Jonathan
processing/display).   It's kind of hard to guess what would be best without knowing more about the application(s).       Jonathan   - Original Message - From: Alric Aneron To: Jonathan ; zope@zope.org Sent: Thursday, June 08, 2006 4:31 PM Subject: Re: [Zope]

Re: [Zope] dtml forwarding request

2006-06-08 Thread Dennis Allison
You can do a redirect and construct the cgi space from REQUEST. On Thu, 8 Jun 2006, Alric Aneron wrote: > The dtml_method where I want to forward to is on another server, so your may > would be a little hard to do. Sorry, I didn't make myself clear the first > time. > > Thanks, any sugges

Re: [Zope] dtml forwarding request

2006-06-08 Thread Alric Aneron
The dtml_method where I want to forward to is on another server, so your may would be a little hard to do.  Sorry, I didn't make myself clear the first time.Thanks, any suggestions?Jonathan <[EMAIL PROTECTED]> wrote: if you want to go straight from one dtml routine to another just use dtml-v

Re: [Zope] dtml forwarding request

2006-06-08 Thread Jonathan
if you want to go straight from one dtml routine to another just use dtml-var (ie.  have dtml method A call dtml method B) -  then in dtml method A have:     This will 'pass' control and the REQUEST space from A to B.   Is this is not what you are looking for, then provide some more info as

Re: [Zope] DTML-In with date/time filter

2006-05-04 Thread Chris Withers
Dieter Maurer wrote: Martin Koekenberg wrote at 2006-5-3 14:47 +0200: I use this code in a Python script and call this script within a DTML-IN statement. What I need is a script to get only items with a date in the future, today or in the past. The objects are DTML Documents with a date prope

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Dieter Maurer
Martin Koekenberg wrote at 2006-5-3 14:47 +0200: >I use this code in a Python script and call this script within a DTML-IN >statement. What I need is a script to get only items with a date in the >future, today or in the past. The objects are DTML Documents with a date >property field. Assumi

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Jonathan
om: Martin Koekenberg To: zope@zope.org Sent: Wednesday, May 03, 2006 8:47 AM Subject: Re: [Zope] DTML-In with date/time filter Hello Andreas, I use this code in a Python script and call this script within a DTML-IN statement. What I need is a script to get only items with a date in the future, t

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Martin Koekenberg
    -Original Message-From: Andreas Jung <[EMAIL PROTECTED]>To: Martin Koekenberg <[EMAIL PROTECTED]>, zope@zope.orgDate: Wed, 03 May 2006 12:20:33 +0200Subject: Re: [Zope] DTML-In with date/time filter --On 3. Mai 2006 12:17:36 +0200 Martin Koekenberg <[EMAIL PROTECTED]> wr

Re: [Zope] DTML-In with date/time filter

2006-05-03 Thread Andreas Jung
--On 3. Mai 2006 12:17:36 +0200 Martin Koekenberg <[EMAIL PROTECTED]> wrote: Hallo, I can create a dtml-in filte with the following code: return [doc for doc in context.objectValues('DTML Document') if doc.getProperty('a')!='de'] Using "return" in DTML does not make sense. Writing such

Re: [Zope] dtml methods and namespace

2006-03-15 Thread Chris Withers
Luca Dall'Olio wrote: I have a simple dtml-method "assignment-action" that is called upon a form post. Why are you torturing yourself with DTML? I'd urge you to try Python Scripts and Page Templates instead! cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting

Re: [Zope] dtml methods and namespace

2006-03-09 Thread Dieter Maurer
Luca Dall'Olio wrote at 2006-3-9 11:47 +0100: >I have a simple dtml-method "assignment-action" that is called upon a >form post. >Depending on the form request data, a chooses between one of >two dtml-documents : "assigment-success" and "assignment-failure" : > > > > > > > >My trouble is that

Re: [Zope] dtml methods and namespace

2006-03-09 Thread David
Luca Dall'Olio wrote: Hi to everybody, I have a simple dtml-method "assignment-action" that is called upon a form post. Depending on the form request data, a chooses between one of two dtml-documents : "assigment-success" and "assignment-failure" : My trouble is that neither the "ass

Re: [Zope] dtml result in href

2006-03-08 Thread Andrew Milton
+---[ Olivier Wambacq ]-- | another question. | | when I create a link with a filename and url from a database. | I do it like this: | | url goes here"> | filename goes here | This is DTML or a ZPT ? for a ZPT its; file for DTML it would be; "> etc -- Andrew Mi

Re: [Zope] DTML-In with filter

2006-03-08 Thread Andrew Milton
+---[ Martin Koekenberg ]-- | Hello, | | Is it possible to use a DTML-In to display all DTML Documents in a folder exept | the one's with a centain value in a property ? | | Example. | | DTML Document one with property a=bc | DTML Document two with property a=de | DTM

Re: [Zope] DTML-In with filter

2006-03-08 Thread Tino Wildenhain
Martin Koekenberg schrieb: Hello, Is it possible to use a DTML-In to display all DTML Documents in a folder exept the one's with a centain value in a property ? Example. DTML Document one with property a=bc DTML Document two with property a=de DTML Document three with property a=bc Now

Re: [Zope] dtml-tree (urlparam)

2005-12-09 Thread S.Hayles
This patch provides an extension: http://www.zope.org/Members/jfarr/Patches/dtml-tree I haven't yet tried it on 2.8.x but it worked with 2.7.x Steven Steven Hayles - Computer Systems Developer, [EMAIL PROTECTED] Learning Technology Section, Computer Centre, University of Leicester, Universit

Re: [Zope] dtml-tree (urlparam)

2005-12-08 Thread Dieter Maurer
Ulla Theiss wrote at 2005-12-8 10:55 +0100: >many thanks for the link to a little bit more documentation of >dtml-tree. Unfortunately the parameter of interest (urlparam - Since >Zope 2.2??) is not mentioned there. > >Meanwhile I found in the "Zope-Bible" (Chapter 4, Page 115): "The use of >this

Re: [Zope] dtml-tree (urlparam)

2005-12-08 Thread Martijn Pieters
On 12/8/05, Ulla Theiss <[EMAIL PROTECTED]> wrote: > Does anybody have an idea to work around the problem? Use the Tree classes of ZTUtils instead; much more flexibility and control. There is a price to pay though; there isn't much (if any) documentation for that package other than the code. -- M

Re: [Zope] dtml-tree (urlparam)

2005-12-08 Thread Ulla Theiss
Dear list, many thanks for the link to a little bit more documentation of dtml-tree. Unfortunately the parameter of interest (urlparam - Since Zope 2.2??) is not mentioned there. Meanwhile I found in the "Zope-Bible" (Chapter 4, Page 115): "The use of this attribute [urlparam] is somewhat li

Re: [Zope] dtml-tree (urlparam)

2005-12-07 Thread Jonathan
Have you looked at this: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html Jonathan - Original Message - From: "Ulla Theiss" <[EMAIL PROTECTED]> To: "Zope Mailing List" Sent: Wednesday, December 07, 2005 4:50 PM Subject: [Zope] dtml-tree (urlparam) Dear list, I hav

RE: [Zope] dtml-sqlvar problem with large strings?

2005-11-21 Thread Andreas Jung
--On 22. November 2005 08:42:32 +1100 Joshua Burvill <[EMAIL PROTECTED]> wrote: statement. So I will "Consider using parameters..." as it says. Otherwise I can look at switching to mxODBC. I wonder if that would disallow such long statements as well? You could try it and report back :-) -

RE: [Zope] dtml-sqlvar problem with large strings?

2005-11-21 Thread Joshua Burvill
mailto:[EMAIL PROTECTED] Sent: Monday, 21 November 2005 4:36 PM To: Joshua Burvill; zope@zope.org Subject: Re: [Zope] dtml-sqlvar problem with large strings? --On 21. November 2005 16:30:10 +1100 Joshua Burvill <[EMAIL PROTECTED]> wrote: > > Using zope 2.6.4 on win32 with kinterbasdb

Re: [Zope] dtml-sqlvar problem with large strings?

2005-11-20 Thread Andreas Jung
--On 21. November 2005 16:30:10 +1100 Joshua Burvill <[EMAIL PROTECTED]> wrote: Using zope 2.6.4 on win32 with kinterbasdbda (not sure what version), firebird 1.0 This sounds like a bug in the kinterbasedbda. Since this is DA is not used widely I would recommend to buzz the author of the D

Re: [Zope] DTML-tree Custom sort

2005-10-02 Thread Alex Renier
Thanks for your help AJ I get this: Error Type: SyntaxError Error Value: invalid syntax (line 1) It doesn't like how I put spaces in objectValues() attributes for " if hasattr..." Is the syntax a bit different? Thanks! --- Andreas Jung <[EMAIL PROTECTED]> wrote: > > > --On 2. Oktober 2005 0

Re: [Zope] DTML-tree Custom sort

2005-10-02 Thread Andreas Jung
--On 2. Oktober 2005 09:43:02 -0700 Alex Renier <[EMAIL PROTECTED]> wrote: perhaps sort="orderInt" skip_unauthorized> -aj pgpWmIyIyPjF8.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listi

Re: [Zope] dtml-if

2005-08-28 Thread Tino Wildenhain
Am Montag, den 29.08.2005, 14:08 +1000 schrieb michael: > Thanks thats it! Why is it like that? > ... > >>> > >>> On 8/28/05, michael <[EMAIL PROTECTED]> wrote: > >>> > What am I doing wrong here? > > -- this prints out the variable sent from last > (referring) page fine > >>

Re: [Zope] dtml-if

2005-08-28 Thread michael
Thanks thats it! Why is it like that? m David Siedband wrote: Try calling id then comparing it. this one! -- David On Aug 28, 2005, at 7:19 PM, michael wrote: Thanks for your reply, that is half way there, I want to compare two variables though. where as 'my page' is constant, and h

Re: [Zope] dtml-if

2005-08-28 Thread David Siedband
Try calling id then comparing it. this one! -- David On Aug 28, 2005, at 7:19 PM, michael wrote: Thanks for your reply, that is half way there, I want to compare two variables though. where as 'my page' is constant, and hard coded in. someone's gotta know :-) mike Greg Fischer wrote:

Re: [Zope] dtml-if

2005-08-28 Thread michael
Thanks for your reply, that is half way there, I want to compare two variables though. where as 'my page' is constant, and hard coded in. someone's gotta know :-) mike Greg Fischer wrote: I have never been able to do that either and always wondered how to do it. However I have a workaround

Re: [Zope] dtml-if

2005-08-28 Thread Greg Fischer
I have never been able to do that either and always wondered how to do it. However I have a workaround that I use frequently. I just use the title instead, which works perfectly. This one! Greg On 8/28/05, michael <[EMAIL PROTECTED]> wrote: > What am I doing wrong here? > > -- this prints o

Re: [Zope] DTML parsing outside of Zope

2005-07-28 Thread Peter Bengtsson
> import Zope > app=Zope.app() No. I've actually found a way to do it without starting zope (thus, not using the ZODB). The trick was in import nvSQL from DA.py and use that. It works now, I can now parse and run ZSQL methods on the filesystem without having any zope running. I'm going to tidy my

Re: [Zope] DTML parsing outside of Zope

2005-07-28 Thread Jonathan
- Original Message - From: "Peter Bengtsson" <[EMAIL PROTECTED]> To: Sent: Thursday, July 28, 2005 5:59 AM Subject: [Zope] DTML parsing outside of Zope I would like to be able to parse a very basic DTML string (a ZSQLMethod on the file system actually) outside Zope, ie. without havi

Re: [Zope] dtml to pdf

2005-07-15 Thread Dennis Allison
For simple conversion, you may find htmldoc to be a good choice. Reportlab is a great tool but takes considerable effort; htmldoc gives a "good enough" solution in many cases. On Fri, 15 Jul 2005, Chris Withers wrote: > Allen Huang wrote: > > How do I change my webpage into pdf using dtml or py

Re: [Zope] dtml to pdf

2005-07-15 Thread Chris Withers
Allen Huang wrote: How do I change my webpage into pdf using dtml or python script? Reportlab is your friend. Google might help you find it ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _

Re: [Zope] DTML bug with database arrays in sqltest

2005-07-11 Thread David Pratt
This workaround is an excellent solution! I am doing: and a_table.an_array_fieldt[][2] = and just insert above any optional statements. Many thanks Dieter Regards, David On Sunday, July 10, 2005, at 06:59 PM, Dieter Maurer wrote: David Pratt wrote at 2005-7-8 14:08 -0300: ... an_ar

Re: [Zope] DTML bug with database arrays in sqltest

2005-07-10 Thread Dieter Maurer
David Pratt wrote at 2005-7-8 14:08 -0300: > ... > > an_array_key type="int">][2] name=a_title_var op="eq" type="string" >optional> >. (rest of query) > >The issue is how to test against these values when DTML cannot parse >them? You can emulate the "dtml-sqltest" with "dtml-if" and "dtm

Re: [Zope] DTML bug with database arrays in sqltest

2005-07-08 Thread David Pratt
Do you mean external methods with db api for 1)? I find I can use a plain statement like this in DTML ... but I cannot make it conditional. To bad you couldn't use ZPT instead to make ZSQL methods since it is XML or even some kind of XML schema just for making queries. It wouldn't have to be that

Re: [Zope] DTML bug with database arrays in sqltest

2005-07-08 Thread Jonathan
You cannot embed one dtml tag within another dtml tag.   A couple of possible work-arounds:   1) use a python script to return the values you need 2) create a python script which 'builds' a new dtml script and then execute the new script (ugly, but it works - not very efficient, so how often

Re: [Zope] dtml sessions

2005-06-19 Thread Tino Wildenhain
Am Sonntag, den 19.06.2005, 06:08 +0200 schrieb Andy Kim: > No, I am not using the user system here. > It is just a simple use. > All I want is to put a session-conditional call for a dtml method within a > simple page with this method. > if not REQUEST.SESSION.get("marker",""): yourcall()

Re: [Zope] dtml sessions

2005-06-18 Thread Andy Kim
PROTECTED]> Cc: "Andreas Jung" <[EMAIL PROTECTED]>; Sent: Saturday, June 18, 2005 6:58 PM Subject: Re: [Zope] dtml sessions > > Ah ha! you have as method that is supposed to be private to a particular > user. You should set the view permission for the method t

Re: [Zope] dtml sessions

2005-06-18 Thread Tino Wildenhain
Am Samstag, den 18.06.2005, 18:43 +0200 schrieb Andy Kim: > No, not just only once but rather for one browser session. > If the page is reloaded again the method shouldnt be called. > Only if the user comes for a next visit, the method should be called again. > It actually should be easy, I'm just

Re: [Zope] dtml sessions

2005-06-18 Thread Dennis Allison
Ah ha! you have as method that is supposed to be private to a particular user. You should set the view permission for the method to be "Authorized User" and have the method test for the particular user and do nothing if the current user is not the right one. A more general mechanism would b

Re: [Zope] dtml sessions

2005-06-18 Thread Andy Kim
No, not just only once but rather for one browser session. If the page is reloaded again the method shouldnt be called. Only if the user comes for a next visit, the method should be called again. It actually should be easy, I'm just not familiar with dtml programming yet. However I'd like to have i

Re: [Zope] dtml sessions

2005-06-18 Thread Tino Wildenhain
Am Samstag, den 18.06.2005, 18:16 +0200 schrieb Andy Kim: > Hi, > I'm a beginner. > I'd like allow a dtml method call e.g. for one session > only. > how do I do this with dtml? > could anyone help me? How often are you going to ask this? :) ___ Zope m

Re: [Zope] dtml sessions

2005-06-18 Thread Andreas Jung
--On 18. Juni 2005 18:16:48 +0200 Andy Kim <[EMAIL PROTECTED]> wrote: Hi, I'm a beginner. I'd like allow a dtml method call e.g. for one session only. how do I do this with dtml? could anyone help me? What do you mean by that? Should it callable only once? If yes then of course use a flag

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-06-01 Thread Chris Withers
Remy Pinsonnault wrote: I agree, I find DTML great and s simple and clear. Right. Then you've obviously never tried to figure out exactly where DTML is looking up a particular name ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-30 Thread Garito
Ismet Dere escribió: On 5/27/05, Hugo Ramos <[EMAIL PROTECTED]> wrote: On 5/27/05, Chris Withers <[EMAIL PROTECTED]> wrote: AT? As in ArcheTypes? You ARE kidding right? I've never seen such bad code, and in particular, abuse of ZPT in my entire life... And DTML sux, you wanna use it,

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-30 Thread Tino Wildenhain
Am Montag, den 30.05.2005, 13:05 +0800 schrieb Ismet Dere: > I also like DTML a lot, found it way too easy to understand and simple to use. I wonder how DTML is more easy then an equally simple python expression in a script? Lazy people should love ZPT since it saves a lot of typing compared to DT

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-30 Thread Ismet Dere
On 5/27/05, Hugo Ramos <[EMAIL PROTECTED]> wrote: > On 5/27/05, Chris Withers <[EMAIL PROTECTED]> wrote: > > AT? As in ArcheTypes? You ARE kidding right? I've never seen such bad > > code, and in particular, abuse of ZPT in my entire life... > > > > And DTML sux, you wanna use it, fine, that says s

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-29 Thread Andreas Jung
--On 30. Mai 2005 13:05:31 +0800 Ismet Dere <[EMAIL PROTECTED]> wrote: if dtml is to be phased out, Zope will be less attractive for new users then soon will be irrelevant no matter how sophisticated and advanced it may become. There are no plans to phase DTML out - neither in Zope 2 nor in

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-29 Thread Ismet Dere
I also like DTML a lot, found it way too easy to understand and simple to use. it was that simplicity of DTML that made me choose and use Zope over PHP in the first place. if dtml is to be phased out, Zope will be less attractive for new users then soon will be irrelevant no matter how sophistica

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-28 Thread David H
Andrew Milton wrote: +---[ Jonathan Cyr ]-- | Damn users, using all this imperfect software. These Kids Today! ;-) | | Easy Big Fella, Whooa. | You must be new here We've all learnt to ignore Chris... He gets easily confused... or maybe he doesn't take his medi

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Andrew Milton
+---[ Jonathan Cyr ]-- | Damn users, using all this imperfect software. These Kids Today! ;-) | | Easy Big Fella, Whooa. | You must be new here We've all learnt to ignore Chris... He gets easily confused... or maybe he doesn't take his medication... not sure, but,

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Jonathan Cyr
Damn users, using all this imperfect software. These Kids Today!  ;-) Easy Big Fella, Whooa. -Jon Chris Withers wrote: Tino Wildenhain wrote: Unfortunately Plone is still a bad example for ZPT. It is getting better but still it has a lot of code and definition in the templates.

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Greg Fischer
Ah you are right. Just occured to me. That is kind of a pain in DTML, but I've learned how to deal with it. Makes sense. If I already have an object, say from a form submitted, in the REQUEST namespace, and I then retrieve data from sql and a column has the same name, I will have an issue. Whi

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Lennart Regebro
On 5/27/05, Greg Fischer <[EMAIL PROTECTED]> wrote: > Well, aside from the fact that you cant use DTML in WYSIWYG editors, I > still dont understand why it is not good. Well, the fact that you get everyting directly into the current namespace, especially with DTML-in, and things like that, is th

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Greg Fischer
Using DTML from WYSIWYG editors is definitely a drawback. But, how many of us use them for doing our work? I might use Dreamweaver to clean up my sliced web template, but soon as I start my Zope work, it's all Crimson Editor coding by hand to Zope. Using Dreamweaver actually slows me down, it's

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Lennart Regebro
On 5/26/05, Greg Fischer <[EMAIL PROTECTED]> wrote: > Is DTML really that much harder to use? Nah, but it's uglier. Also, the idea is that a web editor that confirms to the tsandard of ignoring things it doens't understand, should in theory be usable with TAL, but not with DTML. In practice, howev

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Hugo Ramos
On 5/27/05, Chris Withers <[EMAIL PROTECTED]> wrote: > AT? As in ArcheTypes? You ARE kidding right? I've never seen such bad > code, and in particular, abuse of ZPT in my entire life... > > And DTML sux, you wanna use it, fine, that says something about you. Use > ZClasses, Plone, AT and XUF at th

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Chris Withers
Tino Wildenhain wrote: Unfortunately Plone is still a bad example for ZPT. It is getting better but still it has a lot of code and definition in the templates. Maybe AT would be a way out. AT? As in ArcheTypes? You ARE kidding right? I've never seen such bad code, and in particular, abuse of Z

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Greg Fischer
Wow, thanks for the replies guys. It's good to hear I am not the only one who likes DTML. Tino, thanks for the explanations. I have some thoughts below on that, and keep in mind, I am questioning from my own ignorance. Tino Wrote: > The major drawbacks of DTML are: > > - one namespace (with tr

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-26 Thread Tino Wildenhain
Am Freitag, den 27.05.2005, 00:20 +0200 schrieb Jaroslav Lukesh: ... > I absolutelly agree with you, it is like my words. > > But separation of logic and presentation could be done successfully in DTML > too. ZPT, which have "separation argument" is not as easy to make totally This is even somewh

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-26 Thread Remy Pinsonnault
I agree, I find DTML great and s simple and clear. I wonder why Zopeheads hate this so much! Remy On 5/26/05, Jonathan Cyr <[EMAIL PROTECTED]> wrote: > I use DTML alot, I also code all my HTML/CSS by hand for control sake. If > you use a Dreamweaver, et al, DTML requires tool tweaking, if i

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-26 Thread Jonathan Cyr
I use DTML alot, I also code all my HTML/CSS by hand for control sake.  If you use a Dreamweaver, et al, DTML requires tool tweaking, if it works at all.  If you read HTML, and are aware of all of the browser quirks, DTML is quick and easy...   New tags are easy, they stand out and quite common

Re: [Zope] DTML in Zope 2 vs Zope 3

2005-05-26 Thread Jaroslav Lukesh
Dne čtvrtek, 26. května 2005 22:03 Greg Fischer <[EMAIL PROTECTED]> napsal(a): > I am just curious, why is DTML not good? It does 9 out of 10 things I > want quite easily. From my perspective, I really dont want to learn > new ways of doing things if this works. I also have no desire to do > tem

  1   2   3   4   >