[Zope-Annce] [ANN] TextIndexNG 3.1.8 released

2006-03-10 Thread Andreas Jung


I am pleased to announce the release of TextIndexNG V 3.1.8.

TextIndexNG V 3 is a complete new implementation based on Zope 3 
technologies and can be used both in Zope 2.8 or in Zope 3.


What's new?

- multi-field indexing and query support

- multi-lingual support

- configurable converters (through ZCML)

- new indexing API (allowing you to hook your custom content types with
  TextIndexNG through Zope 3 adapters).


Changes in V 3.1.8:

  - TextIndexNG3.py: the 'thesaurus' query option was not passed properly

  - fixed a KeyError 'language'


Requirements:

 - Zope 2.8+, Zope 3.2+


Download:

 http://sf.net/projects/textindexng

Project page:

 http://opensource.zopyx.biz/OpenSource/TextIndexNG3


For installation and documentation issues refer to doc/README.txt from the 
archive. It's basically the same procedure as with former versions except 
you *need* to recompile the extension modules. Windows binaries of the 
required extension modules are currently not available (any volunteers?).


TextIndexNG V 3 is published under the ZPL.


Andreas Jung

---
  -   Andreas JungZOPYX Ltd.  Co KG-
 -   E-mail: [EMAIL PROTECTED]   Web: www.zopyx.com, www.zopyx.de -
  ---



pgpptfrMktUFC.pgp
Description: PGP signature
___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

  Zope-Announce for Announcements only - no discussions

(Related lists - 
 Users: http://mail.zope.org/mailman/listinfo/zope
 Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-dev] characters allowed in object IDs

2006-03-10 Thread yuppie

Hi!


