[Zope] How to get $PRODUCT_HOME

2006-02-07 Thread Roman Klesel
Hello again,

I just started with FS products and have trouble to figure some things out ...

>From within zope I would like to call scripts that I provide in the product 
>folder on the file system like eg.:

handle = os.popen('gnuplot %s/bin/loadgraphs.gplt' % product_folder, 'r')

How can I get the path to the product folder?
Thanks in advance!

Greetings Roman
___
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] Ignore stopwords/characters in alphabetical results

2006-02-07 Thread Ken Ara
Thanks Dieter and others for helping me understand
this problem. 

In the end I added the following code to my product:

def norm_title(self):
"""Returns a normalized copy of the title for
sorting purposes"""

nt = ''

if hasattr(self, 'title'):
nt = re.sub('^A |^An |^The |\W', ' ',
self.title)
nt = join(split(nt))

return nt

I then added a norm_title index to my ZCatalog for
sorting. I'm a regex newbie so any improvements are
welcome!

Thanks,

Ken


--- Dieter Maurer <[EMAIL PROTECTED]> wrote:

> Ken Ara wrote at 2006-2-2 00:41 -0800:
> >I have been asked to improve the order of search
> >results, so that stop words and certain characters
> at
> >the beginning of a title are ignored. "Final
> Report",
> >"The Final Report" and "[Final] Report" all need to
> >appear under the letter 'F'. 
> 
> Thus, you only want the change the result order.
> 
> Unless you want relevancy ranking (which is not the
> case,
> depending on your description), ordering has nothing
> to
> do with the indexes (at least not the text indexes).
> 
> Ordering can be done with "sequence.sort"
> (documented in
> the Zope Online help system) or with Python's "sort"
> method.
> In both cases, you can provide your own comparison
> function.
> The comparison faction to use the vocabulary to
> check for
> stopwords (words not known by the vocabulary are
> stopwords).
> 
> -- 
> Dieter
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
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] How to get $PRODUCT_HOME

2006-02-07 Thread Andrew Milton
+---[ Roman Klesel ]--
| Hello again,
| 
| I just started with FS products and have trouble to figure some things out ...
| 
| >From within zope I would like to call scripts that I provide in the product 
folder on the file system like eg.:
| 
| handle = os.popen('gnuplot %s/bin/loadgraphs.gplt' % product_folder, 'r')
| 
| How can I get the path to the product folder?

from Globals import package_home

package_home(globals())

should give you what you need.

-- 
Andrew Milton
[EMAIL PROTECTED]
___
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] How to get $PRODUCT_HOME

2006-02-07 Thread Tino Wildenhain

Roman Klesel schrieb:

Hello again,

I just started with FS products and have trouble to figure some things out ...


From within zope I would like to call scripts that I provide in the product 
folder on the file system like eg.:


handle = os.popen('gnuplot %s/bin/loadgraphs.gplt' % product_folder, 'r')

How can I get the path to the product folder?
Thanks in advance!


see the __file__ variable in your module.

for example via:

os.path.dirname(os.path.abspath(__file__))

you get the absolute path of the directory
where your module is. Complete it to:

os.path.join(os.path.dirname(os.path.abspath(__file__)),'bin','loadgraphs.gplt')

to get the full path of your file os independent
(e.g. works the same with unix,windows,mac os...)

___
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] work around for importing zexp into zope2.8.1?

2006-02-07 Thread Chris Withers

Tim Nash wrote:

Well in the FAQ I see it says to call manage_convertIndexes of the
If you want to use iungo with Zope 2.8.X or Zope 2.9.x (please note:
Zope 2.8.1 is broken regarding .zexp-Imports ), you'll need to
recreate all Catalog-Indices. After step 3) of the iungo-installation
simply call: http://localhost:8080/iungo/Catalog/manage_convertIndexes
"""


I personally worry about the quality of any product that distributes 
software as a .zexp :-/


cheers,

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] work around for importing zexp into zope2.8.1?

2006-02-07 Thread Andreas Jung



--On 7. Februar 2006 11:35:13 + Chris Withers <[EMAIL PROTECTED]> 
wrote:



Tim Nash wrote:

Well in the FAQ I see it says to call manage_convertIndexes of the
If you want to use iungo with Zope 2.8.X or Zope 2.9.x (please note:
Zope 2.8.1 is broken regarding .zexp-Imports ), you'll need to
recreate all Catalog-Indices. After step 3) of the iungo-installation
simply call: http://localhost:8080/iungo/Catalog/manage_convertIndexes
"""


