[Zope-dev] RFC: page contracts

2000-08-30 Thread Petru Paler

Hi eveyone.

While playing around with the development version of ACS (ArsDigita Community
System), I noticed a very nice feature they introduced, namely page contracts.

In ACS, this means that every tcl page starts with a call to ad_page_contract.
In the parameters passed, you specify:
   - general page documentation (what it does)
   - author(s)
   - creation date (not needed for Zope since we have bobobase_modification_time)
   - CVS ID (not quite applicable for Zope (yet?))
   - the expected input variables (from forms) along with their default values
   (where applicable) and types (having a couple of types like "integer" and "string"
   predefined and an easy-to-use plugin system to add custom types)
   - an optional validation block in which you can check the input data ranges
   and validity (you can also make validation rules depend on each other so if
   one fails, the rules which depend on it aren't tried)
   - an optional custom error messages section (to use when one of the required
   input variables is not there or does not match the format, or when a validation
   block fails). If you don't provide this some reasonable defaults are provided.

IMHO, such a feature would be very useful for Zope too. I find myself quite 
often doing input validation and error handling in DTML, which is (to say the
least) painful.

I would be interested to give a try at implementing this, but before starting
I wanted to hear community's opinion on:
   - whether this would be useful
   - how this should be aproached (the two possibilities I have in mind until
   now are either a separate manage tab for the page contract, and there a
   HTML-based interface for building it, either a dtml-contract tag which
   surrounds the page contract (written in python probably) and placed at the
   top of DTML documents/methods).

--
Petru Paler, mailto:[EMAIL PROTECTED]
http://www.ppetru.net - ICQ: 41817235

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] generic login

2000-08-30 Thread Michael James

Hi,

We are developing a generic site login package based around a mysql 
database. Instead of reinventing the wheel has anyone done this before 
specifically using mysql.

Cheers,

Michael


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] SynchronizationTab proposal

2000-08-30 Thread Shane Hathaway

Zopistas,

I'd like to point out the new proposal at:

http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationTab

The goal is to integrate a UI that can be used to manage CVS, backups,
other types of revision control, and coordination of development and
production servers.

Shane

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] RFC: page contracts

2000-08-30 Thread Erik Enge

[Petru Paler]

| - how this should be aproached 

Couldn't this be implemented by adding more properties to you objects?
One thing that would be great, though, variable checking :)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns bug: Customizers don't rename well

2000-08-30 Thread Phillip J. Eby

At 07:32 PM 8/29/00 +0100, Steve Alexander wrote:

To reproduce the error, do this:

  Create a Folder with Customizer support
  Give it a Customizer
  Rename that Customizer
  Press the "Customizers" tab in the folder

Zope Error

Error Type: AttributeError
Error Value: __customizerRegistry__

What's happening is that the new manage_renameObjects (plural) function
doesn't have a masking method in PlugInGroup.  These masking methods serve
to alter the URL base used for the management tabs, so that a PlugInGroup's
management tabs will point to the parent PlugInContainer's methods, and not
to nonexistent methods of itself.  The resulting error is a harmless side
effect of this URL confusion; you can simply click your way back into the
right place and everything will work fine.

Meanwhile, I'm adding the following method to the PlugInGroup class for the
next release of ZPatterns:

def manage_renameObjects(self, ids, new_ids, REQUEST=None):
"""Rename several sub-objects"""
self.aq_inner.aq_parent.manage_renameObjects(id,new_ids)
if REQUEST is not None:
return self.manage_main(self, REQUEST, update_menu=1,
URL=REQUEST.URL1+'/manage_workspace')

This should fix the problem, although I have not yet tested that it in fact
does so.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] ZPatterns bug: Compute instance has not _objectAdding method

2000-08-30 Thread Phillip J. Eby

At 04:13 PM 8/28/00 +0100, Steve Alexander wrote:
Zope 2.2.1, ZPatterns 0-4-1snap1, with some small patches.

I'm adding a dataskin-derived ZClass instance underneath a Customizer
folder.

The Customizer has a SkinScript plug-in.

When I try to add a new ZClass instance, I get an exception that I can
trace to the fact that DataManager's _objectAdding method is trying to
call _objectAdding on a Compute object.


I actually fixed this problem about three weeks ago, but neglected to
publish the code.  :(  In the latest version, all of the objects which the
SkinScript compiler creates are derived from a class "NullProvider" which
has empty methods for all the _objectXing events, including _objectChanging.

Luckily, there is not much more to do for the new release (0.4.2b1) besides
updating the release-related files, and perhaps a bit more work on
improving the management screens for SkinScript methods.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] 2.2.1 changes tighten security?

2000-08-30 Thread Bill Anderson


Working on a new release of Membership, I have encountered a problem.

Doing the development in 2.2.1, I cant seem to access my roles managemenu UI as 
Manager.

For those who haven't seen it, her eit is:
dtml-in ShowUsers
  dtml-call "REQUEST.set('user',_['sequence-item'][0])"
  form action="/acl_users/manageRolesForUser" method=POST
   br dtml-var user dtml-var "user.roles"
   input type=hidden name=user value="dtml-var user"
   input type=submit name=submit value="Manage Roles"
  /form
/dtml-in
Where ShowUsers is a python mehtod that returns a list of user objects.

The traceback indictaes the problem lies in accessing "user.roles". roles is on the 
Restricted Property sheet, which
requires you have the 'Manage users" role. Of course, as manager, I expect I have it. 
:)

This worked fine in 2.2.0, and was wondering if anyone knew what changes would bring 
this behaviour out, and how to fix
it off hand.

TIA, Bill


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope] dtml-tree question

2000-08-30 Thread Hugo Ramos

- Original Message - 
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Hugo Ramos" [EMAIL PROTECTED]
Sent: Wednesday, August 30, 2000 6:14 PM
Subject: Re: [Zope] dtml-tree question


 Hugo Ramos writes:
   line 566 (original source):
   s.append([id,[]])
 Chris Withers has been hit by this bug, too.
 
 Maybe, he found a patch/workaround by now.
 
 I never saw this problem, but, up to now, used the tree tag
 only in Zope 2.1.x.


I have that error all the time if I use the dtml-tree tag inside a ZClass.

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


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




Re: [Zope] getting parent document

2000-08-30 Thread Anders Holmbech Nielsen

Thanks for your answer. This would do too, but Stephan Richter gave 
me a nice way to do it. A dtml-method with the following:

dtml-raw

Because of acquisition this will result in the "document" being 
included in its whole.

His suggestions:

1.
html: contains the HTML code
viewMethod:  called like: viewMethod?file=html
dtml-var "_[file]"

2. The best by far. Write your own little Zope object in Python that 
has only an id and a body.
Then you can say: URL/html/viewMethods
Inside viewMethods: dtml-var body

3. Well, I found solution 3 reading the DTML Method source code pretty quick.
inside viewMethod:
dtml-var raw  -- That returns the unprocessed body of the object 
and due to the acquisition behavior of DTML methods it looks one 
object up, which is html. so URL/html/viewMethod works


Anders Holmbech Nielsen writes:
   I have a dtml-method called test which I want to use like:
  
   someurl/document/test
  
   and in the dtml-method I want to include the document in its whole.
  
   I have tried something with the URL like:
  
   dtml-var dtml-var URL1 this offcourse dont work... but this neither...
Try:

   dtml-var "PARENTS[0](_.None,_)"

"PARENTS[0]" gives you the parent, in your case "someurl/document".
Calling this object renders it.
If you call it without parameters, you cut the namespace chain.
If you pass "_.None,_", you pass the namespace explicitly.
(This usually is done by DTML behind the scenes, but
inside "...", you must do it yourself).


Dieter

-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

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




Re: [Zope] ZCatalog and foreign characters

2000-08-30 Thread Radim Gelner

On Tue, Aug 29, 2000 at 11:57:08PM +0200, Dieter Maurer wrote:
 
 If you work with a fixed locale, you can use the "-L" switch
 to inform Zope about your locale. Then the splitter should
 work correctly (for your locale).

Yes, that helped. I've called Zope with -L cs_CZ switch, rebuilt the
catalog and now searching works as it should.

Thanks.

Radim

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




[Zope] GUF and manage_addGenericUserFolder not working

2000-08-30 Thread Jason Byron

I try to call the function manage_addGenericUserFolder
in a DTML Method but I keep getting a NameError for
it. It's as if Zope can't find the definition.

I'm stumped as to why it won't work in DTML.
- The product is installed and not broken.
- I can add GUF's under the management screen with
'Add' and everything works fine.
- I've tried to make the call with all of the possible
parameters but nothing helps.
- manage_addUserFolder works fine.

Has anyone else had this problem?

I just upgraded to Zope 2.2.1 and I haven't tried an
older release.  Do you think this might have to do
with the changes to the security model in 2.2.1? 
Should I use manage_clone instead?

Thanks for any help, 
Jason


__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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




Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Terry Kerr

I am not searching from a form in that sense...I am talking about at the python
level.

I have self.searchResults({'description':'blah'})  where description is meta
data in the catalog and a textindex and 'blah' is in the Vocabulary.  This
previously worked in zope2.1.6.  Now in 2.2.0 and 2.2.1 it doesn't work.  The
only thing way I can get searchResults() to return a non empty list is to search
using a Field index and a valid string to match with.