As of Zope 2.8.2 (http://svn.zope.org/?rev=38738view=rev) the '@' 
character is allowed in object IDs.


Zope 3 does not allow object IDs starting with '@' because those names 
are reserved for views.


Five makes Zope 3 style views available in Zope 2, so IDs starting with 
'@' should be disallowed in Zope 2 as well.


If there are no objections I'll fix that in Zope 2.8, 2.9 and trunk.


Cheers,

Yuppie

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: characters allowed in object IDs

2006-03-10 Thread Max M

yuppie wrote:

Hi!


As of Zope 2.8.2 (http://svn.zope.org/?rev=38738view=rev) the '@' 
character is allowed in object IDs.


Zope 3 does not allow object IDs starting with '@' because those names 
are reserved for views.


Five makes Zope 3 style views available in Zope 2, so IDs starting with 
'@' should be disallowed in Zope 2 as well.


If there are no objections I'll fix that in Zope 2.8, 2.9 and trunk.




There are several use cases for using an email as the user id. 
Especially when integrating to legacy systems.


So http://localhost/plone/Members/[EMAIL PROTECTED] should be legal. 
Otherwise it is a pita. (Until it gets ok to it in Plone I have a 
monkeypatch for Plone that allows this, and it's pretty simple.)


If you just want to prohibit id.startswith('@') it is fine by me.
But prohibiting id.find('@') != -1 would suck.

I cannot at the top of my head think of a case where @name is used... 
But if anyone else knows about it. Please speak up.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: characters allowed in object IDs

2006-03-10 Thread yuppie

Max M wrote:

yuppie wrote:
As of Zope 2.8.2 (http://svn.zope.org/?rev=38738view=rev) the '@' 
character is allowed in object IDs.


Zope 3 does not allow object IDs starting with '@' because those names 
are reserved for views.


Five makes Zope 3 style views available in Zope 2, so IDs starting 
with '@' should be disallowed in Zope 2 as well.


If there are no objections I'll fix that in Zope 2.8, 2.9 and trunk.


[...]

If you just want to prohibit id.startswith('@') it is fine by me.


I didn't propose to revert revision 38738, just want to fix it by adding

if id[:1] == '@':
raise BadRequest('The id %s is invalid because it begins '
 'with @.' % id)

So I count your reply as a +1.

Cheers, Yuppie

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] characters allowed in object IDs

2006-03-10 Thread Dieter Maurer
yuppie wrote at 2006-3-10 12:14 +0100:
As of Zope 2.8.2 (http://svn.zope.org/?rev=38738view=rev) the '@' 
character is allowed in object IDs.

Zope 3 does not allow object IDs starting with '@' because those names 
are reserved for views.

Five makes Zope 3 style views available in Zope 2, so IDs starting with 
'@' should be disallowed in Zope 2 as well.

If there are no objections I'll fix that in Zope 2.8, 2.9 and trunk.

To support WebDAV as widely as possible, I would prefer to
get rid of all id restrictions. I do not like to see
new restrictions emerging...


-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: characters allowed in object IDs

2006-03-10 Thread yuppie

Dieter Maurer wrote:

yuppie wrote at 2006-3-10 12:14 +0100:
As of Zope 2.8.2 (http://svn.zope.org/?rev=38738view=rev) the '@' 
character is allowed in object IDs.


Zope 3 does not allow object IDs starting with '@' because those names 
are reserved for views.


Five makes Zope 3 style views available in Zope 2, so IDs starting with 
'@' should be disallowed in Zope 2 as well.


If there are no objections I'll fix that in Zope 2.8, 2.9 and trunk.


To support WebDAV as widely as possible, I would prefer to
get rid of all id restrictions. I do not like to see
new restrictions emerging...


You just don't like it or do you know a better alternative?

We need a way to make sure that object IDs can't mask browser views and 
resources. The current solution in Zope 3 is to reserve names starting 
with '+' and '@' for resources and views.


Compared to Zope 2.8.1 and earlier this is no new restriction.

Cheers, Yuppie

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: characters allowed in object IDs

2006-03-10 Thread Max M

yuppie wrote:

Dieter Maurer wrote:


To support WebDAV as widely as possible, I would prefer to
get rid of all id restrictions. I do not like to see
new restrictions emerging...



You just don't like it or do you know a better alternative?

We need a way to make sure that object IDs can't mask browser views and 
resources. The current solution in Zope 3 is to reserve names starting 
with '+' and '@' for resources and views.


Compared to Zope 2.8.1 and earlier this is no new restriction.



But that doesn't mean that the restriction was good in the first place.

Naturally there will be some insane developers out there doing webdav, 
with @ having a special meaning, that will bite us in the ... future.


Leading '_' gave problems. '@' in ids has caused problems. So there is 
no reason to expect that a leading '@' won't at some time.


Only trouble is that it will be a problem in Zope 3 too.

Now that Twisted is put in front of Plone, we can also expect it to be a 
problem when Zope is used as a server for other services.


Eg. mirroring an imap folder structure from exchange. Which I am 
allready having some fun with in mxmImapClient. :-s


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Upgrading to Zope 2.9.1

2006-03-10 Thread Chris Withers

Brian Sullivan wrote:

Something like:

invalid syntax (Script (Python), line 3)

(in a pink box when the script was opened for editing via the ZMI)

Since I saved the script and the problem went away I can't be totally sure.


I sometimes see this when there a syntax error elsewhere in the file 
(missing bracket, bad indentation, etc)
For some reason, PythonScripts seem to give bad line number reports and 
sometimes odd error messages when this sort of thing happens...


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrading to Zope 2.9.1

2006-03-10 Thread Chris Withers

Dieter Maurer wrote:

It does now -- at least for FSPythonScripts when you are on a *nix
platform and your files contain DOS lineends.


Does this only affect (FS)PythonScripts or all disk based python code?

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Upgrading to Zope 2.9.1

2006-03-10 Thread Max M

Chris Withers wrote:

Dieter Maurer wrote:


It does now -- at least for FSPythonScripts when you are on a *nix
platform and your files contain DOS lineends.



Does this only affect (FS)PythonScripts or all disk based python code?



There has been a bug in Zope since ages, where multiline python in tal 
fails if it has Window line endings.


Eg. this will fail with windows line endings:

div tal:content=content python:' '.join(['oh',
   'bugger'])

This does not have multiline Python in the tal expression and will not fail:

div tal:attributes=title string:a title;
 id python: '42';

I have no idea if it is a manifestation of the same problem.


Since no one with the knowledge of the ZPT is willing to fix it, I did 
it for myself by setting up my svn rules to linux line endings ...



But it is clearly an annoying bug. Imagine if plain Python worked that 
way :-(



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] redirect after file upload

2006-03-10 Thread Olivier Wambacq
hello people,

I managed to upload a file to the external folder with plonelocalfolderng
and simultaniously to a database.

but as you all know, after uploading a file with htmlformuploadfile, this
automaticly redirects to plfng_view.
but I made my own view of the files available in the folder, based on the
content of my database.
So after upload, I want it to redirect to this page again, and not to the
plfng_view of plonelocalfolderNG.

I tried putting a javascript in this file, and changing the links in
plfng_view, but I can't seem to find just where to put it.

maybe someone can help?

thanks
Olivier

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


Re: [Zope] Re: Upgrading to Zope 2.9.1

2006-03-10 Thread Martijn Pieters
On 3/10/06, Max M [EMAIL PROTECTED] wrote:
 There has been a bug in Zope since ages, where multiline python in tal
 fails if it has Window line endings.

 Eg. this will fail with windows line endings:

 div tal:content=content python:' '.join(['oh',
 'bugger'])

Hmm; I'll investigate if I can reproduce this and see if the same fix
(universal line endings) will solve this too. I strongly suspect the
fix will be just as easy (line 81 of FSPageTemplate.py, add a 'U' to
the file opening flags). The harder bit is the tests..

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] type error / issue dealer

2006-03-10 Thread Einar Næss Jensen
having trouble understanding this error.what does unsubscriptable mean?is it due to insufficent rights?Error Type: TypeErrorError Value: unsubscriptable objectTime  2006/03/10 11:40:23.001 GMT+1
User Name (User Id)  einar (einar)Request URL  http://host.name:8080/xxx/logging2/search
Exception Type  TypeErrorException Value  unsubscriptable object
Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module 
Shared.DC.Scripts.Bindings, line 261, in __call__ * Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec * Module Products.PageTemplates.PageTemplateFile, line 106, in _exec * Module Products.PageTemplates.PageTemplate

, line 96, in pt_render PageTemplateFile at /xxx/logging2/search * Module TAL.TALInterpreter, line 189, in __call__ * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter

, line 642, in do_defineMacro * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 408, in do_optTag_tal * Module TAL.TALInterpreter, line 393, in do_optTag * Module 
TAL.TALInterpreter, line 388, in no_tag * Module TAL.TALInterpreter, line 233, in interpret * Module TAL.TALInterpreter, line 605, in do_loop_tal * Module TAL.TALInterpreter, line 233, in interpret

 * Module TAL.TALInterpreter, line 408, in do_optTag_tal * Module TAL.TALInterpreter, line 393, in do_optTag * Module TAL.TALInterpreter, line 388, in no_tag * Module TAL.TALInterpreter, line 233, in interpret
 * Module TAL.TALInterpreter, line 483, in do_insertText_tal * Module Products.PageTemplates.TALES, line 226, in evaluateText * Module Products.PageTemplateissue dealers.TALES, line 220, in evaluate

 URL: search Line 96, Column 1 _expression_: PythonExpr item.render_contents_as_text[:200] Names: {'container': issue_dealer instance at 41743050, 'context': issue_dealer instance at 41743050,
 'default': Products.PageTemplates.TALES.Default instance at 0x4088348c, 'here': issue_dealer instance at 41743050, 'loop': SafeMapping instance at 411aa650, 'modules': 
Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x4088330c, 'nothing': None, 'options': {'args': ()}, 'repeat': SafeMapping instance at 411aa650, 'request': HTTPRequest, URL=
"" href="http://host.name:8080/xxx/logging2/search" target="_blank" >http://host.name:8080/xxx/logging2/search, 'root': Application instance at 415676e0,
 'template': PageTemplateFile at /xxx/logging2/search,
 'traverse_subpath': [], 'user': einar} * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ __traceback_info__: item.render_contents_as_text[:200] * Module Python _expression_ 
item.render_contents_as_text[:200], line 1, in _expression_ * Module AccessControl.ZopeGuards, line 64, in guarded_getitemTypeError: unsubscriptable object-- -- Einar Næss Jensen
http://einar.nidelven-it.no/einarblog
http://www.homemade.notlf: +47 90990249(\__/)(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

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


Re: [Zope] type error / issue dealer

2006-03-10 Thread Andreas Jung

Why don't you report such bugs direcctly to the author of the program?
Developers hate fishing bug reports from lots of list instead of receiving 
a report directly. I have really no idea why people don't follow the direct 
way?


-aj

--On 10. März 2006 12:04:59 +0100 Einar Næss Jensen 
[EMAIL PROTECTED] wrote:



having trouble understanding this error.
what does unsubscriptable mean?
is it due to insufficent rights?

Error Type: TypeError
Error Value: unsubscriptable object

Time  2006/03/10 11:40:23.001 GMT+1
User Name (User Id) einar (einar)
Request URL http://host.name:8080/xxx/logging2/search
Exception Type TypeError
Exception Value unsubscriptable object

Traceback (innermost last):

* Module ZPublisher.Publish, line 100, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Shared.DC.Scripts.Bindings, line 261, in __call__
* Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec
* Module Products.PageTemplates.PageTemplateFile, line 106, in _exec
* Module Products.PageTemplates.PageTemplate , line 96, in pt_render
  PageTemplateFile at /xxx/logging2/search
* Module TAL.TALInterpreter, line 189, in __call__
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter , line 642, in do_defineMacro
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 408, in do_optTag_tal
* Module TAL.TALInterpreter, line 393, in do_optTag
* Module TAL.TALInterpreter, line 388, in no_tag
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 605, in do_loop_tal
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 408, in do_optTag_tal
* Module TAL.TALInterpreter, line 393, in do_optTag
* Module TAL.TALInterpreter, line 388, in no_tag
* Module TAL.TALInterpreter, line 233, in interpret
* Module TAL.TALInterpreter, line 483, in do_insertText_tal
* Module Products.PageTemplates.TALES, line 226, in evaluateText
* Module Products.PageTemplateissue dealers.TALES, line 220, in
evaluate   URL: search
  Line 96, Column 1
  Expression: PythonExpr item.render_contents_as_text[:200]
  Names:

  {'container': issue_dealer instance at 41743050,
   'context': issue_dealer instance at 41743050,
   'default': Products.PageTemplates.TALES.Default instance at
0x4088348c,
   'here': issue_dealer instance at 41743050,
   'loop': SafeMapping instance at 411aa650,
   'modules': 
Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0x4088330c,
   'nothing': None,
   'options': {'args': ()},
   'repeat': SafeMapping instance at 411aa650,
   'request': HTTPRequest, URL=
http://host.name:8080/xxx/logging2/search,
   'root': Application instance at 415676e0,
   'template': PageTemplateFile at /xxx/logging2/search,
   'traverse_subpath': [],
   'user': einar}

* Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
  __traceback_info__: item.render_contents_as_text[:200]
* Module Python expression  item.render_contents_as_text[:200], line
1, in expression
* Module AccessControl.ZopeGuards, line 64, in guarded_getitem

TypeError: unsubscriptable object

--
--
Einar Næss Jensen
http://einar.nidelven-it.no/einarblog
http://www.homemade.no
tlf: +47 90990249
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.






pgpjdAvu8S6x0.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] type error / issue dealer

2006-03-10 Thread Einar Næss Jensen
On 3/10/06, Andreas Jung [EMAIL PROTECTED] wrote:
Why don't you report such bugs direcctly to the author of the program?Developers hate fishing bug reports from lots of list instead of receivinga report directly. I have really no idea why people don't follow the direct
way?I have already notified the authorI asked: what does unsubscriptable mean?I did not ask: Can you please solve my problem X with the Product Y
-- -- Einar Næss Jensenhttp://einar.nidelven-it.no/einarbloghttp://www.homemade.notlf: +47 90990249(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your()_()signature to help him gain world domination.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] type error / issue dealer

2006-03-10 Thread Andreas Jung



--On 10. März 2006 12:39:18 +0100 Einar Næss Jensen 
[EMAIL PROTECTED] wrote:



On 3/10/06, Andreas Jung [EMAIL PROTECTED] wrote:


Why don't you report such bugs direcctly to the author of the program?
Developers hate fishing bug reports from lots of list instead of
receiving a report directly. I have really no idea why people don't
follow the direct
way?



I have already notified the author

I asked: what does unsubscriptable mean?

I did not ask: Can you please solve my problem X with the Product Y




This is a basic Python question.


foo=2
foo[2]

Traceback (most recent call last):
 File stdin, line 1, in ?
TypeError: unsubscriptable object

... means the object does not support slicing.

I doubt that will help you.

-aj


pgpnh7ufMokS3.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] [ANN] Zope 2.8.6 released

2006-03-10 Thread Luca Olivetti

En/na Andreas Jung ha escrit:



Hi all,

on behalf of Zope Corporation and the Zope community I am pleased to 
announce the release of Zope 2.8.6.  You can download Zope 2.8.6 from


 http://www.zope.org/Products/Zope/2.8.6/


It's just me or the permissions are wrong?

On a just installed zope-2.8.6  (untarred with gnu tar and built with 
./configure --with-python=/usr/local/python-2.3.5/bin/python 
--prefix=/usr/local/zope-2.8.6-final; make; sudo make install)


$ zopetest/bin/zopectl status
Traceback (most recent call last):
  File /usr/local/zope/lib/python/Zope2/Startup/zopectl.py, line 322, 
in ?

main()
  File /usr/local/zope/lib/python/Zope2/Startup/zopectl.py, line 280, 
in main

options.realize(args)
  File /usr/local/zope/lib/python/Zope2/Startup/zopectl.py, line 91, 
in realize

ZDOptions.realize(self, *args, **kw)
  File /usr/local/zope-2.8.6-final/lib/python/zdaemon/zdoptions.py, 
line 273, in realize

self.load_schema()
  File /usr/local/zope-2.8.6-final/lib/python/zdaemon/zdoptions.py, 
line 321, in load_schema

self.schema = ZConfig.loadSchema(self.schemafile)
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
31, in loadSchema

return SchemaLoader().loadURL(url)
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
63, in loadURL

r = self.openResource(url)
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
102, in openResource

self._raise_open_error(url, str(e))
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
114, in _raise_open_error

url)
ZConfig.ConfigurationError: error opening file 
/usr/local/zope/lib/python/Zope2/Startup/zopeschema.xml: [Errno 13] 
Permission denied: '/usr/local/zope/lib/python/Zope2/Startup/zopeschema.xml'



There are many other files that are readable only by root (that wasn't 
the case with 2.8.4)


A quick fix

$ cd /usr/local/zope-2.8.6-final
$ sudo find -perm +'u+r' -exec chmod go+r \{\} \;
$ sudo find -perm +'u+x' -exec chmod go+x \{\} \;


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Upgrading to Zope 2.9.1

2006-03-10 Thread Martijn Pieters
On 3/10/06, Martijn Pieters [EMAIL PROTECTED] wrote:
 Hmm; I'll investigate if I can reproduce this and see if the same fix
 (universal line endings) will solve this too. I strongly suspect the
 fix will be just as easy (line 81 of FSPageTemplate.py, add a 'U' to
 the file opening flags). The harder bit is the tests..

I checked in a testcase and a fix on the CMF Trunk, and will merge it
to the 1.5 and 1.6 branches after lunch. Indeed, universal line
endings solve the problem here too.

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Force ZCatalog to UTF-8

2006-03-10 Thread Garito

Hi all!

How can I force ZCatalog to use only unicode strings (UTF-8)?

I'm trying to change all zope to use these charset. For that I install 
Zope 2.9.1 and I change on zope.conf:


rest-input-encoding utf-8
rest-output-encoding utf-8
default-zpublisher-encoding utf-8

but ZCatalog don't catalog unicode if the string is not an unicode 
string (at least I think so)


Any idea?

Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Force ZCatalog to UTF-8

2006-03-10 Thread Andreas Jung
The ZCatalog has little in mind with encodings. It indexes the stuff that 
an

object offers to be indexed. You might look at TXNG 3 which deals  usually
much nicer with encoding, unicode etc. than ZCTextIndex.

-aj

--On 10. März 2006 13:57:30 +0100 Garito [EMAIL PROTECTED] wrote:


Hi all!

How can I force ZCatalog to use only unicode strings (UTF-8)?

I'm trying to change all zope to use these charset. For that I install
Zope 2.9.1 and I change on zope.conf:

rest-input-encoding utf-8
rest-output-encoding utf-8
default-zpublisher-encoding utf-8

but ZCatalog don't catalog unicode if the string is not an unicode string
(at least I think so)

Any idea?

Thanks a lot!

--
Mis Cosas
http://blogs.sistes.net/Garito/


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






pgpZH0EjaCnDl.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] [ANN] Zope 2.8.6 released

