[Zope] ZClass acting up?

2000-05-22 Thread Erik Enge

Hi,

I have discovered this extremely irritating "feature" with ZClasses.

Sorry for this long and rather ugly explanation, but I don't know what
the problem is, so it has to be like this:

Add test_product product in Control Panel - Product Management
In test_product:
Add a test_folder zclass with object manager as its base class
In test_folder:
Add test_project zclass with test_folder as its base class

(be sure to enter all factories and press "change")

Now, enter your Zope tree (http://localhost/, for example) and do:

Add a test_folder
In test_folder:
Add a test_project
In test_project:
Add a test_project

The point here being to demonstrate that you can add
recursively test_projects. Which is nice, I love it.. semantics
looking nice and all :-).

Then, go back to the test_product, and in test_project add a Z Class
thats called test_projectteam, make object manager the base class.

And finally, enter the test_folder you created earlier and add a
test_project. Enter this project... now what do you see? Thats right,
your not able to add test_projects recursively any longer, but you can add
project_teams (which doesn't really make me all that happy).

Why is this? I want to be able to structure projects into sub projects
and be able to divide the project teams working on the different
projects. Does anyone know why this happens? And possibly how I can
achieve what I want?

-- 
 Erik Enge

___
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 acting up?

2000-05-22 Thread Erik Enge

"Kevin Dangoor" [EMAIL PROTECTED] writes:

 This seems like odd behavior to me. Did you check your Subobjects tab to
 make sure that the appropriate subobjects are still selected?

There is no way to select a Z Class that is a child of another Z
Class in the subobject list.  Should I be able to do that? Seems to
that this was never possible.  All I can select is test_product, but
that isn't what I want.  Got a clue?  Is it a bug or functionality
that just isn't supposed to be there?

Did you try it at your installation? With the same result? 

(I run Zope 2.1.6 on Linux if anyone wondered :-)

-- 
 Erik Enge


___
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 acting up?

2000-05-23 Thread Erik Enge

Tres Seaver [EMAIL PROTECTED] writes:

 If you fill out the ID and press 'Add', le voilà!

Yeah, your right! But that still means I need to do
some hacking about, and me and my semantics does not 
like that ;-)

 (Actually it looks like a duplicate of #811).

How can I see number 811, it just shows up to 600 and something?

___
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] Zope jobs.

2000-06-21 Thread Erik Enge


Hi,

I was wondering.. Is there a place where I can post
Zope job offerings?  Shouldn't there be such a place
on zope.org?

(btw, anyone in England - or other parts of this planet - 
interested in work, please e-mail me)

Thanks,

 Erik Enge
 EMM Solutions



___
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] Zope jobs.

2000-06-21 Thread Erik Enge

On Wed, 21 Jun 2000, Patrick Lewis wrote:

 Funny you should mention this. I have mocked up a job board at:
 
 www.zope.org/Members/plewis/job_board

Let's hope they're not _too_ slow ;-).

 But, if you would like to privately email me with the
 details, I would happily post it in the meantime. 

Whats the use if you haven't announced it yet (i.e. no one
is looking ;-)?



___
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] Zope jobs.

2000-06-22 Thread Erik Enge

On Wed, 21 Jun 2000, ethan mindlace fremen wrote:

 So I ask for your patience: I will be moving on this soon.

Great!  Be sure to let us know :-).


___
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 counting?

2000-06-27 Thread Erik Enge


On Tue, 27 Jun 2000, Alexander Limi wrote:

 Is there an easy way to count the number of occurences of a certain meta
 type in a Catalog? E.g: I want a dtml snippet that outputs:

Couldn't you do:

dtml-call "REQUEST.set('counter', 0)"

dtml-in "objectValues('DTML Document')"
  dtml-call "REQUEST.set('counter', counter+1)"
/dtml-in

This folder (dtml-var title_or_id) has dtml-var counter
number of objects with the meta type DTML Document.




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

2000-06-28 Thread Erik Enge

On Wed, 28 Jun 2000, Chris Withers wrote:

 I'd say it's definitely a problem if you have to stop zope to do a
 backup :(

How would you do it?  In Unix you can't check if the file is being
read to (can you?), so if you start backing up a 2GB Data.fs file
and then the Zope process starts writing to it, you'll have garbage :-).

Does ZEO solve this?


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

2000-06-28 Thread Erik Enge

On Wed, 28 Jun 2000, Oleg Broytmann wrote:

 On Wed, 28 Jun 2000, Chris Withers wrote:
 
  So, how should we backup data.fs without stopping Zope and ensuring the
  integrity of our data all the while?
 
Pack and backup Data.fs.old.

But what if the site is incredibly busy and transactions
are going on _all the time_?  And can you automate the 
Pack function?  (If I wanted to do it during the night
for example)


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

2000-06-29 Thread Erik Enge

On Thu, 29 Jun 2000, Chris Withers wrote:

 Hmm, about extending this so you have 'rotating data.fs files' in the
 same way you have rotating log files?

In general, yes :-).  Do you think it would be solving the right problem
the right way?

 Definitely, but I think it also needs to be solved for the normal Zope
 case as this is what most people will be running...

That's right.


___
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] Backing Up Zope (was: Re: [Zope] Data.fs.lock?)

2000-06-29 Thread Erik Enge

On Thu, 29 Jun 2000, Jeff K. Hoffman wrote:

 It is my understanding that the ZODB on disk is always in a consistent
 state; Jim has said, in the past, that you can simply make a copy of
 Data.fs, even while Zope is running, without problems.

But the Data.fs has to be updated sometimes.  And if you read from a file
that is changing, the integrity of your data isn't.  How can you make sure
that the file is not written to during a certain period of time?  You
can't?


___
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] Backing Up Zope (was: Re: [Zope] Data.fs.lock?)

2000-06-29 Thread Erik Enge

On Thu, 29 Jun 2000, Wilkinson Charlie E wrote:

 This would be consistent with "atomic updates."  What it means is
 that a transaction is not written to the Data.fs file until it has
 completed, and when it is finally written out, it's done as an
 atomic operation, i.e. at the system level it is a single write
 operation and nothing else happens on the system until it completes.

Brilliant!  No worries, then :-)

(by the way, loose the HTML)


___
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] SV: [Zope] urlquote?

2000-06-30 Thread Erik Enge

On Fri, 30 Jun 2000, Magnus Heino (Rivermen) wrote:

 Am I doing anything wrong? :-P

Are you using this within Zope?  Then you could do:

dtml-var the_variable url_quote

If I'm not mistaken, Zope also has sql_quote and html_quote.


___
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] Python Product Tutorial

2000-08-05 Thread Erik Enge

On Fri, 4 Aug 2000, Loren Stafford wrote:

 I don't know of any tutorial. ZScheduler creates a container (a subclass of
 Catalog in fact), so you might use that code as a starting point. It doesn't
 put other objects in the container, tho.

Thanks, but I'm really interested in how I would add other objects.  I
guess if I dig deep enough, I'll find it. :-)


___
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] REPOST: README.txt Tab

2000-08-05 Thread Erik Enge

On Fri, 4 Aug 2000 [EMAIL PROTECTED] wrote:

 I'll re-ask the question:
 
  How do I get the README tab to appear in a product?

In the Squishdot Product I discovered this:

Readme = Document('', __name__='')
Readme.__roles__ = None

This one seems to add a README tab.  If you have a README.txt file in your
Products directory it displays it.


___
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] Python Class trickyness

2000-08-08 Thread Erik Enge