[EMAIL PROTECTED] wrote:

 Terry Kerr [EMAIL PROTECTED] said:

  Hi,
 
  I have a python product which uses a ZCatalog and CatalogAware
  products.  The catalog has a number of Field and TextIndex indexes.
  Search the ZCatalog has worked fine when my product is instantiated in
  2.1.6.  But now when I instantiate my product in 2.2.0 or 2.2.1,
  searching only works when I search using a field index.  Searching using
  a textindex always results in an empty result, even tho I can see the
  words I am searching for in the Vocabulary!  Any suggestions?  I have
  tried reindexing, completey recreating the Zcatalog, recreating the
  Vobulary and reindexing, and nothing has changed the behaviour.  Are
  textindexes simply broken?
 
 
  ZCatalog seems very volatile to me!  Every time I have upgraded way back
  from zope2.1.3, something in zcatalog has changed and boken my product.
  So far I have managed to find fixes, but this one has got me baffled!!
 

 My experience has been that if field indexes are unspecified, the catalog
 will only match where those fields are empty.  In other words, by not
 specifing anything for the field indexes, you are actually specifying that
 for a match, they need to be empty.
 To get around this, I put another method between the form for entering what
 you wish to search for, and the method that actually searches the form.  This
 method looks at the field indexes, and if nothing has been specified, it
 doesn't pass them on to the method that does the actual search.
 An alternative to this, is to use names for the field indexes that aren't in
 the catalog index, and then at the start of the search method, check those
 names, and if they have a value associated with them, add to REQUEST what the
 names in the index are with the appropriate values.

 There may be a better way, I'm still pretty new to Zope and DTML sort of
 stuff.

 Peter Armstrong

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




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




Re: [Zope] SSL and PGP

2000-08-30 Thread Philipp Auersperg

Sounds interesting, I ve checked out M2Crypto 
(downloaded it and checked the files but no install),
it patches Medusa and ZServer in order to handle HTTPS,
so Zope itself becomes a SSL enabled server without needing
a proxy or gateway.

But modifications to Zope's core 
components such as Medusa seem risky to me as
long as Digital Creations don't integrate them into the
official release, because every update to a new Zope release
can become a horror trip when the SSL patches clash with 
the new Zope version.

Are there any plans by DC to do something in that matter?

Philipp Auersperg (zwork)

*** REPLY SEPARATOR  ***

On 29.08.2000 at 19:39 R. David Murray wrote:

On Tue, 29 Aug 2000, Diego Rodrigo Neufert wrote:
 Anyone know how to send a pgp cryped email in zope? (using dtml-sendmail or
 anything else)
 
 and
 
 How to run a SSL server with ZServer?

Search for M2Crypto on zope.org.  It does both.

--RDM


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




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




Re: [Zope] how to keep stuff out of undo

2000-08-30 Thread Steve Alexander

Roman Milner wrote:

 Hi. We have a product (an mp3 jukebox) that uses the ZODB to store a large
 data structure of all the albums and track names.  Many people are
 allowed to add/remove albums from the database.  The problem is, when
 they do this the entire data structure is backed up for undo.  So, by
 the end of each day, our ZODB has grown so large we are out of disk space.

The way I'm reading this, you have this entire database of albums and 
tracks as a sinle object in your ZODB.

Don't do that.

Refactor your product to use subobjects of your Jukebox object as 
albums, and subobjects of those as tracks.

Then, only a small amount of data gets rewritten on each transaction.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net


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




Re: [Zope] SSL and PGP

2000-08-30 Thread Oleg Broytmann

On Wed, 30 Aug 2000, Philipp Auersperg wrote:
 Sounds interesting, I ve checked out M2Crypto 
 (downloaded it and checked the files but no install),
 it patches Medusa and ZServer in order to handle HTTPS,
 so Zope itself becomes a SSL enabled server without needing
 a proxy or gateway.
 
 But modifications to Zope's core 
 components such as Medusa seem risky to me as
 long as Digital Creations don't integrate them into the
 official release, because every update to a new Zope release
 can become a horror trip when the SSL patches clash with 
 the new Zope version.

   Install Apache+SLL in front of Zope...

Oleg.
 
 Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] Is anyone know when Zope was born ???

2000-08-30 Thread Frederic Quin

Is anyone know when Zope was born ???


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




Re: [Zope] OT: Website design / spec / development resources

2000-08-30 Thread Stephan Goeldi

Have a look at

http://www.amazon.com/exec/obidos/ASIN/156205810X/goeldiengineerin/

A must-read for real webdesigners.

I am looking for some good guidelines in designing, spec'ing and
developing large complex websites. Anything like guidelines, steps,
howtos, etc would be much appreciates. From theory to practice.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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




[Zope] Z Database Connections - pass uid/pwd to RDB

2000-08-30 Thread Philipp Auersperg



When you create a Z database connection you must supply a fixed 
connection
string with a fixed uid/pwd to open that connection.

So every user that connects to Zope connects with the fixed uid/pwd to the 
relational database.

Is there any way or workaround to dynamically pass the Zope uid/password to 
the relational database?
This is important when user security is maintained by the database 
scheme.

Not that I really want this feature for my use but we have projects where 
the customer has the database model
ready and wants the users to be individually authenticated at the 
relational database (in this case: Oracle).

thanks

Philipp Auersperg(zwork)






Re: [Zope] Is anyone know when Zope was born ???

2000-08-30 Thread Chris Withers

Frederic Quin wrote:
 
 Is anyone know when Zope was born ???

Paul, you must know the answer to this one ;-)

cheers,

Chris

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




Re: [Zope] Logfile analyzer

2000-08-30 Thread Ian Bicking

On Tue, Aug 29, 2000 at 03:36:25PM -0700, Kapil Thangavelu wrote:
  Anyway, I've been thinking of polishing and expanding what I've
  written some, so it's suitable for public use (or at least use by
  people who know Zope/Python fairly well).  But this requires work that
  I probably wouldn't do for myself -- so I'm writing to see if there
  are enough people who have interest in this to make it worth it.  [Or
  if this already exists and I just haven't found it]
 
 zope's logs are in a pretty standard format so most of your loganalyzers
 should handle them well and several of them can be customized to ignore
 certain ips or urls.

Of course.  I'm actually parsing Apache logs on my own site, as this
covers both the Zope and non-Zope portions of my page.  The basic
analysis isn't Zope-specific, just more Zope-accessible.  For
instance, hits are returned as a list of page/count pairs, and then
you can format then as you wish with DTML.

Any of these things that I've done could be done by other log
analyzers, and I expect they have been.  They could probably be done
better: the real advantage of what I'm doing (in my own experience) is 
that I have a fair amount of control to do whatever I want, not just
what was included in the software.  Anyone who knows some Python would
be able to have a similar amount of control.

 i've been told that http://www.webalizer.org/ is pretty nice.
 
 a zope web logs analyzer that makes images with PIL integrated into the
 control panel, is on my list of things to do although its pretty low at
 the moment.

I hadn't been thinking of using PIL myself -- though it would be
relatively easy, I suppose, to add another layer that creates graphs
from the (relatively) raw data.

  -- Ian

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




Re: [Zope] GUF and manage_addGenericUserFolder not working

2000-08-30 Thread Chris Withers

Jason Byron wrote:
 I try to call the function manage_addGenericUserFolder
 in a DTML Method but I keep getting a NameError for
 it. It's as if Zope can't find the definition.

Try somethign like the following:

dtml-with "manage_addProduct['GenericUserFolder']"
 dtml-call "manage_addGenericUserFolder(your, params, here)"
/dtml-with

cheers,

Chris

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




[Zope] Versions...

2000-08-30 Thread Chris Withers

Chris McDonough wrote:
 Mounted storages fall down with versions (do not use versions in
 conjunction with mounted storages, it will do bad things to you).

Is it just me or are versions not exactly the most robust things around?

(I'm thinking external methods here, and ftp access into a version,
amongst others ;-)

cheers,

Chris

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




[Zope] Management Interface Refactoring?

2000-08-30 Thread Chris Withers

Dieter Maurer wrote:
- it sends me to the management screen afterwards, and I'm
  calling it from the public interface.
 This means, you want to look at the source of "manage_delObjects"
 (- "OFS.ObjectManager") to see, how it sends you to the management interface.
 
 You will see, that it contains:
 
 if REQUEST is not None:
   return self.manage_main(self,REQUEST,update_menu)
 
 Thus, do not pass it a REQUEST.

It's this kindof hackiness which I really hope MJ's work eventually gets
rid of.

This is the sort of thing I was talking about when I said "using bits of
the management interface in other contexts" a while back.

what do other people think?

How do we go about making progress on this?

cheers,

Chris

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




Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Chris Withers

Terry Kerr wrote:
 ZCatalog seems very volatile to me!  Every time I have upgraded way back
 from zope2.1.3, something in zcatalog has changed and boken my product.
 So far I have managed to find fixes, but this one has got me baffled!!

Can I just say a big "me too!" here.

At the EuroZope meeting in Paris, quite a few people mentioned this as
well.

It's be nice if ZCatalog had a good general purpose interface, and was a
bit more robust.
(the BTree implementation which has been mentioned a few times springs
to mind here ;-)

cheers,

Chris

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




Re: [Zope] help

2000-08-30 Thread Chris Withers

Chris McDonough wrote:
  " pROBLEM(100) zSERVER COMPUTING DEFAULT HOSTNAME"

 This is a normal message, please ignore it..

Maybe it shouldn't be a 'PROBLEM' then? ;-)

cheers,

Chris

PS: Yes, I know it goes away if you aren't running in Debug mode...

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




Re: [Zope] Management Interface Refactoring?

2000-08-30 Thread Shane Hathaway

Chris Withers wrote:
 
 Dieter Maurer wrote:
 - it sends me to the management screen afterwards, and I'm
   calling it from the public interface.
  This means, you want to look at the source of "manage_delObjects"
  (- "OFS.ObjectManager") to see, how it sends you to the management interface.
 
  You will see, that it contains:
 
  if REQUEST is not None:
return self.manage_main(self,REQUEST,update_menu)
 
  Thus, do not pass it a REQUEST.
 
 It's this kindof hackiness which I really hope MJ's work eventually gets
 rid of.
 
 This is the sort of thing I was talking about when I said "using bits of
 the management interface in other contexts" a while back.
 
 what do other people think?
 
 How do we go about making progress on this?

A simple but effective approach would be to split up every manage_*
method into two methods:

- manage_do_* does the work.
- manage_* calls manage_do_* then returns HTML.

Perhaps this could be added to the "clean up the core" proposal.

Shane

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




Re: [Zope] How to logout users when using LoginManager?

2000-08-30 Thread Chris Withers

Brad Clements wrote:
 Can anyone share some tips on how to logout users from a web page,
 using cookies or otherwise, allowing them to relogin as another user
 without having to quit/start their browser?

Well, with cookies, it's simple: delete the cookie. I think most fo the
Login-type stuff has interfaces to do this for you (like the logout link
on zope.org)

With Basic Auth it's a bit tricky. Basic Auth really only works 'cos
browsers cache your username and password and send it each time you
request a new page that it thinks those details apply to. So you just
have to persuade the browser to stop cachign that info ;-)