I personally worry about the quality of any product that distributes
software as a .zexp :-/



It is sometimes convenient. I do sometimes ship DCWorkflow definitions
as .zexp. Why? Because I am fine with editing my workflows in the ZMI
and dumping the stuff without having the need to write a single line
of code except some lines to import the workflow definition into the 
workflow tool.


-aj




pgpJCFan4Ejxo.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] How to get $PRODUCT_HOME

2006-02-07 Thread Roman Klesel
Hello Andrew,

Andrew Milton schrieb:
> | 
> | How can I get the path to the product folder?
> 
> from Globals import package_home
> 
> package_home(globals())
> 
> should give you what you need.
> 

yes this does the trick! Thanks!

Greetings Roman
___
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: Error when starting Zope 2.9.0

2006-02-07 Thread Pawel Lewicki

Hugo Ramos wrote:

Yellow ppl,

I've instaled Zope 2.9.0 on Fedora 4 using Python 2.4.2 compiled from
source. Everything ok.
I was trying to do exactly the same (Zope 2.9.0 with Python 2.4.2 from
source) in Debian 3.1 and I got the following error:

...

from AccessControl import ImplC as impl
  File "/var/zope/lib/python/AccessControl/ImplC.py", line 30, in ?
from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy
ImportError: No module named ImplPython
===

Any1 solved this already???


Regards

--
Hugo Ramos - [EMAIL PROTECTED]


I had the same problem. You have to install zlib before Zope (or Python 
- I'm not sure) compilation. In my case it was


apt-get install zlib1g
apt-get install zlib1g-dev

Pawel

___
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: work around for importing zexp into zope2.8.1?

2006-02-07 Thread Maik Ihde
>  iungo.zexp imports fine into zope 2.9  it doesn't import into
> zope2.8.1. Thanks for trying to help. It looks like I'm just stuck.

Yeah you are. Use another Version of Zope 2.8 as the iungo page suggests. It
clearly states that .zexp import is *broken* in 2.8.1 - use 2.8.5 instead.

Regards
Maik


___
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] How to get $PRODUCT_HOME

2006-02-07 Thread Roman Klesel
Hi Tino,

Tino Wildenhain schrieb:
>> How can I get the path to the product folder?
>> Thanks in advance!
> 
> 
> see the __file__ variable in your module.
> 
> for example via:
> 
> os.path.dirname(os.path.abspath(__file__))
> 
> you get the absolute path of the directory
> where your module is. Complete it to:
> 
> os.path.join(os.path.dirname(os.path.abspath(__file__)),'bin','loadgraphs.gplt')
> 
> 
> to get the full path of your file os independent
> (e.g. works the same with unix,windows,mac os...)
> 

wow, yes also interesting. In case one needs to get the path of an individual 
module.

For my current task I went with Andrew's proposal and used 
package_home(globals()). That seems to work well.
But your suggestion will be helpful in some other thing I have in mind ...

Thanks!

Greetings Roman
___
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] New Product called Zoep

2006-02-07 Thread Jonathan Cyr

Hello,

Is there any concern about naming confusion with the new VOIP browser 
extension called "Zoep" (from Slashdot this morning).


Mozilla Firebird became FireFox, due to naming confusion.   Should these 
folks continue with such a similar name?  Is anyone concerned?


Two cents,

-Jon

--
Jonathan Cyr
http://www.cyr.info
http://www.weddingweblog.com
[EMAIL PROTECTED]

___
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] New Product called Zoep

2006-02-07 Thread Jonathan Cyr




Decided to look it up...

Interesting page at...

http://www.zope.com/about_us/legal/trademark.html

How important is the Zope brand and trademark?  Will any action be
worth the effort/cost?  What/Who is the ZTAG Group?

Still, just asking questions,

-Jon

Peter Bengtsson wrote:

  I'm concerned but don't have the energy or power to do much about it.
The least I can do is to blog about it :)

On 2/7/06, Jonathan Cyr <[EMAIL PROTECTED]> wrote:
  
  
Hello,