[Andrew Kenneth Milton]

| This is easier than you might think:-

Hehe.  Thanks a lot! :)

___
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] Missing doc string

2000-08-22 Thread Erik Enge


G'day, fellow Zopistas.

I get

Missing doc string at: http://localhost/misc_/TravelAgent 

When I call

URL:http://localhost/misc_/TravelAgent/Folder_icon.gif

Anybody who know which doc string I'm missing?


___
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] Missing doc string

2000-08-22 Thread Erik Enge

[Erik Enge]

| Anybody who know which doc string I'm missing?

Yes.  I know, you lowlife.  You see, the misc_ isn't a tuple, it's a
dictionary - repeat after me: d i c t i o n a r y.  Got that now?

Sheesh...

;-)

___
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] Barcodes, magnetic cards, etc.

2000-08-22 Thread Erik Enge


Good morning, people.

I was wondering, can Zope interface to barcodes, magnetic cards
(e.g. credit cards) and other common shop-"accessories"?

Feedback is greatly appretiated :)


___
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] Barcodes, magnetic cards, etc.

2000-08-23 Thread Erik Enge

[Curtis Maloney]

| Well, I have used Zope with a Barcode scanner.  Since the scanner
| (as do most) work via the keyboard, AS a keyboard, there is really
| nothing special to do.

Ok, so it translates the barcodes to a string or what?

Which scanner was this?  Product, model type, etc.
 
| From what I can find (working for a company that sells barcode and
| mag stripe scanners) you should have little trouble finding either
| that will interface as a keyboard.

What is the mainstream format for the codes when the are scanned in?
 
| Have a better one,

I will - you too :)

___
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] Barcodes, magnetic cards, etc.

2000-08-23 Thread Erik Enge

[Curtis Maloney]

| On Wed, 23 Aug 2000, Erik Enge wrote:
|  What is the mainstream format for the codes when the are scanned in?
| 
| I don't understand what you mean.

Are the barcodes usually a collection of integers, characters, special
characters or what?

And, by the way, do you know if there exist a magnetic card scanner
that plugs in to the PS/2?  And if yes, which information would get
from such a card?  Just a number, or are there other possibilities?

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 )




[Zope] Zope.org is soooooo slow.

2000-08-31 Thread Erik Enge


Zope.org is slow as hell.  A couple of days a week at least.  It
doesn't exactly work in favor for Zope when I try to show of Zope.org
to friends, collegues or potential customers and the site won't even
respond.  Argh!

Why is it so slow?  Do something about it!

___
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] Zope.org is soooooo slow (not really)

2000-08-31 Thread Erik Enge

[J. Atwood]

| Umm.. what makes you say it is slow? It popped up just as fast as
| Microsoft.com and Apple.com this morning (with each page after even
| faster).

It _was_ slow. 
 
| Might be your connection. Certainly not slow from here (NYC, DSL)

No.  I check a zillion other sites; they were fast and responsive.

The Zope.org site is back up again now.  At one point, just before it
came back to life, it reported a Proxy error.

___
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] Zope.org Mirroring

2000-09-02 Thread Erik Enge

(sorry for jumping in here)

[Chris Withers]

| What to do? ;-)

It might not be interesting, but what I would really like is a
complete mirror of documentation and products up and running all the
time.  That could be done statically, even without Zope if it sucks
that much.  (Although, I can't see why it would in such a situation.)

___
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] Cut down on the Available Objects list.

2000-09-06 Thread Erik Enge


Hi, all.

When I create ZClasses I can make the Available Objects shrink to just
a couple of available objects via subclasses and so forth.  How would
I do this with a Python Class in a Python Zope Product?  (Let's say an
OFS.Folder.Folder class, which would normally could contain all
available objects.)

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] Zope and the GPL poison pill

2000-09-13 Thread Erik Enge

[Karl Anderson]

| In order to link/incorporate a GPL'd module, you have to be able to
| distribute the entire work under the GPL.
: 
| Therefore, assuming RMS is correct, GPL'd components can't be
| distributed as part of a Zope solution.
: 
| Is this correct?  If it is, the GPL isn't very appropriate for the
| license of a Zope product, becuase it's a packaging nightmare.

I'm not quite sure what you mean by a «module».  Is a module an
extension to the Zope application, or is it a Product that resides in
lib/python/Products?  I'm a bit confused, you use «component»,
«product» and «module».  Which is what?

And if it really is Products (as in lib/python/Products), does this
mean that if I make a GNU GPL licensed application for a client, I
can't actually distribute Zope with it?  I have to install them
separately?

___
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] FSF about Zope and GPL'ed components

2000-09-20 Thread Erik Enge

[Nils Kassube]

| From: [EMAIL PROTECTED] (Free Software Foundation) [Bradley M. Kuhn]
| 
| It sounds like you are building software that combines Zope and
| GPL'ed software to form a single, larger program.  In this case, the
| whole larger program falls under the terms of the GPL.

I don't exactly understand.  Does this mean that I can't use any
GPL-ed Products combined with Zope and distribute them?  For example,
I couldn't the use the GPL-ed CookieLess Session Management Product
with my application and legally distribute it with Zope?

Does this also mean that I can't make a complete application, released
under the GPL, and distribute it legally with Zope to my clients?  If
so, is there a way that this can be done legally, without relicensing
any of the "programs"?
 
| This is a real problem, since the license of Zope is incompatible
| with the GNU GPL.  This means you can't legally distribute the
| system.

But what is defined as distribution?  Can I install Zope on-site, then
install the GPL-ed application and it would be legal? 
  
| You cannot legally combined GPL'ed software with Zope.

Not at all?

| You'll need to rewrite the Zope part [...]

Sure, that's easy...  Wouldn't take me more than a century ;)

___
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] meta type?

2000-10-30 Thread Erik Enge

On Mon, 30 Oct 2000, Jason C. Leach wrote:

 Is that like 'Image' in the case of images, and Folder in the case of
 folders?

Yupp.


___
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] Almost Done.

2000-10-30 Thread Erik Enge

On Mon, 30 Oct 2000, Jason C. Leach wrote:

 hi,

Hi.
 
 How do I get a TinyTable to display it's contents?
 
 All I find in the docs is !--in# tablename-- and that does not
 seem to work for me, unles I am lacking a tag?

Try this:

dtml-in tablename 

(and next time, post the error message, Zope version and OS you are
running :-)


___
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] Upscaling of performance

2000-11-02 Thread Erik Enge

On Thu, 2 Nov 2000, J. Atwood wrote:

 On some good hardware it can handle about 100 Requests per second (8,640,000
 per day). 

Well, now.  That truly depends on what Zope would be doing.  Fire away a
couple of objectValues() and the process will kneel _a lot_ sooner.  Of
course, this you could solve with a context oriented Catalog, and moving
as much application logic as possible away from DTML (not that you should
put it there in the first place).
 
 Beyond that you need two things... ZEO and hardware.

And good programmers...

BonusFrust:  Zope actually crashed my Debian box yesterday, twice.  
(Indirectly or directly, I don't know, I'm looking into it.) 


___
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] Job offering - England

2000-11-09 Thread Erik Enge


Zopistas, wanna get paid?  :)

Zope/Python programmer wanted to work with one of our clients in
England.  

A team from Thingamy (URL:http://www.thingamy.com) have for some
months now been developing a Zope application for a client in
England.  The client's main work is resourcing (ie. matching candidates
and clients and typing up contracts). 

