[Zope-dev] RE: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread RC Compaan

Hi Steve

I'm also a babe in the woods when it comes to object modelling, but here's
my pennie's worth.  Since code generation was not really required in the
models I recently did for Zope Apps and the terrible exchange rate on the
South African Rand I decided to use to very light weight Playground
modelling tool.  I agree with Steve Alexander that Coad notation serves
ZPatterns *better* and this is exactly what Playground uses.

  If I explicitly store a Bar object as an Attribute of a DataSkin then
  what happens if the original Bar is removed from its Specialist's
  Rack? Does the Bar I store still refer to the original Rack as its
  DataManager? So.. does a Rack sometimes have 'clients' that are not
  really in the Rack at all? Or perhaps I misunderstood the discussion,
  and the Address wasn't really a DataSkin at all?  Also.. assuming
  that all works, do I have to do anything special, or carefully to be
  sure that the persistence machinery doesn't incur lots of expensive
  attribute fetching if I don't explicitly refer to those attributes,
  but have the DataSkin as a directly set attribute of another
  DataSkin?

Before I started building Apps with ZPatterns I built a object/relational
access layer in Delphi for my applications which enables me to create pure
objects in my problem domain and delegate all data management to the the
access layer.  I *think* this is one of the things ZPatterns wants to do as
well.

Take the Customer with Address property example:
I create Customer and Address Dataskins.  For Customer I have an external
method setAddress which sets the Address property of my Customer object and
this is how I would create a new Customer:
  newCustomer = customerRack.newItem( CustomerCounter )
  newAddress = addressRack.newItem( AddressCounter )
  newCustomer.setAddress( newAddress )

I prefer the simplicity this brings when I have to access the properties of
a Customer (without having to call a getter each time I need an address):
  myCustomer.Address.Street

This also maps quite simply to SQL storage.

So although instances of Address are properties of Customer they live on
their own Rack and instances of Customer simply refers to their Address
through assignment.

With Container/Content type objects I do roughly the same - I have
setContainer methods for the Content objects.

Roché



___
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] debugging authentication problems

2000-12-05 Thread Toby Dickenson

On Mon, 04 Dec 2000 09:38:10 +, Chris Withers [EMAIL PROTECTED]
wrote:

Toby Dickenson wrote:
 
 Im have trouble tracking down why one specific method is needing
 authentication. Can anyone suggest any tips or tools?
 
 Toby Dickenson
 [EMAIL PROTECTED]

Shane's ZDebug tool can help, but where people have helpfully raised
Unauthorized as a string exception, it doesn't seem to kick in.

If anyone's got any other tips, I'd love to hear them too :-)

Now Ive found the problem, I dont think anything less than pdb would
have helped.

Thanks for the tips,

Toby Dickenson
[EMAIL PROTECTED]

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




Re: [Zope-dev] Implementing [XOR A] 1 object connections in ZPatterns

2000-12-05 Thread Steve Spicklemire


Hi Itai,

 "Itai" == Itai Tavor [EMAIL PROTECTED] writes:

...

Itai The 2nd way seems to go better with OO principles - all
Itai handling of photos is delegated to the Photos Specialist and
Itai the Product doesn't care if the photo exists or not, or
Itai where it comes from. But it also increases complexity in
Itai Photos, because I need to implement an efficient way to
Itai retrieve photos (with a Catalog, or SQL searches), and
Itai because it introduces the photo_key. Storing photo_id in
Itai Product eliminates these complexities, but it moves some of
Itai the responsibility for managing photos into Product.

Hmmm.. it seems to me that it makes more sense for the Product 
to know the id of the Photo that *it* needs to display itself than
for the Photo to have to know that it belongs to a particular
Product. Also.. I can imagine that the Photo class might be useful
for lots of other things besides Products, and how would you teach
it what type of object it belongs to?

Just my $0.02. 

;-)
-steve

___
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] time-travel how to?

2000-12-05 Thread Damien Morton

Thanks for the tip.

Yes, the HistoricalRevisions subsystem looks interesting.

Im not sure it solves my problem though, in that the revisions seem to be
for a single given object, rather than for a given subtree or site. They
certainly dont seem to apply to folderish objects.

For my application, making read-only restrictions on time-travel is
perfectly acceptable, so I dont believe that paradoxes are of concern.

Anyone have any suggestions about where to start with this?

 -Original Message-
 From: Shane Hathaway [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 05, 2000 11:05 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] time-travel how to?
 
 
 Damien Morton wrote:
  
  How do you access the fabled time travel features of Zope?
  
  Reading through the source I see that you can open a 
 database in read only
  mode and specify the point in time that that view is for.
  
  Would it be possible to mount the same data.fs multiple 
 times in read-only
  mode, each mounting with a different temporal view?
  
  Is there some other mechanism by which the time-travel 
 feature can be
  accessed? Ideally it would be possible to create a temporal 
 view of the
  database much like one would create a version, but that the 
 view would be
  enabled by traversing through that view in the URL.
 
 See the history tab of DTML methods.
 
  For example, http://foo.com/nov3/x/y/z would be a view of 
 the database at
  nov3, where the actual time and date of the view would be 
 specified in the
  nov3 object.
 
 That would be spiffy!  It would be fun to visit:
 
 http://mysite.com/HistoricalRevisions/2000Jan01/manage
 
 It's also very doable.  Of course, time travel restrictions would have
 to be imposed.  (Zope will produce a "temporal paradox" 
 exception if you
 do the right thing.  It's something of an easter egg IMHO.)
 
 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 )
 

___
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] FW: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread Phillip J. Eby

At 09:44 PM 12/5/00 +0200, Roch'e Compaan wrote:
 If you want to store one DataSkin inside another, where either one of them
 is stored in a Rack, you will have to create appropriate SkinScript or
 custom attribute providers to do so.

But what if I always store dataskins in there own racks but simply assign
an attribute of one 
Dataskin to the instance of another Dataskin?  I simply want to be able to
say 
Customer.Address.Street...


As implied above, you cannot, unless you do so with an appropriate
provider.  Just like ZODB-stored objects, ZPatterns objects cannot function
if you break the rules that govern their behavior.  (E.g. if you change a
mutable value of a ZODB object, it has no way to know it should be saved to
the database.)  This is a "by design" limitation of ZPatterns.  Also, it's
not that bad of a limitation.  You can easily work around it with
SkinScript or an attribute provider, and more commonly, this is done by
delegation to another specialist.

Specifically, rather than breaking encapsulation by having application code
write to an attribute directly, you use a method which delegates to the
foreign specialist, asking it to link or create an associated object.  You
can then still use SkinScript to retrieve your "Address" attribute, again
by delegation to the other Specialist.


___
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 plan updated...

2000-12-05 Thread Brian Lloyd

Hi all - 

We're gearing up for getting a new feature release out so 
for those interested I've updated the Zope 2.3 plan at:

http://dev.zope.org/Resources/zope_230_plan.html


The main changes from the prior version are that it is much 
more detailed, some items have been added and the item for 
updating ZDOM to DOM level 2 has been dropped (until there 
is a clearer justification for it).

I hope to make an alpha 1 release on Monday the 11th with 
the new Python Scripts and fixed user bootstrapping, among 
other things (see the plan for details).


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] Re: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread Itai Tavor

Steve Spicklemire wrote:

   "RC" == RC Compaan [EMAIL PROTECTED] writes:

 RC Hi Steve

 RC I'm also a babe in the woods when it comes to object
 RC modelling, but here's my pennie's worth.  Since code
 RC generation was not really required in the models I recently
 RC did for Zope Apps and the terrible exchange rate on the South
 RC African Rand I decided to use to very light weight Playground
 RC modelling tool.  I agree with Steve Alexander that Coad
 RC notation serves ZPatterns *better* and this is exactly what
 RC Playground uses.

Ahh.. alas Playground is Win only (if I'm thinking correctly that it's
the software that came in Coad's book), and I loaned tbe book and CD
to someone else ... g... ;-)

It is the software that comes with the book, and it is Win only. I 
started using it but switched to ConceptDraw because I got tired of 
turning my chair around to face the Windows machine every time I 
wanted to look at my object model. Like Roche said, you don't need 
code generation, so all you need is to be able to place classes and 
connect them. Playground is nice in that it actually knows about 
classes and lets you view class lists, create connections from the 
list and so on. ConceptDraw is just a drawing program so you won't 
have class lists, and the libraries aren't complete, but on the other 
hand, it works well on a Mac and, unlike Playground, it lets you do 
Coad, UML, Use Cases, activity diagrams, sequence diagrams, component 
diagrams, collaboration diagrams...

Itai
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


___
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: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread Itai Tavor

Roché wrote:

Steve Spicklemire wrote:

   If I explicitly store a Bar object as an Attribute of a DataSkin then
   what happens if the original Bar is removed from its Specialist's
   Rack? Does the Bar I store still refer to the original Rack as its
   DataManager? So.. does a Rack sometimes have 'clients' that are not
   really in the Rack at all? Or perhaps I misunderstood the discussion,
and the Address wasn't really a DataSkin at all?  Also.. assuming
   that all works, do I have to do anything special, or carefully to be
   sure that the persistence machinery doesn't incur lots of expensive
   attribute fetching if I don't explicitly refer to those attributes,
   but have the DataSkin as a directly set attribute of another
   DataSkin?

