Re: [Zope] A very newbie question

2000-08-13 Thread Phil Harris
oops, Should hae been: 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 of (sequence-index mod 3)=0 > in somethi

Re: [Zope] A very newbie question

2000-08-13 Thread Phil Harris
Indra, Try: 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 of (sequence-index mod 3)=0 > in something like >

Re: [Zope] A very newbie question

2000-08-13 Thread Terry Kerr
Indra Gunawan wrote: > I need to know the value of (sequence-index mod 3)=0 > in something like > > 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] 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 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 maillist - [EMAIL PROTECTED] ht

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

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: null *** REPLY SEPARATOR

Re: [Zope] Fw: [Zope] Parameter in ZSQL

2000-08-13 Thread jan
Indra Gunawan wrote: > > Thanks man that really works..!!... > I want to ask another question > can I retrieve a random row from a table? Yes, you can - but how is a bit dependent on your database, if you want it to be efficient. The problem here is that SQL does not by itseld define a rownum

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

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

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: > > > Add a document. > > The initial method of 'ccDocClass_factory' is 'ccDoc

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 kno

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 t

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

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

RE: [Zope] Ivalid Integer from Zope

2000-08-13 Thread Richard Folwell
How about ? (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 forms, if I attempt t

[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: And what I want to do is trigger a JavaScript that replaces specific characters in the textarea box to others. I.e. Replace swedish ö with HTML: ö The problem

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

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

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

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

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

[Zope] Slightly OT: Server Admin w/Zope - best approach?

2000-08-13 Thread Nigel Head
Slightly off topic perhaps but potentially intersting to many here, I hope! I'm considering, partly out of curiosity and partly out of hopes that I may get some customers one day who could use it, how I would go about implementing a server administration tool (a la Webmin for example) within a Z

Re: [Zope] Parameter in ZSQL

2000-08-13 Thread Philipp Auersperg
call : with 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 a MySQL > >I created a ZSQL method

[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 why can't I call the ZSQL method directly (without using the GET/POST variables)? I t