I think you can do something like:

dtml-raise Unauthorized

which works on most of the browsers around. I don't know though, maybe I
got the syntax wrong :S

cheers,

Chris

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




Re: [Zope] FTP crashing Zope?

2000-08-30 Thread Chris Withers

Dario Lopez-KXsten wrote:
 Is this a bug in latest Zope (2.2.1) or is this expected behaviour? If, the
 latter is the case, what can I do to a) turn off FTP access, b) make sure
 that my Zope is up and running automagically after a crash?

Ewww.. this seems quite nasty :(

If you can reproduce this, I'd stick it with a really detailed
description into the collector

Has anyone else seen this?

cheers,

Chris

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




Re: [Zope] Generic Workflow Products?

2000-08-30 Thread albert boulanger



   i haven't had time to read through the links, although i will once i get
   some more of that mystical free time stuff, but i wanted to clarify
   about PTK workflows. most of the existing workflow structs in PTK were
   doc based with simple workflows, but there has been a concerted effort
   to refactor PTK into Singleton objects which give abilities to all
   objects vs. the old method of inheritance for abilities. In this
   scenario workflow objects can be plugged into the architecture. Another
   item that gives support for complex workflows is the
   event/subscriber/publisher system being developed right now. check out
   the later half of the PTK archives for August to get some more
   background. if you want to influence the project, now is the time, make
   your voice/needs heard.

One place to start would be to have a look at
openflow.sourceforge.net. This Zope based workflow system is based on
WFMC's reference model. It does not have everything you would want but it
is a good start. Once reason to be looking a WFMC is that such an
implementation would allow integration with existing workflow systems
such as Staffware's. SWAP and the newer WFMC XML wrapping would also
be worth considering as they would be like XML-RPC for workflow which
would enhance interoperability. There is a need to execute a workflow
box which would exec a app associated with the box on data -- this
data not being just one doc in a members PTK folder but a suite of
data for the step.

There is opportunity for a Zope based system to be the web publishing
side of existing workflow systems, like Staffware's. Staffware's white
paper on how they will do web-based workflow begged for a solution like
Zope.

Staffware is one of the better workflow systems that includes the
ability to execute programs within workflow.

Certainly for usecase analysis one could look at existing packages
like Staffware.

For events, one might consider adopting some of the "webwise" event
system standards coming out. I have not followed these closely, but I
know they exist. One reason to do so is that this would enhance
interoperability with external packages that also adopt standards.

Regards,
Albert Boulanger
[EMAIL PROTECTED]

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




Re: [Zope] ZClass -- Product

2000-08-30 Thread Chris Withers

Karl Anderson wrote:
 What FTP editing options are there for ZClass definitions?  

Your email address suggests you should be able to find out more easily
than me ;-)

Maybe you could suggest better editing support for FTP or is WebDAV the
way of the future?
Mention was made of Adobe GoLive! in Paris, what's that like for doing
this sort of this?

cheers,

Chris

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




Re: [Zope] How to logout users when using LoginManager?

2000-08-30 Thread Oleg Broytmann

On Wed, 30 Aug 2000, Chris Withers wrote:
 Brad Clements wrote:
  Can anyone share some tips on how to logout users from a web page,
  using cookies or otherwise, allowing them to relogin as another user
  without having to quit/start their browser?
 
 Well, with cookies, it's simple: delete the cookie.

   You cannot just delete the cookie 'cuase Zope is server, but cookies are
on client side. You are to send "delete" command to browser, but there is
no "delete cookie" command in cookie protocol :(
   You have to expire the cookie to really delete it from the browser.

Oleg.
 
 Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] Cash for TreeTag.py? ;-)

2000-08-30 Thread Chris Withers

Tony McDonald wrote:
 There's been some talk on the Zope list about rewriting the tree tag
 somewhat. Can I make a plea that this is considered too?

if this gets put on cosource.com, I wonde hwo many peopel would fork up
some cash for it? ;-)

cheers,

Chris

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




Re: [Zope] FTP crashing Zope?

2000-08-30 Thread J. Atwood

I have seen it in a beta version. Every time I connect a FTP client it
crashed. Tried it 4 - 5 times.

J

 From: Chris Withers [EMAIL PROTECTED]
 Organization: New Information Paradigms
 Date: Wed, 30 Aug 2000 13:49:58 +0100
 To: Dario Lopez-KXsten [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] FTP crashing Zope?
 
 Dario Lopez-KXsten wrote:
 Is this a bug in latest Zope (2.2.1) or is this expected behaviour? If, the
 latter is the case, what can I do to a) turn off FTP access, b) make sure
 that my Zope is up and running automagically after a crash?
 
 Ewww.. this seems quite nasty :(
 
 If you can reproduce this, I'd stick it with a really detailed
 description into the collector
 
 Has anyone else seen this?
 
 cheers,
 
 Chris
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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




RE: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Chris McDonough

This is not right, obviously.  Can you rebuild your indexes (by deleting
and reentering them), recatalog, and see if the problem goes away?  We
haven't had any colluding reports of something like this, and I'm using
the 2.2.1 catalog with textindexes successfully on a customer project.  

 -Original Message-
 From: Terry Kerr [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 30, 2000 3:27 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [Zope] ZCatalog in 2.2.x
 
 
 I am not searching from a form in that sense...I am talking 
 about at the python
 level.
 
 I have self.searchResults({'description':'blah'})  where 
 description is meta
 data in the catalog and a textindex and 'blah' is in the 
 Vocabulary.  This
 previously worked in zope2.1.6.  Now in 2.2.0 and 2.2.1 it 
 doesn't work.  The
 only thing way I can get searchResults() to return a non 
 empty list is to search
 using a Field index and a valid string to match with.
 
 
 [EMAIL PROTECTED] wrote:
 
  Terry Kerr [EMAIL PROTECTED] said:
 
   Hi,
  
   I have a python product which uses a ZCatalog and CatalogAware
   products.  The catalog has a number of Field and 
 TextIndex indexes.
   Search the ZCatalog has worked fine when my product is 
 instantiated in
   2.1.6.  But now when I instantiate my product in 2.2.0 or 2.2.1,
   searching only works when I search using a field index.  
 Searching using
   a textindex always results in an empty result, even tho I 
 can see the
   words I am searching for in the Vocabulary!  Any 
 suggestions?  I have
   tried reindexing, completey recreating the Zcatalog, 
 recreating the
   Vobulary and reindexing, and nothing has changed the 
 behaviour.  Are
   textindexes simply broken?
  
  
   ZCatalog seems very volatile to me!  Every time I have 
 upgraded way back
   from zope2.1.3, something in zcatalog has changed and 
 boken my product.
   So far I have managed to find fixes, but this one has got 
 me baffled!!
  
 
  My experience has been that if field indexes are 
 unspecified, the catalog
  will only match where those fields are empty.  In other 
 words, by not
  specifing anything for the field indexes, you are actually 
 specifying that
  for a match, they need to be empty.
  To get around this, I put another method between the form 
 for entering what
  you wish to search for, and the method that actually 
 searches the form.  This
  method looks at the field indexes, and if nothing has been 
 specified, it
  doesn't pass them on to the method that does the actual search.
  An alternative to this, is to use names for the field 
 indexes that aren't in
  the catalog index, and then at the start of the search 
 method, check those
  names, and if they have a value associated with them, add 
 to REQUEST what the
  names in the index are with the appropriate values.
 
  There may be a better way, I'm still pretty new to Zope and 
 DTML sort of
  stuff.
 
  Peter Armstrong
 
 --
 Terry Kerr ([EMAIL PROTECTED])
 Adroit Internet Solutions Pty Ltd (www.adroit.net)
 Phone:   +613 9563 4461
 Fax: +613 9563 3856
 Mobile:  +61 414 938 124
 ICQ: 79303381
 
 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




[Zope] Export/import problem

2000-08-30 Thread Oras Kaarel (2914)

Hi

I have two different Zope types (Zope 1.10.3 (binary release, python 1.5.1,
win32-x86) and Zope version: Zope 2.2.1 (binary release, python 1.5.2,
win32-x86)) and our intranet is located in the older version. I thought that
exporting/importing would be a great idea. I managed to export *.bbe file
and I copied it in import catalog in new Zope, but the new version of Zope
announced, that:

Zope has encountered an error while publishing this resource. 
Error Type: ExportError
Error Value: Invalid export header

Troubleshooting Suggestions
*   The URL may be incorrect. 
*   The parameters passed to this resource may be incorrect. 
*   A resource that this resource relies on may be encountering an
error. 
For more detailed information about the error, please refer to the HTML
source for this page. 
If the error persists please contact the site maintainer. Thank you for your
patience. 

---
Traceback (innermost last): File
C:\PROGRA~1\WebSite2\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
File C:\PROGRA~1\WebSite2\lib\python\ZPublisher\Publish.py, line 187, in
publish 
File C:\PROGRA~1\WebSite2\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook (Object: ApplicationDefaultPermissions) 
File C:\PROGRA~1\WebSite2\lib\python\ZPublisher\Publish.py, line 171, in
publish 
File C:\PROGRA~1\WebSite2\lib\python\ZPublisher\mapply.py, line 160, in
mapply (Object: manage_importObject) 
File C:\PROGRA~1\WebSite2\lib\python\ZPublisher\Publish.py, line 112, in
call_object (Object: manage_importObject) 
File C:\PROGRA~1\WebSite2\lib\python\OFS\ObjectManager.py, line 504, in
manage_importObject (Object: ApplicationDefaultPermissions) 
File C:\PROGRA~1\WebSite2\lib\python\ZODB\ExportImport.py, line 143, in
importFile ExportError: (see above) 

Can anyone pls help me in this case pls
-
Kaarel Oras



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




RE: [Zope] How to logout users when using LoginManager?

2000-08-30 Thread Chris McDonough

It's:

dtml-raise Unauthorized
You are not authorized.
/dtml-raise

 -Original Message-
 From: Chris Withers [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 30, 2000 8:48 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] How to logout users when using LoginManager?
 
 
 Brad Clements wrote:
  Can anyone share some tips on how to logout users from a web page,
  using cookies or otherwise, allowing them to relogin as another user
  without having to quit/start their browser?
 
 Well, with cookies, it's simple: delete the cookie. I think 
 most fo the
 Login-type stuff has interfaces to do this for you (like the 
 logout link
 on zope.org)
 
 With Basic Auth it's a bit tricky. Basic Auth really only works 'cos
 browsers cache your username and password and send it each time you
 request a new page that it thinks those details apply to. So you just
 have to persuade the browser to stop cachign that info ;-)
 
 I think you can do something like:
 
 dtml-raise Unauthorized
 
 which works on most of the browsers around. I don't know 
 though, maybe I
 got the syntax wrong :S
 
 cheers,
 
 Chris
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




[Zope] ZCatalog Queries...

2000-08-30 Thread Chris Withers

Chris McDonough wrote:
 
  It's be nice if ZCatalog had a good general purpose
  interface, and was a
  bit more robust.
  (the BTree implementation which has been mentioned a few times springs
  to mind here ;-)
 
 Can you be more specific?

Andy can fill you in on the specifics.

  What's insufficient about the current
 implementation?

It doesn't scale well, especially for things where you have lots of new
data arriving (this is the BTree problem, I think...)

It has no published and well defined query syntax (there's patches here,
bits there, but no definitive document on how to use it, how to batch
with it, how to perform complex and structured queries, particularly
with TextIndex'es)

Don't get me wrong, it is very cool, but only kindof 70% there :S
(and I get the impression that doing the remaining 30% properly would
require a rewrite...)

As an example, we've been trying to do Zope-based versions of the
mailing list archives for a coupla months now and the Catalog keeps
exploding in different ways (huge resource consumption, even for only
30K messages or so, no matter what storage is used)

Then there's the ubiquitous 'KeyError's and other associated weirdness,
all of which leaves me feeling a lot less than totally confident in the
Catalog ;-)

comments very welcome,

Chris

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




Re: [Zope] FTP crashing Zope?

2000-08-30 Thread Adam Karpierz

Dario Lopez-KXsten wrote:
 Is this a bug in latest Zope (2.2.1) or is this expected behaviour? If, the
 latter is the case, what can I do to a) turn off FTP access, b) make sure
 that my Zope is up and running automagically after a crash?