Is there any concern about naming confusion with the new VOIP browser
extension called "Zoep" (from Slashdot this morning).

Mozilla Firebird became FireFox, due to naming confusion.   Should these
folks continue with such a similar name?  Is anyone concerned?

Two cents,

-Jon

--
Jonathan Cyr
http://www.cyr.info
http://www.weddingweblog.com
[EMAIL PROTECTED]

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


  
  

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com

  


-- 
Jonathan Cyr
http://www.cyr.info
http://www.weddingweblog.com
[EMAIL PROTECTED]


___
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] New Product called Zoep

2006-02-07 Thread Dennis Allison

I think there is potential for confusion.  Both Zope Corp and 
teh Zope Foundation should send cease and desist letters.


On Tue, 7 Feb 2006, Jonathan Cyr wrote:

> Hello,
> 
> Is there any concern about naming confusion with the new VOIP browser 
> extension called "Zoep" (from Slashdot this morning).
> 
> Mozilla Firebird became FireFox, due to naming confusion.   Should these 
> folks continue with such a similar name?  Is anyone concerned?
> 
> Two cents,
> 
> -Jon
> 
> 

-- 

___
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] New Product called Zoep

2006-02-07 Thread Peter Bengtsson
I'm concerned but don't have the energy or power to do much about it.
The least I can do is to blog about it :)

On 2/7/06, Jonathan Cyr <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there any concern about naming confusion with the new VOIP browser
> extension called "Zoep" (from Slashdot this morning).
>
> Mozilla Firebird became FireFox, due to naming confusion.   Should these
> folks continue with such a similar name?  Is anyone concerned?
>
> Two cents,
>
> -Jon
>
> --
> Jonathan Cyr
> http://www.cyr.info
> http://www.weddingweblog.com
> [EMAIL PROTECTED]
>
> ___
> 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 )
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
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] ExtFile - wrong file extension and content_type

2006-02-07 Thread Palermo, Tom



All,
 
I am working on a project using 
ExtFile. Lately, when uploading MS Word files, they get uploaded to the file 
system as .exe files (eg. test.doc becomes test.exe) and the content_type is set 
to application/octet-stream instead of application/msword. Sometimes the 
content_tpye is correct but the file extension is still set to .exe. Does anyone 
know what could be causing this? Is there a config setting in ExtFile that's 
doing this? Any ideas would be much appreciated. 
 
Thanks,
Tom
___
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] work around for importing zexp into zope2.8.1?

2006-02-07 Thread Dieter Maurer
Tim Nash wrote at 2006-2-6 11:34 -0800:
>  Has anyone come across a work around for the problem of importing
>zexp into zope 2.8.1?

As others already pointed out: the easiest solution would be to
use a fixed Zope 2.8.x version.

Alternatively, you could fix Zope 2.8.1 yourself. For this, I added
(in our local copy) in ".../Products/PluggableIndexes/common/UnIndex.py":


# DM 2005-08-25: compatibility
from ComputedAttribute import ComputedAttribute
...
# DM 2005-08-25: backward compatibility -- overridden at instance level
def _length(self):
length = self._length = BTrees.Length.Length(len(self._index))
return length
_length = ComputedAttribute(_length)

The second hunk can go (e.g.) after the definition of "__len__".

-- 
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] Trademarks, Zope and Zoep

2006-02-07 Thread Dennis Allison

Voipster and Zoep people:

(copied to the Zope Mailing List)

The choice of the "Zoep" name by Voipster for their Firefox Voip plugin
seems to many of us to be easily confused with "Zope" and is a potential
trademark issue.  Becasue of the Slashdot article today there is some
discussion of the issue on the zope.org mailing list.

Zope is open source software.  You may want to take a look at the various
Zope sites (www.zope.org and www.zope.com) and particularly at the
trademark page, http://www.zope.com/about_us/legal/trademark.html

A name change for Zoep seems to be in order to prevent confusion, like the
Mozilla change from Firebird to Firefox.  Becasue Zoep is a new product 
without an established name recognition base, now would be the time for 
such a change. 










___
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] New Product called Zoep

2006-02-07 Thread Jonathan Cyr




I debated bringing it up, glad I
did.

-Jon

Dennis Allison wrote:

  I think there is potential for confusion.  Both Zope Corp and 