Our client has, of course, got access to the source code - and thus they
want to continue developing the application after they recieve it from
us. We need a person that can travel to their offices once a week, and
spend approximately 2 days a week continuing development of the
application (the amount of work depends highly on what our client wants
done).

The application is written in Python, the interface is in XHTML 1.0
STRICT.  You should be an experienced Python programmer, and should have
spent your time in the Zope source code :-).

I will take you through the source code, and will also be your contact
person when questions about the source code, class structure or anything
of that sort arrises.  It would be desirable if you could overlap with us
(ie. start coding one month before we stop, so there would be some feeling
of consitency - and it would also give you a great opporunity to ask
(nearly) all questions).

* Start date: within 2 months (room for discussion).
* Salary: up for discussion.

If this sounds interesting (or if you want to ask questions) please email
me.  (Please note that this is not a fulltime job, so it would be
benefitial if you lived near their offices and had access to other work
aswell.  Their offices are 40 minutes by train from Waterloo station.)

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] ID = somebody@someserver.com... ?

2000-11-09 Thread Erik Enge

On Thu, 9 Nov 2000, Thomas Søndergaard wrote:

 I am sorry about me being a newbie but can somebody help me with an 
 Email@dress as an ID?

I'm not sure I understand your problem, but couldn't you either use
string.replace() or dtml-var eadr url_quote?  


___
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 random key error

2000-11-10 Thread Erik Enge

On Fri, 10 Nov 2000, Bak @ kedai wrote:

 also, will iterating through catalog index faster than iterating through 
 ..say.. objectItems('meta-type')?

Much faster.  Much, much faster.  I tried an objectValues() on 2000 items
(in 3 different folder-type objects) and did various calculations on each
object, it took me 20 sec. to render the page.  On the same box the
Catalog return a search (much wider than the one on 2000 objects) on 15000
items (indexd, natuarally) within a second or two.

Hm.  I might be getting out on thin ice now, but I think it depends on
what you want to do with the objects you get back from your
iteration.  If you just are looking for simple attributes, the Catalog
should suffice, but it (the Catalog) might be slower if you are doing
something with the objects, since it has to fetch them first - and the
objectValues() returns the object.  I'm not sure about this, though, the
source code should help you a lot (I think objectValues() and
objectItems() and those alike are in lib/python/ObjectManager.py -
around line 350).

Come to think of it.  You did say objectItems(), and I've described the
objectValues().  I don't think you can compare the Catalog and
objectItems(), since objectItems() returns a list of (id,
subobject) tuples and thus gives you context - something the Catalog
cannot do (unless you hack it.. yeah Catalog wizards?).

I might be wrong though :)




___
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 do I set the Title property of a File object from aDTML method

2000-11-10 Thread Erik Enge

On 10 Nov 2000 [EMAIL PROTECTED] wrote:

 But I'm unable to set the Title property of a File object.  

Is it just the title property?  All the others you can fiddle around with?
Try manage_changeProperties() instead.  I know (from
lib/python/OFS/Image.py) that the File object has its own
manage_edit() method, you could try that one.




___
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] zope, worldpilot, IMAP, POP...

2000-12-21 Thread Erik Enge

[marc lindahl]

| This looks great, but it seems to assume pre-existing individual mail (POP
| or IMAP) accounts.  I'm stuck on, how to create new email accounts when
| creating zope memberships, and keep the email accounts sync'd with the zope
| memberships (username and password).

Well, I don't think it would be too much hassle to add some
administrative functionality to keep them in sync (albeit, to be 100%
percent sure will hurt a lot - I guess).  I'm guessing that Morten is
already working on this.

On another note, I seem to recall seeing a ZMailIn product somewhere,
which allows you to mail directly to a Zope instance.  I don't know
where I saw it, but if you searched for five minutes on Zope.org I'm
almost sure you would find it :-).  Anyway, that could probably rid
you having to think about having files on the filesystem in sync with
objects within Zope, don't know how GUM would talk with it, tough.

___
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] zope, worldpilot, IMAP, POP...

2000-12-21 Thread Erik Enge

[Morten W. Petersen]

| Yup.  The way that seems right is to proxy user-account creation through
| sudo (unix (linux?) only), thoughts / comments ?

Well, that probably depends on how you figure the administrator to
work.  I think I would've tried to abstract the whole notion about
«something under the hood» away from the administrator, and tried to
be clever when I added and delete users within Zope (that is, the code
being clever, not me).

I don't know.  You'll probably come up with something, as always :)

___
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] Job listings?

2000-12-21 Thread Erik Enge

[Jiva DeVoe]

| I don't see anything in the list charter about it, but I don't want
| to be rude.  Let me know!  Thanks!  :)

URL:http://www.zope.org/Members/plewis/job_board/index_html

Post the job there, although I'm not that all Zopistas would read
it.  Try it and see.

___
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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Erik Enge

[Chris Withers]

| dtml-call "somemethod(absolute_url()+urlquote(_.getitem(id))"

What about security issues?  Wouldn't this also allow those methods to
be called TTW by any user?

___
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] Lobbying (was: [Zope] html_quote in python methods?)

2001-01-03 Thread Erik Enge

[Chris Withers]

| Even if it did, what harm would it do?

Denial of Service attacks was what I though of.  But it's a non-issue
I guess.

___
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] Tools used for programming Zope

2001-01-19 Thread Erik Enge

On Fri, 19 Jan 2001, Chris Withers wrote:

 Well, I get around this by keeping the code in Python Products as much as
 possible (nice and CVS friendly) and just using TTW stuff for customisation.

That's the same thing as I do.  What about you other people, are you
actually doing serious application development in ZClasses?  Maybe it's
just me, but that doesn't seem very Zopish to me.  However, I do agree
that people tend to do ZClass development before going to Python Products,
and since the (in my opinion) worst solution is chosen first, some of the
less subborn ones might abandon Zope.

However, I'm not quite sure I consider that a problem.  Not with Itamars
Guide anyway :).

Happy Zoping!


___
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 an object from it's id

2001-01-23 Thread Erik Enge

[[EMAIL PROTECTED]]

| Is there a Zope API method that will allow me to get an object from
| it's id, or can I write a simple Python method to do it, or am I
| missing something even more obvious?

Well, sometimes objectItems or objectValues can be the right ones to
use.  Other times, (in Python Products at least) you use _getOb() to
fetch the object for you.

Let's say you have this object structure:

/Folder1
/Folder2

If you (in Python code) have Folder1 in the namespace, as self for
example, you can say object=self._getOb('Folder2'), and vila. :)
Don't know how you would do that in DTML, though.

___
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] EMail with uploaded attachments

2001-01-23 Thread Erik Enge

[Klaus Herrmann]

| but the only result is that the attachments contains:
| ZPublisher.HTTPRequest.FileUpload instance at 88b4df0

I might be wrong, but what if you used this instead:

dtml-var "_[attached_file]"

Would that work?

___
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] Zope Games

2001-01-24 Thread Erik Enge

[Gerald Gutierrez]

| Does anyone know about any web games written in Zope, something akin
| to Blacknova.net, which is written in PHP ? The source is at
| http://sourceforge.net/projects/blacknova/.

I don't.  But I might be able to hook someone up with some financial
funding to do so.  I recall having a contact which wanted to do
web-based games, large scale.  

___
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] a little problem - $1 reward!

2001-01-25 Thread Erik Enge

[[EMAIL PROTECTED]]