Ewww.. this seems quite nasty :(

If you can reproduce this, I'd stick it with a really detailed
description into the collector

Has anyone else seen this?

Unfortunately I do... :(
Crash occurs when I try to use various FTP command
during using telnet on port 8021 and when I type QUIT
command immediately _after_ _initialize_ data transmission.
Of course I didn't able to seen any data on telnet console
(data transmission port is assigned automacically and
quite different then control port).
More precisely, crash (Python crash) happend immediately
after sequention:
RETR index_html
QUIT
I try reproduce this error once or twice but without effect.
Before crash I (if remember precisely) was trying:
RETR index_html
ABOR
QUIT
several times and don't happened something wrong.

PS: I dont remember if crash occurs in PASV mode.
--
Adam Karpierz
[EMAIL PROTECTED]





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




RE: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Chris McDonough

 It's be nice if ZCatalog had a good general purpose 
 interface, and was a
 bit more robust.
 (the BTree implementation which has been mentioned a few times springs
 to mind here ;-)

Can you be more specific?  What's insufficient about the current
implementation?

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




RE: [Zope] Versions...

2000-08-30 Thread Chris McDonough

Versions are problematic in combination with mounted storages in
particular because there is no link in versioning between storages.  You
can easily create a versioned object in one storage, then traverse to
another part of the instance space that's been mounted and use that
version cookie to make a change.  But you need to commit the two
versions separately.  If you commit one of them, you'll be left
scratching your head as to why the other storage didn't commit.

I'd say in this particular that it's perhaps a limitation of mounted
storages rather than versions.

 -Original Message-
 From: Chris Withers [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 30, 2000 8:28 AM
 To: Chris McDonough
 Cc: 'Roman Milner'; [EMAIL PROTECTED]
 Subject: [Zope] Versions...
 
 
 Chris McDonough wrote:
  Mounted storages fall down with versions (do not use versions in
  conjunction with mounted storages, it will do bad things to you).
 
 Is it just me or are versions not exactly the most robust 
 things around?
 
 (I'm thinking external methods here, and ftp access into a version,
 amongst others ;-)
 
 cheers,
 
 Chris
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




[Zope] ZMenu 0.1.0 released

2000-08-30 Thread Hugo Ramos

Yellow ppl,

ZMenu is a complete navigational system that uses a tree like display. It
allows you to dinamicly add a navigational link menus system to your site.

This ZClass based product is still in a development stage and I'dd like to
have some feedback about it... so email me about any problems or sugestions.

You can download it here (there is also a pic):
http://www.zope.org/Members/hramos/products/ZMenu

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


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




Re: [Zope] FSSession problems...

2000-08-30 Thread Hung Jung Lu

Curtis,

Could you describe how often does the problem happen? How many session users 
goes to the site? You mentioned about a month of public usage. During that 
month, did you have one single incident? How many sessions happened during 
that month?

All key-based session management systems are intrinsically unsafe, since 
other people can tap into your session, with non-zero probability, if the 
key-length is finite. The only hope is to make the key long enough, so even 
if the hacker has a supercomputer, it would still take him/her the age of 
the universe to crack into your website. One thing I mentioned to Pavlos 
(and/or Anthony Baxter?) before is that the key lengths of their cookies are 
a bit too short. For my HappySession product (another session management 
product, which is RAM based), I cranked up the key length to 128 
alphanumeric char key, exactly because I wanted no key collision for a long 
long time. :)

Another thing I observed during the development of HappySession was that on 
Linux (and Debian) server systems, I had problem with deleting the cookies 
of the clients. (No problem with NT server.) At the end, I chose not to 
delete cookies but instead setting their values to blank, when the session 
expires. It was a weird problem, I did not know why I couldn't delete client 
cookies (maybe it was a mistake on my part), but I chose the simple way out 
by setting the cookie to blank. And it worked fine. So instead of detecting 
the presence of the cookie alone, I detected the presence AND whether the 
cookie was blank.

regards,

Hung Jung

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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




[Zope] Graphics served randomly. Apache - pcgi cacheing problem

2000-08-30 Thread Felipe E. Barousse Boué

Has anyone seen the following behavior:

I am using PCGI with Zope 2.1.6 and Apache 1.3.9. Everything works fine
except when reloading the same page, the graphics in it are not
"painted" by the client browser.

Checking on the apache logs, I found there is a 304, meaning the object
has not changed on the web server and therefore the client should be
using its local cached copy. On the Z2.log, for the same graphics
requests, there are no 304's but 200's meaning Zope DID serve the
graphic through pcgi. So, It  appears Apache is loosing the graphics
somewhere.

Nevertheless, the graphic is never rendered.  Weirdly this happens on IE
5.0, Netscape 4.75 and StarOffice 5.2. All browsers do have at least 5
MB of disk cache and 3 MB of memory cache. This confirms the problem
lies on Apache itself. Am I right?

This happens in a random fashion. I have not been able to establish some
pattern.

The text on the pages gets rendered fine.

Any ideas on how to solve this issue will be greatly appreciated,
Best regards.

Felipe Barousse


begin:vcard 
n:Barousse Boué;Felipe E.
tel;fax:+(52) 5247-0272
tel;work:+(52) 5247-0272
x-mozilla-html:FALSE
url:http://www.piensa.com/
org:Bufete Consultor de México (BCM);Piensa Systems 
version:2.1
email;internet:[EMAIL PROTECTED]
title:Director General
adr;quoted-printable:;;Mailing address:=0D=0AAp. Cap. Polanco 336=0D=0ACol. Anzures;Mexico City;D.F.;11550;Mexico
note;quoted-printable:Supercomputer clusters systems group=0D=0ATel./ Fax. +(52) 5247-0272
x-mozilla-cpt:;-30560
fn:Felipe E. Barousse Boué 
end:vcard



Re: [Zope] SSL and PGP

2000-08-30 Thread Ng Pheng Siong

On Wed, Aug 30, 2000 at 11:44:56AM +0200, Philipp Auersperg wrote:
 But modifications to Zope's core 
 components such as Medusa seem risky to me as
 long as Digital Creations don't integrate them into the
 official release, because every update to a new Zope release
 can become a horror trip when the SSL patches clash with 
 the new Zope version.

Hi,

Not quite a horror trip, but yes, eyeballing the stuff all over 
is necessary.

Speaking as the developer of ZServerSSL, use Apache+SSL or 
Roxen+SSL for production. ;-)

ZServerSSL isn't working well with Zope 2.2.1 currently. I haven't
found out if it's due to changes in Zope 2.2.1, bugs introduced 
while evolving M2Crypto, changes in OpenSSL 0.9.5 versus 0.9.4, or 
the much faster CPUs I'm now developing on. Python 2.0 is yet another
variable in the equation. 

For your other requirement, ZSmime (also on my website) generates
S/MIME-signed/encrypted messages. In my HOWTO, I give an example 
of combining ZSmime's dtml-smime tag with dtml-sendmail to send
S/MIME messages. Netscape Messenger handles the S/MIME fine. So 
should Outlook, I imagine.

However, the Zope 2.2 change that Zope's superuser cannot do too
much means GuardedFile (a supporting product) is now probably broken.

I've been busy at work in the past months. I'm only now revisiting
this. Things should be fixed over the next fortnight or so.

Cheers.
-- 
Ng Pheng Siong [EMAIL PROTECTED] * http://www.post1.com/home/ngps


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




Re: [Zope] The tree tag, SQL and what should be simple

2000-08-30 Thread Ian J Cottee

"Rik Hoekstra" [EMAIL PROTECTED] writes:
 
 Unless I do not quite understand you I think you missed Anthony Baxter's
 tree_and_sql howto
 (http://www.zope.org/Members/anthony/tree-coding-tricks ). It will probably
 give you either exactly what you want or enough ideas to get you further.

Hi

Yes, I looked over that document and unfortunately it doesn't help
me. It talks about a *one* file structure where each item in a file
can be related to another item. I'm looking at a simple two file
structure of records and categories and being able to display those
categories in a shallow, two level tree. 

I've given up for the moment and written my display screen in a way
which probably makes more sense but I'd still be interested to know
for the future how it works

Cheers

Ian

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




[Zope] Can't connect Zope FTP from NAT

2000-08-30 Thread zope


I use reserved IP under NAT and try to connect a remote Zope FTP 
server. The connection can't be established.  But if I am not under
NAT and use a legal public IP, the ftp connection is very well.


Is there any solution? 

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




[Zope] Can't connect Zope FTP under NAT

2000-08-30 Thread Patrick Hsieh

Dear folks,
I can't connect remote Zope FTP Server when I use the reserved IP udner
NAT.  If I use public IP, the connection is ok.  Is there any solution?
--
Patrick Hsieh[EMAIL PROTECTED]
Cyberwork Solution Inc.,
System Engineer
http://www.cyberworksolution.com
TEL: 0933201800

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




Re: [Zope] Can't connect Zope FTP from NAT

2000-08-30 Thread Bob Finch

 "zope" == zope  [EMAIL PROTECTED] writes:

zope I use reserved IP under NAT and try to connect a remote Zope FTP 
zope server. The connection can't be established.  But if I am not under
zope NAT and use a legal public IP, the ftp connection is very well.

zope Is there any solution? 

Try configuring your FTP client to use passive mode (PASV).

-- Bob


Bob Finch email: [EMAIL PROTECTED]
Network Access Services, Inc. voice: (360) 733-9279
P.O. Box 28085fax:   (360) 676-0345
Bellingham, WA  98228-0085WWW:   http://www.nas.com/

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




[Zope] GUF Idle Timeout?

2000-08-30 Thread Mabe, Brad

Hello all,
Does GUF have an idle timeout setting?  I'm seeing the behavior where if my
GUF authenticated user is idle for more than 10-15 minutes they lose their
authentication and are asked to log in again.

If there is such a setting, how can I increase the amount of idle time?  

Thanks

-=Brad=-


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




Re: [Zope] Generic Workflow Products? --some pictures

2000-08-30 Thread albert boulanger



   i haven't had time to read through the links, although i will once i get
   some more of that mystical free time stuff, but i wanted to clarify
   about PTK workflows. most of the existing workflow structs in PTK were
   doc based with simple workflows, but there has been a concerted effort
   to refactor PTK into Singleton objects which give abilities to all
   objects vs. the old method of inheritance for abilities. In this
   scenario workflow objects can be plugged into the architecture. Another
   item that gives support for complex workflows is the
   event/subscriber/publisher system being developed right now. check out
   the later half of the PTK archives for August to get some more
   background. if you want to influence the project, now is the time, make
   your voice/needs heard.


Here are two useful diagrams from WFMC's white
paper, "Workflow and Internet: Catalysts for Radical Change" (
http://www.aiim.org/wfmc/finalwp.pdf ). The first is a diagram of
WFMC's reference model. The second is a diagram of workflow concepts.


http://www.zope.org/Members/aboulang/wfmc1.gif

and

http://www.zope.org/Members/aboulang/wfmc2.gif

Regards,
Albert Boulanger
[EMAIL PROTECTED]

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




[Zope] RE[3]: [Zope] Product inheritance question. == Pb. moving class from a product to another + etc.s from a product to another + etc.

2000-08-30 Thread NABETH Thierry
Title: RE[3]: [Zope] Product inheritance question.  ==  Pb. moving class from a product to another + etc.





Hello,


 If it is a class method, it must be inherited by any derived
class.


This is what I had done.



However, I had the time finally to conduce the following tests.
- create a Product P1 
 (Note: I used the word package instead of Product in my previous postings)
- create a Class A in P1
- create a method z in the Class A
- create a Product P2
- create a Class AA that inherits A in product P2.
- create an object 'o' instance of Class AA.
- make the test of calling the method z on 'o'.


Results: everything works fine !!
So everything seems to work correctly with the new version.


However, when I try to do the same (create a method z and test) for Packages
that I had created in the previous version of Zope, it just does not work !!
(I have imported in the new version the class I had created in the previous
version).


I believe that this had to do with the trick I used to split and existing Product
in several Products: Since I could not move a class directly from a package to another,
I created 2 copies of the same packages. I deleted from the first package the class I wanted
to move. From the second package, I deleted the classes I didn't want to move.
The result was 2 packages with each the correct set of classes.
The problem is that this seems to have generated some kind of inconsistancy,
in particular related to the namespace: the second package do not have access to
the namespace of the first package.


I know this was a relatively ugly way to proceed, but I found at that having
a zillion of classes in a same package was even more ugly, and I needed to reduce
this complexity by introducing more modularity.


Of course, at the beginning I couldn't predict which Products and which classes
would exist and I decided to start with one package and split it later.
If you had nor noticed I used some kind of incremental/prototypical/evolutionary/blablabla
methodology.


Unfortunatly, not being able -- to move classes from one product to another -- makes
the use of this methodology problematic :-(.


Another similar problem is that you can not modify a posteriori the inheritance tree.
(for instance when you decompose a class into 2 subclasses that inherit from one another).



To conclude, I find Zope to be a very interesting systems (because it is dynamic,
object-oriented, integrate seamlessly an OO database, etc.).
However, it would be an even better system if it provided more flexibility to
reengineer an architecture. (very important when you use a prototypical approach).


Or perhaps, there is something I have not understood ?


Thierry Nabeth
Research Fellow
INSEAD CALT (the Centre for Advanced Learning Technologies)
http://www.insead.fr/CALT/



-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 10:47 PM
To: [EMAIL PROTECTED]
Subject: Re: RE[2]: [Zope] Product inheritance question (similar
question)



NABETH Thierry writes:
 What I will have to do:
 - create a Package (Zope product).
 - create a class in this package, and a method (my_method)
This should be a method of the class,
not a method in the packages.


If it is a class method, it must be inherited by any derived
class.


Dieter



-Original Message-
From: NABETH Thierry 
Sent: Friday, August 18, 2000 9:29 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Zope] Product inhetitance question (similar question)



And what happen if the Class A is in a package PA.
Clabb B is in a package PB.


How do you access the namespace of PA from PB ?


When I have tried, the inherited methods from A where not visible
from B, and I and to recreate a copie of the method.
(which is ugly !!!).


Any suggestion ?


Thierry Nabeth
Research Fellow
INSEAD CALT (the Centre for Advanced Learning Technologies)
http://www.insead.fr/CALT/





[Zope] ZClass and Propertysheets

2000-08-30 Thread Andy Pahne



Hi,

I have created a ZClass with a propertysheet called "Basic". I added a
property "db_id", integer value with a default value of 0. Then I created
two instances and changed the value to 1 in the first and 2 in the second
instance.

When I try to render the property with a dtml-var db_id I get a 1 in both
instances. That's not what I expected in the beginning. In particular not
because there doesn't seen to be anything wrong when I have a look at the
property sheet in the instance's management screen. I have different values
there.

Am I wrong or is there something wrong with Zope 2.2.1 and ZClasses?


Andy Pahne
[EMAIL PROTECTED]


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




[Zope] Bug Tracking Product Recommendation?

2000-08-30 Thread sean

Hi,
I want to setup a Zope-based bug tracking system.  Can anyone 
recommend a Zope product that would do this relatively well?

Thanks

--Sean

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




[Zope] Squishdot/zcatalog question goes unanswered...

2000-08-30 Thread sean

I have asked the following question on the zope list, the squishdot site, and 
the squishdot eGroups site without a single response.  Is there something I 
am leaving out or is it a hard one?

Question:
I am running Zope 2.1.6 and Squishdot 6 (upgraded from 2-3-5-6). 
I have created a keyword search of my entire site. I see the Squishdot 
site listed as a cataloged object, but when I run a keyword search of my 
site, I get everything but the squishdot site items. Since my last upgrade I 
have updated the catalog to no avail. Incidentally, I have the zope chat 
example running also, and it shows every single posting by every 
user in the catalog objects, but these also don't show in search 
results (but this may be a design issue for chat). Any help resolving 
the Squishdot issue would be greatly appreciated. I don't care about 
chat very much. Thanks in advance!
--Sean


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




[Zope] Overriding server's notion of SERVER_NAME, SERVER_PORT, etc.

2000-08-30 Thread Skip Montanaro


In 2.2.1 I can no longer override ZServer's notion of SERVER_NAME,
SERVER_PORT, etc. from the invoking shell environment.  (I am currently
running 2.0.0, so this may well be true of other earlier 2.1.x and 2.2.x
versions.  With a little luck, I may actually be able to upgrade in the next
few days...)

I run ZServer listening to 127.0.0.2, port 9673.  The only thing that talks
directly to it is my front-end Apache server via its proxy module, so I want
any HTML generated to reflect the visible address and port, not ZServer's
hidden address and port.  I was previously able to force these variables to
be what I wanted by simply setting them before running the server:

SERVER_NAME=dolphin.mojam.com ; export SERVER_NAME
SERVER_PORT=80 ; export SERVER_PORT
HTTP_HOST=$SERVER_NAME:$SERVER_PORT ; export HTTP_HOST
SCRIPT_NAME=/ ; export SCRIPT_NAME

but 2.2.1 ignores these settings.  I made a few simple changes to
ZServer/HTTPServer.py and lib/python/ZPublisher/HTTPRequest.py that use
environment variables as defaults if they're available.  Context diffs are
attached to this msg.  I'd appreciate feedback from those in the know if
these were the correct sort of changes to make or if there is a better
(supported) way to achieve my goal.

Thx,

-- 
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/




diff -rc Zope-2.2.1-src/ZServer/HTTPServer.py Zope-2.2.1-src-new/ZServer/HTTPServer.py
*** Zope-2.2.1-src/ZServer/HTTPServer.pyTue Jun 27 10:55:14 2000
--- Zope-2.2.1-src-new/ZServer/HTTPServer.pyWed Aug 30 13:47:12 2000
***
*** 223,238 
  server=request.channel.server
  env = {}
  env['REQUEST_METHOD']=upper(request.command)
! env['SERVER_PORT']=str(server.port)
! env['SERVER_NAME']=server.server_name
  env['SERVER_SOFTWARE']=server.SERVER_IDENT
  env['SERVER_PROTOCOL']=request.version
  env['channel.creation_time']=request.channel.creation_time
  if self.uri_base=='/':
! env['SCRIPT_NAME']=''
! env['PATH_INFO']='/' + path
  else:
! env['SCRIPT_NAME'] = self.uri_base
  try:
  path_info=split(path,self.uri_base[1:],1)[1]
  except:
--- 223,242 
  server=request.channel.server
  env = {}
  env['REQUEST_METHOD']=upper(request.command)
! env['SERVER_PORT']=os.environ.get("SERVER_PORT", str(server.port))
! env['SERVER_NAME']=os.environ.get("SERVER_NAME", server.server_name)
  env['SERVER_SOFTWARE']=server.SERVER_IDENT
  env['SERVER_PROTOCOL']=request.version
  env['channel.creation_time']=request.channel.creation_time
  if self.uri_base=='/':
! env['SCRIPT_NAME']=os.environ.get("SCRIPT_NAME", '')
! if not env['SCRIPT_NAME']:
! env['PATH_INFO']='/' + path
! else:
! env['PATH_INFO'] = env['SCRIPT_NAME'] + path
  else:
! env['SCRIPT_NAME'] = os.environ.get("SCRIPT_NAME",
! self.uri_base)
  try:
  path_info=split(path,self.uri_base[1:],1)[1]
  except:
diff -rc Zope-2.2.1-src/lib/python/ZPublisher/HTTPRequest.py 
Zope-2.2.1-src-new/lib/python/ZPublisher/HTTPRequest.py
*** Zope-2.2.1-src/lib/python/ZPublisher/HTTPRequest.py Tue Aug 15 15:07:37 2000
--- Zope-2.2.1-src-new/lib/python/ZPublisher/HTTPRequest.py Wed Aug 30 13:43:05 
2000
***
*** 266,272 
  else: b=''
  while b and b[0]=='/': b=b[1:]
  
! server_url=get_env('SERVER_URL',None)
  if server_url is not None:
   other['SERVER_URL'] = server_url = strip(server_url)
  else:
--- 266,272 
  else: b=''
  while b and b[0]=='/': b=b[1:]
  
! server_url=get_env('SERVER_URL',os.environ.get("SERVER_URL", ""))
  if server_url is not None:
   other['SERVER_URL'] = server_url = strip(server_url)
  else:



Re: [Zope] ZClass -- Product

2000-08-30 Thread Karl Anderson

Chris Withers [EMAIL PROTECTED] writes:

 Karl Anderson wrote:
  What FTP editing options are there for ZClass definitions?  
 
 Your email address suggests you should be able to find out more easily
 than me ;-)

Well, I'm pretty sure the answer is "none", but I'm asking to the list
so if someone does have some kind of workaround, the reply will be
public.

 Maybe you could suggest better editing support for FTP or is WebDAV the
 way of the future?
 Mention was made of Adobe GoLive! in Paris, what's that like for doing
 this sort of this?

FTP is limited for this sort of thing because it works on files with
no metadata.

I *think* that the only reason one can't edit DTML methods in a ZClass
definition is that the intermediate steps don't support a FTP
directory interface.  That'd be a nice first step.

I've heard some ideas about how we could edit properties, permissions,
etc. with FTP, some more hackish than others.  Best is probably some
sort of XML text file associated with an item.

But from what I've been reading, the focus will be on through the web
editing whenever possible.  I personally find it much more convenient
to work with python baseclasses  have a python shell looking at the
ZODB in an emacs buffer, so I have a history of what I've done and
seen and can look at the objects  attributes on any level.

And yes, the wave of the future does appear to be with the various
clients that are coming out, Radio Userland being the most recent that
I've heard about.

-- 
Karl Anderson  [EMAIL PROTECTED]

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




[Zope] Re: [Zope-dev] Redirection and Authentication

2000-08-30 Thread Didier Georgieff

On 30 Aug 2000, at 19:03, [EMAIL PROTECTED] eg;zope;zope-
request;[EMAIL PROTECTED];;; 
([EMAIL PROTECTED]) wrote: 

  The problem is now that after the Redirect AUTHENTICATED_USER is again
  set to Anonymous (which I tested by printing AUTHENTICATED_USER). If I
  do no redirect but put a normal link back to the list document,
  everything works as expected (thus showing the edit button).

Reminds me some strange behaviour i had while redirecting to an 
URL with a variable. When i changed the redirect with "hard 
coding" the URL this disapeared. 

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




[Zope] Keeping app logic in Zope (was Paul's talk in Paris)

2000-08-30 Thread Jimmie Houchin

Warning, this message has been composed over several days.
If my thoughts wander, that's one excuse. :)

Simon Coles wrote:
[snip]

 Python products could be endangered species because its managed in the file
 system, which isn't in the "all tiers as managed content" thing.

I guess this means that Python Methods and ZClasses will be the
preferred model?

The reason I wonder is because I am right now beginning development of a
new website. I had been planning on doing most of my development in
Python Products as I currently have no particular need of thru the web
development and I like Python. No particular aversion to ZClasses or
Python Methods just that I know Python products can do what I want and
need.

I understand the the desire to move to a system where the all of the web
app resides within the Zope environment instead of parts on the file
system.

What is the current status regarding incorporating Python Methods into
the Zope core?

Just looked at the Python Methods wiki at:
  http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/FrontPage

This is issue also affects the Problem paragraph of the Vision Statement
on this wiki, as this broadens the scope of users who choose to use PMs
or reasons thereof.


Also within the desires stated above (to remain with the Zope
environment, ZODB) will there be a means for those with "authority" to
authoritatively do stupid things with Python such as shoot yourself in
the foot? :)

Not that anyone desires to do something stupid, but sometimes the
ability to do harm also enables the ability to do good. That is an
aspect of freedom. Some things require interaction outside of the Zope
environment. What will be the official Zope way of handling these types
of things?

Back again from the Python Methods wiki. :)

A question/suggestion as a part of the Python Methods proposal was to
move External Methods to become a part of Python Methods. This is on the
Current Issues pages.

I added a comment to the wiki. Basically, in light of Paul's comments
and my above desires for necessary expressiveness depending on the
authority of the user and the situation, I think putting External
Methods into the Python Methods part of Zope core would be good. It
would allow for EMs to be in the ZODB instead of on the file system.

As I've thought about these issues and with knowing that I want to use
ZEO I think the above would be of benefit in developing my site. The
less I involve the file system the easier it should be to distribute my
web app logic throughout the ZEO system. I think I'm talking myself into
it. :)