Before I started building Apps with ZPatterns I built a object/relational
access layer in Delphi for my applications which enables me to create pure
objects in my problem domain and delegate all data management to the the
access layer.  I *think* this is one of the things ZPatterns wants to do as
well.

Take the Customer with Address property example:
I create Customer and Address Dataskins.  For Customer I have an external
method setAddress which sets the Address property of my Customer object and
this is how I would create a new Customer:
   newCustomer = customerRack.newItem( CustomerCounter )
   newAddress = addressRack.newItem( AddressCounter )
   newCustomer.setAddress( newAddress )

I prefer the simplicity this brings when I have to access the properties of
a Customer (without having to call a getter each time I need an address):
   myCustomer.Address.Street

This also maps quite simply to SQL storage.

So although instances of Address are properties of Customer they live on
their own Rack and instances of Customer simply refers to their Address
through assignment.

With Container/Content type objects I do roughly the same - I have
setContainer methods for the Content objects.

Me thinks that what we all need is a guide to implementing object 
connections for different object relationships and patterns. Perhaps 
something like this (view with monospaced font):

   Object relationship|   
(Pattern) |  Implementation

  1   1   | Add prop to A: b_id
A - B | In A call Bs (Specialist of B): my_b = 
Bs.getItem(b_id)

  n   1   | Add prop to B: a_id
A - B | Add method to Bs (Specialist of B): getBsForA(a_id)
  | In A call Bs: my_b_list = Bs.getBsForA(a_id)

  n   n   | ?
A - B |

 n   [XOR A] 1| Add Specialist Xs implementing role of A and B
  A  -| Add prop to C: x_id
 n   [XOR A] 1  C | In A, B call Xs: my_x = Xs.getItem(x_id)
  B --|
(Participant-Transaction)| (A and B - Participants, C - Transaction)

[XOR A] 1  n  | Add prop to B, C: a_id
 B| In B, C call As (Specialist of A): my_a = 
As.getItem(a_id)
  A [XOR A] 1  n  |
 C| (can't do reverse connection?)



Does anyone think this would be useful? Can we get the experts to 
expand/correct/verify this? Obviously more relationship types need to 
be added, and also some extra information is needed (such as who's 
responsible to set the id attributes and how, when and how reverse 
connections are done, etc.).

Itai
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


___
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] ZPatterns scalability...

2000-12-05 Thread John Eikenberry


Just to get more opinions... we have a service coming up where we'd like to
use a Zope/Zpatters solution. Its a feedback tool, with the potential of up
to 50,000 entries. These would be stored in a Specialist/Rack/DataSkin
combo, stored in a standard zodb/filestorage system. Using a ZCatalog for
listings and the Specialist.getItem() for individual record retrieval. Any
thoughts on scalability issues.

Thanks in advance for any insights.

-- 

John Eikenberry
[[EMAIL PROTECTED] - http://zhar.net]
__
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
  --B. Franklin

___
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: ZPatterns, ObjectDomain, UML and all that.....

2000-12-05 Thread Steve Spicklemire


Thanks Roche!

 "RC" == RC Compaan [EMAIL PROTECTED] writes:

RC Hi Steve

RC I'm also a babe in the woods when it comes to object
RC modelling, but here's my pennie's worth.  Since code
RC generation was not really required in the models I recently
RC did for Zope Apps and the terrible exchange rate on the South
RC African Rand I decided to use to very light weight Playground
RC modelling tool.  I agree with Steve Alexander that Coad
RC notation serves ZPatterns *better* and this is exactly what
RC Playground uses.

Ahh.. alas Playground is Win only (if I'm thinking correctly that it's
the software that came in Coad's book), and I loaned tbe book and CD
to someone else ... g... ;-)

RC Take the Customer with Address property example: I create
RC Customer and Address Dataskins.  For Customer I have an
RC external method setAddress which sets the Address property of
RC my Customer object and this is how I would create a new
RC Customer: newCustomer = customerRack.newItem( CustomerCounter
RC ) newAddress = addressRack.newItem( AddressCounter )
RC newCustomer.setAddress( newAddress )

RC I prefer the simplicity this brings when I have to access the
RC properties of a Customer (without having to call a getter each
RC time I need an address): myCustomer.Address.Street

RC This also maps quite simply to SQL storage.

RC So although instances of Address are properties of Customer
RC they live on their own Rack and instances of Customer simply
RC refers to their Address through assignment.

Thanks... is that working between transactions? It has me a little
confused.  I've been snooping through the implementation of ZPatterns
for a clue and it looks to me like:

 a) the data manager for a DataSkin is a non-persistent attribute.
(self._v_dm_). I think this means that it needs to be set
somehow in every Zope transaction before you can do much of
anything with the instance.

 b) For Rack mounted DataSkins this should happen when the item is
retrieved from the Rack, and basically should be set to the Rack
itself.

 c) If an object is set as an attribute of another DataSkin won't
its data manager be lost at the end of the transaction?
How does it find its rack again at the next transaction?

 I too like the simplicity of setting attributes rather than
 saving IDs, and that may lead me to experiement with the
 folder/customizer stuff but right now I'm still doing
 specialists/racks ( for some reason... that's where I started! )

RC With Container/Content type objects I do roughly the same - I
RC have setContainer methods for the Content objects.

So most of your objects are defined in Python products, or are these
methods ExternalMethods?

thanks!
-steve

RC Roché



___
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] Windows NT, Zope, PostgreSQL, PoPy, and ZPoPyDA

2000-12-05 Thread Holger Lehmann

Am Freitag,  1. Dezember 2000 22:26 schrieben Sie:
 Is anyone using NT (or W2K), Zope, PostgreSQL, PoPy and ZPopyDA?
 Do PoPy and ZPoPyDA build on NT?  with cygwin?

Yes, cygwin should do the trick.

My colleague is successfully using PoPy to access a Postrgres DB, well under 
Linux :-)

 Thanks for any type of  input you have.

 Troy

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

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

-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel : +49 40 890 646-0
Info: 0700 catWorkX
( 0700 22 89 67 59 )
Fax : +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de


___
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] What difference between subclassing from OFS:Folder and ObjectManager

2000-12-05 Thread Dirksen

What is the difference between subclassing from OFS:Folder and ObjectManager? Is it the
ONLY difference that the ObjectManager is able to limit kinds of object to contain?

Dirksen

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

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




RE: [Zope] Simple site - hard to make ?

2000-12-05 Thread Max Møller Rasmussen

From: Michael Jenner [mailto:[EMAIL PROTECTED]]

Is this easy to do in Zope or ??

VERY easy if you know how. But it also depends on you abilities

Regards Max M

___
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] Problems with list?

2000-12-05 Thread Tony McDonald

I've had no email from this list since Friday at 06:50am.

Is there anything wrong with it?
Tone

-- 
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope


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




RE: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Paul Browning


Like others I was a bit puzzled as to how to Save As FTP
in HTML-Kit. I've just downloaded build 290 and got it
all working (the stuff may have lain undiscovered in
earlier verions - RTFM .).

The keys to cracking it are:

1. Go Workspace - Add FTP Server/Folder - Add FTP Server.
   Do the obvious (all familiar to Homesite users).
   A blue coloured ftp source will appear in the File pane
   on the RHS. Expand/collapse trees to navigate to the
   file you want to open.

2. Right-click and "Open As Text". Haven't yet fathomed
   the significance of this as opposed to other options.
   What I do know is that "Save" then does the business -
   saves it back to your FTP source.

As a 24-day-old (6 days to go ) Homesite evaluation
user I'm really, really impressed so far with HTML-Kit.
My thanks to Phil Harris et al for the tip.

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


___
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] Problems with list?

2000-12-05 Thread Phil Harris

Maybe?!?!?

- Original Message - 
From: "Tony McDonald" [EMAIL PROTECTED]
To: "Zope List" [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 10:43 AM
Subject: [Zope] Problems with list?


 I've had no email from this list since Friday at 06:50am.
 
 Is there anything wrong with it?
 Tone
 
 -- 
 Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
 The Medical School, Newcastle University Tel: +44 191 222 5116
 A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )


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




Re: [Zope] What difference between subclassing from OFS:Folder andObjectManager

2000-12-05 Thread Stefan H. Holek

On Tue, 5 Dec 2000, Dirksen wrote:

 What is the difference between subclassing from OFS:Folder and ObjectManager? Is it 
the
 ONLY difference that the ObjectManager is able to limit kinds of object to contain?
 