| ... in the received message. A previous version I had of this script gave
| me the correct results (From: God, Reply-To: [EMAIL PROTECTED]) so I'm
| pretty-sure that's it's a problem with '@cs.strath.ac.uk' being appended.

And you are running with the same mailserver, on the same host?

___
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] Mozilla and Zope (Was: Re: [Zope] Editors [OT])

2001-01-25 Thread Erik Enge

[Wolfgang Strobl]

| It's pure Python and wxPython (i.a. wxWindows) based, it even comes
| with a first attempt of a Zope interface! I wonder that it doesn't
| get more publicity here.  On the other hand, I noticed that Shane
| Hathaway is listed as one of the developers ...

I though DigiCool was developing a Zope interface with Mozilla, has
this been abandoned?

___
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] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Erik Enge

[Oleg Broytmann]

| On 25 Jan 2001, Erik Enge wrote:
| 
|  Really? Python 2.0?  Without any problems?
| 
|I didn't found any, do you?

I haven't tried running Zope with 2.0, yet.

___
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] Problem instantiating ZClass

2001-01-25 Thread Erik Enge

[smund Hjulstad]

| I did the following:

But do you have to?  Have you sniffed the Python Product API?

If you haven't already, check these out:

URL:http://www.zope.org/Members/maxm/HowTo/minimal_01

and then

URL:http://www.itamarst.org/learningzope/index.html

___
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] DNS/access problems

2001-01-25 Thread Erik Enge

[Olaf Zanger]

| any idea where to search?

Try providing more details about what went wrong, how it should've
worked instead and any error messages.  Then, maybe, we'll be able to
help you.  :-)

___
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] Redirecting from the manage interfaces.

2000-07-15 Thread Erik Enge


Hi.

I've been browsing through the Zope and Zope-dev archives without finding
anything related to this, please stop me if it has already been dealt
with. :)

technical person = someone who doesn't mind fuzzing around with the
   manage_main pages

non-technical person = someone who needs everything in bright nice colors
   and would start crying if they saw the manage_main
   page, or anything similar.

I have a Product that allows a customer of mine to add some nice pictures
(Image object) to a folder.  The add-method is nice and doesn't display
any horrible technical information.  I wasn't very keen on making a 
add-method for both the technical person and the non-technical person, so
I hacked the source code a bit.  I changed the the lib/python/OFS/Image.py

It used to look like this:

"""
def manage_addImage(self, id, file, title='', precondition='', 
content_type='', REQUEST=None):

[...]
if REQUEST is not None:
try:url=self.DestinationURL()
except: url=REQUEST['URL1']
REQUEST.RESPONSE.redirect('%s/manage_main' % url)
return id
"""

Which I changed into:

"""
def manage_addImage(self, id, file, title='', precondition='', 
content_type='', REQUEST=None, redir=None):

[...]
if redir is not None:
REQUEST.RESPONSE.redirect('%s' % redir)
elif REQUEST is not None:
try:url=self.DestinationURL()
except: url=REQUEST['URL1']
REQUEST.RESPONSE.redirect('%s/manage_main' % url)
"""

Now I can redirect the victim... erm.. customer to the method I want to,
and they are pleased that they don't have to see the management interface.

This saves me a lot of time, since I don't have to make several
add-methods, and maintainace is a more joyable happening. :)

This 'redir' thing is something I've stuck into a lot of .py files
(for example, I use it in the manage_delObjects and others).  And
it is something I do every time a new Zope release comes out.  Could this
be to any use for anybody besides me?  And if it could, how about adding
it to the next release?


___
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] Redirecting from the manage interfaces.

2000-07-15 Thread Erik Enge

On Sat, 15 Jul 2000, Shane Hathaway wrote:

 call, it won't redirect.  So you should be able to achieve the same
 results just by invoking manage_addImage without including the REQUEST
 object.

But I have to pass something with the REQUEST, or else it won't add the
image, right?
 
 A convention I've seen that works just a little better is to redirect
 based on the existence of a RESPONSE object.  You need RESPONSE to
 redirect, so if it isn't provided, you shouldn't redirect.
 
 Of course this needs to be documented and more reliable.

Ahh. :)  Is this work-in-progress by someone?


___
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] Weird thing happend with Pack

2000-08-05 Thread Erik Enge


Hi.

I was fiddling around with my Zope-instance, and decided to Pack the
database, I had just deleted a lot of objects and the Data.fs was reported
to be about 15MB large; which I knew couldn't be true.

Under Control_Panel/Database I pressed the "Pack" button with "days older
than" set to '0'.  Ahh, the Data.fs became about 500k, that's more like   
it.  For some odd reason, I decided to enter '3' at "days older than"
and press "Pack".  Dunno why.

After I did that it got ugly.  Now it reported that the Data.fs was
about 400k.  Hm, I thought, and checked the var/ directory.  It was
smaller...  strange.  I decided to check if the rest of my site was
still ok, but it wasn't.  When got into localhost/manage every object
had their titles changed to 'L'.  A bit odd.  Very inconvinient. :)

Hpmf, I thought while I cleverly scratched my head.  I tried to enter
one of these 'L'-ified objects, but now it didn't respond at all.  I
tried to kill the python process, but it had already died.  Tried to
start it, this is what I got:

Traceback (innermost last):
  File "z2.py", line 436, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "/usr/share/zope/lib/python/Zope/__init__.py", line 130, in ?
OFS.Application.initialize(c)
  File "/usr/share/zope/lib/python/OFS/Application.py", line 171, in initialize
app.Control_Panel.initialize_cache()
  File "/usr/share/zope/lib/python/ZODB/Connection.py", line 391, in setstate
p, serial = self._storage.load(oid, self._version)
  File "/usr/share/zope/lib/python/ZODB/FileStorage.py", line 584, in load
try: return self._load(oid, version, self._index, self._file)
  File "/usr/share/zope/lib/python/ZODB/FileStorage.py", line 560, in _load
pos=_index[oid]
KeyError: e   

(actually, it didn't say KeyError: e, but some odd character I don't
know how to reproduce.)

To fix it I entered the var/ directory, renamed the Data.fs to df-old
and renamed the Data.fs.old to Data.fs.  Started the Zope-process and
everything was fine.

Anyone seen this before?  It could maybe resemble the bug 1244
(URL:http://www.zope.org:8080/Collector/1244), but I don't think
so.  The strange thing is that it (Data.fs) got smaller when I defined
"days older than" to be '3', _after_ having set it to '0'.

Versions:
  Red Hat Linux 6.1 (2.2.12-20)
  Zope version 2.1.2

___
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] Funny bug in Zope?

2000-08-16 Thread Erik Enge


I'm not quite sure if this is already reported or not, so I won't give
much information on it (I've looked for something similar, but I
haven't found it).  I'm runnig Zope 2.2.0 under Linux.

I have this product I've made myself - called TravelAgent.  I add an
instance of it to the Zope root-folder, which I call TravelAgent.

Everything works fine.  If I rename this instance to something that
has less than five characters in it, something very fish starts to
happen.  I should also mention that in the index_html method's
body-tag I have an background-element which displays somepic.gif.

Now, if the instance is called f ex Trav (ie. less that five
characters) and I try to render the index_html, it displays the
background image correctly, but it also pukes out the gif in ASCII on
top - and nothing else.  This happens very consistently, unless I
reload fast four, five times - then it display the whole index_html
just fine.

I rename back to Trave (ie. five characters or more) and everything is
fine.  I can reproduce this all the time.

Strange, huh?

___
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] Transaction question