2006-03-10 Thread Janko Hauser


Am 10.03.2006 um 13:06 schrieb Luca Olivetti:


En/na Andreas Jung ha escrit:

Hi all,
on behalf of Zope Corporation and the Zope community I am pleased  
to announce the release of Zope 2.8.6.  You can download Zope  
2.8.6 from

 http://www.zope.org/Products/Zope/2.8.6/


It's just me or the permissions are wrong?


No I had the same expirience under MacOSX and debian system.

__Janko Hauser

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrading to Zope 2.9.1

2006-03-10 Thread Brian Sullivan
On 3/10/06, Patrick Decat [EMAIL PROTECTED] wrote:
 Attached is is screenshot of the error message.

 There is no error in the event log.

 Steps to reproduce :
 - Create a Python Script on the file system with Windows style line-endings
 - Go to http://localhost:8080/manage
 - Click the drop down list to add a Python Script
 - Enter test_eol in the id field
 - Click Browse to find and select your script on the filesystem
 - Click Add
 - Error : invalid syntax (Script (Python), line 2)
 - Click Save changes - the error is gone.

 System information :
 - Windows 2000 SP4 (client and server)
 - Zope 2.9.1 (fresh install with
 http://www.zope.org/Products/Zope/2.9.1/Zope-2.9.1-win32.exe
 installer)
 - Only product installed : ExternalEditor 0.9.1