teh Zope Foundation should send cease and desist letters.


On Tue, 7 Feb 2006, Jonathan Cyr wrote:

  
  
Hello,

Is there any concern about naming confusion with the new VOIP browser 
extension called "Zoep" (from Slashdot this morning).

Mozilla Firebird became FireFox, due to naming confusion.   Should these 
folks continue with such a similar name?  Is anyone concerned?

Two cents,

-Jon



  
  
  


-- 
Jonathan Cyr
http://www.cyr.info
http://www.weddingweblog.com
[EMAIL PROTECTED]


___
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] htaccess with zope/plone ?

2006-02-07 Thread Chris Withers

michael nt milne wrote:

I've managed to set-up SSL over Apache and Zope/Plone virtual hosts on
Windows but am slightly stuck on implementing the htaccess part of my
solution. I've done extensive googleing but can't seen to find any solid
documentation.


This is an Apache question, go ask on #apache on irc.freenode.net!

I really don't understand why you'd use htaccess is you're already using 
 Zope...


cheers,

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: New Product called Zoep

2006-02-07 Thread Alexander Limi
On Tue, 07 Feb 2006 09:08:24 -0800, Jonathan Cyr  
<[EMAIL PROTECTED]> wrote:



Hello,

Is there any concern about naming confusion with the new VOIP browser  
extension called "Zoep" (from Slashdot this morning).


Mozilla Firebird became FireFox, due to naming confusion.   Should these  
folks continue with such a similar name?  Is anyone concerned?


Absolutely a legitimate problem, I think - in addition to the fact that  
the Zope trademark isn't owned by the Zope Foundation. (Look out for the  
new J2EE Zope technology once the value of the Zope brand exceeds the  
assets of Zope Corp).


As an aside, this posting in the comments on Slashdot was hilarious:

"""
Announcing: Ploen

Ploen is an out-of-the-box ready VoIP system that is built on the powerful  
and free Zoep client-side VoIP engine. It requires minimal effort to set  
up, is deeply flexible, and provides you with a system for managing VoIP  
that is ideal for project groups, communities and intranets.


And it goes 0 - 60 mph in 5 seconds, as you can see from the Ploen site.

http://www.ploen.org

"""

Certainly made my day :D

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

___
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: New Product called Zoep

2006-02-07 Thread Alexander Limi
On Tue, 07 Feb 2006 09:55:02 -0800, Dennis Allison  
<[EMAIL PROTECTED]> wrote:



I think there is potential for confusion.  Both Zope Corp and
teh Zope Foundation should send cease and desist letters.


Zope Foundation does not have anything to do with the trademark,  
unfortunately. That is Zope Corporation's property, and part of their  
"equities", according to them.


A summary of the situation:

http://www.zopezen.org/Members/limi/zc-communitychat

--
_

 Alexander Limi · Chief Architect · Plone Solutions · Norway

 Consulting · Training · Development · http://www.plonesolutions.com
_

  Plone Co-Founder · http://plone.org · Connecting Content
  Plone Foundation · http://plone.org/foundation · Protecting Plone

___
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: New Product called Zoep

2006-02-07 Thread Dennis Allison

It is a legitimate concern for everyone in the Zope community regardless 
of what entity owns and controls the trademark.  

On Tue, 7 Feb 2006, Alexander Limi wrote:

> 
> 
> On Tue, 07 Feb 2006 09:55:02 -0800, Dennis Allison  
>  wrote:
> 
> > I think there is potential for confusion.  Both Zope Corp and
> > teh Zope Foundation should send cease and desist letters.
> 
> Zope Foundation does not have anything to do with the trademark,  
> unfortunately. That is Zope Corporation's property, and part of their  
> "equities", according to them.
> 
> A summary of the situation:
> 
> http://www.zopezen.org/Members/limi/zc-communitychat
> 
> 

-- 

___
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: htaccess with zope/plone ?

2006-02-07 Thread michael nt milne
Sorry but there's alot of Apache knowledge here and it's completely
relevant. Also Zope doesn't do SSL well and all password - login is
basically insecure! I've found out that  I'm best using httpd.conf and
not htaccess . Also irc.freenode is unusable.