Deriving from OFS:Folder will only give you global meta types in the
Addbox, whereas deriving from ObjectManager will only give you the
included ZClasses. I have not yet found a way to have both ;(

Stefan


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




Re: [Zope] The not-very-Super user

2000-12-05 Thread Anthony Baxter


 An example might be: if somehow someone took all permissions
 away from all of your managers, they'd be out of luck. The 
 superuser could still log in and fix that though.

I actually got bit by this with what I suspect was a web browser
having severe mental problems - a submit of the security page cleared
_every_ single button. Double-plus ungood - I plan to make a patch 
that won't allow you to turn off all the buttons.

Anthony

-- 
Anthony Baxter [EMAIL PROTECTED]   
It's never too late to have a happy childhood.


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




Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-05 Thread Tino Wildenhain

Hi Frederic,

Frederic Quin schrieb:
 
 Hi all,
 
 I have the same querry to execute on different servers. I don't want to
 create as many z sql methods as servers I have. I would like to specify
 to my z sql method, the connection object to use at run time. Do I have
 to patch the files of z sql methods ? Can I use directly the connection
 object ??
A clean approach would be subclassing the zsql-method
for your purpose. I would not recommend a free-form
string as argument for the Datasource. May be an integer index 
(first, second, third... database server) 
or something like that? 

Regards
Tino

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




RE: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Paul Browning


Like others I was a bit puzzled as to how to Save As FTP
in HTML-Kit. I've just downloaded build 290 and got it
all working (the stuff may have lain undiscovered in
earlier verions - RTFM .).

The keys to cracking it are:

1. Go Workspace - Add FTP Server/Folder - Add FTP Server.
   Do the obvious (all familiar to Homesite users).
   A blue coloured ftp source will appear in the File pane
   on the RHS. Expand/collapse trees to navigate to the
   file you want to open.

2. Right-click and "Open As Text". Haven't yet fathomed
   the significance of this as opposed to other options.
   What I do know is that "Save" then does the business -
   saves it back to your FTP source.

As a 24-day-old (6 days to go ) Homesite evaluation
user I'm really, really impressed so far with HTML-Kit.
My thanks to Phil Harris et al for the tip.

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/

___
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] Sort broken on zope.org site...

2000-12-05 Thread Darin Lee

Zopistas,

Following up on my question yesterday, regarding sorting on the results columns of 
keyword/text based searches, I have noticed that if I do a text search on the zope.org 
site and then try to sort on a column - the same error comes up:

Error type:  TypeError
Error value: loop over non-sequence

I looked through the collector - but couldn't find anything related to this issue. 
Does anyone have any insight on how to fix this?

Thanks,
-Darin Lee


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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Robin Becker

I'm a bit puzzled as to how you get things like index_html to appear. My
homesite seems to need an extension list.
-- 
Robin Becker

___
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] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway)doesn't want to add Products

2000-12-05 Thread Shane Hathaway

On Mon, 4 Dec 2000, Bill Anderson wrote:

 Shane Hathaway wrote:
  Just packaged up.
  
  http://www.zope.org/Members/hathawsh/ExternalMount
 
 And there was almost much rejoicing.
 It doesn't seme to want to mount the root of a Data.fs, at least
 according to the add form. Is this by design? Were there problems with
 mounting the root of a Data.fs, or is it just a limitation of the add
 form?

It is by design.  If you were to mount the root of a Data.fs, you'd be
mounting an Application object with no ID.  This would play havoc with the
pseudo-filesystem.

The correct solution is to make it so folder objects do not contain their
own ID (but rather determined by the parent folder) and make Application
objects go away, replacing them with simple Folder objects.

Shane


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




[Zope] FTP for ZClass hierarchies

2000-12-05 Thread Jim Welch

As an avid emacs user I am delighted to be able to access DTML objects
via FTP. Recently I have been creating some ZClass hierarchies and
have been disappointed to discover that while I can access, via FTP,
the methods of a top-level ZClass, I can't access any methods of
ZClasses defined inside of a top-level ZClass. Is this a known
limitation of the FTP interface?

Interestingly, but perhaps merely coincidental, I notice that the URLs
of contained ZClasses as generated by the Zope management interface
have a "%20" immediately following the name of each contained ZClass
(but not the top-level ZClasss) - e.g,


http://blah.blah/Control_Panel/Products/newprod/toplev/propertysheets/methods/seclev%20/propertysheets/methods

Upon observing this, I had hoped that I could find success by
similarly modify my emacs FTP spec, as in:


[EMAIL PROTECTED]:/Control_Panel/Products/newprod/toplev/propertysheets/methods/seclev%20/propertysheets/methods

or,

[EMAIL PROTECTED]:/Control_Panel/Products/newprod/toplev/propertysheets/methods/seclev 
/propertysheets/methods

(yes, I used C-q space)

But neither of these worked.

___
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] What difference between subclassing from OFS:Folder and ObjectManager

2000-12-05 Thread Jim Welch

You can get both if you derive from ObjectManager and then use the
"Subobjects" tab in the Zope management interface.

"Stefan H. Holek" [EMAIL PROTECTED] writes:

 Deriving from OFS:Folder will only give you global meta types in the
 Addbox, whereas deriving from ObjectManager will only give you the
 included ZClasses. I have not yet found a way to have both ;(

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

2000-12-05 Thread Yvonne Totty

Well, I mean how can I make it 'write' the tags right?

For instance, I have this legacy page that needs to be
reworked visually. I want to keep the code, but move
the stuff around.

I open it in DW3, and it is a HUGE mess.

Have they released DW4?

-y

~~~
Yvonne Totty
Database Engineer
-
Wolverine: You actually go outside in these things?
Cyclops: Well, what would you prefer? Yellow spandex?

 In Dreamweaver 4, you can also use WebDAV to talk to Zope.

 ---
 "Sardonic Slaughterer of Sacred Cows"
 Todd Coram - mailto:[EMAIL PROTECTED]
 Digital Creations, Inc - http://www.digicool.com
 Publishers of Zope - http://www.zope.org

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M
  Sent: Monday, December 04, 2000 7:47 PM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: RE: [Zope] Dreamweaver
 
 
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Yvonne
  Totty
 
  I heard a nasty rumor that Dreamweaver could be made
  to use Zope. Is this true? If so, how do I do it?
 
  You just log onto Zope via ftp and do a "get site"
 
  getting to the dtml tags in the editor can be a bother though.
 
  I believe Dreamweaver 4.0 is better in this regards.
 
  Regards Max M
 
 
  Max M. W. Rasmussen,Denmark.   New Media Director
  private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
  -
  Specialization is for insects.  -  Robert A. Heinlein
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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




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

2000-12-05 Thread knight

Yes, DW4 has been released. I used it yesterday at work.

Knight

On Tue, 5 Dec 2000, Yvonne Totty wrote:

 Well, I mean how can I make it 'write' the tags right?

 For instance, I have this legacy page that needs to be
 reworked visually. I want to keep the code, but move
 the stuff around.

 I open it in DW3, and it is a HUGE mess.

 Have they released DW4?

 -y

 ~~~
 Yvonne Totty
 Database Engineer
 -
 Wolverine: You actually go outside in these things?
 Cyclops: Well, what would you prefer? Yellow spandex?

  In Dreamweaver 4, you can also use WebDAV to talk to Zope.
 
  ---
  "Sardonic Slaughterer of Sacred Cows"
  Todd Coram - mailto:[EMAIL PROTECTED]
  Digital Creations, Inc - http://www.digicool.com
  Publishers of Zope - http://www.zope.org
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M
   Sent: Monday, December 04, 2000 7:47 PM
   To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Subject: RE: [Zope] Dreamweaver
  
  
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
  Behalf Of Yvonne
   Totty
  
   I heard a nasty rumor that Dreamweaver could be made
   to use Zope. Is this true? If so, how do I do it?
  
   You just log onto Zope via ftp and do a "get site"
  
   getting to the dtml tags in the editor can be a bother though.
  
   I believe Dreamweaver 4.0 is better in this regards.
  
   Regards Max M
  
  
   Max M. W. Rasmussen,Denmark.   New Media Director
   private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
   -
   Specialization is for insects.  -  Robert A. Heinlein
  
  
  
   ___
   Zope maillist  -  [EMAIL PROTECTED]
   http://lists.zope.org/mailman/listinfo/zope
   **   No cross posts or HTML encoding!  **
   (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
  
  
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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




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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Jason Cunliffe

Paul

Thanks for your notes, especially the  "open as text" tip.

Very fast and easy.
HTML-Kit Preview is very useful too for changing forms in Zope.

Now if only someone would create an HTML-Kit library Zope extension complete
with all essential DTML and pythonisms for auto tag completion

- Jason
___
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']

- Original Message -
From: Paul Browning [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 8:04 AM
Subject: RE: [Zope] FTP in HTML-Kit? Sussed it!

 1. Go Workspace - Add FTP Server/Folder - Add FTP Server.
Do the obvious (all familiar to Homesite users).
A blue coloured ftp source will appear in the File pane
on the RHS. Expand/collapse trees to navigate to the
file you want to open.

 2. Right-click and "Open As Text". Haven't yet fathomed
the significance of this as opposed to other options.
What I do know is that "Save" then does the business -
saves it back to your FTP source.




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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Phil Harris

Jason,

Working on the HTML-Kit plugin as we speak. ;)

Phil

- Original Message -
From: "Jason Cunliffe" [EMAIL PROTECTED]
To: "Paul Browning" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 3:05 PM
Subject: Re: [Zope] FTP in HTML-Kit? Sussed it!


 Paul

 Thanks for your notes, especially the  "open as text" tip.

 Very fast and easy.
 HTML-Kit Preview is very useful too for changing forms in Zope.

 Now if only someone would create an HTML-Kit library Zope extension
complete
 with all essential DTML and pythonisms for auto tag completion

 - Jason
 ___
 Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']

 - Original Message -
 From: Paul Browning [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, December 05, 2000 8:04 AM
 Subject: RE: [Zope] FTP in HTML-Kit? Sussed it!

  1. Go Workspace - Add FTP Server/Folder - Add FTP Server.
 Do the obvious (all familiar to Homesite users).
 A blue coloured ftp source will appear in the File pane
 on the RHS. Expand/collapse trees to navigate to the
 file you want to open.
 
  2. Right-click and "Open As Text". Haven't yet fathomed
 the significance of this as opposed to other options.
 What I do know is that "Save" then does the business -
 saves it back to your FTP source.




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


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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Paul Browning


On Tue, 5 Dec 2000 13:56:04 + Robin Becker [EMAIL PROTECTED] 
wrote:

 I'm a bit puzzled as to how you get things like index_html to appear. My
 homesite seems to need an extension list.

For me it just works (index_html included). Mind you I declined all offers to
set preferences for browsers and file extensions when
HMTL-Kit started up for the first time.

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/



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




Re: [Zope] The not-very-Super user

2000-12-05 Thread Shane Hathaway

Brian Lloyd wrote:
 
I notice there were some CVS checkins about renaming it to the
'emergency user'. Cool, does this mean you're going to be
  able to define
a manager at install-time?
  
   Yes - the whole lame login-as-superuser-create-a-manager-and-relogin
   process will be gone in 2.3. At install time you'll create a first
   manager and just use that.
 
  Yay!
 
  As Max asked, any 2.3 timeframe? Python Scripts and no Super User alone
  make it _very_ enticing :-))
 
 I would reaaally like to see a beta by the end of
 Dec. - but don't quote me yet. Part of what I'm doing
 today is figuring what the resource situation looks like.
 
   He can un-screw permissions or users if you ever manage to
   get totally locked out of your site. Think of it as a user mounted
   in a box on the wall labeled "in case of emergency, break glass".
 
  How does this differ from a normal manager and how would you 'create a
  super user' as you descriebd in the bit I snipped?
 
 An example might be: if somehow someone took all permissions
 away from all of your managers, they'd be out of luck. The
 superuser could still log in and fix that though.
 
 I don't know the exact details of how a superuser is created
 yet - I expect that you will run zpasswd.py with a special
 option though (and restart). The relevant install docs will
 be updated to outline this when that branch is merged.

Here's how it is implemented right now.  The details could change if
someone can see any holes.

When Zope is started, there is already some initialization code that
gets run and has the opportunity to modify the ZODB if necessary.  A
procedure has been added that allows the root user folder to set up the
initial user.

If there are no users listed in the root user folder, it checks for a
file named "inituser" which has the same format as the "access" file. 
If found, it adds that user and tries to delete "inituser".  If, on the
other hand, there is already at least one user, the code that checks for
"inituser" is never executed.

The file named "access" now defines the emergency user.  It is no longer
required to exist--if it doesn't exist, no one can log in as the
emergency user.

Creating the emergency user or the initial user is easily done with the
zpasswd.py script.  You use it just as before.  The only difference is
that wo_pcgi.py calls a method which generates "inituser" rather than
"access".

So, to create an emergency user, execute:

  python zpasswd.py access

Or to create the inital user, execute:

  python zpasswd.py inituser

The Windows installer is an unfinished detail: there's a script that
executes "python zpasswd.py access".  It needs to execute "python
zpasswd.py inituser" instead.

There will be some problems with alternate user folders.  They expect to
be able to call methods on the SpecialUsers.super object.  When there is
no emergency user, the value of SpecialUsers.super is None.  The quick
solution is to create an emergency user.  The long-term solution is to
fix the user folders.

Shane

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




Re: [Zope] [ot] python book

2000-12-05 Thread Chris Withers

Python Essential Reference by David M. Beazley (New Riders)

The name says it all really ;-)