Sounds like exactly what I experienced ( I guess the repro steps
should mean it will be fixed).
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] [ANN] Zope 2.8.6 released

2006-03-10 Thread Andreas Jung



--On 10. März 2006 15:38:35 +0100 Janko Hauser [EMAIL PROTECTED] wrote:



Am 10.03.2006 um 13:06 schrieb Luca Olivetti:


En/na Andreas Jung ha escrit:

Hi all,
on behalf of Zope Corporation and the Zope community I am pleased
to announce the release of Zope 2.8.6.  You can download Zope
2.8.6 from
 http://www.zope.org/Products/Zope/2.8.6/


It's just me or the permissions are wrong?


No I had the same expirience under MacOSX and debian system.




Did you use 'sudo' for the installation or did you ran the installation as 
root?


-aj

pgpt0KcO6o7FT.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] [ANN] Zope 2.8.6 released

2006-03-10 Thread Luca Olivetti

En/na Andreas Jung ha escrit:



--On 10. März 2006 15:38:35 +0100 Janko Hauser [EMAIL PROTECTED] wrote:



Am 10.03.2006 um 13:06 schrieb Luca Olivetti:


En/na Andreas Jung ha escrit:

Hi all,
on behalf of Zope Corporation and the Zope community I am pleased
to announce the release of Zope 2.8.6.  You can download Zope
2.8.6 from
 http://www.zope.org/Products/Zope/2.8.6/