On 2/7/06, Chris Withers <[EMAIL PROTECTED]> wrote:
> michael nt milne wrote:
> > I've managed to set-up SSL over Apache and Zope/Plone virtual hosts on
> > Windows but am slightly stuck on implementing the htaccess part of my
> > solution. I've done extensive googleing but can't seen to find any solid
> > documentation.
>
> This is an Apache question, go ask on #apache on irc.freenode.net!
>
> I really don't understand why you'd use htaccess is you're already using
>   Zope...
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python Consulting
> - http://www.simplistix.co.uk
>
>


--
Michael
___
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: htaccess with zope/plone ?

2006-02-07 Thread michael nt milne
Also I'm implementing an extranet solution where extra security is
required-so therefore an apache login and a further plone login for
editing the site.

On 2/7/06, michael nt milne <[EMAIL PROTECTED]> wrote:
> Sorry but there's alot of Apache knowledge here and it's completely
> relevant. Also Zope doesn't do SSL well and all password - login is
> basically insecure! I've found out that  I'm best using httpd.conf and
> not htaccess . Also irc.freenode is unusable.
>
> On 2/7/06, Chris Withers <[EMAIL PROTECTED]> wrote:
> > michael nt milne wrote:
> > > I've managed to set-up SSL over Apache and Zope/Plone virtual hosts on
> > > Windows but am slightly stuck on implementing the htaccess part of my
> > > solution. I've done extensive googleing but can't seen to find any
> solid
> > > documentation.
> >
> > This is an Apache question, go ask on #apache on irc.freenode.net!
> >
> > I really don't understand why you'd use htaccess is you're already using
> >   Zope...
> >
> > cheers,
> >
> > Chris
> >
> > --
> > Simplistix - Content Management, Zope & Python Consulting
> > - http://www.simplistix.co.uk
> >
> >
>
>
> --
> Michael
>


--
Michael
___
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] ExtFile - wrong file extension and content_type

2006-02-07 Thread Michael Vartanyan
Which version of ExtFile are you using? Which OS? ExtFile has some 
strange hacks to guess the extension it should use. If it is unable to 
determine the content type from the upload, it would set in to 
"application/octet-stream" (which is OK so far), and then pass this 
wrong finding to guess_extension function of mimetypes module chances 
are that it will return .obj as extension. Whatever. But then ExtFile 
does the following:


   mime_ext = guess_extension(content_type or self.content_type)
   if mime_ext is not None:
   if mime_ext in ('.jpeg', '.jpe'):
   mime_ext = '.jpg'   # for IE/Win :-(
   if mime_ext in ('.obj',):
   mime_ext = '.exe'   # b/w compatibility
   if REPOSITORY_EXTENSIONS == MIMETYPE_APPEND:
   id_name = id_name + id_ext
   id_ext = mime_ext

well. I would really like to know what does this "b/w" mean in this 
context? Not black&white for sure :-). The good news is that you can 
simply change this .exe into whatever you like, the name of the 
repository file really doesn't matter and I agree .exe is a scary 
choice, especially if you are using one very popular operating system.


Regards
Michael

P.S. Looks like a warm/backdoor actually ;-) heh, Gregor? ;)


Palermo, Tom wrote:


All,
 
I am working on a project using ExtFile. Lately, when uploading MS 
Word files, they get uploaded to the file system as .exe files (eg. 
test.doc becomes test.exe) and the content_type is set to 
application/octet-stream instead of application/msword. Sometimes the 
content_tpye is correct but the file extension is still set to .exe. 
Does anyone know what could be causing this? Is there a config setting 
in ExtFile that's doing this? Any ideas would be much appreciated.
 
Thanks,

Tom



___
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: htaccess with zope/plone ?