cheers,

Chris

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




[Zope] On DTML and Python Script.

2000-12-05 Thread Harris Peter

Jason Leach writes...
Message: 9
Date: Mon, 4 Dec 2000 12:36:26 -0800 (PST)
From: "Jason C. Leach" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Zope] On DTML and Python Script.

hi,

For Christmas I'd like a way to be able to use PHP or ASP type
scripting
rather than DTML.

like:

%py

My python Script or Code.

py%

Or
dtml

My DTML.

/dtml

Having to manager all those dtml  and tags is not as good as it
could
be.  I suspect it's more of a deturant than anything else. I do
agree that
DMTL should be use as little as possible with Python used for
anything
over 10 lines.  But why have a scripting language for both methods
over
and under 10 lines?

j.

..
. Jason C. Leach
... University College of the Cariboo.

Yekk, no !  
I use Progress WebSpeed at work. Webspeed does something
similar to what you suggest, only with Progress 4GL
embedded in the HTML between certain tags.

This is OK at first, but it often gets ugly, especially where you
are jumping in and out of 4GL just to do simple conditionals or
iterations that DTML makes not too painful with dtml-if and
dtml-in.

OK, I am one of those poor fools who is trying to do too much
in DTML. But it's not too bad as long as you factor it out well
and keep any messy code in DTML methods rather than
mixed in with your HTML.

Just my opinion, though.

Peter Harris



This message and any files transmitted with it are confidential.  
The contents may not be disclosed or used by anyone other 
than the addressee. 
If you have received this communication in error, please delete 
the message and notify JBB (Greater Europe) Plc immediately 
on 0141-249-6285.

The views expressed in this email are not necessarily the views 
of JBB (Greater Europe) PLC.  
 As it has been transmitted over a public network, 
JBB (Greater Europe) PLC makes no representation nor accepts 
any liability for the email's accuracy or completeness unless 
expressly stated to the contrary.

Should you, as the intended recipient, suspect that the message 
has been intercepted or amended, please notify 
JBB (Greater Europe) Plc immediately on 0141-249-6285.



___
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] On DTML and Python Script

2000-12-05 Thread Phill Hugo

Jason Leach pointed out that Document Template could include ASP/PHP
style Python escapes to embed code. This may seem a good idea at first
but part of the really nice thing about Zope is that it goes a fair way
to ensure you organise your work cleanly and seperate logic from the
layout.

In PHP I always use FastTemplate which offers pretty much only what
dtml-var VARIABLE_NAME does (that doesn't include dtml-var
"VAR1+VAR2" or anything "clever"). The benefit of having no logic in
your HTML is huge when you have multiple people working on the project.
The "creep" of template systems to hold more and more logic such as
Loops, Conditions etc is forgivable as it allows basic programming to be
done by the HTML people but strictly it isn't necessary as long a
variable insertion / tag replacement is possible.

If you are "having to [use] all those dtml tags" then you're probably at
the point where replacing that big chunk with dtml-var welcomeMessage
is in order. This could be anything you want (Python method, External
Method, DTML method etc) which does the real logic and conditionally
returns its output to the master template (that content possibly from
another smaller, reused DTML method - it amazing how many sites use the
same text all over it (like Next 10, Prev 10 for example!).

At that point you've removed any fear of the HTML people walking over
your code with a bulldozer and it means they can update things while you
do.

What I'm suggesting is that %, ?php and %py are Bad Things. If you
want them, use ASP with Python hosted inside or PHP. Much of the benefit
of Zope is that it keeps things elegant. The overhead of splitting
things up so much is small when you start to reuse the bits (by my
milage this is on regular occasion).

Even the dtml-if, dtml-in and dtml-let tags could be argued to be
Bad Things but they are convenient in some cases (they are easy for HTML
writers to understand and can be used for simple things by them).

I don't really see the "convenience" of a Python code escape as its just
as easy to make a Python Method and pop dtml-var MyPythonMethod in its
place keeping things neat.

Still, I suppose it'd hardly matter if it was available, those who agree
with the above would probably ignore it, much as I ignore it in PHP and
use FastTemplate instead.

Phill

___
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] [ot] python book

2000-12-05 Thread Lee Reilly CS1997

Hi,

I'm going through the tutorials available on Python.org but can anyone
recommend a good book?

I've always been impressed by O'Reilly's books and I see that there are
a number of them available:

- Python Programming on Win32 
- Learning Python 
- Programming Python 

Which one of the above (or indeed, any others) would be best for me? 
Me? I've got some C experience and will be using Python with Zope to
create a portal,  some simple apps.

Any advice would be greatly appreciated.

- Best regards,
Lee

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




Re: [Zope] [ot] python book

2000-12-05 Thread Ragnar Beer

I read Learning Python and still love it and would highly recommend 
it. The book is very good! Apart from that I'm using the Python 
Essential Reference more often nowadays. It's handier than a printout 
of the lib.pdf but actually you don't really need if if you are comfy 
with the pdf stuff.

What I'm still missing is something like the perl cookbook but for Python :(

Ragnar

Hi,

I'm going through the tutorials available on Python.org but can anyone
recommend a good book?

I've always been impressed by O'Reilly's books and I see that there are
a number of them available:

- Python Programming on Win32
- Learning Python
- Programming Python

Which one of the above (or indeed, any others) would be best for me?
Me? I've got some C experience and will be using Python with Zope to
create a portal,  some simple apps.

Any advice would be greatly appreciated.

- Best regards,
Lee

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


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




Re: [Zope] [ot] python book

2000-12-05 Thread peter bengtson

Learning Python is good and has good "english".
But Python The Quick Book (ugly cover) has brilliant english writing, and is
probably more pedagogic than others.



 Hi,

 I'm going through the tutorials available on Python.org but can anyone
 recommend a good book?

 I've always been impressed by O'Reilly's books and I see that there are
 a number of them available:

 - Python Programming on Win32
 - Learning Python
 - Programming Python

 Which one of the above (or indeed, any others) would be best for me?
 Me? I've got some C experience and will be using Python with Zope to
 create a portal,  some simple apps.

 Any advice would be greatly appreciated.

 - Best regards,
 Lee

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



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