It's just me or the permissions are wrong?


No I had the same expirience under MacOSX and debian system.




Did you use 'sudo' for the installation or did you ran the installation 
as root?


I tried both ways (but only the make install part, the configure and 
make I usually do as my user).


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] type error / issue dealer

2006-03-10 Thread Dieter Maurer
Einar Næss Jensen wrote at 2006-3-10 12:04 +0100:
having trouble understanding this error.
what does unsubscriptable mean?
is it due to insufficent rights?

Error Type: TypeError
Error Value: unsubscriptable object

Time  2006/03/10 11:40:23.001 GMT+1
User Name (User Id) einar (einar)
Request URL http://host.name:8080/xxx/logging2/search
Exception Type TypeError
Exception Value unsubscriptable object

You are using subscription syntax (i.e. obj[subscript])
for an object that does not support subscription (e.g. None,
an integer, ...).


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrading to Zope 2.9.1

2006-03-10 Thread Dieter Maurer
Brian Sullivan wrote at 2006-3-9 14:23 -0500:
On 3/9/06, Dieter Maurer [EMAIL PROTECTED] wrote:
 ...
 It does now -- at least for FSPythonScripts when you are on a *nix
 platform and your files contain DOS lineends.

  You then will get (starting with Python 2.4) SyntaxErrors
  at line ends.

 Of course, things are different when you are on a Windows platform
 and your files contain DOS lineends...