For me this is a change in direction for Zope development thought.

Any suggestions, thoughts or comments appreciated.

Thanks for letting me ramble.

Jimmie Houchin

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




[Zope] Case Studies (good!)

2000-08-30 Thread J. Atwood

Does anyone else love those case studies? I have was grinning ear to ear
reading the new one about replacing all Notes/Domino (which I know and
respect) with Zope. I would love to see more studies on all sorts of
different sites (big, small, database driven, not).

They are also really useful for those of us who need to try and convince
management that 'others are doing it too', which is a cold hard fact of the
corporate world. I would love to see much more (weekly) as well as more on
hardware and hits.

Keep up the great work DC.

Cheers,
J


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




[Zope] Socket.Error

2000-08-30 Thread Matthias Füsting

The other day I have change my hostname.
Today I have restart ZOPE and I get follow
Error-Message:

2000-08-30T20:12:44 PROBLEM(100) ZServer Computing default hostname
Traceback (innermost last):
   File "/opt/zope/2-1-6/z2.py", line 493, in ?
 logger_object=lg)
   File "/opt/zope/2-1-6/ZServer/medusa/http_server.py", line 560, in __init__
 ip = socket.gethostbyname (socket.gethostname())
socket.error: host not found


Is the changing of the hostname the reason for this?