2006-02-07 Thread michael nt milne
Also, just to say that I did a test on only letting authenticated and managers view the root page of the site over ssl. If you just cancelled the login box or closed it, the whole front page was displayed without any css but you could still get all the content. I've had this quite a bit before so that's why I'm looking into Apache authentication. I just don't think that Zope authentication is secure.
On 2/7/06, michael nt milne <[EMAIL PROTECTED]> wrote:
Also I'm implementing an extranet solution where extra security isrequired-so therefore an apache login and a further plone login forediting the site.On 2/7/06, michael nt milne <
[EMAIL PROTECTED]> wrote:> Sorry but there's alot of Apache knowledge here and it's completely> relevant. Also Zope doesn't do SSL well and all password - login is> basically insecure! I've found out that  I'm best using 
httpd.conf and> not htaccess . Also irc.freenode is unusable.>> On 2/7/06, Chris Withers <[EMAIL PROTECTED]> wrote:> > michael nt milne wrote:
> > > I've managed to set-up SSL over Apache and Zope/Plone virtual hosts on> > > Windows but am slightly stuck on implementing the htaccess part of my> > > solution. I've done extensive googleing but can't seen to find any
> solid> > > documentation.> >> > This is an Apache question, go ask on #apache on irc.freenode.net!> >> > I really don't understand why you'd use htaccess is you're already using
> >   Zope...> >> > cheers,> >> > Chris> >> > --> > Simplistix - Content Management, Zope & Python Consulting> > - 
http://www.simplistix.co.uk> >>  --> Michael>--Michael-- 
Michael
___
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] Help with a simple DMS

2006-02-07 Thread Joshua Gilbert
Hi.

I'd like to make a simple DMS, users upload their
PDFs/docs/ps/whatever and then they can search within the documents.

I need to be able to automate the submission of documents as I'm part
of a large research lab, we've accumulated a lot of papers over the
years.

Other than that I'd like a nice, simple authentication scheme. That's
about it. Dead simple.

Please help.

I've got an instance of Zope running, with Plone. The plethora of
tools is bewildering to me and I don't know what to use.

I am a Python programmer (three years now I think) but I'd like to
minimize the amount of code I have to write. Simplicity and ease of
use are my watchwords.

If Zope doesn't provide what I'm looking for, can you suggest anything else?

Thank you.
Josh.
___
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] Help with a simple DMS

2006-02-07 Thread J Cameron Cooper

Joshua Gilbert wrote:

Hi.

I'd like to make a simple DMS, users upload their
PDFs/docs/ps/whatever and then they can search within the documents.


I believe TextIndexNG will index contents of complex file types.


I need to be able to automate the submission of documents as I'm part
of a large research lab, we've accumulated a lot of papers over the
years.


What exactly does "automate the submission of documents" mean?


Other than that I'd like a nice, simple authentication scheme. That's
about it. Dead simple.


Then stick with how it's already set up. Plone provides a nice UI for 
user management.


--jcc

--
"Building Websites with Plone"
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com
___
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: htaccess with zope/plone ?

2006-02-07 Thread Andreas Pakulat
On 07.02.06 23:58:20, michael nt milne wrote:
> Also, just to say that I did a test on only letting authenticated and
> managers view the root page of the site over ssl. If you just cancelled the
> login box or closed it, the whole front page was displayed without any css
> but you could still get all the content.

Then you had the proper rights somehow.

> I've had this quite a bit before so that's why I'm looking into Apache
> authentication. I just don't think that Zope authentication is secure.

Authentication via .htpasswd uses the same HTTP method as the basic
login into Zope. It's not more or less secure than authenticating
directly with Zope.

Andreas

-- 
There is a 20% chance of tomorrow.
___
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] Help with a simple DMS

2006-02-07 Thread Joshua Gilbert
On 2/7/06, J Cameron Cooper <[EMAIL PROTECTED]> wrote:
> Joshua Gilbert wrote:
> > Hi.
> >
> > I'd like to make a simple DMS, users upload their
> > PDFs/docs/ps/whatever and then they can search within the documents.
>
> I believe TextIndexNG will index contents of complex file types.

OK, that's great. Where do I find documentation to tell me how to set
up the site?

>
> > I need to be able to automate the submission of documents as I'm part
> > of a large research lab, we've accumulated a lot of papers over the
> > years.
>
> What exactly does "automate the submission of documents" mean?

I mean that I have a great deal of papers. I can't go through web
forms to add all of these documents. I would like to be able to submit
them through an automated process, I can't go through web forms by
hand to add them all.

I'm trying to convince my lab that this is a useful product. If I ask
them to submit their papers one at a time I'll lose the argument and
we won't use Zope.

>
> > Other than that I'd like a nice, simple authentication scheme. That's
> > about it. Dead simple.
>
> Then stick with how it's already set up. Plone provides a nice UI for
> user management.
>

Fair enough.