Different in what way?

On Windows, FSPythonScripts may use DOS lineends.

I was experiencing difficulty on a Windows platform. The scripts in
question have never seen anything other than Windows.

Are you indicating that the line end issue is not what I was experiencing?

Indeed, it looks this way.


However, there is another caveat:

  Sometimes files with DOS lineends end up in CVS (maybe SVN)
  (in your own that of the developpers). When they are extracted
  from Windows, then the DOS lineend \r\n can become
  \r\r\n and that Python does not like even under Windows.


You can easily find out whether you have a lineend problem
by examining your files with a binary viewer (do not know
what such a binary viewer is under Windows -- under *nix,
od is one).


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrading to Zope 2.9.1

2006-03-10 Thread Dieter Maurer
Chris Withers wrote at 2006-3-10 08:17 +:
Dieter Maurer wrote:
 It does now -- at least for FSPythonScripts when you are on a *nix
 platform and your files contain DOS lineends.

Does this only affect (FS)PythonScripts or all disk based python code?

I do not know. Try it out...


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Force ZCatalog to UTF-8

2006-03-10 Thread Dieter Maurer
Andreas Jung wrote at 2006-3-10 14:12 +0100:
The ZCatalog has little in mind with encodings. It indexes the stuff that 
an
object offers to be indexed. You might look at TXNG 3 which deals  usually
much nicer with encoding, unicode etc. than ZCTextIndex.

