RE: [Zope] filename extension

2001-01-08 Thread Menard . Jean-Francois

Untested:

dtml-in "_['fac_browse_method.sql'](id=10)"

Does it work?

-Message d'origine-
De : Olaf Zanger [mailto:[EMAIL PROTECTED]]
Envoy : lundi 8 janvier 2001 08:41
 : [EMAIL PROTECTED]; [EMAIL PROTECTED]
Objet : [Zope] filename extension


hi there,

some information on zope.org says that in the early future ftp access
should be possible not only to dtml-methods, -documents but also to
Zsql-methods.

to be future proof (and windows software proof) we'd like to have .xxx
extensions for all our methods (fac_browse_method.sql that lovely
windows understands what programm to start [textpad for sql ...])

unfortuanetly if called like dtml-in
expr="fac_browse_method.sql(id=10)" zope gernerates an error.

if there is a solution: how?
or if not: does anything needs to be changed in the file handling of
zope 

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

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




Re: [Zope] filename extension

2001-01-08 Thread Olaf Zanger

hi there,

thanks for the answer, but ...

[EMAIL PROTECTED] schrieb:
 
 Untested:
 
 dtml-in "_['fac_browse_method.sql'](id=10)"
 
 Does it work?
nope

dtml-in "_['adr_select_method.sql'](id=man_adr_id)"

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

this (with the renamed file) works though:
dtml-in "adr_select_method(id=man_adr_id)"

is there any documentation for these tricks?

thanks 

olaf
-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



RE: [Zope] filename extension

2001-01-08 Thread sean . upton

Perhaps I am wrong here, but couldn't one just use indirect variable lookup
within the expression to access the method.  There has got to be a way to
use _.getitem for this purpose inside the dtml-in, since by default, it
doesn't automatically render the method, but I'm not sure how one would pass
the param to the method?

Anybody have syntax that would work?

Sean

-Original Message-
From: Olaf Zanger [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 5:41 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Zope] filename extension


hi there,

some information on zope.org says that in the early future ftp access
should be possible not only to dtml-methods, -documents but also to
Zsql-methods.

to be future proof (and windows software proof) we'd like to have .xxx
extensions for all our methods (fac_browse_method.sql that lovely
windows understands what programm to start [textpad for sql ...])

unfortuanetly if called like dtml-in
expr="fac_browse_method.sql(id=10)" zope gernerates an error.

if there is a solution: how?
or if not: does anything needs to be changed in the file handling of
zope 

thanks

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com


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