Re: [Zope-dev] Zope Server hanging :-(

2001-06-06 Thread Erik Enge

On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote:

 ... at least then we know what the exception is.
: 
 Again - try that code in an interactive interpreter if you really want to
 find out what's going on...

Yeah, thanks, that would work as a workaround, but isn't this buggish
behaviour?


___
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] 60GB Data.fs?

2001-06-06 Thread Erik Enge

[no cross-posting, please]

On Wed, 6 Jun 2001, Bjorn Stabell wrote:

 We're planning a Yahoo! Clubs like system that should scale to about
 30, 000 users.  Assuming about 3,000 groups and 20MB per group (group
 functionality includes photo albums), gives a database size of 60GB.
 Assuming on average 3,000 users per day, 20 page views per users,
 gives about 60,000 page views (not a lot, but if it's all dynamically
 generated?).

You're going to need some serious hardware for that.  You could do a lot
with your setup though (ZEO, RDBMS, distributed application-programming)
but I don't have much experience to share on that.  In a scenario where
each box (if you have several) has its own 60GB Data.fs I'd be worried
about disk-activity for one.  It seems to me (with my petty 1GB Data.fs)
that it is the disks rather than ZODB itself that slows things down.

 At this scale, how would ZODB hold up with respect to memory use and
 speed?  I've heard rumors that it loads an index into memory on
 start-up.

I'm running a 1GB Data.fs with CompressedStorage here and that takes
probably about 3-5 minutes on a 1GHz with 1GB RAM.  I keep banging my head
against it, but it just won't run faster.

Let us know how that project progress, will you? :)



___
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] Zope Server hanging :-(

2001-06-06 Thread Richard Jones

On Wednesday 06 June 2001 18:03, Erik Enge wrote:
 On Wed, 6 Jun 2001 [EMAIL PROTECTED] wrote:
  ... at least then we know what the exception is.
 
  Again - try that code in an interactive interpreter if you really want to
  find out what's going on...

 Yeah, thanks, that would work as a workaround, but isn't this buggish
 behaviour?

Absolutely - along with dozens of other places that Zope squashes exceptions. 
Anthony Baxter actually wrote a script that finds instances of bare except: 
clauses in the Zope source...

 http://www.zope.org/Members/anthony/BarewordExcepts

Feel free to find the bad except: and submit a patch...


Richard

-- 
Richard Jones
[EMAIL PROTECTED]
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)

___
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] 60GB Data.fs?

2001-06-06 Thread Erik Enge

On Wed, 6 Jun 2001, Erik Enge wrote:

 I'm running a 1GB Data.fs with CompressedStorage here and that takes
 probably about 3-5 minutes on a 1GHz with 1GB RAM.  I keep banging my
 head against it, but it just won't run faster.

Oops, misleading you there.  Actually, FileStorage uses about 40 seconds
to initialize the Data.fs.  Can't complain about that.  (Although 60GB
might not be too fun ;)


___
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] 60GB Data.fs?

2001-06-06 Thread Matt Hamilton

On Wed, 6 Jun 2001, Erik Enge wrote:

 I'm running a 1GB Data.fs with CompressedStorage here and that takes
 probably about 3-5 minutes on a 1GHz with 1GB RAM.  I keep banging my head
 against it, but it just won't run faster.

Out of interest, is this startup time avoided when using BerkeleyDB as the
storage?  I know that it has its own indexes etc. so I am wondering if it
no longer needs to load an index into memory.

Also how are the disks layed out? Is it possible to have, say, 5 disks
each on their own (no RAID) and then split the data.fs over them using
PartitionedFileStorage or similar.

-Matt

-- 
Matt Hamilton [EMAIL PROTECTED]
Netsight Internet Solutions, Ltd.  Business Vision on the Internet
http://www.netsight.co.uk   +44 (0)117 9090901
Web Hosting | Web Design  | Domain Names  |  Co-location  | DB Integration



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



SV: [Zope-dev] 60GB Data.fs?

2001-06-06 Thread Magnus Heino (Rivermen)


 Also how are the disks layed out? Is it possible to have, say, 5 disks
 each on their own (no RAID) and then split the data.fs over them using
 PartitionedFileStorage or similar.

Where can I get PartitionedFileStorage?

/Magnus

___
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] A simple dtml-if question...

2001-06-06 Thread E. Seifert

Hi Jeff,

Jeff Nielsen wrote:
 How do I construct a dtml-if statement with two conditions joined by and
 logic? I want to do something like this:

 dtml-if expr=LoginResults=='Pass' .and. expr=PATH_INFO=='/'

Did you try
dtml-if expr=LoginResults=='Pass' and PATH_INFO=='/'

Regards
Eric



___
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] Zope Server hanging :-(

2001-06-06 Thread Erik Enge

On Wed, 6 Jun 2001, Richard Jones wrote:

  http://www.zope.org/Members/anthony/BarewordExcepts
 
 Feel free to find the bad except: and submit a patch...

Ugh.  There are tons of them...  I'll see what I have time for.


___
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: SV: [Zope-dev] 60GB Data.fs?

2001-06-06 Thread Erik Enge

On Wed, 6 Jun 2001, Magnus Heino (Rivermen) wrote:

 Where can I get PartitionedFileStorage?

Here: URL:http://www.zope.org/Members/hathawsh/PartitionedFileStorage

Didn't show up in any searches, though.  Maybe worth indexing?


___
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] 60GB Data.fs?

2001-06-06 Thread Erik Enge

On Wed, 6 Jun 2001, Matt Hamilton wrote:

 Out of interest, is this startup time avoided when using BerkeleyDB as
 the storage?  I know that it has its own indexes etc. so I am
 wondering if it no longer needs to load an index into memory.

I'm not sure, but as I said in a previous oops-correcting-myself-mail it
actually only uses 40 secs - FileStorage, that is.


___
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] context bindings in python products

2001-06-06 Thread Toby Dickenson

On Tue, 05 Jun 2001 15:56:45 -0400, Chris McDonough
[EMAIL PROTECTED] wrote:

context = self
container = self.aq_inner.aq_parent

No amount of aquisition trickery will give a method access to the dtml
context, which I *think* is what was asked for.

 the only thing i found was this:
 http://www.zope.org/Members/htrd/howto/FunctionTemplate
 but it seems very complicated in argument passing

Like DTMLMethods, all arguments get passed in the 'context'. 

 am i the only one who needs this, or is it a sign for wrong coding practice
 in zope?

Context-based programming is usually wrong, but not always. If you
explain what you are trying to achieve then we may be able to point
out a better alternative.

(some early drafts of the Zope book encouraged context-based
programing in scenarious where it was quite dangerous; Im not sure if
this is currently true)

Toby Dickenson
[EMAIL PROTECTED]

___
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] context bindings in python products

2001-06-06 Thread Bernd Dorn

i got it finally - jo

def test(self,REQUEST=None):
 test 
context = REQUEST.PARENTS[0]
return context.absolute_url()

the reason why:

in another project i used a python script which returns a specific property:
if the property in the current object has some specific value, lets say --
then the property is looked up in the parent object (recursively) till it
comes to
a special root object.
i use this to let users choose if they want to inherit the property from the
parent object - this is good for meta-tags in html
note that i dont want to let users delete/create properties, and zope only
aquires the
property from the parent if its not there.


now i want to include this function into my python product
so e needed a context object
its not implementet till now, but i think it works with the function above

cu bernd


- Original Message -
From: Toby Dickenson [EMAIL PROTECTED]
To: Chris McDonough [EMAIL PROTECTED]
Cc: Bernd Dorn [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 12:15 PM
Subject: Re: [Zope-dev] context bindings in python products


On Tue, 05 Jun 2001 15:56:45 -0400, Chris McDonough
[EMAIL PROTECTED] wrote:

context = self
container = self.aq_inner.aq_parent

No amount of aquisition trickery will give a method access to the dtml
context, which I *think* is what was asked for.

 the only thing i found was this:
 http://www.zope.org/Members/htrd/howto/FunctionTemplate
 but it seems very complicated in argument passing

Like DTMLMethods, all arguments get passed in the 'context'.

 am i the only one who needs this, or is it a sign for wrong coding
practice
 in zope?

Context-based programming is usually wrong, but not always. If you
explain what you are trying to achieve then we may be able to point
out a better alternative.

(some early drafts of the Zope book encouraged context-based
programing in scenarious where it was quite dangerous; Im not sure if
this is currently true)

Toby Dickenson
[EMAIL PROTECTED]

___
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 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] DCOracle2 Beta 1 Announcement

2001-06-06 Thread Chris Withers

Good to know :-)

Chris

- Original Message -
From: Matthew T. Kromer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 05, 2001 6:54 PM
Subject: [Zope-dev] DCOracle2 Beta 1 Announcement


 Description
 DCOracle2 is a replacement for DCOracle, written primarily in C. DCOracle
1
 uses OCI 7 bindings for most Oracle calls, with OCI 8 mixed in for LOB
 support. Oracle 8i disallows mixing of calls within a statement, and so
 breaks LOB support. DCO2 uses entirely OCI 8 calls, and thus can use LOBs.

 New in this Release
 Beta 1
 Stored procedure input works properly, cycles in stored procedures
removed.
 Stored procedures now have meaningful docstrings (describing their
 parameters). Type coercion change from a tuple kludge to a TypeCoercion
 object. Set ability (and default) to do static binding for BindingArrays,
 working around dynamic fetch occasional NULL bug on Linux. Batch
 executemany(). Add backward compatable dbiRaw and execute modes.

 Alpha 6
 Nested Cursors, e.g. SELECT ENAME, CURSOR(SELECT ENAME FROM EMP WHERE
 MGR=7908) FROM EMP WHERE EMPNO=7908). API 2.0 type objects. Add trim() to
 LobLocators. Wrap LOB permissions for Zope in ZOracleDA. Change result on
 execute w/o results to None, not []. Return statement type code after
 execute().

 Alpha 5
 Stored procedure fixes, and debugging enhancements.

 Alpha 4
 Stored procedure IN/OUT variables, changes to executemany()

 Alpha 3
 Changed ZOracleDA to not use method call to connect(). Partial stored
 procedure work

 Alpha 2
 Bug fixes, largely packaging, from Alpha 1. Added SQLT_AFC handler, SPARC
 alignment fixes.

 Alpha 1
 First www.zope.org release

 Contents
 This release contains both DCOracle2 and a slightly modified ZOracleDA; it
 will register as ZOracleDA would (to silently upgrade Oracle connections)
 and thus cannot be run concurrently with ZOracleDA/DCOracle.

 Installation
 To replace ZOracleDA, untar into lib/python/Products and make, move
 ZOracleDA out of lib/python/Products, and rename lib/python/Products/DCO2
to
 lib/python/Products/ZOracleDA.

 Usage
 This release is intended for testing with ZOracleDA feature compatibility
 (including LOB support) and is also intended for general use.

 Platforms
 NT support has been tested, Microsoft Visual Studio project files are
 included; this has only received testing with Oracle 8.0 and Oracle 8.1 on
 Linux, Solaris, and Windows NT; a wider variety of platform experience is
 welcomed.

 Download
 The product is available at http://www.zope.org/Members/matt/dco2.




 ___
 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 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] Cache invalidation with DTML

2001-06-06 Thread E. Seifert

Hi list,

is there a way to invalidate certain objects in cache using DTML?

Thanks in advance
Eric



___
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] Streaming and PCGI

2001-06-06 Thread R. David Murray

On Wed, 6 Jun 2001, Andre Schubert wrote:
 Can anybody explain me why streaming over PCGI doesn't work, or has
 anybody a solution of streaming with PCGI ???

Perhaps the PCGI has its own timeout that doesn't wait even if it has
been given some headers.  I wonder if Apache ProxyPass has the same
issue?

--RDM


___
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] [Announce] API Documentation Fishbowl Project

2001-06-06 Thread Paul Everitt


Hmm, I'm surprised that 2 days has passed with no comment from zope-dev
and no comments in the Wiki.  I hear constant complaints about lack of a
polished API.  I expected this post to generate lots of interest.

What say ye, zope-dev?  Is this something we should be doing, or would
you prefer a different documentation activity to have priority?  Is the
proposed solution agreeable?

For all of you that have chimed in about the API, here's a chance for
you to get involved and help make it a strong effort.  Help!! :^)

--Paul

Amos Latteier wrote:
 
 Fellow Zopistas,
 
 Mike Pelletier and I are working on a project to improve Zope's API
 documentation. Details are now publicly available in the fishbowl.
 (Actually it's been public for a while, but this is the first
 announcement of the project.)
 
   http://dev.zope.org/Wikis/DevSite/Projects/APIDocs
 
 I encourage you to check it out and leave your comments, criticisms, and
 suggestions.
 
 This project aims to improve the life of Zope developers, so please help
 us make sure we're not off base. For the project to succeed it must meet
 *your* needs.
 
 Thanks!
 
 -Amos
 
 --
 Amos Latteier mailto:[EMAIL PROTECTED]
 Digital Creations http://www.digicool.com
 
 ___
 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 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] [Announce] API Documentation Fishbowl Project

2001-06-06 Thread Erik Enge

On Mon, 4 Jun 2001, Amos Latteier wrote:

 I encourage you to check it out and leave your comments, criticisms, and
 suggestions. 

I like.  That pretty much captures it :)

There is one thing, though.  Let's say I have this class NiceBigCar.  The
developers docs from what you suggest are fine, but how about semantics
for adding users/clients/otherpersons docs as well?  I know it's only
documenting API's but surely the users use the API at some level too.

Is it meant to be like this:

   NiceBigCar/
  doc/
  dev/
  user/

for example?

I love the AOP stuff and I can't wait to start fiddling with it (once TW
is out for Python 2.1) and I just wonder if there is an easy way of
combining this weaving-effect with documentation.  I don't know, it might
be out of scope, or maybe the proposal takes care of that already, just in
a different way.


___
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] [Announce] API Documentation Fishbowl Project

2001-06-06 Thread Dan L. Pierson



--On Wednesday, June 06, 2001 11:57:06 AM -0400 Paul Everitt 
[EMAIL PROTECTED] wrote:


 Hmm, I'm surprised that 2 days has passed with no comment from zope-dev
 and no comments in the Wiki.  I hear constant complaints about lack of a
 polished API.  I expected this post to generate lots of interest.

I read it over, the final design seems acceptable if docs are actually 
written to it.

My main concern is the one that Chris McDonough expressed in great detail 
in the wiki, namely that definining the (existing) interfaces is THE 
critical step.  Simply documenting all of the methods of objects is not 
sufficient because it says nothing about which are important, which are 
internal only, which are obsolete, how they interact, etc.

The final design does base the API on hand-written interfaces, which is 
good.  There is also some seemingly fuzzy plans to have an interface 
verification tool, which will be of some value in catching some cases of 
non-compliance.  However, the vital hard bit of creating the hand-written 
interfaces and ensuring that they're right is sort of glossed over in my 
opinion.

I thought of adding some of this to the wiki, but it all seemed to amount 
to a redundant me too and I wasn't sure where to put it :-(

Following the spec for newly written products should be easier.  The CMF 
seems to me to be a good example of a product that has done so (though the 
interfaces seem to be getting out of date at the moment).  I have found 
online CMF API docs useful in practice.

Dan Pierson


___
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] [Announce] API Documentation Fishbowl Project

2001-06-06 Thread jimbo

I hope this helps. I wanted to add my feelings on the whole documentation issue.  It 
seems to me that the whole process caters around developers too much. I gotta tell you 
I loved Zope the moment I found it.  These days I'm having trouble though wondering 
what is it all for? I've used zope for the past few jobs and the customers did not 
have any interest in using zope so they changed the sites. 

  I believe that if you are a true developer you will/can figure out the api given the 
vast information available today.
  For example the dcworkflow product was just released. I believe the best 
documentation would be  how-to actually use the product.

One thing would be to adjust the documentation to spoon-feed to the masses zope and 
all the wonderful things that people can do with it now!

If you spend too much on wooing developers and not the types doing the hiring, you 
might just end up being a small niche serving hobbiest who do this for fun.

  Please don't banish this wonderful product to Eternal Geekdom by not simplifing the 
documentation by putting together concrete examples on how to implement concepts and 
products.

In short enough geek speek.  Change the language into something the rest of masses can 
understand.  How can I use zope/API to get PAID!  How can I actually make the 
dcworkflow or the core session or the ZPT do something.  Plenty of example uses. I 
think they might call them case studies or something to that effect.



Thanks,
-Jimbo

 

___
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] Cookies and IE

2001-06-06 Thread Austin Mayberry

I am having a problem with cookies in Internet Explorer.  Zope will not 
allow cookies in IE to have -'s or ,'s.  The problem extends from the 
fact that IE does not quote the environment variable HTTP_COOKIE, so 
Zope has separate regular expressions to deal with HTTP_COOKIE in 
Netscape and IE when parsing HTTP_COOKIE into the cookies dictionary. 
This is handled in the parse_cookie method of HTTPRequest.py.  The first 
reg exp below is for Netscape and the second is the one it uses for IE. 
  I understand why the one for IE does not allow for spaces, \0's, 's, 
and ;'s because those are possible delimeters of the end of a cookie 
value, but I do not understand why it  excludes -'s and ,'s.  Does 
anyone know the reasoning behind this?


  qparmre=regex.compile(
  '\([\0- ]*'
  '\([^\0- ;,=\]+\)=\([^]*\)\'
  '\([\0- ]*[;,]\)?[\0- ]*\)'
  )

  parmre=regex.compile(
  '\([\0- ]*'
  '\([^\0- ;,=\]+\)=\([^\0- ;,\]*\)'
  '\([\0- ]*[;,]\)?[\0- ]*\)'
  )


___
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] [Announce] API Documentation Fishbowl Project

2001-06-06 Thread Eric Roby

Jimbo, I concur 100%.

I am a Zope newbie (relatively speaking - since February) but I have been
developing Web Information Systems since '95.  My tool of choice was
perl/CGI.  I attended a DEVX conference in December of '99 and was
introduced to Java Servlets and the J2EE spec.  I knew this was the
transition that I had to make, professionally.  However, 100% of my work
evolves around information management and publishing.  J2EE doesn't
immediately solve this requirement without a great deal of tooling. I saw
the benefits of the enterprise but couldn't justify the effort (to my
customers).

In walks Zope and the lights/whistles/fireworks went off.  Zope immediately
provides me the vehicle to move from a 'Cottage Software' paradigm to a
(sort-of) 'Industrial Software' paradigm.

I am no python programmer, yet.  But, with the other available tools (DTML,
acquisition, ZClasses), I have been able to get the job done.  I have hit a
few land-mines since February.  In some cases I was able to work through the
problems from How-To's, others from the mail-listings.  But a couple of
problems have yet to be resolved. The new Zope Book is a step towards
consolidating all these other doc efforts but it falls short on utility. I
have many perl books on my book shelf.  The one that I always go back to is
my original 'Camel'  book.  Wall  Schwartz put the right mix of fact, fable
and 'case studies' to get the imagination brewing.  I don't need my hand
held but I would greatly appreciate some insight on what is possible and
what is not.  The biggest stumbling block for me to date (and potentially
the most powerful tool for me) has been connected with the nuances of
ZClasses.  The examples in the book gloss over the implementation details
that would be the most instructive and could have saved me days of searching
and swearing.  I ended up searching for some ZClass products and worked
through them to fill in the blanks.

I see enormous potential for Zope in the Peer-to-Peer revo/evo-lution.  I
want it to succeed.  I scream Zope at every opportunity.  But, I have
invested nearly 800 hours of my time to be able to talk-the-talk and now
walk-the-walk.  I feel quite comfortable in recommending this system as the
final solution as we move to P2P.  Not everyone can afford that kind of
commitment.  The people paying the bills certainly won't.

Certainly, the API documentation could be presented better, but expand on
some of that brain-storming that is going on behind those DC doors (well not
all of them ... you guys need your trade secrets too), those 'what if'
scenarios that would go a long way towards enlightening the masses.

Eric

   Please don't banish this wonderful product to Eternal Geekdom by not
simplifing the documentation by putting together concrete examples on how to
implement concepts and products.

 In short enough geek speek.  Change the language into something the rest
of masses can understand.  How can I use zope/API to get PAID!  How can I
actually make the dcworkflow or the core session or the ZPT do something.
Plenty of example uses. I think they might call them case studies or
something to that effect.



 Thanks,
 -Jimbo

___
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] Name space in a Script (python)

2001-06-06 Thread Jeff



Hi all,
I'm trying to get variables from the name space in 
a python script without much luck... 
I think I am missing something very simple, but 
after hours of searching I'm at wits end.

This is what I am trying:
A DTML document has several properties defined on 
it.
It calls a python script that needs to access these 
properties.

No matter what I try, I can not get the properties 
from the calling DTML document in the python script...
What am I missing?

Thanks,
Jeff


Re: [Zope-dev] Name space in a Script (python)

2001-06-06 Thread Casey Duncan

--- Jeff [EMAIL PROTECTED] wrote:
 Hi all,
 I'm trying to get variables from the name space in a
 python script without much luck... 
 I think I am missing something very simple, but
 after hours of searching I'm at wits end.
 
 This is what I am trying:
 A DTML document has several properties defined on
 it.
 It calls a python script that needs to access these
 properties.
 
 No matter what I try, I can not get the properties
 from the calling DTML document in the python
 script...
 What am I missing?
 
 Thanks,
 Jeff
 

This will depend on how the Python script is called,
my recommendation would be to call the script in the
context of the DTML document like in the URL:

http://myserver/DTMLDoc/pyScript

Then the DTML Document would be accessed through
context as in:

context.title

Otherwise, you would have to access it by traversing
the attributes of it's parent folders as in:

doc = context.folder.subfolder.DTMLDoc
doc.title

hth,


=
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`-

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

___
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] Request for a Pluggin Index (NameIndex)

2001-06-06 Thread ender

On Monday 04 June 2001 16:55, Andreas Jung wrote:
Looks like you should write your own index type. Zope 2.4
comes with an PlugableIndex interface to allow third-party
indexes to be integrated into the Catalog.

this brings up an interesting question of what is the best way to register a 
new plugindex thats distributed with a product. Glancing over the cvs logs it 
looks as though plugin indexes are arranged to be the first product installed 
in Application.py. Given that what is the suggested method for registering a 
new plugin index?

Kapil


Andreas
- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 04, 2001 4:05 PM
Subject: [Zope-dev] Request for a Pluggin Index (NameIndex)

 Hi,

 If anyone's got the time or fancies a challenge, could they write an
 index that behaves as follows:

 Indexed values:
 1) C.J.Withers
 2) Chris Withers
 3) C Petrilli
 4) Christopher McDonough

 search result
 C  1,2,3,4
 C.J.Withers1
 c.j.Withers1
 withers mcdonough  1,2,4
 Chris  2,4
 Christo4

 I think the basic rules are:
 - split on whitespace and punctuation (not accentuated characters and the
 like ;-)
 - index each remaining name part
 - when searching, return all records where any of the name parts match
 something like:
 string.find(name_part,search_expression)

 ...oh yeah, and do it blindingly quickly ;-)

 This would be really useful for the Creator dublin core field and
 anywhere you're searching for someone's name. The CMF could benefit from
 it and

would

 eliminate the phrase next to the Creator field which has haunted me from
 Squishdot:

  Note that you must enter their username exactly. 

 cheers,

 Chris



 ___
 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 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 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] A simple dtml-if question...

2001-06-06 Thread Jeff Nielsen / UgoFast

Thanks Christian, but it didn't work. I went with the long way:

dtml-if expr=LoginResults=='Pass'
  dtml-if expr=PATH_INFO=='/Maintain/Results'
Valid response
  dtml-else
False response
  /dtml-if
dtml-else
False response
/dtml-if

Jeff

-Original Message-
From: Christian Theune [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 1:05 AM
To: Jeff Nielsen / UgoFast
Subject: Re: [Zope-dev] A simple dtml-if question...



 dtml-if expr=LoginResults=='Pass' .and. expr=PATH_INFO=='/'

hmm ... just guessing:

dtml-if expr=( LoginResults=='adsf'  PATH_INFO=='/')

Think so: It has to be a complete boolean expression .. so try to
combine boolean operators ...
Tell me if it worked ... :)

--
Christian Theune - [EMAIL PROTECTED]
gocept gmbh  co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,map(lambda
x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))


___
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] A simple dtml-if question...

2001-06-06 Thread Jeff Nielsen / UgoFast

Thanks Eric, I tried it and it didn't work. I went with the long way:

dtml-if expr=LoginResults=='Pass'
  dtml-if expr=PATH_INFO=='/Maintain/Results'
Valid response
  dtml-else
False response
  /dtml-if
dtml-else
False response
/dtml-if

Jeff

-Original Message-
From: E. Seifert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 2:02 AM
To: Jeff Nielsen / UgoFast
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope-dev] A simple dtml-if question...


Hi Jeff,

Jeff Nielsen wrote:
 How do I construct a dtml-if statement with two conditions joined by and
 logic? I want to do something like this:

 dtml-if expr=LoginResults=='Pass' .and. expr=PATH_INFO=='/'

Did you try
dtml-if expr=LoginResults=='Pass' and PATH_INFO=='/'

Regards
Eric




___
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] Re: [Zope] 60GB Data.fs?

2001-06-06 Thread Toby Dickenson

On Wed, 6 Jun 2001 11:57:18 +0800, Bjorn Stabell [EMAIL PROTECTED]
wrote:

I know we'll have to play with cacheing as well, and as I see there are
these options:

- Using StandardCacheManagers to cache pages (using, e.g., Squid as an
HTTP accelerator)

StandardCacheManager's HTTP implementation is easy to use, but a
little simplistic. You can achieve more (with only a little effort) by
handling the caching headers yourself. 


Toby Dickenson
[EMAIL PROTECTED]

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