2000-08-28 Thread Erik Enge

[Shane Hathaway]

| Johan Carlsson wrote:
|  
|  I just want to check if things work the way I think (hope) it does.
|  
|  In a transaction, are objects attributes safe from other threads.
|  
|  self._v_mytemp in my request does not conflict with other requests?
| 
| This is correct (or it's supposed to be.) 

What do you mean by "supposed to be"?  Is it, or is it not correct?

___
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] Transaction question

2000-08-28 Thread Erik Enge

[Shane Hathaway]

| It means that a correctly operating ZODB will behave this way.

Oh, I see.  Thanks for clarifying that.  :)

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




[Zope-dev] Size of Data.fs - and crypto.

2000-09-10 Thread Erik Enge


Hi.

Does the performance of Zope degrade as the Data.fs get larger?  Both
on startup time (which I'm pretty sure will degrade) and on respons
time, serving a object f ex?

Another thing.  Have anyone tried to encrypt all data inside the
Data.fs file?  I mean, encrypted the data so that not even root can
access it, only if you have the right passphrase (or whatever) in the
management interface are you allowed access to the data.  

Anyone tried anything like that?

Thanks.

___
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] Size of Data.fs - and crypto.

2000-09-10 Thread Erik Enge

[Chris McDonough]

| [Erik Enge]
| 
|  Another thing.  Have anyone tried to encrypt all data inside the
|  Data.fs file?  I mean, encrypted the data so that not even root can
|  access it, only if you have the right passphrase (or whatever) in the
|  management interface are you allowed access to the data.  
| 
| You'd probably need to rewrite the pickling and unpickling routines used
| in lib/python/ZODB/Connection.py to dump and load "encrypted" pickles.

I thought so...  Has anyone done this?

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

2001-01-04 Thread Erik Enge

[Chris Withers]

| The point behind CatalogAware was, as I understand it, that the object
| inheriting from CatalogAware wouldn't have to worry about managing its
| own indexing. Sadly, that didn't work out...

I haven't been following this discussion, so my question may be
redundant, and if it is I'm sorry.  :)

Are you saying that, as a general rule, inheriting from CatalogAware
and using index_object, reindex_object and unindex_object does not
work?  Or, probably more likely, are you saying that since you have to
put index_object in the __init__ method you consider it to be managing
its own indexing?

Thanks :)

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

2001-01-04 Thread Erik Enge

[Michael Bernstein]

| When called, they find the nearest (acquisition-wise) ZCatalog
| (named Catalog by default),

I think you can specify the ZCatalog it should index itself in by
putting the default_catalog attribute in your class.  

I think, that this object (in pseudo) would index itself in ZCatalog1

def myClass(CatalogAwareness):

default_catalog = 'ZCatalog1'

def __init__(self):
self.index_object()

If you have the path:
mysite.com/ZCatalog1/ZCatalog2/Folder1/myClassInstance

Yeah?

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

2001-01-21 Thread Erik Enge

[Michael Bernstein]

| I need to know how far the ZCatalog will scale using this indexing
| and search strategy. Does anyone have anectodal or benchmark data to
| suggest if (and when) I will hit a 'wall' regarding the number of
| objects being indexed and searched?

I'm going to try to stuff 27 million objects into ZODB sometime in the
next week or the week after that (all post addresses in England).  I
haven't got a clue as to whether this will work or just... well not
work.  I haven't come up with a strategy for segmenting the data, but
that shouldn't be a problem at all.  This isn't actually much data, so
I don't expect the Data.fs file to more than 500 MB.

I'm quite confident that ZODB, ZCatalog and BTree will scale very
nicely for this.  I have a plan ;).

I'll let you know how it goes.  (And please, do poke at me if it takes
too long.)


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

2001-01-23 Thread Erik Enge

[Michael Bernstein]

| We seem to have disposed of the wildcard issue [snipped out
| below], and I'm looking forward to Eric's results, but does
| anyone else have any information about whether there is a
| practical upper limit on how many objects can be indexed and
| searched in a ZCatalog?

I don't know.  But there is one on BTree folders, right?  And as soon
as those get full, you need to start segment your data (which you
probably would have done in the first place anyway).  Then you can use
several ZCatalogs in different locations (so that they don't carry so
many objects each).  Then create a nice little method that finds out
which (or all) of the ZCatalogs to ask, when users make queries.


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

2001-01-23 Thread Erik Enge

[Chris Withers]

| ...and is that specifically for BTree folders, or Zope BTree's in general?

I don't believe that B-Tree folders have those kinds of limitations by
general design.  I'm more conserned that somewhere along the lines,
doing operations on a huge BTree Folder (Yes, in Zope) will be slow.

However, this is more gut-feeling than anything else.

Hm, more over, if you actually need to stuff that many objects into
one Folder, you are probably trying to use the wrong tool for the job.

I do expect that stuffing 27 million objects into one BTree Folder
will be slow, and I don't want to segment the data.  I do expect that
I'll have to resort to a relational database, and I have no problem
with that.  Object databases aren't always the right tool for the job,
and when they aren't, Zope let's me talk with the other ones nicely,
so no problemo seor ;).

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

2001-01-23 Thread Erik Enge

[Michael Bernstein]

| Erik Enge wrote:
|  
|  I don't believe that B-Tree folders have those kinds of limitations by
|  general design.  I'm more conserned that somewhere along the lines,
|  doing operations on a huge BTree Folder (Yes, in Zope) will be slow.
| 
| What sort of 'operations' do you mean? copying and pasting
| the whole thing?

My point was that anything will be slow at some stage.  This is valid
for BTree Folders as well, and doing opertions on the objects
(copying, deleting, modifying), will be slower than adding them, I
guess.  I'm not quite sure here Michael, someone else has probably
more experience and knowledge to answer more correctly.
 
| I had separated the storage issue into a different thread

Oops, I forgot that, sorry.

| Anyway Eric, I hope that when you report your results, you're able
| to separate indexing, searching, storage, and retreival results, so
| that the appropriate factor can be identified as the bottleneck. Or
| at least into indexing/searching and storage/retreival.

Yes, I hope I'll manage to do that.  And till then, I guess we just
have to wait to see how things work in practice, which might be
different to the theory.  ;)


___
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] Introducing ZopePrints.

2001-02-12 Thread Erik Enge

Hola!

Some of us over at ZopeZen.org (URL:http://www.zopezen.org) have
been discussing the fenomena that is called ZopePrints.  I'll give a
brief explanation, and would appretiate feedback as to whether this a
good idea or not.

A ZopePrint is a document, or maybe a set of documents, which
describes a part of, or the complete development process for a Zope
application.  This could include the whole process from when the
customers tell you they want to do project X with you, till you
actually finish it and it's up and running in the customers offices.

Some points may be:

* Problem definition
* Problem analysis
* Project management (Resource allocation)
* Design phase
* Zope design
* Test phase

(Have a looksy at
URL:http://www.zopezen.org/SDot/981475769/index_html to check out
all the suggestions, and my initial post.)

The rationale behind this is that the community at large would benefit
from this by having _real_life_ case studies so when their time has
come to implement an application in Zope, they don't fall into the
same traps and pitfalls we did.  Instead of benchmarks, the Zope
community would use implementation documents to decide whether Zope is
up for the job or not, that's what really helps.

I'm quite sure that it will also work as a tool for finding gaps and
holes in either Zope or its tools and Products.

We would like to start a project going in the Fishbowl which aims at
creating the right tools to document a project as described above.

Feel free to make suggestions!

___
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] Introducing ZopePrints.

