[Zope-Coders] Zope tests: 8 OK

2005-09-09 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Thu Sep 8 11:01:02 2005 UTC to Fri Sep 9 11:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Thu Sep 8 22:21:37 EDT

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Chris Withers
Jonathan Cyr wrote: I have to choose which features of Zope to learn and use, based on a much larger criteria than I can present here. I do not wish to mix ZPT and DTML in my project... I had chosen DTML, before ZPT was mature... It may be better, but I don't care for now... when I'm able to

Re: [Zope] FYI on Debian 3.1/zope Re: Images too (StructuredDocument size limit reduced after 2.5.1 to 2.7.5 upgrade)

2005-09-09 Thread Chris Withers
John Schinnerer wrote: That was what I needed, the parameter name...my sysadmin set it low for security reasons, not realizing Clueless overly paranoid sysadmins strike again ;-) No actually, he's very clueful and security-conscious, and I was mistaken about how it got set that low, it

[Zope] ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index workitems_from. This should not happen.

2005-09-09 Thread Marco Bizzarri
We are seeing traceback in the event log like this: 2005-09-09T09:28:32 ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index w orkitems_from. This should not happen. Traceback (most recent call last): File

Re: [Zope] ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index workitems_from. This should not happen.

2005-09-09 Thread Chris McDonough
This is actually nothing to worry about. The error message doesn't take into account that the error it's reporting could be a conflict error (these are normal errors seen during Zope execution). The catalog probably shouldn't bother logging the error in this case. On Sep 9, 2005, at 4:16

[Zope] Re: FYI on Debian 3.1/zope Re: Images too (StructuredDocument size limit reduced after 2.5.1 to 2.7.5 upgrade)

2005-09-09 Thread Martijn Pieters
Chris Withers wrote: Anyone know who the debian package maintainer is so we can give them a tickle? Just look at the zope package page on debian.org: http://packages.debian.org/zope Isa simple, no? :) Seriously though, Debian maintainers usually make reasonably sane decisions, so be

[Zope] Kupu 1.3 under zope2

2005-09-09 Thread Giuseppe Bonelli
Can someone please confirm that kupu 1.3 works fine under zope2? I have just installed the 1.3 tarball but I get un error in kupumacros at the following line: metal:slot define-slot=bootstrap-editor After fixing the illegal name the editor get displayed, but my test doc is not editable. If

[Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Hi all, I'm trying to basically get the output of two SELECT statements into a dtml document, but cant get it working. I've searched, and tried a few examples for similar things, but had no luck. Can anyone recommend a way, please? Thanks, Paul ___

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread Joe Bezier
I'm not sure if this is what you're looking for dtml-in expr=sql_statement(parameter1=parameter1,parameter2=parameter2) dtml-var column_name /dtml-in If no parameters, just expr=sql_statement() or dtml-in sql_statement Cheers, JB On 9 Sep 2005, at 10:50, [EMAIL PROTECTED] wrote: Hi all,

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Hi Joe, thanks for the quick reply! i've got a zsql method now(called date_count.zsql) which I try to call in my dtml via dtml-in date_count - but I get a KeyError when the page is refreshed. The dtml is in the same dir as the zsql...not sure whats up. Cheers, Paul On Fri, 2005-09-09 at 11:06

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
sorry, i meant when i run the code - i'm not with zope terminology yet. here's my date_count.zsql method: select count(*) AS endcount from t_transaction and in the dtml, i've got: dtml-in date_count dtml-var endcount /dtml-in Thanks for the replies so far! Paul On

[Zope] Install latest zope on Debian Sarge?

2005-09-09 Thread johnny
Hello, When installing the latest zope 2.8.1 (I want to upgrade plone to 2.1) I ran into problems compiling. I quote the last rows of the output her below. How can I compile this zope on a debian sarge server? output: AccessControl/cAccessControl.c: In function `initcAccessControl':

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread Peter Bengtsson
And this doesn't work when you refresh?? I find that hard to believe. What's the error (including traceback) On 9/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sorry, i meant when i run the code - i'm not with zope terminology yet. here's my date_count.zsql method: select count(*) AS

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread Joe Bezier
OK, are you using a Zope with an error_log? [you'll see it in the root of your installation]. If so, could you pass on the whole traceback for this error? Hang on - are you calling 'date_count' when your object's called 'date_count.zsql'? Rename your zsql method 'date_count' and then try - I

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Hi, I've attached the two files that I'm using Full error is this: Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread Peter Bengtsson
Like Joe said, have you confused the critical difference between sql_select_counts and sql_select_counts.zsql On 9/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I've attached the two files that I'm using Full error is this: Site Error An error was encountered while publishing this

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Ok, I've made a few changes, and now I get this error: Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module

[Zope] Re: Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Florent Guillaume
Jonathan Cyr wrote: That's the ticket. You're right the CDATA solution is much better than html-quote'ing everything. Many thanks, -Jon Peter Bengtsson wrote: Create a python script called rssFormatter(text):: from Products.PythonScripts.standard import structured_text, html_quote return

[Zope] Re: ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index workitems_from. This should not happen.

2005-09-09 Thread Florent Guillaume
Marco Bizzarri wrote: We are seeing traceback in the event log like this: 2005-09-09T09:28:32 ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index w orkitems_from. This should not happen. Traceback (most recent call last): File

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread Peter Bengtsson
Try to locate what causes this error by commenting things out one by one. Eventually you'll be able to locate the culprit which someone on the list might be able to help you with. On 9/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ok, I've made a few changes, and now I get this error: Site

Re: [Zope] Re: Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Peter Bengtsson
I think for some of my RSS feeds I use CDATA, so _my_ rssFormatter() script looks something like this:: return ![CDATA[%s]] % text The advantage with CDATA is that you won't need to html quote things. Which is not really true, you still have to find a way to deal with your string

Re: [Zope] Character set problems

2005-09-09 Thread Allen Schmidt
I will let you know...but it was slightly off in the specs I gave. It was a 2.7.0 on RH9 and new install is 2.7.7 on RHE4. If I take the offending text, cut and paste, and put on a different install of 2.7.5 on RHE4 then the encoding works fine and the characters show fine. Mainly bullets,

Re: [Zope] Character set problems

2005-09-09 Thread Peter Bengtsson
I assume you use Firefox. Go to the two pages; the one that works and the one that doesn't. Right-click and select Vew Page Info. Look at what it says on Encoding On 9/9/05, Allen Schmidt [EMAIL PROTECTED] wrote: I will let you know...but it was slightly off in the specs I gave. It was a 2.7.0

Re: [Zope] Character set problems

2005-09-09 Thread Peter Bengtsson
Hmmm... so the page setting on both zope versions is utf-8 but on the new zope, the text is actually shown with Western encoding. Warning! I'm no unicode expert at all. I live and work in the UK :) On 9/9/05, Allen Schmidt [EMAIL PROTECTED] wrote: Firefox, Netscape and IE all show the same UTF-8

[Zope] Zope Job in Athens, Greece

2005-09-09 Thread Sascha Welter
Hello Zope-World! We have a job offer for someone with good experience on handcrafted HTML and CSS, working on Zope projects. Knowledge of Zope can be acquired on the job, but we want good HTML/CSS that can be mixed in with ZPT. This is not a job for someone with years of knowledge of Zope

Re: [Zope] Character set problems

2005-09-09 Thread Dragos Chirila
Hi Here are some things you can do to handle your problem. For me, this approach worked just fine. 1. Your HTML pages must have set the encoding to utf-8. Put this in the HEAD tag of your html pages: meta http-equiv=Content-Type content=text/html; charset=utf-8 / 2. For the Root

[Zope] Same product in multiple instances automatically?

2005-09-09 Thread Kirk Strauser
I'm running multiple instances of Zope 2.7.7 on a FreeBSD server. Each of those instances uses the same products, which I handle by making symlinks from the site's Products directory to that instance's Products directory: [1] /usr/local/www/Zope/Products/ZPsycopgDA [2]

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Paul Winkler
To be honest, I'd expect something a little different, namely that each instance would automatically pull in all the products in the site installation (like [1] and [2] above), but that doesn't seem to be the case. Is that a configuration issue, by design, or by accident? It's a

[Zope] How to create a folder in a just created folder using a python script.

2005-09-09 Thread Martin Koekenberg
Hello, In a python script I use teh following line to create a folder: context.manage_addProduct['OFSP'].manage_addFolder(Unique, title=field_titel) Unique is a unique ID. How can I create to folder is this folder in the same script ? regards, Martin Koekenberg

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Kirk Strauser
On Friday 09 September 2005 10:25, Paul Winkler wrote: To be honest, I'd expect something a little different, namely that each instance would automatically pull in all the products in the site installation (like [1] and [2] above), but that doesn't seem to be the case. Is that a

Re: [Zope] How to create a folder in a just created folder using a python script.

2005-09-09 Thread Peter Bengtsson
id1 = something id2 = else context.manage_addFolder(id1, George Bush) getattr(context, id1).manage_addFolder(id2, George W. Bush) On 9/9/05, Martin Koekenberg [EMAIL PROTECTED] wrote: Hello, In a python script I use teh following line to create a folder:

Re: [Zope] Caching ImageFiles

2005-09-09 Thread Dieter Maurer
Peter Bengtsson wrote at 2005-9-8 17:23 +0100: ... What is the difference between 'Cache-Control' and 'Expires'? Cache control is the modern (HTTP 1.1) way, Expires the old (HTTP 1.0) one. What is best to use and for what? Use them both: HTTP 1.1 clients will honour Cache-Control (which is

Re: [Zope] How to create a folder in a just created folder using a python script.

2005-09-09 Thread Dieter Maurer
Martin Koekenberg wrote at 2005-9-9 17:48 +0200: ... In a python script I use teh following line to create a folder: context.manage_addProduct['OFSP'].manage_addFolder(Unique, title=field_titel) Unique is a unique ID. How can I create to folder is this folder in the same script ? You fetch

Re: [Zope] Install latest zope on Debian Sarge?

2005-09-09 Thread Dieter Maurer
johnny wrote at 2005-9-9 12:11 +0200: ... How can I compile this zope on a debian sarge server? We have successfully compiled Zope (from source) on Debian Sarge. You must have a strangely screwed up system. output: AccessControl/cAccessControl.c: In function `initcAccessControl':

Re: [Zope] ERROR(200) KeywordIndex unindex_object could not remove documentId -702398584 from index workitems_from. This should not happen.

2005-09-09 Thread Dieter Maurer
Marco Bizzarri wrote at 2005-9-9 10:16 +0200: We are seeing traceback in the event log like this: There are more bugs in KeywordIndex (as someone else noted, this one has been fixed recently). You may consider my ManagableIndex and its KeywordIndex. It has less bugs than the Zope one -- and

Re: [Zope] Character set problems

2005-09-09 Thread Dieter Maurer
Niklas Saers wrote at 2005-9-8 18:59 +0200: ... What is the standard way of ensuring that I get the correct data? I tried writing a little converter, but the string tekst = tekst.replace(\xc3\xa6, ae); gives me the error *UnicodeDecodeError: **'ascii' codec can't decode byte 0xc3 in position

[Zope] Map LDAP schema attributes to group

2005-09-09 Thread Vecchio, Peppi
I'd like the best of both worlds. I'm currently running Python 2.3.5, Zope 2.7.7, and Plone 2.1 (final). Using LDAPUserFolder (2.5beta2) as the authentication method and it works perfectly. I'm using LDAPUF as the User Source and User Folder as the Groups Source. It's better for us to

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 10:25, Paul Winkler wrote: To be honest, I'd expect something a little different, namely that each instance would automatically pull in all the products in the site installation (like [1] and [2] above), but that doesn't seem to be the case. Is

[Zope] Zope 2.8.1 won't make

2005-09-09 Thread Sophia Grimm
Just downloaded Zope 2.8.1 and I'm trying to install it on MOSX 10.4, which has XCode 2.1 installed. I'm following installation instructions on this page: http://www.plope.com/Books/2_7Edition/InstallingZope.stx#2-6 ./configure runs, but when I try to make, I get this error: makefile:54: ***

Re: [Zope] Re: Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Jonathan Cyr
A ha... thanks for the tip. -Jon Florent Guillaume wrote: Jonathan Cyr wrote: That's the ticket. You're right the CDATA solution is much better than html-quote'ing everything. Many thanks, -Jon Peter Bengtsson wrote: Create a python script

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Paul Winkler
JCC wrote: If you want your instances to use Products from some other directory, name it here. The one possible gotcha, dating back to the Zope 2.6.x / CMF 1.3.x days, is that CMF (and Plone) would not work properly if installed somewhere other than $INSTANCE_HOME/Products. The skins

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Jonathan Cyr
Dude, I appreciate the amount of effort that you contribute to the community... but that said... you really are quite rude and obnoxious hence the "Go easy" warning. Your skills in dealing with people pale in comparison to your Zope prowess. Talking down to people doesn't build

[Zope] Testing arguments in zsql methods

2005-09-09 Thread Pablo Ziliani
Hi everyone, I have what I think is a banal question here... Is there any way I can test inside a zsql method if an argument has been passed? dtml-if foo won't work because 0 (zero) is an expected value. Have tried dtml-if _.hasattr(_, 'foo') but it seems to be always false (where's that

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread Jonathan Cyr
Hi Peter, Happy to have the choice, don't get me wrong. I found DTML very easy, I'm old school and generate all of my HTML/CSS by hand. In addition to CSS, I've found it pretty good for inserting items into _javascript_, Applet and Embed elements. I find that I'm attuned to a tag system

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Kirk Strauser
On Friday 09 September 2005 13:56, J Cameron Cooper wrote: I don't know why, either. That simply says that there is a default Products directory ($SOFTWARE_HOME/lib/python/Products), you can't get rid of it, and you shouldn't try to configure it here. The problem I'm having, though, is that

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 13:56, J Cameron Cooper wrote: I don't know why, either. That simply says that there is a default Products directory ($SOFTWARE_HOME/lib/python/Products), you can't get rid of it, and you shouldn't try to configure it here. The problem I'm

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Paul Winkler
On Friday 09 September 2005 13:56, J Cameron Cooper wrote: I don't know why, either. That simply says that there is a default Products directory ($SOFTWARE_HOME/lib/python/Products), you can't get rid of it, and you shouldn't try to configure it here. The problem I'm having, though, is that

Re: [Zope] Zope 2.8.1 won't make

2005-09-09 Thread Jens Vagelpohl
On 9 Sep 2005, at 19:59, Sophia Grimm wrote: Just downloaded Zope 2.8.1 and I'm trying to install it on MOSX 10.4, which has XCode 2.1 installed. I'm following installation instructions on this page: http://www.plope.com/Books/2_7Edition/InstallingZope.stx#2-6 ./configure runs, but when I

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Kirk Strauser
On Friday 09 September 2005 15:37, J Cameron Cooper wrote: Anything in $SOFTWARE_HOME/lib/python/Products is available in any instances that use that SOFTWARE_HOME. You can see this quite easily by looking at the /Control_Panel/Products of an instance with nothing in its

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 15:37, J Cameron Cooper wrote: Anything in $SOFTWARE_HOME/lib/python/Products is available in any instances that use that SOFTWARE_HOME. You can see this quite easily by looking at the /Control_Panel/Products of an instance with nothing in its

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread Kirk Strauser
On Friday 09 September 2005 15:59, J Cameron Cooper wrote: Thus was created the instance/software distinction. Everything needed to run Zope goes into the SOFTWARE_HOME; everything that defines a specific distinct instance goes into INSTANCE_HOME (3rd party Products, Data.fs, config files,

[Zope] Re: Testing arguments in zsql methods

2005-09-09 Thread Pablo Ziliani
Hi again, for the records, replying my own recent post: the way to test if a variable exists in a zsql method is through has_key NOT hasattr. In other words: dtml-if _.has_key('foo').../dtml-if Sorry for bothering, it's been a long time not dealing with dtml Pablo Pablo Ziliani wrote:

Re: [Zope] Using Structured Text and HTML-quote together for RSS 2.0

2005-09-09 Thread David H
Does this affect Chris's chances in the annual "Zope Cogeniality Awards"? BTW DTML does not suck. I too have written lots of code w/it. I do find ZPT to be preferable - but it does take effort (brain re-wiring) and if your up to your elbows in alligators its just not the time to convert. I