> --jcc
>
> --
> "Building Websites with Plone"
> http://plonebook.packtpub.com/
>
> Enfold Systems, LLC
> http://www.enfoldsystems.com
>
___
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] Help with a simple DMS

2006-02-07 Thread J Cameron Cooper

Joshua Gilbert wrote:

On 2/7/06, J Cameron Cooper <[EMAIL PROTECTED]> wrote:


Joshua Gilbert wrote:


Hi.

I'd like to make a simple DMS, users upload their
PDFs/docs/ps/whatever and then they can search within the documents.


I believe TextIndexNG will index contents of complex file types.


OK, that's great. Where do I find documentation to tell me how to set
up the site?


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

"Ready-for-Plone (refer to installation notes in doc/README.txt)"


I need to be able to automate the submission of documents as I'm part
of a large research lab, we've accumulated a lot of papers over the
years.


What exactly does "automate the submission of documents" mean?


I mean that I have a great deal of papers. I can't go through web
forms to add all of these documents. I would like to be able to submit
them through an automated process, I can't go through web forms by
hand to add them all.

I'm trying to convince my lab that this is a useful product. If I ask
them to submit their papers one at a time I'll lose the argument and
we won't use Zope.


Use WebDAV, FTP, or Enfold Desktop. There are other methods, but these 
are easiest.


--jcc
--
"Building Websites with Plone"
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com
___
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: htaccess with zope/plone ?

2006-02-07 Thread michael nt milne
But if you've got Apache ssl as well then it's more secure.The problem I've found is that you can't put this in the httpd.conf unless it is wrapped in a  directiveAuthType Basic
AuthName "Members Only"AuthUserFile /path/to/.htpasswdrequire valid-userAnd the virutual host doesn't have a directory. If I were to place this in the zope root then I would password protect all the sites. I only wan't to password protect one etc.
On 2/8/06, Andreas Pakulat <[EMAIL PROTECTED]> wrote:
On 07.02.06 23:58:20, michael nt milne wrote:> Also, just to say that I did a test on only letting authenticated and> managers view the root page of the site over ssl. If you just cancelled the> login box or closed it, the whole front page was displayed without any css
> but you could still get all the content.Then you had the proper rights somehow.> I've had this quite a bit before so that's why I'm looking into Apache> authentication. I just don't think that Zope authentication is secure.
Authentication via .htpasswd uses the same HTTP method as the basiclogin into Zope. It's not more or less secure than authenticatingdirectly with Zope.Andreas--There is a 20% chance of tomorrow.
___Zope maillist  -  Zope@zope.orghttp://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 )-- Michael
___
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] Zope=ZEO connection

2006-02-07 Thread Dennis Allison

Zope 2.9.0
Python 2.4.2
Amd dual Opteron
Linux

I am seeing occasional (several per day)  Zope crashes under load.  The 
event.log immediately before and after the crash looks like:


2006-02-06T14:07:20 INFO ZPublisher.Conflict ConflictError at 
: 
database conflict error (oid 0x086e, class BTrees._OOBTree.OOBTree, serial 
this txn started with 0x03633ca95f75e900 2006-02-06 22:01:22.373575, 
serial currently committed 0x03633caf59114244 2006-02-06 22:07:20.875176) 
(463 conflicts (0 unresolved) since startup at Mon Feb  6 08:21:26 2006)
--
2006-02-06T14:09:09 INFO ZServer HTTP server started at Mon Feb  6 
14:09:09 2006
Hostname: x-harper
Port: 8081

which also triggers a connection drop and restarBt of ZEO.

The failure happens silently even with 


  level ALL
  
path $INSTANCE/log/event.log
level info
  


When this happens zope is running under zopectl and zeo isi running under
zeoctl.

What sort of Zope failure can cause this sort of behavior?  What's the 
best approach to get more information to localize the failure.



___
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] work around for importing zexp into zope2.8.1?

2006-02-07 Thread Tim Nash
Dieter,
  Thanks again. It worked like a charm!
Tim

