[Zope] Parameter in ZSQL

2000-08-13 Thread Indra Gunawan
Hello All here's the problem my Zope 2.2.0 is running on win98 my Database is a MySQL I created a ZSQL method named ShowProduct with parameter product_id the template as follows : select * from products where sqltest product_id type=string why can't I call the ZSQL method directly (without

Re: [Zope] Parameter in ZSQL

2000-08-13 Thread Philipp Auersperg
call : dtml-in "ShowProduct(product_id=1)" with let you just define a variable in the current namespace Philipp Auersperg (zwork) *** REPLY SEPARATOR *** On 13.08.2000 at 17:27 Indra Gunawan wrote: Hello All here's the problem my Zope 2.2.0 is running on win98 my Database is

Re: [Zope] Zope on Linux, Oracle on another machine (Solaris) what to do?

2000-08-13 Thread jan
Chris Beaumont wrote: Hello, Newbie question here... Thank you for any and all help... The subject line says it all.. What's the best way to connect an instance of Zope running on a Linux box to an instance of Oracle 7.3 running on a Solaris box in the same subnet... You have to

Re: [Zope] ZCatalog attachments?

2000-08-13 Thread jan
Simon Coles writes: We have binary files stored in Zope, for example Word documents (but could be any of a variety of document types). We would like to be able to index and search the contents of these files using ZCatalog. So if a Word file contains the word "Fred",

Re: [Zope] GUF

2000-08-13 Thread Aleksander Salwa
On Fri, 11 Aug 2000, Mathias Bengtsson wrote: Does anybody know how the login is handled by GUF. I use cookie authentication and I get the loginptomt when I try to access a page that has authenticate permissions. But when I try to login I don't know how to get the user logged i.e I don't

[Zope] Fw: [Zope] Parameter in ZSQL

2000-08-13 Thread Indra Gunawan
Thanks man that really works..!!... I want to ask another question can I retrieve a random row from a table? if can, could anyone tell me (using the same table and scheme from the previous question) Thanks again Mr Philipp Auersperg -IGUN- ICQ:1474584 call : dtml-in

[Zope] Ivalid Integer from Zope

2000-08-13 Thread Herring, William O.
I am using the Znolk Input Wizzard with postgresql tables. One of the variables in the table is an integer and can have null values. However, in the update and insert forms, if I attempt to leave the value null, I get the following error from Zope: "Invalid integer value for weight.bcs" The

[Zope] JavaScript help!

2000-08-13 Thread Peter Be
Maybe not a Zope specific question but the problem arises only with Zope DTML. The documentEdit.dtml page in OFS has this little HTML: TEXTAREA NAME="data:text" WRAP="Off" COLS="50" ROWS="20"/TEXTAREA And what I want to do is trigger a JavaScript that replaces specific characters in the

RE: [Zope] Ivalid Integer from Zope

2000-08-13 Thread Richard Folwell
How about dtml-var bcs null=0? (Just a guess, but I would expect a zero length string to be an invalid integer value). I am using the Znolk Input Wizzard with postgresql tables. One of the variables in the table is an integer and can have null values. However, in the update and insert

[Zope] accessing PARENTS from python???

2000-08-13 Thread Kevin Howe
I am trying to access the PARENT of an object in a python class of mine. I want to use the absolute_url() of the parent in a variable. I though it could be done the following way, but got an error: parent=self.PARENTS[0] aurl = parent.absolute_url() I then tried using REQUEST. It

Re: [Zope] accessing PARENTS from python???

2000-08-13 Thread Kapil Thangavelu
Kevin Howe wrote: I am trying to access the PARENT of an object in a python class of mine. I want to use the absolute_url() of the parent in a variable. I though it could be done the following way, but got an error: parent=self.PARENTS[0] aurl = parent.absolute_url() I

Re: [Zope] GUF

2000-08-13 Thread Dieter Maurer
Mathias Bengtsson writes: Does anybody know how the login is handled by GUF. I use cookie authentication and I get the loginptomt when I try to access a page that has authenticate permissions. But when I try to login I don't know how to get the user logged i.e I don't know how to set the

Re: [Zope] Broken Links and Orphan Checking

2000-08-13 Thread Dieter Maurer
Darin Lee writes: Is there any way within Zope to parse HTML to look for broken links and orphaned files? The site I am building will have many Zope dynamic componants, but also a good share of wrapped static HTML pages maintained by content contributors in Frontpage/Dreamweaver. I know

RE: [Zope] application/octet-stream vs. application/msword

2000-08-13 Thread Dieter Maurer
Jean Jordaan writes: The other thing I'm wondering is, it looks as if '.doc' should *always* be recognized as msword. How could it sometimes turn up as octet-stream? To add documents I call: a href="manage_addProduct/ccDoc/ccDocClass_factory" Add a document./a The

Re: [Zope] file uploading from IE browser

2000-08-13 Thread Dieter Maurer
David Zhu writes: I'ved followed the online How-To on implementing a simple service for parsing uploaded files via the browser. But strangely, it only works for Netscape browsers. When I test the uploading using IE, the supposed file object becomes a string object, causing all sorts of

Re: [Zope] In-tag Batch processing

2000-08-13 Thread Dieter Maurer
Tom Deprez writes: But I'm using Zope 2.2 So what am I doing wrong? I do not know... Maybe, my memory misleads me. I *belief* I got a message from DC that the patch has been integrated in 2.2. If you still see the problem, try to apply the patch. If that does not solve your problem,

Re: [Zope] JavaScript help!

2000-08-13 Thread Evan Simpson
function changeChars() { var box = eval("document.manage_edit_form.data:text"); This should be: var box = document.manage_edit_form['data:text']; JavaScript, like DTML, lets you access objects with funny names using subscript notation. Cheers, Evan @ 4-am digicool

Re: [Zope] Ivalid Integer from Zope

2000-08-13 Thread Philipp Auersperg
I will fix this for the next release (est. next week). This happens when nothing is entered in the textfield for the integer value. In the meanwhile you have to do the check in the insert/update SQL method: dtml-if "_['btest.val']!=''" !--#sqlvar btest.val type=int -- dtml-else

[Zope] using Zope add on products

2000-08-13 Thread Stephen Cimarelli
Hi All I just need a little help, (Zope Newbie:) ) I want to create a website creator, I want to provide my end users with a 1-2 page form with lots of check boxes, list boxes, etc.. Once the users has finished making his/hers selections, I want my product to go and create the web site. easy

[Zope] A very newbie question

2000-08-13 Thread Indra Gunawan
I need to know the value of (sequence-index mod 3)=0 in something like dtml-if "sequence-index mod 3)=0" how do I use the mod function correctly? since the divmod function is actualy returning 2 pair of value. Thanks guys. -IGUN- ICQ:1474584 ___ Zope

Re: [Zope] A very newbie question

2000-08-13 Thread Terry Kerr
dtml-if "_['sequence-index']%3 ==0" Indra Gunawan wrote: I need to know the value of (sequence-index mod 3)=0 in something like dtml-if "sequence-index mod 3)=0" how do I use the mod function correctly? since the divmod function is actualy returning 2 pair of value. Thanks guys.

Re: [Zope] A very newbie question

2000-08-13 Thread Phil Harris
Indra, Try: dtml-if "_.divmod(_.int(_['sequence-item']),3)[0]==0" hth Phil [EMAIL PROTECTED] - Original Message - From: "Indra Gunawan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 14, 2000 2:38 AM Subject: [Zope] A very newbie question I need to know the value

Re: [Zope] A very newbie question

2000-08-13 Thread Phil Harris
oops, Should hae been: dtml-if "_.divmod(_.int(_['sequence-item']),3)[1]==0" hth Phil [EMAIL PROTECTED] - Original Message - From: "Indra Gunawan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 14, 2000 2:38 AM Subject: [Zope] A very newbie question I need to know