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] Calling a ZPT macro, with parameters, from a python script

2007-08-30 Thread Dieter Maurer
Sean F wrote at 2007-8-29 11:58 -0700: >Is there a way to call a specific macro in a ZPT from a python script? > >So far, the only way I've found to do this is by calling the macro template >from another template, then calling the wrapper, like: > >wrapper: > use-macro="python:path('here/my_ma

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] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Doyon, Jean-Francois
Yes, it's Zope 2.10.4 with CMF 2.1.0, all of them on Python 2.4.4, all of them on CentOS 4.4 (or maybe .5 now?) (maybe not at exactly the same patch/upgrade level, but the python is custom built). In fact the entire product list is exactly the same! OK, so I think maybe my devel machine is CentOS

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

[Zope] dtml method contents

2007-08-30 Thread garry saddington
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 methods and error messages whi

Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Maciej Wisniowski
> As for subversion, I took great care to make sure everything was utf-8 > on the FS, during development, and I know Subersion uses utf-8 > internally, so I'm not sure what it would change it to. Once checked > back out, it still looks like utf-8 ... I'm saying all this based on the > assumption

RE: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Doyon, Jean-Francois
Ooops, my bad ... Here it is: Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module Shared.DC.Scripts.Bindings, line 313, in __call__ Module Shared.DC.Scripts.Bin

Re: [Zope] UTF encoding problem w/ ZPT's (No, not the usual :)

2007-08-30 Thread Chris Withers
Doyon, Jean-Francois wrote: So I see this: Error Type: TypeError Error Value: 'unicode' object is not callable Usual comments, full traceback please. This doesn't look like a normal encoding error but a bug in code somewhere... The only difference I can see is that the file went through su

Re: [Zope] how to fill form values name:int in javascript?

2007-08-30 Thread Peter Bengtsson
Jaroslav Lukesh wrote: Hi, This is typically not zope question, but I does not find solution for this zopiness. I need to fill from javascript form fields with defined zope type: and how to address it in javascript? This make JS error for me: document.forms['form_name'].number:int.va

Re: [Zope] ZopeTestCase.installProduct('TextIndexNG3') trouble

2007-08-30 Thread Peter Bengtsson
I added a installProduct('Five') first and got a little further. Now a different traceback: [EMAIL PROTECTED]:~/GreenBible/tests $ ./run_testSearch.sh SOFTWARE_HOME: /home/peterbe/zope/zope289/lib/python INSTANCE_HOME: /home/peterbe/zope/zope289 Loading Zope, please stand by ... done (0.369s) I

Re: [Zope] ZopeTestCase.installProduct('TextIndexNG3') trouble

2007-08-30 Thread Andreas Jung
--On 30. August 2007 10:04:14 +0100 Peter Bengtsson <[EMAIL PROTECTED]> wrote: I'm having trouble installing TextIndexNG 3.1.6 in my zope unit test. Here's the output: [EMAIL PROTECTED]:~/GreenBible/tests $ ./run_testSearch.sh SOFTWARE_HOME: /home/peterbe/zope/zope289/lib/python INSTANCE_HO

[Zope] ZopeTestCase.installProduct('TextIndexNG3') trouble

2007-08-30 Thread Peter Bengtsson
I'm having trouble installing TextIndexNG 3.1.6 in my zope unit test. Here's the output: [EMAIL PROTECTED]:~/GreenBible/tests $ ./run_testSearch.sh SOFTWARE_HOME: /home/peterbe/zope/zope289/lib/python INSTANCE_HOME: /home/peterbe/zope/zope289 Loading Zope, please stand by ... done (0.395s) Insta