2001-02-12 Thread Erik Enge

[Tres Seaver]

| Please see:
|
|   http://dev.zope.org/Projects/PTK
|
| for our work-in-progress.

Hey, looks like what I'm after.  I can see that it's a work in
progress, so if you need any help, give me a shout.  It didn't say too
much about the project itself, do you have any such information on a
page somewhere?  Timescales?  Goals?

___
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] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Erik Enge

[Morten W. Petersen]

| There's a new product available, which enables unique ids in a given context,
| take a look at url:http://www.zope.org/Members/morphex/ThreadSafeCounter.

On every view - a call to index_html() - it prints '{}' to stdout.  Bug?

___
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] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Erik Enge

[Erik Enge]

| On every view - a call to index_html() - it prints '{}' to stdout.  Bug?

Forget it.  My fault.  *shame, shame*

___
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] Updates! Refresh, BTreeFolder, and ZDebug products

2001-02-12 Thread Erik Enge

[Shane Hathaway]

| If no one reports any problems

No problems so far :).  Tried them with Zope 2.2.1.

| But here's the biggest news: the Refresh product

Excellent!  When will this be included in standard Zope distributions?

___
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] Strange AttributeError in AccessControl/User.py

2001-02-13 Thread Erik Enge

[Morten W. Petersen]

| indeed a strange problem, anyone experienced this?

What did you do to make this happen?  Versions?

___
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: ThreadSafeCounter

2001-02-13 Thread Erik Enge

[Morten W. Petersen]

| The ideal solution would be to use an object that lives in the ZODB,
| I wonder if there is a way to keep the 'object history' empty?  That
| is, keeping the counter 'packed' while retaining 'object history'
| information on all other objects.

I'm no ZODB expert, but I think the short story is that you can't have
this across several threads -- because you would have to use _v_
attribs.  And what good is a ThreadSafeCounter if it's not threadsafe?

By the way, the reasons for this to be better as a ZODB object is that
you wouldn't have to worry about which filesystem the server runs, and
if there is serveral servers?

If you have the resources, a really cool thing would be to set up a
Zope box running a counter and an XML-RPC script in the other end.
That wouldn't be a problem making safe.  You do have other stuff to
consider then, though.

I like XML-RPC.


___
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] Introducing ZopePrints.

2001-02-14 Thread Erik Enge

[Michel Pelletier]

| We would love to see this description from you.

The description of such a system/model in a Fishbowl project?  Or just
a general description?  Sorry for being slow :)

| I think it would be great to get examples of your problems in a case
| study format, but also in a higher-level, pattern like description.

Yes, that's what I'm after.  Patterns.

| Good luck!

Thanks!  It's good to see others interested in this :)

___
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] [Newbie Alert] How to make an existing class catalog-aware

2001-02-15 Thread Erik Enge

[stefano ciccarelli]

| Is there any way to make an existing class catalog aware?

Is this ZClasses or Python classes, and are there any objects that
exist already?

___
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] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge

[Cyril Elkaim]

| Of course I have tried REQUEST.PARENTS[0] but this is the parent
| inside the URL, I'm searching the PARENT inside the object system.

yourobject.getParentNode() should do the trick.

Have a read at lib/python/OFS/ZDOM.py
 
| Another question how can I get a reference of any object in OBJECT
| system,

I'm not quite sure what you mean, could you elaborate please?  Do you
mean like you want to search for any object and get a reference
(kewords: ZCatalog, getobject and searchResults) or just to have a
HTML link (keywords: relative_url and absolute_url) or what?  :)

___
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] Getting the parent of a container in a Python Script

2001-02-15 Thread Erik Enge

[Cyril Elkaim]

| I want to give the id (eventually qualified) of an object and get a
| reference to it. I'm talking about persistent objects inside the
| ZODB.

What do you need the reference for?  How are you going to use it?  And
when you're talking about inside ZODB, does that mean that you're
not using Zope to access it?
 
| For example it should be interesting to walk through the database
| using only DOM methods. Is that the case?

Shouldn't be a problem.  Also have a look at objectValues(),
objectIds() and objectItems() in lib/python/OFS/ObjectManager.py;
around line 320.  They could save you some time.

___
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] Calling Catalog from python script

2001-02-15 Thread Erik Enge

[[EMAIL PROTECTED]]

| Where did getobject come from? I know about Catalog.data, but I've never
| seen a getobject() method...
 
It's a method of the brain ;).  If you have a data_record_id, you can
use getobject() to retrieve the object it represents.

___
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] 2gb ZODB size limit

2001-02-15 Thread Erik Enge

[Morten W. Petersen]

| It's a problem with Linux, if you want to be able to use databases 
| 2GB in size on Linux, a kernel = 2.4.0 is required.

Nope.  First, the limit is at file-level, not database-level (mind
you, a problem with the filesystem, not Linux per se).  You can have
tons and tons of files, but noone of those can be over 2GB.  Secondly,
this is only true for the ext2 (and lesser filesystems).  ReiserFS
does not have this limitation and I've heard that is supposed to be
shipped batteries included come 2.4.1.

___
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] 2gb ZODB size limit

2001-02-15 Thread Erik Enge

[Morten W. Petersen]

| BTW, there is a list called [EMAIL PROTECTED], for ZODB specific
| questions.