Thanks!


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




Re: [Zope] FTP crashing Zope?

2000-08-30 Thread Dieter Maurer

Dario =?ISO-8859-1?Q?Lopez-K=E4sten?= writes:
  Using FTP Explorer I crashed (killed) my Zope instance while ftping in to
  port 8021. This was achieved by not setting FTP Explorer to use PASSIVe
  connections. Using Passive it works like a charm.
  
  Is this a bug in latest Zope (2.2.1) or is this expected behaviour? If, the
  latter is the case, what can I do to a) turn off FTP access, b) make sure
  that my Zope is up and running automagically after a crash?
a) look at the documentation in "z2.py".
   It tells you, how to selectively enable/disable protocols.

b) When my Zope had crashed, it usually restarted automatically.



Dieter

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




Re: [Zope] ZCatalog in 2.2.x

2000-08-30 Thread Dieter Maurer

Terry Kerr writes:
   But now when I instantiate my product in 2.2.0 or 2.2.1,
  searching only works when I search using a field index.  Searching using
  a textindex always results in an empty result 
I use ZCatalog text indexes under 2.2.1b1 without problems
(with a globbing lexicon!).

I had to fix some glitches (search for "ZCatalog glitches"
and "Globbing Lexicon bug" in the Collector).
However, none of my fixes had to do with your problem
description.