[Zope] HTML - ZOPE?

2000-12-05 Thread Tom Deprez



Hi,

I'm not sure if this is a strictly zope question, 
but I hope some people can give me an idea on how to solve this problem. 


I'm creating a form which has amonng it's input 
tags 2 comboboxes.

Now, the content of one combobox, depends on the 
selection of the first combobox.

How can I handle this in Zope, Html?

Is this even possible in html? I assume, yes if you 
refresh the page each time the user makes a selection in the first combobox, but 
how?

Thanks, Tom.


[Zope] manage_main in python product

2000-12-05 Thread Menard . Jean-Francois

I'm developping a python simple product. I want to define a tab in the
management interface as the manage_main of a subobject in it.  Is it
possible, and if it is, how can I do that?

Jean-François Ménard
Intranet DPAS
Pratiques d'affaires et orientations
*(514) 840-3000  poste 3939
*  (514) 840-5585
*  [EMAIL PROTECTED]
* 855 Ste-Catherine est, 6e étage
  Montréal, Qué. H2L 4P5


___
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] HTML - ZOPE?

2000-12-05 Thread Oliver Bleutgen

 Hi,

 I'm not sure if this is a strictly zope question, but I hope some people
 can give me an idea on how to solve this problem.

 I'm creating a form which has amonng it's input tags 2 comboboxes.

 Now, the content of one combobox, depends on the selection of the first
 combobox.

 How can I handle this in Zope, Html?

 Is this even possible in html? I assume, yes if you refresh the page each
 time the user makes a selection in the first combobox, but how?

 Thanks, Tom.

The only way I see to do this with plain html is to just
make 2 forms, the second is served depending on the users
input on the first and has hidden input fields.

But if you decide to go with javascript, you might as well
do the whole logic in one page.
See for instance 
http://www.acenetglobal.com/JSMulti.asp
or just enter some of the right words into google, there 
are a lot of sites about that stuff.

cheers,
oliver



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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Stefan H. Holek

On Tue, 5 Dec 2000, Jason Cunliffe wrote:

 Thanks for your notes, especially the  "open as text" tip.

I found an option in "Edit | Preferences | Workspace" named 
"Ignore file type when opening/inserting"

It may have (yet undetected) side effects, but doubleclicking
index_html now does what I would expect it to... ;)

Regards,
Stefan


___
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] HTML - ZOPE?

2000-12-05 Thread Andy McKay

You either have to refresh / reload the page after the first combo box, go
for two pages or go for javascript.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Oliver Bleutgen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 10:51 AM
Subject: Re: [Zope] HTML - ZOPE?


  Hi,

  I'm not sure if this is a strictly zope question, but I hope some people
  can give me an idea on how to solve this problem.

  I'm creating a form which has amonng it's input tags 2 comboboxes.

  Now, the content of one combobox, depends on the selection of the first
  combobox.

  How can I handle this in Zope, Html?

  Is this even possible in html? I assume, yes if you refresh the page
each
  time the user makes a selection in the first combobox, but how?

  Thanks, Tom.

 The only way I see to do this with plain html is to just
 make 2 forms, the second is served depending on the users
 input on the first and has hidden input fields.

 But if you decide to go with javascript, you might as well
 do the whole logic in one page.
 See for instance
 http://www.acenetglobal.com/JSMulti.asp
 or just enter some of the right words into google, there
 are a lot of sites about that stuff.

 cheers,
 oliver



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



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




Re: [Zope] string splitting in dtml

2000-12-05 Thread Mike Kelland

I tried what you recommended and got the following error:

Error Type: AttributeError
Error Value: __getslice__

The problem I think is that the variable is drawn from the database as type
date (Microsoft Access 2k) and somehow is cast into a date type.  Is there a
way to re-cast this variable as a string type?  Or is there another reason
it's not working (I've tried it with my other varibles pulled from the
database in the same query and it's only the date types that are giving this
error, all other variables work fine)?

I also tried the

dtml-var "_.string.split(start_date, '/')[1]"

solution but got the error:

Error Type: TypeError
Error Value: argument 1: expected read-only character buffer, instance found

Thanks very much for everyone's help so far!
Mike Kelland
[EMAIL PROTECTED]

- Original Message -
From: "Spicklemire, Jerry" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 04, 2000 4:38 PM
Subject: [Zope] string splitting in dtml


 Mike asked:

  I have a date string (ie dd/mm/yy) which I'm drawing out of a database
  (ODBC connection to Access) with a Z SQL method and I need to use that
  data to set the initial condition of a set of 3 select items (ie day,
  month and year).  Is there a way to split this date (it'll come out
  looking like dd/mm/yy) to get the components of it

 You could use the Python "string slice" syntax, like so:

 dtml-let day_of_month="_['start_date'][:2]"
   month_of_year="_['start_date'][3:5]"
   year_of_century="_['start_date'][6:8]"
 The dtml-var day_of_month day,br
 of the dtml-var month_of_year month,br
 of the year 20dtml-var month_of_centurybr
 /dtml-let

 Later,
 Jerry S.

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




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




Re: [Zope] How to specify to z sql methods, the connection object to use at runtime...time...

2000-12-05 Thread Randall Kern

I haven't actually tried this, but it seems it should work:

/
/db1- folder
connection- a DB connection object to db 1
/db2- folder
connection- a DB connection object to db 2
query- a ZSqlMethod, set to use the connection 'connection'.  Note,
you may have to add a temporary DB connection to the root, to allow you to
setup these methods.  After you have created your methods, remove the
/connection object.

Then use urls like http://your.server/db1/query to run the query using the
first database connection, and http://your.server/db2/query to run query
using the second database connection.

-Randy
- Original Message -
From: "Tino Wildenhain" [EMAIL PROTECTED]
To: "Frederic Quin" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 4:56 AM
Subject: Re: [Zope] How to specify to z sql methods, the connection object
to use at runtime...time...


 Hi Frederic,

 Frederic Quin schrieb:
 
  Hi all,
 
  I have the same querry to execute on different servers. I don't want to
  create as many z sql methods as servers I have. I would like to specify
  to my z sql method, the connection object to use at run time. Do I have
  to patch the files of z sql methods ? Can I use directly the connection
  object ??
 A clean approach would be subclassing the zsql-method
 for your purpose. I would not recommend a free-form
 string as argument for the Datasource. May be an integer index
 (first, second, third... database server)
 or something like that?

 Regards
 Tino

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



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




Re: [Zope] Does 2.2.4 solve Proxy+ZCatalog bugs?

2000-12-05 Thread Andy McKay

It works fine for me. I dont know if that proves anything except I cant find
the problem again.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "ethan mindlace fremen" [EMAIL PROTECTED]
To: "Marcin Kasperski" [EMAIL PROTECTED]
Cc: "Zope List Submission" [EMAIL PROTECTED]
Sent: Wednesday, November 29, 2000 12:29 PM
Subject: Re: [Zope] Does 2.2.4 solve Proxy+ZCatalog bugs?


 Marcin Kasperski wrote:

  The question as in the title. In changes for 2.2.3 I found:
 
 - Resolved known condition in the Catalog where objects are
   not guaranteed to be unindexed before indexing happens
   again.  Now objects are guaranteed to be unindexed correctly
   first.  This should resolve all outstanding KeyErrors with
   Catalog, although currently broken Catalogs will require a
   reindex to resolve them.
 
  Has anyone verified whether this in fact corrects the infamous ZCatalog
  key errors when one tried to reindex site proxied with Apache?
 
  Regards


 Zope.org has been updated to 2.2.4 and we're still getting key errors.
 However, the current suspicion is that one of our products isn't playing
 nice with the catalog.  More information when we get it.

 Thanks,

 ethan mindlace fremen
 Zopatista Community Liason.


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



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




Re: [Zope] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread Jason Cunliffe

Yes interesting + thanks again.
Also there is radio button in "Edit | Preferences | Workspace"

'Transfer mode' = use text mode to transfer files with extensions

and then a long list:

al;asa;asc;asp;aspc;aspx;bas;bat;c;c++;cat;cc;cfm;cfml;cgi;cnf;conf;cpp;cs;c
ss;css1;css2;css3;csv;cxx;dcl;decl;dtd;dtml;el;ent;etx;f90;h;h++;hh;hkh;hks;
hpd;hpp;htaccess;htm;html;htt;htx;hxx;inc;inf;ini;inl;iss;j;jav;java;javascr
ipt;js;jscript;l;latex;lcd;lisp;log;lsp;m;pas;pc;perl;php;php2;php3;php4;php
5;php6;pht;phtml;pl;pl3;pl4;pl5;pl6;pl7;pll;plx;pm;py;rtf;rtx;scm;shtm;shtml
;soc;sql;stm;sys;tex;text;tsv;txt;vb;vbs;xml;xsd

so I addeddtml;  not sure what side efect there but seems to
be ok :-)

- Jason
___
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']

From: Stefan H. Holek [EMAIL PROTECTED]
Subject: Re: [Zope] FTP in HTML-Kit? Sussed it!

 I found an option in "Edit | Preferences | Workspace" named
 "Ignore file type when opening/inserting"

 It may have (yet undetected) side effects, but doubleclicking
 index_html now does what I would expect it to... ;)



___
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] Link counter

2000-12-05 Thread Andy McKay