On 2/7/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> Tim Nash wrote at 2006-2-6 11:34 -0800:
> >  Has anyone come across a work around for the problem of importing
> >zexp into zope 2.8.1?
>
> As others already pointed out: the easiest solution would be to
> use a fixed Zope 2.8.x version.
>
> Alternatively, you could fix Zope 2.8.1 yourself. For this, I added
> (in our local copy) in ".../Products/PluggableIndexes/common/UnIndex.py":
>
>
> # DM 2005-08-25: compatibility
> from ComputedAttribute import ComputedAttribute
> ...
> # DM 2005-08-25: backward compatibility -- overridden at instance level
> def _length(self):
> length = self._length = BTrees.Length.Length(len(self._index))
> return length
> _length = ComputedAttribute(_length)
>
> The second hunk can go (e.g.) after the definition of "__len__".
>
> --
> 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] Zope=ZEO connection

2006-02-07 Thread Paul Winkler
On Tue, Feb 07, 2006 at 06:18:49PM -0800, Dennis Allison wrote:
> 
> Zope 2.9.0
> Python 2.4.2
> Amd dual Opteron
> Linux
> 
> I am seeing occasional (several per day)  Zope crashes under load.  The 
> event.log immediately before and after the crash looks like:
> 
> 
> 2006-02-06T14:07:20 INFO ZPublisher.Conflict ConflictError at 
> : 
> database conflict error (oid 0x086e, class BTrees._OOBTree.OOBTree, serial 
> this txn started with 0x03633ca95f75e900 2006-02-06 22:01:22.373575, 
> serial currently committed 0x03633caf59114244 2006-02-06 22:07:20.875176) 
> (463 conflicts (0 unresolved) since startup at Mon Feb  6 08:21:26 2006)
> --
> 2006-02-06T14:09:09 INFO ZServer HTTP server started at Mon Feb  6 
> 14:09:09 2006
> Hostname: x-harper
> Port: 8081
> 
> which also triggers a connection drop and restarBt of ZEO.
> 
> The failure happens silently even with 
> 
> 
>   level ALL
>   
> path $INSTANCE/log/event.log
> level info
  ^^

fwiw, you're still only logging at INFO.

> What sort of Zope failure can cause this sort of behavior?  What's the 
> best approach to get more information to localize the failure.

I really don't know. But I'd have a look at the trace log,
if you've got that configured (I routinely do).
Maybe you could spot some patterns right before the crashes?
*shrug*

-- 

Paul Winkler
http://www.slinkp.com
___
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] Zope=ZEO connection

2006-02-07 Thread Dennis Allison
Arh...
I forgot that internal logging levels override.
Still, you'd think something that triggers a crash would have a level
higher than info.  Careful examination of the trace log shows nothing.
I'll fix the log level & see if that turns anything up.   


On Tue, 7 Feb 2006, Paul Winkler wrote:

> On Tue, Feb 07, 2006 at 06:18:49PM -0800, Dennis Allison wrote:
> > 
> > Zope 2.9.0
> > Python 2.4.2
> > Amd dual Opteron
> > Linux
> > 
> > I am seeing occasional (several per day)  Zope crashes under load.  The 
> > event.log immediately before and after the crash looks like:
> > 
> > 
> > 2006-02-06T14:07:20 INFO ZPublisher.Conflict ConflictError at 
> > : 
> > database conflict error (oid 0x086e, class BTrees._OOBTree.OOBTree, serial 
> > this txn started with 0x03633ca95f75e900 2006-02-06 22:01:22.373575, 
> > serial currently committed 0x03633caf59114244 2006-02-06 22:07:20.875176) 
> > (463 conflicts (0 unresolved) since startup at Mon Feb  6 08:21:26 2006)
> > --
> > 2006-02-06T14:09:09 INFO ZServer HTTP server started at Mon Feb  6 
> > 14:09:09 2006
> > Hostname: x-harper
> > Port: 8081
> > 
> > which also triggers a connection drop and restarBt of ZEO.
> > 
> > The failure happens silently even with 
> > 
> > 
> >   level ALL
> >   
> > path $INSTANCE/log/event.log
> > level info
>   ^^
> 
> fwiw, you're still only logging at INFO.
> 
> > What sort of Zope failure can cause this sort of behavior?  What's the 
> > best approach to get more information to localize the failure.
> 
> I really don't know. But I'd have a look at the trace log,
> if you've got that configured (I routinely do).
> Maybe you could spot some patterns right before the crashes?
> *shrug*
> 
> 

-- 

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