Dieter

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




Re: [Zope] symbolic links or invisible objects..?

2000-08-30 Thread Dieter Maurer

Geoffrey L. Wright writes:
... symbolic links ...

If your content is simple, i.e. does not contain URL references,
then symbolic links can easily be emulated with DTML methods.

Suppose, you have the following structure:

 A/
 A/A1/
 A/A1/a1
 
 A/A1/an

 A/B1/b1
 
 A/B1/bn

 and you want "A/B1/bi" be a symbolic link to "A/A1/ai",
 then "bi" would be the following DTML method:
 dtml-with "A.A1"dtml-var ai/dtml-with.

 This will not work, if "ai" make a URL reference to an "aj"
 unless "aj" and "bj" have the same id and "bj" is
 a symbolic reference to "ai".


For more complex situations, you may use the product SiteAccess
(-- zope.org) to redirect requests transparently according
to situation.

You may look at
URL:http://www.dieter.handshake.de/pyprojects/zope/Localizer.py
This is used as a SiteAccess AccessRule for localization.
Requests going to a folder controlled by this rule are
served from this folder, if possible.
If not possible, the request is redirected to a different
folder.

I think, this method can be abused to get what you want.


Dieter

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




Re: [Zope] Apache: mod_perl, mod_rewrite, prefix

2000-08-30 Thread Hung Jung Lu

(1) I have mod_rewrite statically
(2) I have mod_perl statically
(3) prefix is /usr/mydir

Okie, I figured it out. So I'll reply to myself. :) By the way, I am on 
Linux platform.

So the appropriate commands are

(1) Download latest apache and mod_perl. Unzip and untar them.
(2) Place the untarred mod_perl-1.24 into your apache_1.3.12 folder.
(3) cd into the mod_perl-1.24 folder.
(4) perl Makefile.PL \
USE_APACI=1 \
APACI_ARGS='--enable-module=rewrite' \
APACHE_PREFIX=/usr/mydir
(5) make
(6) make install (this will install the the httpd executable but not 
override the existing httpd.conf file. If you want to play safe, make a 
backup of the httpd executable before installing the new one.)

C'est tout!

Hung Jung
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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




[Zope] Newbie SQL problem: Query Error: Cannot render query template

2000-08-30 Thread Farrell, Troy

Hello.

I am running Zope as a service on NT4WS.  I have multiple MS Access
databases connected to different ZJetDAs and I am not able to modify the
data in them with SQL statements.  For example, INSERT INTO test VALUES
(dtml-sqlvar value_one type=string, dtml-sqlvar value_two type=int)
returns the error "Query Error: Cannot render query template".  Can you tell
me what the cause is.  I think it might be a permissions problem, but I have
everything wide open and I can't figure it out.

Thanks.
Troy Farrell

Troy Farrell
Video Operations Technician II
Williams VYVX Services
918.573.3029
918.573.1441 fax
mailto:[EMAIL PROTECTED]
http://www.williams.com


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




[Zope] Mime types for email attachments

2000-08-30 Thread Brendon Grunewald

I am battling to find the information needed to attach word, excel, and pdf
documents to an email based on the input from a form.

I know that there is a howto that uses a python method, but I do not want to
use this option. Where can I get the necessary mime types and structure to
accomplish this?

This is what I have so far:
!--#sendmail mailhost="MailHost"--
To: dtml-var Email_address
From: WebForm [EMAIL PROTECTED]
Subject: Web doc request
dtml-mime type=text/plain encode=7bit
Attached is the document you requested.

dtml-boundary type=application/dtml-var Doc_Type disposition=attachment
encode=quoted-printable
dtml-var dtml-var Requested_Document
/dtml-mime

!--#/sendmail--


Thanks
Brendon

--
70South: the No.1 source for Antarcticles.
For the latest news and views on Antarctica visit : http://www.70south.com


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




[Zope] Apache: mod_perl, mod_rewrite, prefix

2000-08-30 Thread Hung Jung Lu

Hi,

Although this is more an Apache question, I would guess that a lot of Zope 
users have gone through exactly the same problem I am going through, so I 
might as well try it out here.

As you can probably tell, I am trying to hook up Zope and Apache via PCGI. 
The thing is, I need also mod_perl, and my Apache root prefix is 
non-standard (not /usr/local/apache). I want to build Apache from source 
such that

(1) I have mod_rewrite statically
(2) I have mod_perl statically
(3) prefix is /usr/mydir

Now, those are three requirements, and things got too complicated. I  know 
how to do (1) and (2) together, I know how to do (1) and (3) together, but I 
still fail to do (1)(2)(3) all together. Anyone cares to share their 
experience? I want a final httpd executable, so that I can simply copy and 
replace my current copy of apache.

I have read:

  http://perl.apache.org/guide/install.html

but I am still a bit confused.

Thanks,

Hung Jung

PS- I think mod_perl is an example of big failure when it comes to 
installation, since it tries to control and override the apache installation 
process. What a mess! In comparison Zope product installations are as easy 
as drag and drop.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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




Re: [Zope] SSL and PGP

2000-08-30 Thread morten

On Wed, 30 Aug 2000, Terry Kerr wrote:

 We have done this in our Etailer product...grab the source and take a look...
 http://e-tailer.adroit.net/.  Basically we just pipe the string to be 
 encrypted to the gnu pgp program on a linux box.  Take a look at
 http://www.pgpi.org/products/gnu/gpg/.

I'm working with two other developers to build an entire Python-GPG API,
so that we can access all GnuPG functionality from Python.  It's GPL and
if anybody here's interested in participating, send me a mail.

Regards, Morten


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




Re: [Zope] Bug Tracking Product Recommendation?

2000-08-30 Thread Terry Kerr

I am interested in this as well!

[EMAIL PROTECTED] wrote:

 Hi,
 I want to setup a Zope-based bug tracking system.  Can anyone
 recommend a Zope product that would do this relatively well?

 Thanks

 --Sean

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

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




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




[Zope] CRC-32 checksum

2000-08-30 Thread Jim Sanford

Does anyone have or know the whereabouts of a python module that will do 32 bit CRC 
checksums?

I am converting an existing application to Zope and need to be able to generate CRC-32 
checksums for checking file integrity of
software we produce.

 __

  Jim Sanford
  .   Database Engineer
 / \  /   Accelerated Technology, Inc.
/   / 720 Oak Circle Drive East
   /  /  \Mobile, AL 36609
  / / \   Voice: 334-661-5770  fax: 334-661-5788
 / \  E-Mail: [EMAIL PROTECTED]
  Web: http://www.atinucleus.com

 Nucleus.  All You NEED in an RTOS.  Royalty Free
 __




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




Re: [Zope] SSL and PGP

2000-08-30 Thread Terry Kerr

coolI am eagerly waiting...

[EMAIL PROTECTED] wrote:

 On Wed, 30 Aug 2000, Terry Kerr wrote:

  We have done this in our Etailer product...grab the source and take a look...
  http://e-tailer.adroit.net/.  Basically we just pipe the string to be
  encrypted to the gnu pgp program on a linux box.  Take a look at
  http://www.pgpi.org/products/gnu/gpg/.

 I'm working with two other developers to build an entire Python-GPG API,
 so that we can access all GnuPG functionality from Python.  It's GPL and
 if anybody here's interested in participating, send me a mail.

 Regards, Morten

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




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




Re: [Zope] FSSession problems...

2000-08-30 Thread Curtis Maloney

On Thu, 31 Aug 2000, Hung Jung Lu wrote:
 Curtis,

 Could you describe how often does the problem happen? How many session
 users goes to the site? You mentioned about a month of public usage. During
 that month, did you have one single incident? How many sessions happened
 during that month?

So far, we have one recorded incident, and one anecdotal (from internal) 
incident.  I am having some more extensive testing done soon, so we can try 
to pin down further the exact circumstances which cause this problem.

The site is used for issuing product return authorities, and so far, over 160 
RAs have been issued.  Yes, it is a fairly low traffic site.  Session data is 
retained between visits (a side effect, but a welcome one), so I really 
cannot be sure of how many sessions were used.

 All key-based session management systems are intrinsically unsafe, since
 other people can tap into your session, with non-zero probability, if the
 key-length is finite. The only hope is to make the key long enough, so even
 if the hacker has a supercomputer, it would still take him/her the age of
 the universe to crack into your website. One thing I mentioned to Pavlos
 (and/or Anthony Baxter?) before is that the key lengths of their cookies
 are a bit too short. For my HappySession product (another session
 management product, which is RAM based), I cranked up the key length to 128
 alphanumeric char key, exactly because I wanted no key collision for a long
 long time. :)

Well, yes and no.  This really depends on the sensitivity of your data, and 
how likely it is for someone to try to crack your site.  In this case, both 
are fairly low, so the key strength is fine, IMHO.

 regards,

 Hung Jung


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




Re: [Zope] GUF and manage_addGenericUserFolder not working

2000-08-30 Thread Jason Byron

--- Chris Withers [EMAIL PROTECTED] wrote:
 Jason Byron wrote:
  I try to call the function
 manage_addGenericUserFolder
  in a DTML Method but I keep getting a NameError
 for
  it. It's as if Zope can't find the definition.
 
 Try somethign like the following:
 
 dtml-with "manage_addProduct['GenericUserFolder']"
  dtml-call "manage_addGenericUserFolder(your,
 params, here)"
 /dtml-with
 
 cheers,
 
 Chris


Hey, that worked! Thanks Chris

Now, *why* does that work?  The function
manage_addProduct looks like its for adding new
products under the Control_Panel.  That isn't what
it's for?

I don't have to do 
dtml-with "manage_addProduct['OFSP']" 
to use manage_addUserFolder ?


I noticed this in the OFSP stuff.  


from :lib/python/Products/OFSP/__init__.py
line :153

context.registerClass(
AccessControl.User.UserFolder,
   
constructors=(AccessControl.User.manage_addUserFolder,),
icon='images/UserFolder_icon.gif',
   
legacy=(AccessControl.User.manage_addUserFolder,),
)

   
context.registerBaseClass(AccessControl.User.UserFolder,
'User Folder')
context.registerBaseClass(AccessControl.User.User)



Could adding something like this to the GUF fix the
problem I had and let manage_addGenericUserFolder work
by itself?


Jason




__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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




Re: [Zope] Bug Tracking Product Recommendation?

2000-08-30 Thread sean

It would also be nice if it was tied to a ODBC compliant database 
like MS SQL or Access!

On 31 Aug 2000, at 9:38, Terry Kerr wrote:

 I am interested in this as well!
 
 [EMAIL PROTECTED] wrote:
 
  Hi,
  I want to setup a Zope-based bug tracking system.  Can anyone
  recommend a Zope product that would do this relatively well?
 
  Thanks
 
  --Sean
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 --
 Terry Kerr ([EMAIL PROTECTED])
 Adroit Internet Solutions Pty Ltd (www.adroit.net)
 Phone:   +613 9563 4461
 Fax: +613 9563 3856
 Mobile:  +61 414 938 124
 ICQ: 79303381
 
 
 
 



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




[Zope] ANNOUNCE ZEO 0.3 Released

2000-08-30 Thread Jim Fulton

A new release of Zope Enterprise Objects (ZEO) 
is available at: http://www.zope.org/Products/ZEO.

This release fixes a bug that caused spurious conflict errors
and that could eventually make it impossible to make changes
without restarting a ZEO client (e.g. Zope process).

The release also has two enhancements when running
the ZEO server on Unix:

- When the storage server start script is run as root,
  the script will switch to a different user (nobody by
  default). There is a new '-u' option that can be used to
  specify the user.

- The storage server will gracefully close served storages when
  the server is killed with a SIGTERM or SIGHUP. If a
  FileStorage is being served, then an index file will be
  written.

If you encounter problems with ZEO, please report them
using the ZEO issue tracker at:
http://www.zope.org/Products/ZEO/Tracker.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org  
Digital Creationshttp://www.digicool.com   http://www.zope.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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




Re: [Zope] ZCatalog Queries...

2000-08-30 Thread Kapil Thangavelu

I saw this email with some interest since i had an offlist conversation
with some of the people at nipltd regarding a mailing list project, but
i chose to do it outside of zope because of lingering doubts about
zope's suitability(more ZCatalog) for the task.


Chris Withers wrote:
 
 Chris McDonough wrote:
 
   It's be nice if ZCatalog had a good general purpose
   interface, and was a
   bit more robust.
   (the BTree implementation which has been mentioned a few times springs
   to mind here ;-)
 
  Can you be more specific?
 
 Andy can fill you in on the specifics.
 
   What's insufficient about the current
  implementation?
 
 It doesn't scale well, especially for things where you have lots of new
 data arriving (this is the BTree problem, I think...)
 
 It has no published and well defined query syntax (there's patches here,
 bits there, but no definitive document on how to use it, how to batch
 with it, how to perform complex and structured queries, particularly
 with TextIndex'es)
 
 Don't get me wrong, it is very cool, but only kindof 70% there :S
 (and I get the impression that doing the remaining 30% properly would
 require a rewrite...)

more of the same...
 
I think that zcatalog is great for simple property indexing but it has
some signifigant drawbacks for its most common use, which is mass text
indexing, and searching. As object an catalog, its fine, But i think as
a mass text indexing/searching machinery it bites. I think Zope could
really use either a companion to zcatalog for text searching or a
replacement. If i'd like to index 50M i'd like not to have my search
take unreasonable long, give erroneous results, thrash my machine
because i choose to index it at once, yet these are all things that i've
experienced with zcatalog since i started using zope. for sure its
gotten much better, but it still can't handle my use cases. So i've
accepted that ZCatalog isn't a site wide nor a scalable tool.

ok so the question(at least to me) than becomes what to implement. i'm
not totally sure... i've taken a look/leaning towards Evolution's text
indexing (libibex), 

i consulted some of the evolution developers and this is the response i
got 8/5/00(us)


You probably dont want to use libibex as it is now - all indexes
are stored in memory for example, and it uses a lot of memory
as well (uses gtree's).  It will handle 100MB of mail fine enough
though on modern hardware, if you ahve the spare memory.

At some point we are going to change the backend to use a disk
based storage, using the search engine used in nautilus (can't
remember what its called), although we will probably make a wrapper
so the api should remain.


which takes back to square one. i am convinced of the  need for
full-text reliable search on a site or a part of site. but i'm unsure of
what the best way to do it would be.
 
my2cents

kapil

 As an example, we've been trying to do Zope-based versions of the
 mailing list archives for a coupla months now and the Catalog keeps
 exploding in different ways (huge resource consumption, even for only
 30K messages or so, no matter what storage is used)
 
 Then there's the ubiquitous 'KeyError's and other associated weirdness,
 all of which leaves me feeling a lot less than totally confident in the
 Catalog ;-)
 
 comments very welcome,
 
 Chris
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] ZClass -- Product

2000-08-30 Thread Steve Spicklemire


How about:

/you@server 
port:/Control_Panel/Products/YourProduct/YourZClass/propertysheets/methods/yourMethod

-steve

 "Karl" == Karl Anderson [EMAIL PROTECTED] writes:


Karl What FTP editing options are there for ZClass definitions?
Karl I've never been able to do much.  What I have done is use
Karl folderish ZClasses, edit DTML methods contained in the
Karl *instance* thru FTP, and then moved them to the definition
Karl latler, but that's kind of hacky - it adds a little more
Karl confusion about finding things with large projects.

Karl -- Karl Anderson [EMAIL PROTECTED]

Karl ___ Zope
Karl maillist - [EMAIL PROTECTED]
Karl http://lists.zope.org/mailman/listinfo/zope ** No cross
Karl posts or HTML encoding!  ** (Related lists -
Karl http://lists.zope.org/mailman/listinfo/zope-announce
Karl http://lists.zope.org/mailman/listinfo/zope-dev )


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




Re: [Zope] Bug Tracking Product Recommendation?

2000-08-30 Thread Kapil Thangavelu



You could explore the Tracker Product available from zope.org's cvs. its
used for zope. it is unsupported.


[EMAIL PROTECTED] wrote:
 
 It would also be nice if it was tied to a ODBC compliant database
 like MS SQL or Access!

nope. did you mean ODBC or MS compliant;)

the only DB solutions i know for bug tracking are bugzilla available
from mozilla.org's ftp (which is tied to mysql). and the SDM module from
arsdigita's ACS(either oracle or postgres).



Kapil

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