FSCounter happily counts things effeciently on the file system and could be
used for counting, followed by a redirect as Chris says.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Chris Gray" [EMAIL PROTECTED]
To: "Brendon Grunewald" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, December 03, 2000 8:47 AM
Subject: Re: [Zope] Link counter


 You want something like this in your linking page:

 form action="count_and_pass"
 input type="hidden" name="target_url" value="http://www.zope.org/"
 input type="submit" value="Go to Zope.org"

 OR

 a href="count_and_pass?target_url=http%3a//www.zope.org/"Go to
 Zope.org/a

 Then you need a 'count_and_pass' DTML Method like:

 dtml-call increment
 dtml-call expr="RESPONSE.redirect(_['target_url'])"

 and a ZSQL Method called 'increment' that takes 'target_url' as an
 argument and increments the count for that URL.  Or you can get fancier
 and use the ZSQL method to record each click through along with date and
 info like the users IP and the refering page.  These last will be in the
 REQUEST from the linking page.

 Cheers,
 Chris

 On Sun, 3 Dec 2000, Brendon Grunewald wrote:

  I have recently been asked by a partner site to provide them with a
count of how many times someone links from my site to theirs. Since there
are many ways they could hyperlink to that site (Squishdot articles, normal
links, banner ads etc), is there a way in zope to keep track or to extract
that info? OR am I stuck with the server logs?
 
  Regards,
  Brendon
  --
  70South: the No.1 source for Antarcticles.
  For the latest news and views on Antarctica visit :
http://www.70south.com
 





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



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

2000-12-05 Thread michael angelo ruberto

hi,

i was wondering what if any difference there is for zope if i install it to
access mod_fastcgi through a port as opposed to a socket. which is the
recommended/safest approach?

thanks

-mike-


___
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] ZMySQLDA traceback

2000-12-05 Thread Rodrigo Leme de Mello

Hi All,

I am trying to install ZMySQLDA and as a result of my installation,  i am
getting the following traceback

ZMySQLDA Import Traceback
Traceback (innermost last):
  File "/home/zope/224/lib/python/OFS/Application.py", line 397, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
  File "/home/zope/224/lib/python/Products/ZMySQLDA/__init__.py", line 106,
in ?
import sys, os, Globals, DA
  File "/home/zope/224/lib/python/Products/ZMySQLDA/DA.py", line 108, in ?
from db import DB
  File "/home/zope/224/lib/python/Products/ZMySQLDA/db.py", line 106, in ?
import _mysql, regex, sys
ImportError: No module named _mysql

Any help will be welcome

Regards

Rodrigo


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




Re: [Zope] FTP in HTML-Kit? (Or other editor on MS-Windows)

2000-12-05 Thread Martijn Pieters

On Mon, Dec 04, 2000 at 11:09:00PM +0100, Oliver Bleutgen wrote:
 A very interesting feature for zope seems to be the following:
 
 " Ability to map local folders to remote servers, for the purpose 
 of previewing files with server-side scripting through the server 
 ("Edit | Preferences... | Preview | Edit Preview Rules..."). 
 The user interface for this option has not been finalized."

I haven't yet been able to get this to work; I don't think it applies to
files retrieved from FTP. You can, however, rightclick on a file in the
Workspace and choose preview to open it in a browser window.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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




Re: [Zope] [ot] python book

2000-12-05 Thread Rik Hoekstra



 What I'm still missing is something like the perl cookbook but for Python
:(

I don't know the perl cookbook, but the eff-bot guide to the Python library
has some 300 scripts in it. You can get it from fatbrain.com. It is in pdf
version only (or at least a
print-it-yourself-with-some-fancy-epublishing-wrapping-by-fatbrain-version)

URL:
http://www1.fatbrain.com/asp/bookinfo/bookinfo.asp?theisbn=EB00019352vm=

hth

Rik


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

2000-12-05 Thread Mark A. Pappas

Hi All,
I'm new to Zope. Just installed it a few minutes ago. Everything installed
fine. Logged in

http://localhost:8080/manage

worked great. I'm trying to figure out the web server portion of zope. I was
reading the docs the chart that talks about ZServer Command Line Switches.
It tells me the default port is 8080. To change that do a

-w 80

after the -D. In the start.bat. I tried all kinds of things and never was
able to get zope up on port 80 as a web server (www.whatever.com_ or
XXX.XXX.XXX.XXX). What am I missing?

Thanks
Mark A. Pappas


Ashecca Communications, Inc.
1550 Creighton, Rd.
Suite 6
Pensacola, FL 32504

Phone: (850) 474-4027
Fax: (850) 474-3647


___
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] Database Image Publishing

2000-12-05 Thread Mohan Baro

Hey Guys and Gals,

Can anyone help me to

Retrieve, Update, Insert image files into a Database in Zope.



I am running zope on linux mandrake and use ZSever
The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary
dist.)

Mo.




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

2000-12-05 Thread Ron Bickers



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 michael angelo ruberto
 Sent: Tuesday, December 05, 2000 3:36 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] mod_fastcgi


 hi,

 i was wondering what if any difference there is for zope if i
 install it to
 access mod_fastcgi through a port as opposed to a socket. which is the
 recommended/safest approach?

In theory (and maybe in practice) the socket should be faster since it does
not go through the networking process.  However, since it uses a local file,
Zope and Apache must be one the same system.  Using a TCP port would be
slower, but it allows you to run Zope and Apache on different machines.  As
to how much faster or slower, I have no idea if anyone has done any testing.

As for safest/recommended, avoiding the network is probably always safer
(although with the loopback, I'm not sure it makes any difference).  But if
you need to run them on different servers, you don't have a choice.

I've found mod_fastcgi very easy to configure in Apache and have had no
problems using it through a port.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope] Simple site - hard to make ?

2000-12-05 Thread Dieter Maurer

Michael Jenner writes:
  I would like to set up a site with the following contents /
  requirements:
  
  1. One main-page (no header / footer). Mainly a clickable image + a few
  links.
  
  2. A section with articles. Including the "Print this page" option. This
  section should use one set of headers and footers. Contents and
  formatting should be separated. Authors should be allowed to correct
  articles.
  
  3. A section with news. This section should use another set of headers
  and footers.
  
  4. A section with exits.
  
  All pages except the main page should have a common navigation system.
  (simple is fine).
  
  Is this easy to do in Zope or ??
It is easy.

Have a look at the Zope book (via zope.org).



Dieter

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




[Zope] Large XML files

2000-12-05 Thread paul_s_johnson

I am testing the possibilities of delivering the content of  XML Documents
through the Zope environment.  Unfortunately, some of the proposed file are
rather large (up to 760KB) and just uploading them and viewing them on our
current Zope server is prohibitively slow.  Our server, running Z2 is a
blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom feeders).
Is the bottleneck the hardware; is there something I can do software-wise
to improve performance; or is development not yet advanced enough to handle
this scenario efficiently? Any opinions on this?

Thanks,

P. Johnson



___
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] version 2.2.4 just blew up!

2000-12-05 Thread michael angelo ruberto

hi,

i just performed the upgrade from 2.2.2 to 2.2.4 and it blew up after
running for a few minutes. it happened as i clicked the link to Debug
Information from the control panel. Zope does start up again and the same
thing occurs each time i click this link. i can send you the Dr. Watson
error log if you think it will help you but i prefer not to send it to a
public list. please send me a personal email address for this. i can also
send a screen shot of the error message.

Python is dying.

-mike-


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

2000-12-05 Thread michael angelo ruberto

Ron,


 i was wondering what if any difference there is for zope if i
 install it to
 access mod_fastcgi through a port as opposed to a socket. which is the
 recommended/safest approach?

In theory (and maybe in practice) the socket should be faster since it does
not go through the networking process.  However, since it uses a local file,
Zope and Apache must be one the same system.  Using a TCP port would be
slower, but it allows you to run Zope and Apache on different machines.  As
to how much faster or slower, I have no idea if anyone has done any testing.

As for safest/recommended, avoiding the network is probably always safer
(although with the loopback, I'm not sure it makes any difference).  But if
you need to run them on different servers, you don't have a choice.

I've found mod_fastcgi very easy to configure in Apache and have had no
problems using it through a port.
___

thanks for the info! my co-worker just informed me that he thinks it is
faster to use the port when dealing with a firewall. since it seems easier
this way i guess i'll go with the port.

much appreciated!

-mike-


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


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




Re: [Zope] Zope Beginner

2000-12-05 Thread Phil Harris

Mark,

Here's the line from my Zope start script, it may help:

"D:\zope\bin\python.exe" "D:\zope\z2.py" -X -w20080 -f20021 %1 %2 %3 %4 %5
%6 %7 %8 %9

This line turns off 'debugging' mode (note the absence of -D), it also shuts
down all servers by default (-X), then explicitly starts http on port 20080
(-w20080) and ftp on 20021 (-f20021).

You should also look at the docstrings in zopedir/z2.py for more options.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Mark A. Pappas" [EMAIL PROTECTED]
To: "Zope User Maillist" [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 9:56 PM
Subject: [Zope] Zope Beginner


 Hi All,
 I'm new to Zope. Just installed it a few minutes ago. Everything installed
 fine. Logged in

 http://localhost:8080/manage

 worked great. I'm trying to figure out the web server portion of zope. I
was
 reading the docs the chart that talks about ZServer Command Line Switches.
 It tells me the default port is 8080. To change that do a

 -w 80

 after the -D. In the start.bat. I tried all kinds of things and never was
 able to get zope up on port 80 as a web server (www.whatever.com_ or
 XXX.XXX.XXX.XXX). What am I missing?

 Thanks
 Mark A. Pappas


 Ashecca Communications, Inc.
 1550 Creighton, Rd.
 Suite 6
 Pensacola, FL 32504

 Phone: (850) 474-4027
 Fax: (850) 474-3647


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


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




Re: [Zope] Large XML files

2000-12-05 Thread Jim Hebert

You could check into the ExtFile product (search on zope.org) and see if
that makes a perf difference.

That said, just about anything on that setup is going to be slow!!
Please excuse the os advocacy, but given that this is likely all you'd
dream of running on this server anyways (ie it's not like it's also going
to be your Exchange server), you might consider putting something that
will leave more spare RAM and cpu time for Zope on that box, e.g. Linux or
some other OS more suited towards the low end server hardware market.

Or buy a nicer box to run this on. If you don't have existing unix skills
in-house then throwing money at hardware might be less expensive than
investing in human resources to get a Linux box going. (Whew, being
even-handed is so much harder than being an OS bigot...;-)

Sorry that's probably not what you wanted to hear. =)
jim

On Tue, 5 Dec 2000 [EMAIL PROTECTED] wrote:

 I am testing the possibilities of delivering the content of  XML Documents
 through the Zope environment.  Unfortunately, some of the proposed file are
 rather large (up to 760KB) and just uploading them and viewing them on our
 current Zope server is prohibitively slow.  Our server, running Z2 is a
 blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom feeders).
 Is the bottleneck the hardware; is there something I can do software-wise
 to improve performance; or is development not yet advanced enough to handle
 this scenario efficiently? Any opinions on this?

 Thanks,

 P. Johnson



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



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




[Zope] Zope 2.3 plan updated...

2000-12-05 Thread Brian Lloyd

Hi all - 

We're gearing up for getting a new feature release out so 
for those interested I've updated the Zope 2.3 plan at:

http://dev.zope.org/Resources/zope_230_plan.html


The main changes from the prior version are that it is much 
more detailed, some items have been added and the item for 
updating ZDOM to DOM level 2 has been dropped (until there 
is a clearer justification for it).

I hope to make an alpha 1 release on Monday the 11th with 
the new Python Scripts and fixed user bootstrapping, among 
other things (see the plan for details).


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 )




Re: [Zope] [ot] python book

2000-12-05 Thread Andy McKay

Learning Python.
--
  Andy McKay, Developer.
  ActiveState.

- Original Message - 
From: "Lee Reilly CS1997" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 8:40 AM
Subject: [Zope] [ot] python book


 Hi,
 
 I'm going through the tutorials available on Python.org but can anyone
 recommend a good book?
 
 I've always been impressed by O'Reilly's books and I see that there are
 a number of them available:
 
 - Python Programming on Win32 
 - Learning Python 
 - Programming Python 
 
 Which one of the above (or indeed, any others) would be best for me? 
 Me? I've got some C experience and will be using Python with Zope to
 create a portal,  some simple apps.
 
 Any advice would be greatly appreciated.
 
 - Best regards,
 Lee
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 


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




Re: [Zope] Large XML files

2000-12-05 Thread Phil Harris

Paul,

The XMLDocument type is rather 'expensive' and you may be able to 'get away'
with using a simpler type such as DTMLDocument.

If you don't need the DOMification of your XML when you put it into Zope
this is something i'd look at..

I have done this with large documents and then used an external method to
process them with XSLT, XPath etc.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 10:01 PM
Subject: [Zope] Large XML files


 I am testing the possibilities of delivering the content of  XML Documents
 through the Zope environment.  Unfortunately, some of the proposed file
are
 rather large (up to 760KB) and just uploading them and viewing them on our
 current Zope server is prohibitively slow.  Our server, running Z2 is a
 blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom feeders).
 Is the bottleneck the hardware; is there something I can do software-wise
 to improve performance; or is development not yet advanced enough to
handle
 this scenario efficiently? Any opinions on this?

 Thanks,

 P. Johnson



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


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




Re: [Zope] ZMySQLDA traceback

2000-12-05 Thread Curtis Maloney

On Wednesday 06 December 2000 08:47, Rodrigo Leme de Mello wrote:
 Hi All,

 I am trying to install ZMySQLDA and as a result of my installation,  i am
 getting the following traceback

 ZMySQLDA Import Traceback
 Traceback (innermost last):
   File "/home/zope/224/lib/python/OFS/Application.py", line 397, in
 import_products
 product=__import__(pname, global_dict, global_dict, silly)
   File "/home/zope/224/lib/python/Products/ZMySQLDA/__init__.py", line 106,
 in ?
 import sys, os, Globals, DA
   File "/home/zope/224/lib/python/Products/ZMySQLDA/DA.py", line 108, in ?
 from db import DB
   File "/home/zope/224/lib/python/Products/ZMySQLDA/db.py", line 106, in ?
 import _mysql, regex, sys
 ImportError: No module named _mysql

 Any help will be welcome


You have not installed the Python MySQL module.  Depending on which MySQL 
Zope product you downloaded, this either came with it, or you will have to 
download it seperately.

Last time I installed a fresh Zope/Python combo, I used ZMySQLDA 1.2.0, which 
comes with the MySQLdb Python module sources.  I found it to be a fairly 
simple and painless install.

Previous versions did require you to download the MySQLdb module seperately.  
Both are on www.zope.org.

 Regards

 Rodrigo



Have a better one,
Curtis Maloney

___
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] Sort broken on zope.org site...

2000-12-05 Thread Itai Tavor

Darin Lee wrote:

Zopistas,

Following up on my question yesterday, regarding sorting on the 
results columns of keyword/text based searches, I have noticed that 
if I do a text search on the zope.org site and then try to sort on a 
column - the same error comes up:

Error type:  TypeError
Error value: loop over non-sequence

I looked through the collector - but couldn't find anything related 
to this issue. Does anyone have any insight on how to fix this?

Thanks,
-Darin Lee

Actually, I believe it's a known bug. I hit this problem on zope.org 
last week and searched the collector before going to report a bug. I 
found an entry that said something like "Catalog sort_on fails with 
Keyword index". Don't have the link, but I'm pretty sure it's in 
there somewhere.

Itai
-- 
Itai Tavor"Je sautille, donc je suis."
C3Works[EMAIL PROTECTED]  - Kermit the Frog

"If you haven't got your health, you haven't got anything"


___
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] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway)doesn't want to add Products

2000-12-05 Thread Bill Anderson

Shane Hathaway wrote:
 
 On Mon, 4 Dec 2000, Bill Anderson wrote:
 
  Shane Hathaway wrote:
   Just packaged up.
  
   http://www.zope.org/Members/hathawsh/ExternalMount
 
  And there was almost much rejoicing.
  It doesn't seme to want to mount the root of a Data.fs, at least
  according to the add form. Is this by design? Were there problems with
  mounting the root of a Data.fs, or is it just a limitation of the add
  form?
 
 It is by design.  If you were to mount the root of a Data.fs, you'd be
 mounting an Application object with no ID.  This would play havoc with the
 pseudo-filesystem.
 
 The correct solution is to make it so folder objects do not contain their
 own ID (but rather determined by the parent folder) and make Application
 objects go away, replacing them with simple Folder objects.
 
 Shane


So, what would you suggest for the following scenario?

o Site distirbuted via ZEO
o Using SiteAccess2 for virtual hosting sites under
  /vhosts/thissite /vhosts/thatsite
o each site is actually it's own full Data.fs

Under non-zeo, it's simple, use a mounted filestorage, and it works
quite well. Unfortunately, it doesn't work under zeo, for obvious
reasons. If I had time, I'd do a mountedZEOstorage, but time is too much
a precious commodity for the next few weeks/months. :/

Bill


___
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] FTP in HTML-Kit? Sussed it!

2000-12-05 Thread jimbo

Thanks for the tips.  Here's how I mapped a local folder in order to
use the preview feature.  I'm not talking about right click preview.
Look under edit/preference/preview
Server mappings Server Address
c:\work http://www.myhost.com:8080

"c:\work" holds my dtml files like index_html and such.  
This little proggie for windows rocks!

-jimbo

___
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] the day of zope headaches

2000-12-05 Thread michael angelo ruberto

ok,

i'm not that superstitious but today must be Zopes equivalent of friday the
13th. i've nothing but headaches with it all day today. maybe the warranty
expired ;)

here we go the new problem is this:

Zope has encountered an error while publishing this resource.

IOError

Sorry, a Zope error occurred.


such a very helpful message. this happened while reindexing the ZCatalog
used for the main site search. i do this every week without problems. it
takes a bit longer each week but never got this error before. have i maxed
it out or something? has anyone else come across this?

as always, help greatly appreciated!

thanks

-mike-

ps: the catalog is now empty.


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




[Zope] Newbie question, help with navigation method

2000-12-05 Thread Richard Blumberg

I've a Zope newbie, trying to set up a Zope site at zope.org, and I'm 
running into problems with what seems like it should be a fairly 
simple navigation method.

I've replaced the standard_html_header and footer methods with my 
own, which create a simple two column table; I'm trying to get the 
navigation information into the left column. I've established a 
nav_title property on the two pages that I want to show up in the 
navigation list, with the values "Home" and "Biography", and I've 
written a nav_vertical method to display the list:

dtml-in objectValues
dtml-if nav_title
a href="dtml-absolute_url;"dtml-var nav_title/abr
/dtml-if
/dtml-in

I've embedded a call to that method in the standard_html_header method:

html
head
titledtml-var title_or_id/title
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/head
body bgcolor="#FF"
table width="90%" border="0" cellpadding="8"
   tr
 td align="center"img 
src="http://www.zope.org/Members/rblumberg/images/rbRight" width="50" 
height="60"/td
 td valign="bottom"
   h2dtml-var title/h2
 /td
   /tr
   tr
 td valign="top"hr
dtml-var nav_vertical
hr/td
 td

(The table cells are closed in the standard_html_footer.)

Now, the nav_vertical method works exactly as planned when I call it directly:

http://www.zope.org/Members/rblumberg/nav_vertical

The header method also displays correctly (even without the closing 
tags, at least in MSIE 5) when it is called directly:

http://www.zope.org/Members/rblumberg/standard_html_header

But the pages which call the new header don't display the navigation list:

http://www.zope.org/Members/rblumberg/index_html

Is this a bug in Zope, or am I doing something wrong?

Richard

___
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] just curious

2000-12-05 Thread michael angelo ruberto

hi,

how do i remove all of the 7000 + company documents from Zope?

-mike-

___
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] version 2.2.4 just blew up

2000-12-05 Thread jimbo

Same thing happened to me on upgrading from 2.2.2.  I just reinstalled the full 
version over the hosed upgrade and it worked again.
-Jimbo

___
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] Comment elimination...

2000-12-05 Thread Curtis Maloney


Greetings,

Whilst developing, i often dtml-comment out some part of a document so I 
can test an replacement/option/something.  Sometimes, due to interruptions or 
just my poor memory, I don't remove the old code...

I was just wondering if there were some convenient way I could search all of 
my DTML[Documents|Methods] and ZSQL Methods, for comments, so I could review 
them?

Perhaps it's time I learned how to use ZCatalog?

Have a better one,
Curtis Maloney.

___
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] version 2.2.4 just blew up

2000-12-05 Thread michael angelo ruberto

i was thinking of doing just that.

thanks Jimbo!

-mike-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of jimbo
Sent: Tuesday, December 05, 2000 7:57 PM
To: [EMAIL PROTECTED]
Subject: [Zope] version 2.2.4 just blew up


Same thing happened to me on upgrading from 2.2.2.  I just reinstalled the
full version over the hosed upgrade and it worked again.
-Jimbo

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


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




[Zope] How to edit ZClass methods in HTML-Kit?

2000-12-05 Thread Dirksen

Has anybody tried to edit ZClass methods in HTML-Kit?

Dirksen


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

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




Re: [Zope] Re: [Zope-ZEO] Zope 2.2.4 ZEO 0.4.1 (latest anyway)doesn't want to add Products

2000-12-05 Thread Shane Hathaway

On Tue, 5 Dec 2000, Bill Anderson wrote:
 So, what would you suggest for the following scenario?
 
 o Site distirbuted via ZEO
 o Using SiteAccess2 for virtual hosting sites under
   /vhosts/thissite /vhosts/thatsite
 o each site is actually it's own full Data.fs
 
 Under non-zeo, it's simple, use a mounted filestorage, and it works
 quite well. Unfortunately, it doesn't work under zeo, for obvious
 reasons. If I had time, I'd do a mountedZEOstorage, but time is too much
 a precious commodity for the next few weeks/months. :/

What do you mean it doesn't work under ZEO?  Set it up just like zope.org.

Either create two storage servers or one that provides access to both
FileStorages.  Then write an external method for each storage, each of
which creates a ClientStorage and wraps a DB around it.  Then mount those
external methods.  Thus you don't even need to write MountedZEOStorage.

Shane


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




Re: [Zope] the day of zope headaches

2000-12-05 Thread Kevin Teague


 Zope has encountered an error while publishing this resource.
 
 IOError
 
 Sorry, a Zope error occurred.
 
 such a very helpful message. this happened while reindexing the ZCatalog

View the HTML source for the error page - the Python traceback contained
in there will be more helpful. However, the last time I had an IOError
while re-indexing a ZCatalog was when Python was ran out of space in the
/tmp dir (4600 objects, 100 MB /tmp partition). What I did was edit
Python's tempfile.py file (contained at /usr/lib/python1.5/tempfile.py
on Debian systems) from:

attempdirs = ['/usr/tmp', '/tmp', pwd]

To: 

attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd]

-- 
  Kevin Teague, Zopista
  http://www.stormix.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] 2.2.4 bombs

2000-12-05 Thread Jon Nathan

hi,

i have a couple old zope installations that i'm trying to replace.

i downloaded 2.2.4  and untarred/zipped it as /web/Zope-2.2.4-src/

i ran python w_pcgi.py and it seemed to go cleanly.  i want to use it
with apache, which is already installed and happy.  that's how my
other installations are set up.

when i run the start script, however, it dies thus:
jon@w2:/web/zope# ls
.cvsignore  Zope.cgilib utilities
wo_pcgi.pyc
Extensions  access  loggy   var z2.py
LICENSE.txt doc pcgiw_pcgi.py   z2.pyc
README.txt  import  start   w_pcgi.pyc
zpasswd.py
ZServer inststopwo_pcgi.py
zpasswd.pyc
jon@w2:/web/zope# ./start
Traceback (innermost last):
  File "/web/Zope-2.2.4-src/z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "/web/Zope-2.2.4-src/lib/python/Zope/__init__.py", line 94, in
?
import ZODB, ZODB.ZApplication, imp
  File "/web/Zope-2.2.4-src/lib/python/ZODB/__init__.py", line 85, in
?
import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
ImportError: /web/Zope-2.2.4-src/lib/python/ExtensionClass.so:
Undefined symbol "PyMethod_Type"
jon@w2:/web/zope# /usr/bin/python /web/zope/z2.py -p
/web/zope/Zope.cgi -t 1 
jon@w2:/web/zope# Traceback (innermost last):
  File "/web/zope/z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "/web/Zope-2.2.4-src/lib/python/Zope/__init__.py", line 94, in
?
import ZODB, ZODB.ZApplication, imp
  File "/web/Zope-2.2.4-src/lib/python/ZODB/__init__.py", line 85, in
?
import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
ImportError: /web/zope/lib/python/ExtensionClass.so: Undefined symbol
"PyMethod_Type"

jon@w2:/web/zope# 
jon@w2:/web/zope# uname -a
FreeBSD w2.chaffee.com 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE #0: Mon Nov
13 20:27:14 GMT 2000
[EMAIL PROTECTED]:/usr/src/sys/compile/CHAFFEE  i386
jon@w2:/web/zope# pwd
/web/Zope-2.2.4-src
jon@w2:/web/zope#

the second try is using my modified start script from the previous
installation.  it seems to not make a difference.

any ideas to make it work?

thanks,

-jon

-- 
Jon Nathan
[EMAIL PROTECTED]
http://www.rupture.net/~jon/



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




Re: [Zope] the day of zope headaches

2000-12-05 Thread Chris McDonough

Yup, this is very likely.  The catalog does subcommits by default, which
take up lots of temp space if you're cataloging lots of stuff in a batch.

- Original Message -
From: "Kevin Teague" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 11:00 PM
Subject: Re: [Zope] the day of zope headaches



  Zope has encountered an error while publishing this resource.
 
  IOError
 
  Sorry, a Zope error occurred.
 
  such a very helpful message. this happened while reindexing the ZCatalog

 View the HTML source for the error page - the Python traceback contained
 in there will be more helpful. However, the last time I had an IOError
 while re-indexing a ZCatalog was when Python was ran out of space in the
 /tmp dir (4600 objects, 100 MB /tmp partition). What I did was edit
 Python's tempfile.py file (contained at /usr/lib/python1.5/tempfile.py
 on Debian systems) from:

 attempdirs = ['/usr/tmp', '/tmp', pwd]

 To:

 attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd]

 --
   Kevin Teague, Zopista
   http://www.stormix.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 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] version 2.2.4 just blew up!

2000-12-05 Thread Chris McDonough

The Dr. Watson log won't help us at this stage.  Can you turn on debug
logging by inserting the following to the beginning of your Zope's start.bat
file:

set STUPID_FILE_LOG=var\debug.log

Then report back what comes up in the var\debug.log file when you click on
the link that crashes Zope, if anything.

Python is dying?  That's a little rude even given your frustration, dontcha
think?

- Original Message -
From: "michael angelo ruberto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 5:16 PM
Subject: [Zope] version 2.2.4 just blew up!


 hi,

 i just performed the upgrade from 2.2.2 to 2.2.4 and it blew up after
 running for a few minutes. it happened as i clicked the link to Debug
 Information from the control panel. Zope does start up again and the same
 thing occurs each time i click this link. i can send you the Dr. Watson
 error log if you think it will help you but i prefer not to send it to a
 public list. please send me a personal email address for this. i can also
 send a screen shot of the error message.

 Python is dying.

 -mike-


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




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




Re: [Zope] just curious

2000-12-05 Thread Chris McDonough

What?

- Original Message - 
From: "michael angelo ruberto" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 05, 2000 7:33 PM
Subject: [Zope] just curious


 hi,
 
 how do i remove all of the 7000 + company documents from Zope?
 
 -mike-
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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