Actually, I think its called ZODB-Dev; [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] The structure of lib/python/*

2001-02-16 Thread Erik Enge

Hi, Zopistas.

I've been reading a lot of Zope code the last couple of years, but
still I really don't see any overall structure of lib/python.  Is this
documented somewhere?

___
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 2.3.1b1 glitch?

2001-02-17 Thread Erik Enge

Hia.

When entering the ZMI and clicking on Control_Panel, Database
management and then Cache parameters I get two new tabs: Contents
and Undo.  It's probably just me, but I don't quite understand these
two.  Couldn't we display the Undo tab along with Database, Cache
parameters and Flush Cache?

The Undo tab (both in Cache parameters and Flush Cache points to
/Control_Panel/Database/manage_UndoForm.  When I enter manage_UndoForm
I've so far never gotten any Undoable transactions up, and it brings
me back to having the Database,  Cache Parameters and Flush
Cache tabs.  Kinda weird?

If I go to /Control_Panel/Database/manage_undoForm (lowercase u),
then I get a number of Undoable transactions.

What's the difference between

/Control_Panel/Database/manage_undoForm

and

/Control_Panel/Database/manage_UndoForm
?

(Apart from the obvious spelling ;)

Another thing.  When I hit Undo in manage_undoForm I'm taken to the
manage_UndoForm which displayes: There are no transactions that can
be undone.  Although, I know there are, because manage_undoForm says
so.  :-)  The transaction(s) I marked as wanting to Undo are undone.
So that works.


___
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 2.3.1b1 glitch?

2001-02-17 Thread Erik Enge

[Erik Enge]

[about undo tabs]

Hm.  Just discovered this.  Both

/Control_Panel/manage_undoForm

and

/Control_Panel/manage_UndoForm

work fine.  manage_undoForm redirects to manage_UndoForm after you've
pressed the Undo-button though.  Maybe that's where the confusion 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 )



[Zope-dev] More Zope 2.3.1b1 stuff.

2001-02-17 Thread Erik Enge

This might be picking on very little things, but hey, someone has to
do that too. :-)

When adding a Version, the Help-button is there.  Not a Help-link
which seems to be the standard these days. Same goes for Mail Host,
External Method, Z SQL Method and ZCatalog.

Accelerated HTTP Cache Manager is missing its Help-link.  So is the
RAM Cache Manager, Script (Python), Set Access Rule, Site Root,
Virtual Host Monster, Vocabulary, Z Gadfly Database Connection and
Zope Tutorial.

Oh, nearly forgot these:

lib/python/ZPublisher/BeforeTraverse.py is missing the ZPL.


lib/python/ZODB/DemoStorage.py, line 103:

"""
  a transaction is simply a 4-tuple:

packed, user, description, extension_data, records
"""

That seems like a 5-tuple to me, or my Python terminology is fubar.


___
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 Zope 2.3.1b1 stuff.

2001-02-17 Thread Erik Enge

[Erik Enge]

| This might be picking on very little things

And so is this: why isn't there a grey line above the Users in the
acl_users?

___
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 Zope 2.3.1b1 stuff.

2001-02-17 Thread Erik Enge

[Erik Enge]

| [Erik Enge]
| 
| | This might be picking on very little things
| 
| And so is this

Yeah, this also - but I promise, this is the last one.  For today
anyways.  Either my eyes aren't quite awake yet, or this line appears
two times in the Credits-section of /manage_copyright:

"""
Phillip Eby contributed the DTML let tag and many other useful ideas,
including the inspiration for the DTML call, with and return tags.
"""

Phillip has come up with way cool things, but two lines? ;)

Then again, it might be a kinda funny thing which totally escapes me
and my humor.  :)

It's there in Zope 2.2.1 also.

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

2001-02-18 Thread Erik Enge

[Michael R. Bernstein]

| Erik Enge wrote:
|  
|  I'll let you know how it goes.  (And please, do poke at me if it takes
|  too long.)
| 
| Ok, I'm poking :-).

Thanks.  Keep doing it till you get what you need, I truly don't
mind.  :-)
 
| How did it go?

Thanks to the speed of delivery at Royal Mail in the UK, I haven't
recieved the data yet (!).  They promised to have it too me by the
coming friday (the 23rd, I believe).  I'll try to process all 27
million records and give feeback to the community.

(I did a premature calculation of how long it would take to populate
the Zope instance, and I'm guessing somewhere between 80 to 100 hours,
meaning the feedback cannot come any sooner than Sunday, at best.)

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

2001-02-18 Thread Erik Enge

[Michael R. Bernstein]

| What I'm looking for is any indication that object creation time
| and/or indexing time goes up with the number of objects already in
| the ZODB.

Well, one thing I've already learned - which you all probably know -
is that you do _not_ want to put index_object() in your class'
__init__() method.  That's because the CatalogAwarness class you
subclass does this for you in the manage_afterAdd() method.

If you put index_object() in __init__() you might as well go on
holliday before it's finished.  A long one.
 
| Will you be populating the ZODB in batches (say 100,000 objects or
| so)?

I'll do that as a secondary solution, if doing it in one batch is too
ineffective. 

| If so, can you benchmark each batch, so we can see if the batch
| proccessing time goes up as you progress through the 270 batches?

Yes.  No problemo, senor! :)

___
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] ZCatalog madness. (Must log in as emergencyuser.)

2001-02-22 Thread Erik Enge

Right.

This is the traceback I get, after doing a search (searchResults) - which
goes fine by teh way - and then trying to do an
getobject(x.data_record_id_) as a non-emergencyuser user get up an login
box and press escape:

Unauthorized

Sorry, a Zope error occurred.

Traceback (innermost last):
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
187, in publish
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: candidate_search)
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: candidate_search)
  File /usr/local/Zope-2.3.1b1-linux2-x86/lib/python/OFS/DTMLMethod.py,
line 189, in __call__
(Object: candidate_search)
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
(Object: candidate_search)
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 702, in renderwob
(Object: candidateEngine(REQUEST))
Unauthorized: 0

Right.  Your average unauthorized I should think.  Next, if I log in as
the emergencyuser, this is what I get: 

Traceback (innermost last):
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/local/Zope-2.3.1b1-linux2-x86/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
(Object: Traversable)
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: candidate_search)
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: candidate_search)
  File /usr/local/Zope-2.3.1b1-linux2-x86/lib/python/OFS/DTMLMethod.py,
line 189, in __call__
(Object: candidate_search)
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
(Object: candidate_search)
  File
/usr/local/Zope-2.3.1b1-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 711, in renderwob
(Object: candidateEngine(REQUEST))
  File /usr/local/Zope-2.3.1b1-linux2-x86/lib/python/OFS/Traversable.py,
line 107, in absolute_url
(Object: CatalogAware)
AttributeError: (see above)

Error Type: AttributeError
Error Value: 'string' object has no attribute 'get'


The get thing is probably from me trying to call absolute_url on the
objects it returns.  Calling atributes works, though.

Strange.  Doing getobject as a non-emergencyuser doesn't owrk, and when I
have logged in the objects I get seems to be somewhat fubar.

Help is greatly appretiated. 

(PS.  I seem to recall a checkin in hte CVS about unrestrictedTraverse in
one of the files belonging to the Catalog, could this has something to do
with it?)

Zope 2.3.1b1 on Linux.


___
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] Error message traceback

2001-02-22 Thread Erik Enge

On Thu, 22 Feb 2001, Philipp von Weitershausen wrote:

 how do I turn off this annoying traceback that is always printed out when an 
 error occurrs? 

Start Zope with out the debugging switch; "-D".  Look in your z2.py file
for expalation of it, and in start (or start.bat on Windows?) to remove
it.


___
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 madness. (Must log in as emergencyuser.)

2001-02-23 Thread Erik Enge

On Thu, 22 Feb 2001, Chris McDonough wrote:

 I'm not sure why this isn't in 2.3.1b1, but yes, the code in getobject was
 changed to use unrestrictedTraverse for this very reason.

On closer inspection, I can see that it is actually changed in
2.3.1b1.  It does say unrestrictedTraverse (line 457, I belive).  I
grepped for restrictedTraverse, but couldn't find any occurances
(lib/python/Products/ZCatalog).  Why am I still being asked to log in as
emergencyuser to be able to do this, if I'm not using
restrictedTraverse.  And is there a way to actuall give access to
restrictedTraverse (or, probably more corretly, to let it traverse)?


___
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 madness. (Must log in as emergencyuser.)

2001-02-23 Thread Erik Enge

On Fri, 23 Feb 2001, Chris McDonough wrote:

 No...

"No" to which question?

 what are you getobjecting?  Does it happen only with certain kinds of
 objects?  Are they ZClass objects or Product-based objects?

It happens with all kinds of objects I have in my index.  All my objects
in the index are from Python-based products.


___
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] Minor typos/changes to ZCatalog.

2001-02-23 Thread Erik Enge

On Fri, 23 Feb 2001, Michael R. Bernstein wrote:

 On the subject of numbers, I was wondering how to index
 alphanumeric values like ISBN numbers.

Why can't you use FieldIndexes?


___
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] Traceback strangeness and default width/height (and those funnyPython Methods)

2001-02-23 Thread Erik Enge

Is it just me, or has the tracebacks provided by Zope when an Exception is
raced gotten "worse"?  In Zope 2.3.1b1 it usually says file: DT_In (or one
of them), and doesn't even mention the file which the Exception was raised
from.

Also, When I set the default width/height with the new ZMI and bring up a
Python Method window, it doesn't follow the default values I've put
in.  Maybe this is related to something else, because using the + and - on
width doesn't work very well either..  Maybe it is this old crappy version
of IE I'm running...

And another thing about those Python Methods.  When an Exception is raised
and it gives me the line number it seems to miss the correct line by
one.  Ie. if I raise an Exception on the first line in a Python Method, it
tells me that it was raised on line 2.


___
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] Minor typos/changes to ZCatalog.

2001-02-23 Thread Erik Enge

On Fri, 23 Feb 2001, Chris McDonough wrote:

  Maybe a "This How-To covers product such-and-such version x.x" is in
  order as a standard feature of the How-To?
 
 This is a good idea.  It would be an even better idea to allow folks to add
 comments to howto pages, so that if the original author did not maintain it
 well, well-placed comments could prevent folks from taking wild goose
 chases.

Yes, maybe like the way the ACS lets you?  That would work very
nicely.  Great suggestion! :)


___
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 madness. (Must log in as emergencyuser.)

2001-02-23 Thread Erik Enge

On Fri, 23 Feb 2001, Chris McDonough wrote:

  It happens with all kinds of objects I have in my index.  All my objects
  in the index are from Python-based products.
 
 Are they all of one type? 

The same type (as in, they are all Python based), but with different
meta_types.

 Can you replicate the behavior across many different kinds of
 objects, or is this problem only with a single type of object?

Different kinds of meta_types or ZClass/Python classes?


___
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 madness. (Must log in as emergencyuser.)

2001-02-23 Thread Erik Enge

On Fri, 23 Feb 2001, Chris McDonough wrote:

 I meant to narrow down the problem domain in cases where you do call
 getobject... cases where you aren't calling getobject are not relevant.

Ok.  I see.
 
 It would be helpful to find out for which objects getobject fails and for
 which it succeeds under your setup.  I suspect that it's a __roles__ problem
 with a type of object being retrieved.

Interessting...

 Narrowing the problem down to a set of objects for which getobject *always*
 fails is probably the first step.  Then maybe I can reproduce it here if you
 can give me the code for these objects.

I'll see if I don't have the time to do this bright and early in the
morning, but - as I've said - I suspect it is true for all kinds of
objects and meta_types.

Feedback and debug information coming your way as soon as possible :)


___
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] Minor typos/changes to ZCatalog.

2001-02-24 Thread Erik Enge

On Fri, 23 Feb 2001, Chris McDonough wrote:

 The short answer is "you can't, easily".

I'm a bit confused.

Will FieldIndexes also behave like TextIndex, in that they remove stop
words, digits and so forth?  I think I've picked up somewhere that
FieldIndexes treats the whole content of the attribute it indexes as one
big chunk of .. erm... characters, and doesn't remove anythink?  Correct?


___
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 madness. (Must log in as emergencyuser.)

2001-02-24 Thread Erik Enge

On Fri, 23 Feb 2001, Erik Enge wrote:

 Feedback and debug information coming your way as soon as possible :)

Ok, I index DTML Methods, Python objects, and all different kind of
things.  Then I did a search, meta_type set to 'DTML Method' and it gave
me an unauthorized.  Strangeness.

I've installed the latest Hotfix, but that didn't make any difference
either.


___
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 madness. (Must log in as emergencyuser.)

2001-02-24 Thread Erik Enge

On Sat, 24 Feb 2001, Chris McDonough wrote:

 I can't replicate this behavior with normal objects.  :-(

Riiight...  

*thinking very hard*

I just realized how it all started.  Me and a collegue was indexing
objects, searching, doing regular development (probably changing classes,
attributes etc.) and suddenly we were asked for the (then) SuperUser
password.  This was under 2.2.5.

I remember thinking: "hm.  that's odd...".  But I had more important
things on my mind (and this wasn't really my field of expertice) so I
didn't dwell much on it.

I'm trying to remember what we did when it happend, but I'm sorry to say I
can't (it's been two, three weeks now).  But, the good point - I guess -
is that it hasn't got anything to do with Zope 2.3.1b1 in perticular.

The sad thing, is that the problem is probably due to some of Python
classes begin set up correctly, or accordingly to the Product API.  That's
what I'm guessing anyways.

I'll run some more tests to make sure these assumptions are correct.  More
feedback, and hopefully a solution, to come this week.

Sorry for not realizing this sooner, it would've saved us all lots of
time.


___
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 2.3.1b1, strange things when ConflictError.

2001-02-25 Thread Erik Enge

I have two nice methods.  One of them (methodA) is called via the web.
These belong to one class; classA.

class classA:
"doc string"

def methodA(self):
"doc string"
objects = self.methodB(self)
objects.reverse()

attrib = '' 

for object in objects:
attrib = attrib + 'some html'

return attrib

def methodB(self, object, skip=[], stop=[], objects=[]):
"doc string"
try:
if object.meta_type in skip:
return self.methodB(object.getParentNode(), skip,
stop, objects)

if object.meta_type in stop:
raise AttributeError
else:
# I don't think I need this.
if object not in objects:
objects.append(object)
else:   
raise AttributeError

return self.methodB(object.getParentNode(), skip,
stop, objects)
except AttributeError:
return objects

Narrative story: The user calls methodA (from a instance of
classA) through the web.  methodA returns some nicely formatted HTML
navigation links.  methodB should traverse through the objects with
getParentNode(), append the object in the list objects (if its meta_type
is not listed in 'skip' or 'stop' - which are "skip meta_types" and
"stop_meta_types" lists) and return them to methodA for formatting.  The
objects should be listed in the list that is returned sequentially and
methodA would be required to do an objects.reverse() to make sure we are
facing the right direction.

First of all, this doesn't work very nicely.  Every other time I refresh
my webpage (ie. call methodA) it seems to reverse() the list returned
from methodB on its own.  That's strange.  This results in:

[instance1, instance2]

and

[instance2, instance1]

every other time.  *baffled*

Now comes the part which really makes me want to go to my hotelroom and
watch Life of Brian on BBC at 9.00pm; if I refresh the webpage quickly,
and many times (not too quick or too many times; 2-5 times within 2-5
seconds) I get a ConflictError raised in my log - it doesn't take it up to
the webpage.  There is other stuff going on which causes the ConflictError
to get raised (although, I'm only _reading_ from a ZCatalog, as far as I
know anyway).

Heres what I don't understand.  When ever I get a ConflictError, the
contents of the 'objects' attribute in methodB isn't "flushed".  Thus,
resulting in a very long navigation bar with repeating links.  Let me
repeat that: The attribute 'objects' of the method methodB appears to be
persistent.  

Which it isn't of course.

My best guess is that something is wrong with the logic when a
ConflictError is raised.  It would make kinda sense.

Tracebacks, beers or other interesting things offered if needed. :)


___
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 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge

On Sun, 25 Feb 2001, Steve Alexander wrote:

 I wasn't reading the code clearly the first time around.
 
 By far the simplest place to return copied results from methodB is to 
 change the last line to

Thanks, it all works nice.  Nearly, that is.  

The reverse problem is now gone.  But the fact that every time I get a
ConflictError it doesn't "flush" the 'objects' of methodB, and just seems
to append to it, still remains.

I only get this when a ConflictError occur.


___
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 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Erik Enge

On Mon, 26 Feb 2001, Erik Enge wrote:

 I only get this when a ConflictError occur.

Nope, it occurs every time I change to another object.  I need to do some
more testing here.  It seems as if the 'objects' variable of 'methodB' is
semi-persistent or something.  Weired.


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



  1   2   >