Or ManagableIndex for non full text indexes.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] redirect after file upload

2006-03-10 Thread Dieter Maurer
Olivier Wambacq wrote at 2006-3-10 10:57 +0100:
I managed to upload a file to the external folder with plonelocalfolderng
and simultaniously to a database.

but as you all know, after uploading a file with htmlformuploadfile, this
automaticly redirects to plfng_view.
but I made my own view of the files available in the folder, based on the
content of my database.

Thus, you use your own action wrapper which calls the orginal action
and then redirects as you want it. The second redirect
overrides the first one.


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] [ANN] TextIndexNG 3.1.8 released

2006-03-10 Thread Andreas Jung


I am pleased to announce the release of TextIndexNG V 3.1.8.

TextIndexNG V 3 is a complete new implementation based on Zope 3 
technologies and can be used both in Zope 2.8 or in Zope 3.


What's new?

- multi-field indexing and query support

- multi-lingual support

- configurable converters (through ZCML)

- new indexing API (allowing you to hook your custom content types with
  TextIndexNG through Zope 3 adapters).


Changes in V 3.1.8:

  - TextIndexNG3.py: the 'thesaurus' query option was not passed properly

  - fixed a KeyError 'language'


Requirements:

 - Zope 2.8+, Zope 3.2+


Download:

 http://sf.net/projects/textindexng

Project page:

 http://opensource.zopyx.biz/OpenSource/TextIndexNG3


For installation and documentation issues refer to doc/README.txt from the 
archive. It's basically the same procedure as with former versions except 
you *need* to recompile the extension modules. Windows binaries of the 
required extension modules are currently not available (any volunteers?).


TextIndexNG V 3 is published under the ZPL.


Andreas Jung

---
  -   Andreas JungZOPYX Ltd.  Co KG-
 -   E-mail: [EMAIL PROTECTED]   Web: www.zopyx.com, www.zopyx.de -
  ---



pgpSeabSaw9nh.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )