[Zope-dev] Re: [Zope] Folderish Objects and their contained objects

2000-06-13 Thread Shalabh Chaturvedi

Hi Stephan,

You might want to look at the LocalFS product code:
http://www.zope.org/Members/jfarr/Products/LocalFS

It makes the os filesystem objects (files and directories) available through
zope. The way I understand it, what you want to do is very similar, except go
to a database instead of the filesystem.

HTH,
Shalabh

- Original Message -
From: Stephan Richter <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 14, 2000 7:44 AM
Subject: [Zope] Folderish Objects and their contained objects


> Hello everyone,
>
> I am writing a folderish class (in Python) that gets its objects from a
> database using SQL. I want to call the object as follows:
>
> WEBURL/FolderishClassInstance/ObjectID
>
> What needs to be done? The Folderish class should contain something like a
> getObject class that is automatically called when an ObjectID is passed.
> The getObject method then executes a SQL statement getting the object from
> the DB and does an R2O (relational to object) mapping, which is trivial.
>
> So what am I asking? Is there such a method already defined, that gets an
> object from a folderish object? What is its name, so I can redefine it? I
> found two potential methods called __getitem__ and _getObj in the Zope
> code. Is it one of them?
> That let's me ask: How does the URL traversal get objects inside other
objects?
>
> Right now I am developing that Product for a specific purpose, but I see
> great potential in generalizing it, so that all types of Zope objects can
> be saved in a database table. This would be different from the current
> SQLStorage product though, since it does not save pickle files in the DB,
> but the actual values with their correct type, which would make it much
faster.
>
> Regards,
> Stephan
> --
> Stephan Richter
> CBU - Physics and Chemistry
> Web2k - Web Design/Development & Technical Project Management
>
>
> ___
> 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-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] Problem importing Membership alpha

2000-06-13 Thread Bill Anderson

By any chance is this for Zope 2.2?
(Traceback didn't reveal much of anything, FWICS)

8<===
Zope Error
Zope has encountered an error while publishing this resource. 
Error Type: ImportError
Error Value: No module named Owned

___
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] Re: [ZCommerce] EMarket breaks 2.2.0b1

2000-06-13 Thread Bill Anderson

"R. David Murray" wrote:
> 
> On Tue, 13 Jun 2000, Bill Anderson wrote:
> > What do you mean 'breaks' it?
> > Does it render the right frame unusable by any chance?
> 
> Pretty much.  The right pane gets the import/export tab instead
> of the contents tab.  You can still navigate by going directly
> to the manage_main URL (it is manage_workspace that is broken,
> apparently).  Even odder, though, you can get right into a
> view of the root folder contents without authenticating if
> you access the root manage_main URL directly.  That's about
> as much experimenting as I've done.
> 
> --RDM


I got this with a snapshot of that other zcommerce product (e-tailer?,
IIRC). That's why I asked. Likewise, that's the limit of the exploring I
did. :/

___
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] Re: [ZCommerce] EMarket breaks 2.2.0b1

2000-06-13 Thread R. David Murray

On Tue, 13 Jun 2000, Bill Anderson wrote:
> What do you mean 'breaks' it?
> Does it render the right frame unusable by any chance?

Pretty much.  The right pane gets the import/export tab instead
of the contents tab.  You can still navigate by going directly
to the manage_main URL (it is manage_workspace that is broken,
apparently).  Even odder, though, you can get right into a 
view of the root folder contents without authenticating if
you access the root manage_main URL directly.  That's about
as much experimenting as I've done.

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




[Zope-dev] Client.py bug for ZScheduler

2000-06-13 Thread Loren Stafford

A bug that affects ZScheduler was reported (with fix) some time ago at...

http://classic.zope.org:8080/Collector/1112/view

Any chance of getting this resolved before Zope version 2.2 is finalized?

-- Thanks
-- Loren



___
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: [ZCommerce] EMarket breaks 2.2.0b1

2000-06-13 Thread Bill Anderson

"R. David Murray" wrote:
> 
> I was trying to test my ZCatalog bug against 2.2.0b1.  My test
> case was, naturally, in the EMarket stuff I've been working on.
> So I installed EMarket.  I then spent a while being puzzled by
> how the management interface of 2.2.0b1 was behaving (as those
> on the IRC can attest).  I have figured out that EMarket somehow
> breaks the 2.2.0b1 management interface if you install it.
> I'm leaving on vacation for a few days, so I won't have time
> to look in to this until next week.

What do you mean 'breaks' it?
Does it render the right frame unusable by any chance?

___
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] Folderish Objects and their contained objects

2000-06-13 Thread R. David Murray

On Tue, 13 Jun 2000, Stephan Richter wrote:
> Right now I am developing that Product for a specific purpose, but I see 
> great potential in generalizing it, so that all types of Zope objects can 
> be saved in a database table. This would be different from the current 
> SQLStorage product though, since it does not save pickle files in the DB, 
> but the actual values with their correct type, which would make it much faster.
> 

Sounds like you ought to look at ZPatterns for a different approach
to solving the same problem, and at the recently announced
Traversable mixin (may have been renamed) to solve your immediate
problem.

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




[Zope-dev] EMarket breaks 2.2.0b1

2000-06-13 Thread R. David Murray

I was trying to test my ZCatalog bug against 2.2.0b1.  My test
case was, naturally, in the EMarket stuff I've been working on.
So I installed EMarket.  I then spent a while being puzzled by
how the management interface of 2.2.0b1 was behaving (as those
on the IRC can attest).  I have figured out that EMarket somehow
breaks the 2.2.0b1 management interface if you install it.
I'm leaving on vacation for a few days, so I won't have time
to look in to this until next week. 

(NB: just in case I checked this with the previous version of
EMarket, the one without my additions, and it has the same
broken behavior).

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




[Zope-dev] Folderish Objects and their contained objects

2000-06-13 Thread Stephan Richter

Hello everyone,

I am writing a folderish class (in Python) that gets its objects from a 
database using SQL. I want to call the object as follows:

WEBURL/FolderishClassInstance/ObjectID

What needs to be done? The Folderish class should contain something like a 
getObject class that is automatically called when an ObjectID is passed. 
The getObject method then executes a SQL statement getting the object from 
the DB and does an R2O (relational to object) mapping, which is trivial.

So what am I asking? Is there such a method already defined, that gets an 
object from a folderish object? What is its name, so I can redefine it? I 
found two potential methods called __getitem__ and _getObj in the Zope 
code. Is it one of them?
That let's me ask: How does the URL traversal get objects inside other objects?

Right now I am developing that Product for a specific purpose, but I see 
great potential in generalizing it, so that all types of Zope objects can 
be saved in a database table. This would be different from the current 
SQLStorage product though, since it does not save pickle files in the DB, 
but the actual values with their correct type, which would make it much faster.

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development & Technical Project Management


___
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-Annce] Zope 2.2 beta 1 released (BIG MISTAKE)

2000-06-13 Thread Pete Kazmier

Oh my ... I apologize in advance for my this great blunder.  The last
message was SUPPOSED to be sent to a personal friend.  I'm very
embarassed and would like to apologize if I have offended anyone with
my foul language.

I'm very very very sorry.

On Mon, Jun 12, 2000 at 05:36:50PM -0400, Brian Lloyd wrote:
> Zope 2.2.0 beta 1 has been released - you can download it from
> Zope.org:
> http://www.zope.org/Products/Zope/2.2.0b1/
> 
> 
> This release contains refinements to the new ownership model as 
> well as better undo management and many bug fixes. For more 
> information, see:
> 
> http://www.zope.org/Products/Zope/2.2.0b1/CHANGES.txt
> 
> If you are still using a 2.1.x version of Zope, be sure to 
> see the document 
> http://www.zope.org/Products/Zope/2.2.0b1/upgrading_to_220
> 
> for information on the recent changes to the Zope security model 
> and other upgrade information.
> 
> 
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909  
> Digital Creations  http://www.digicool.com 
> 
> 
> 
> 
> ___
> Zope-Announce maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-announce
>No cross posts or HTML encoding!
> (Related lists - 
>  Users: http://lists.zope.org/mailman/listinfo/zope
>  Developer: http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Peter Kazmier http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

___
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-Annce] Zope 2.2 beta 1 released

2000-06-13 Thread Pete Kazmier

Jeremy,

I FUCKING hate the AIRPORT installer!!

Every fucking time I go to upgrade this STUPID FUCKING piece of shit
software I get a FUCKING error.  Its gotta be the most aggravating
thing I've come across with these macs. 

Why the FUCK does my iBook not work anymore?  I downloaded the airport
software to the iBook, installed it, then rebooted, but guess what?
No airport connection!  Guess again, can't open any of the airport
control panels! 

Before I fuck up my iMac, do you have any ideas on how to fix it?

Thanks,
Pete


On Mon, Jun 12, 2000 at 05:36:50PM -0400, Brian Lloyd wrote:
> Zope 2.2.0 beta 1 has been released - you can download it from
> Zope.org:
> http://www.zope.org/Products/Zope/2.2.0b1/
> 
> 
> This release contains refinements to the new ownership model as 
> well as better undo management and many bug fixes. For more 
> information, see:
> 
> http://www.zope.org/Products/Zope/2.2.0b1/CHANGES.txt
> 
> If you are still using a 2.1.x version of Zope, be sure to 
> see the document 
> http://www.zope.org/Products/Zope/2.2.0b1/upgrading_to_220
> 
> for information on the recent changes to the Zope security model 
> and other upgrade information.
> 
> 
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909  
> Digital Creations  http://www.digicool.com 
> 
> 
> 
> 
> ___
> Zope-Announce maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-announce
>No cross posts or HTML encoding!
> (Related lists - 
>  Users: http://lists.zope.org/mailman/listinfo/zope
>  Developer: http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Peter Kazmier http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

___
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: ZScheduler alpha 0.0.5

2000-06-13 Thread Loren Stafford

I found some time to do a little work on ZScheduler. The result is alpha
version 0.0.5. You can get it at
http://www.zope.org/Members/lstaffor/ZScheduler.

It appears fully functional on Win98 with Zope versions 2.1.4 and 2.1.6
(with patch to Client.py). But this is still alpha software, so be careful
where you install it.

I've made no changes to make it work on Unix. (I don't have a Unix
development environment at my disposal.) Prior versions caused Zope to
become inoperative while installed. I would appreciate someone's confirming
whether 0.0.5 doesn't work on Unix either.

-- Thanks
-- Loren



___
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] CVS empty Extensions directory

2000-06-13 Thread Robin Becker

In article <[EMAIL PROTECTED]>
, Brian Lloyd <[EMAIL PROTECTED]> writes
>> I keep getting complaints about a missing CVS directory inside
>> Extensions (a directory recently added). Can we either add 
>> the null CVS
>> dir or remove Extensions from the CVS tree?
>> -- 
>> Robin Becker
>
>It was added on purpose - did you do a cvs update -d ?
>
>
>Brian Lloyd[EMAIL PROTECTED]
>Software Engineer  540.371.6909  
>Digital Creations  http://www.digicool.com 
>
...
yes I do cvs -z7 upd -P -A -d
It complains about README.txt being in the way. I fixed this now by
moving Extensions out of the way and then copying my stuff therein after
the update.
-- 
Robin Becker

___
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] ZCatalog text index search bugs?

2000-06-13 Thread Michel Pelletier

Dieter Maurer wrote:
> 
> R. David Murray writes:
>  > I am very confused.
>  >
>  >
>  >   The TextIndex search does an AND, not an OR, of the search
>  >   words: if you ask it to find "foo bar", it returns only
>  >   objects matching *both* "foo" and "bar", rather than object
>  >   matching *either* "foo" or "bar" (which Jason expected).
> This is definitely not the case!
> 
>  > Indeed, if you do a search that includes a word that is not on an
>  > item, the item is not returned.  So how is that working?
> That is a bug I discovered and analysed yesterday.
>   The index lookup is done by "index[word]". This raises
>   a KeyError exception, if "word" is not in the index. The exception
>   aborts the search; it returns without hit.
>   The behaviour is correct for "and" but of cause
>   wrong for "or".

This is fixed in 2.2b1, whe index not finding the word should not raise
an exception anymore and the search should not abort.  Can you confirm
that when you get a chance?
 
-- 

-Michel Pelletier

http://www.zope.org/Members/michel/MyWiki

Visit WikiCentral for the latest Zen:

http://www.zope.org/Members/WikiCentral

___
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] ZCatalog text index search bugs?

2000-06-13 Thread Dieter Maurer

R. David Murray writes:
 > I am very confused.
 > 
 > I'm looking at the SearchIndex source under 2.1.4 (2.1.6 seems to be
 > the same).  In Lexicon.py the 'query' method defines the default_operator
 > to be 'or'.  I can't see that TextIndex overrides this when it calls
 > it.
 > 
 > But the response to PR 1141 (against 2.1.6) in the collector says:
 > 
 >   The TextIndex search does an AND, not an OR, of the search
 >   words: if you ask it to find "foo bar", it returns only
 >   objects matching *both* "foo" and "bar", rather than object
 >   matching *either* "foo" or "bar" (which Jason expected).
This is definitely not the case!

 > Indeed, if you do a search that includes a word that is not on an
 > item, the item is not returned.  So how is that working?
That is a bug I discovered and analysed yesterday.
  The index lookup is done by "index[word]". This raises
  a KeyError exception, if "word" is not in the index. The exception
  aborts the search; it returns without hit.
  The behaviour is correct for "and" but of cause
  wrong for "or".

After I had gotten several complaints about reporting bugs
already fixed in CVS, I checked out the CVS today.
The relevant code has undergone quite a few modifications.
I will take some time to see, if the bug remains.
Today, it is already too late. Maybe, I will see tomorrow.

 > 

 > So I think 'or' searching is broken, and that text indexes being
 > a default 'and' search is just an accident .
You are right!

 > 

 > (*) I recall reading that the 'near' operator, which is used if
 > the splitter breaks up a word in the search string, is not really
 > supported and that the 'and' operator is used instead.)
The "near" operator in 2.1.6 raises an exception. This means,
no hits.

I have posted a patch some days ago that fixes near searches,
except for objects that can not be stored in ZODB like
LocalFS objects. For such objects, it uses an "and" to
approximate "near".

 > 

 > If I can reproduce this in 2.2.0b I'll file it in the collector.
I will watch any posts from you.
It is not necessary that we do the same work.


Dieter

___
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] More useful CatalogAware class?

2000-06-13 Thread Dieter Maurer

Martijn Pieters writes:
 > On Mon, Jun 12, 2000 at 01:12:33PM -0700, Michel Pelletier wrote:
 > > ... CatalogAware successor ...
 > 
 > Very interesting indeed.
 > 
 > Is the CatalogAware mixin in the future going to move towards Tres' Observable
 > pattern?
 > 
 > After initial notification of the set of catalogs (or other interested
 > objects, or a generic notification manager) at creation time, the object will
 > only have to call the 'notify' method, with the appropriate event name. In
 > fact, I think all stock Zope objects should in the nearby future use the
 > Observable pattern to advertise events like this.

If one views "creation" and "deletion" as operations on the container
rather than the element then the observer pattern can be used
for creation and deletion, too.
Of cause, the notification should contain a reference to
the created/deleted object.


Dieter

___
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] Problem with XML in Zope 220b1

2000-06-13 Thread Brian Lloyd

> I have a lot of Chinese XML-files stored in Zope. The 
> internal encoding is
> UTF-8. Everything was fine in 214, 216 and 220a1. Now with 220b1, some
> characters are (apparently?) randomly turned into lt;, gt; 
> and the like. Now
> this looks like some unwanted HTML escaping, but the leading 
> '&' is missing
> and the characters are definitely all in the range greater 
> 127 (this is a
> property of UTF8), so there is no direct relationship to the 
> codepoints of
> >, < and co.
> 
> Any ideas what could have gone wrong here?

Yes - during the alpha period we got a bug report concerning the fact 
that Netscape browsers honor the windows "extended Latin-1" characters 
\213 and \233 (which are < and >). That means that if you don't filter 
those as a part of html_quote 'ing then some Netscape versions are 
open to the same sort of script-kiddie attacks that they would be if 
the HTML was not quoted at all :(

I'm not quite sure what the right answer is here. How are you using
the html_quote format in your application?


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
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 )




Re: [Zope-dev] package descriptions

2000-06-13 Thread Phillip J. Eby

At 12:06 PM 6/13/00 -0600, ethan mindlace fremen wrote:
>
>Ok, lighter grey & less blue bars.  Also simply asking for more products will
>hide the DC products, as opposed to having to sort (which still works)
>

Whitespace between entries, please, and an indent of the description would
be nice.  It's still really hard to visually parse where one item begins
and the previous one ends.  Bolding and/or increasing font size of the
product titles might be helpful too.


___
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] Document

2000-06-13 Thread Matthew T. Kromer

"R. David Murray" wrote:
> 
> On Mon, 12 Jun 2000 [EMAIL PROTECTED] wrote:
> > who can tell me where i can get documents or descriptions about 
>Btree,Intset,IOBtree,OIBtree module
> 
> I suspect that the only documentation that you are going to
> find is the source code .

I can probably answer specific questions; I'm monkeying with an varation
that should play better in larger environments.  BTree is a broad tree
similar to a real B-tree (but it isn't height balanced and the nodes
aren't fixed size).  It can get compiled and built as a couple of
variants optimized for holding integer keys or values as opposed to the
generic object key and object value.

The common use might be to [untested]:

import ZODB
import BTree
import random

bt = BTree.BTree()
for i in range(0,10):
r = random.randint(0,10)
bt[r] = i

print "Items 5000-5100"
print list(bt.items(5000,5100))

Since this example uses integer keys and integer values the BTree form
is overkill, since it's storing integer Objects rather than just the
integers in the tree.

The BTrees play with the persistence engine and form the foundation of
most of the cataloging type operations in Zope; since you could, for
example, store a BTree with each index key being a keyword and each
value being a list of objects containing that keyword.

___
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] Document

2000-06-13 Thread R. David Murray

On Mon, 12 Jun 2000 [EMAIL PROTECTED] wrote:
> who can tell me where i can get documents or descriptions about 
>Btree,Intset,IOBtree,OIBtree module 

I suspect that the only documentation that you are going to
find is the source code .

--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] package descriptions

2000-06-13 Thread ethan mindlace fremen

Shane Hathaway wrote:
> 
> "LEE, Kwan Soo" wrote:
> >
> > Cool. Now it's more helpful. ... However, sorry to say, I can't read well the 
>titles of the products. Would you make the grey lighter?
> >
> 
> I would also remove the numerous blue bars and just put them at the top
> and bottom of each section... but that's just me.

Ok, lighter grey & less blue bars.  Also simply asking for more products will
hide the DC products, as opposed to having to sort (which still works)

~ethan

___
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] package descriptions

2000-06-13 Thread Shane Hathaway

"LEE, Kwan Soo" wrote:
> 
> Cool. Now it's more helpful. ... However, sorry to say, I can't read well the titles 
>of the products. Would you make the grey lighter?
> 

I would also remove the numerous blue bars and just put them at the top
and bottom of each section... but that's just me.

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] Zope`s global.asa

2000-06-13 Thread R. David Murray

On Tue, 13 Jun 2000, Thomas Weholt wrote:
> Is there a global.asa counterpart in Zope, a place to put stuff that is or
> should be accessable in the entire site, like database-connections etc.? I
> was forced ( it was terrible, just terrible I tell ya!! ) to work in ASP on
> MS IIS ( it just gets worse ) and the global.asa didn`t seem like a bad
> idea. 

I don't know exactly what a global.asa does, but I'm guessing from
your description that in Zope the equivalent is the root folder.
This has advantages and one big disadvantage: root folder clutter.
Shane has promised to eventually re-release his Transparent Folders
product which will allow us to fix the clutter problem...

Basically, anything you put in the root folder can be referenced
by any object further down in the hierarchy, which will acquire
it in its namespace through the magic of acquisition.

--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] package descriptions

2000-06-13 Thread LEE, Kwan Soo

Cool. Now it's more helpful. ... However, sorry to say, I can't read well the titles 
of the products. Would you make the grey lighter?

LEE Kwan Soo

___
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] CVS empty Extensions directory

2000-06-13 Thread Brian Lloyd

> I keep getting complaints about a missing CVS directory inside
> Extensions (a directory recently added). Can we either add 
> the null CVS
> dir or remove Extensions from the CVS tree?
> -- 
> Robin Becker

It was added on purpose - did you do a cvs update -d ?


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
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] package descriptions

2000-06-13 Thread ethan mindlace fremen

Zopatistas!

I have recently changed the product page at http://www.zope.org/Products .
If you would be so kind as to change your product description so that the first
line contains a meaningful description of your product in plain text, I would
appreciate it.

Thanks,

ethan mindlace fremen
Zopatista Community Liason

___
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] CVS empty Extensions directory

2000-06-13 Thread Robin Becker

I keep getting complaints about a missing CVS directory inside
Extensions (a directory recently added). Can we either add the null CVS
dir or remove Extensions from the CVS tree?
-- 
Robin Becker

___
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] Zope`s global.asa

2000-06-13 Thread Thomas Weholt

Hi,

This might be a stupid question, but I`ll remain stupid at least until
someone answers so ...

Is there a global.asa counterpart in Zope, a place to put stuff that is or
should be accessable in the entire site, like database-connections etc.? I
was forced ( it was terrible, just terrible I tell ya!! ) to work in ASP on
MS IIS ( it just gets worse ) and the global.asa didn`t seem like a bad
idea. 

But as mentioned earlier, this might be in Zope allready.

Thomas

___
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] Zope 2.2 beta 1 released

2000-06-13 Thread Brian Lloyd

> Trying to run the b1 on Windows, I get the following:
> 
> C:\Program Files\Z220b1>"C:\Program 
> Files\Z220b1\bin\python.exe" "C:\Program
> Fil
> es\Z220b1\z2.py" -D
> Traceback (innermost last):
>   File "C:\Program Files\Z220b1\z2.py", line 524, in ?
> import ZServer
>   File "C:\Program Files\Z220b1\ZServer\__init__.py", line 87, in ?
> from medusa import max_sockets, asyncore
> ImportError: No module named medusa
> 
> 
> Throwing an empty __init__.py file into $Zope/ZServer/medusa 
> solved the
> problem for me.

Ack - apparently something in the win installer thinks that empty
files are not worth preserving :( Note that I've tweaked this and
re-uploaded the win32 beta. If you've already downloaded it, the 
above solution is fine (just create an empty file named __init__.py 
in your ZServer/medusa directory).

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
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 )




Re: [Zope-dev] Request for comments: Directory storage

2000-06-13 Thread Petru Paler

> > It would be great if you could do it, but beware that you will be
> > benchmarking a lot of overhead if you only plan to measure storage
> > performance. Why not use ZODB directly ?
> 
> If I talk HTTP, it measures things fully - Python's interpreter lock
> will mean a storage system written in python will benchmark better
> without having to compete with ZServer, and vice versa for storage
> systems with non-pythonic bits.

Yes, you are right.

> > What filesystem does that use ?
> 
> No idea :-) Something log based that is very fast and handles huge
> directories happily. It also appears that another member of this
> list has an EMC Symmetrix box to test on, which I believe is the next (and 
> highest) level up from a Netapp.

Mmmm... I heard that Network Appliance hired a couple of the SGI engineers
that designed XFS ?

> I've attached a prerelease alpha of zouch.py for giggles. Not even a
> command line yet, so you will need to edit some code at the bottom.
> The current settings generate about 360 directories and about 36000 files,
> and proceeds to make about 18 reads. This bloated by test ZODB
> to just over 200MB and took about 2.6 hours attacking my development Zope
> server from another host on my LAN.

Cool :)
Thanks for writing this, it will be very useful for benchmarking.

-Petru


___
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] Problem with XML in Zope 220b1

2000-06-13 Thread Christian Wittern

Hello Fellow Zopers,

I just downloaded Zope 220b1 and got it running. Now I run into a nasty
problem:

I have a lot of Chinese XML-files stored in Zope. The internal encoding is
UTF-8. Everything was fine in 214, 216 and 220a1. Now with 220b1, some
characters are (apparently?) randomly turned into lt;, gt; and the like. Now
this looks like some unwanted HTML escaping, but the leading '&' is missing
and the characters are definitely all in the range greater 127 (this is a
property of UTF8), so there is no direct relationship to the codepoints of
>, < and co.

Any ideas what could have gone wrong here?

All the best,

Christian


Dr. Christian Wittern
Chung-Hwa Institute of Buddhist Studies
276, Kuang Ming Road, Peitou 112
Taipei, TAIWAN
Tel. +886-2-2892-6111#65, Email [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] RE: [Zope] Zope 2.2 beta 1 released

2000-06-13 Thread Christian Wittern

Trying to run the b1 on Windows, I get the following:

C:\Program Files\Z220b1>"C:\Program Files\Z220b1\bin\python.exe" "C:\Program
Fil
es\Z220b1\z2.py" -D
Traceback (innermost last):
  File "C:\Program Files\Z220b1\z2.py", line 524, in ?
import ZServer
  File "C:\Program Files\Z220b1\ZServer\__init__.py", line 87, in ?
from medusa import max_sockets, asyncore
ImportError: No module named medusa


Throwing an empty __init__.py file into $Zope/ZServer/medusa solved the
problem for me.

Zope 220b1 looks great!


Christian

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brian
> Lloyd
> Sent: Tuesday, June 13, 2000 5:37 AM
> To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> Subject: [Zope] Zope 2.2 beta 1 released
>
>
> Zope 2.2.0 beta 1 has been released - you can download it from
> Zope.org:
> http://www.zope.org/Products/Zope/2.2.0b1/
>
>
> This release contains refinements to the new ownership model as
> well as better undo management and many bug fixes. For more
> information, see:
>
> http://www.zope.org/Products/Zope/2.2.0b1/CHANGES.txt
>
> If you are still using a 2.1.x version of Zope, be sure to
> see the document
> http://www.zope.org/Products/Zope/2.2.0b1/upgrading_to_220
>
> for information on the recent changes to the Zope security model
> and other upgrade information.
>
>
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909
> Digital Creations  http://www.digicool.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-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 )