RE: [Zope-dev] Mail and zope

2000-11-28 Thread Matt Hamilton

 originated from but most e-mail clients discard custom headers but preserve
 a 'In-Reply-To' header with the original message-id.

Don't count on it! :)  I spent quite some time working on a full-text
mailing list search/archive system and one of the things I wanted to do
was preserve thread informtion.  However it was surprising the number of
MUAs that did not generate a In-Reply-To header.  Mostly it was Microsoft
Mail Client and quite a few similar internal mail systems with internet
gateways.  Also beware that many mailers use the NNTP standard of
References: instead of in-reply-to.  I would suggest using the Subject
line instead and generate some sort of ticket number and store it in the
subject line, and put a header in the message body instructing the user to
not alter the subject. 

-Matt

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



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




Re: [Zope-dev] RFC: Python/Zope Interfaces: ZCatalog

2000-11-28 Thread Chris Withers

Ken Manheimer wrote:
 
 I'm not expert on eiffel or even interfaces, but my understanding having
 interface "specification very near to the implementation" is misleading,
 at best.  The key thing is that there may be many implementations, all of
 which should be written to the same implementation - so you do not want

Should that be 'same interface'?

 the interface specification tied to any one of them.

This is a very good point!

I'd be really interested in making something that supported the Catalog
'interface' but actually used the new MySQL full-text searching stuff to
do the indexing/searching.

However, until Catalog has a defined _interface_, I'm not even going to
think about starting :-S

Anyone know when that's likely to happen?

cheers,

Chris

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




[Zope-dev] fixing security problems HOW?

2000-11-28 Thread Robin Becker

How can I find out exactly what is causing my security permissioning to
fail.

I have put extra stuff into ZPublisher\BaseRequest.py at line 463 so I
know that I'm failing on

UnauthorizedYou are not authorized to access this resource.
URL='http://192.168.0.4:7080/live/index_html' No Authorization header
found.

I am an anonymous user. Even when I make /live have the same permissions
as the manager I can't make it work. index_html is a dtml method of the
class of which live is an instance.

How can I figure out what is blocking the anonymous access.
-- 
Robin Becker

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




[Zope-dev] CVS down?

2000-11-28 Thread Robin Becker

C:\Python\devel\Zopecvs -z9 upd -A -P -d
CVS.EXE [update aborted]: connect to zope.org:2401 failed: Connection
refused


Am I pointing at the wrong server or something?
-- 
Robin Becker

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




Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Jim Fulton

Lalo Martins wrote:
 
 On Fri, Nov 24, 2000 at 08:11:48AM -0800, Michel Pelletier wrote:
  Python Interface Proposal
 
I have been working on a proposal for enhancing the existing interface
documentation in Zope.  The Wiki for this project can be found here:
 
 As far as what's written on the proposal is concerned, I like it.
 
 Technically, I have one objection to the interface
 documentation system:
 
 Why must I create a new "dummy" Python file?

I don't think you do need to create a dummy Python
file. You *do* need to define interfaces, in whatever files
you choose. 

 Why can't the
 system extract the data from the Python source itself?

Because the (class) source is about implementation, not
interface.  A class often implements multiple interfacs, 
and multiple classes often implement the same interface.
For that reason, it makes sense to define interfaces and
classes independently.

 Duplicating work is never good, and there are even people who
 like literate programming :-)

There is no duplications. Interfaces and classes are two different
kinds of beasts.

Jim

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

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




Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Jim Fulton

Michel Pelletier wrote:
 
 Lalo Martins wrote:
 
  On Fri, Nov 24, 2000 at 08:11:48AM -0800, Michel Pelletier wrote:
   Python Interface Proposal
  
 I have been working on a proposal for enhancing the existing interface
 documentation in Zope.  The Wiki for this project can be found here:
 
  As far as what's written on the proposal is concerned, I like it.
 
  Technically, I have one objection to the interface
  documentation system:
 
  Why must I create a new "dummy" Python file? Why can't the
  system extract the data from the Python source itself?
 
 You can, of course, because you can just pass the Interface costructor a
 class.

This is, in my strongly-held opinion, a bad idea.  Most classes
implement multiple interfaces, and trying to suck interfaces out of
a class definition will tend to generate sloppy interfacesl.

I added a comment on this to your Wiki page. :)

Jim

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

___
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] fixing security problems HOW?

2000-11-28 Thread Shane Hathaway

Robin Becker wrote:
 
 How can I find out exactly what is causing my security permissioning to
 fail.
 
 I have put extra stuff into ZPublisher\BaseRequest.py at line 463 so I
 know that I'm failing on
 
 UnauthorizedYou are not authorized to access this resource.
 URL='http://192.168.0.4:7080/live/index_html' No Authorization header
 found.
 
 I am an anonymous user. Even when I make /live have the same permissions
 as the manager I can't make it work. index_html is a dtml method of the
 class of which live is an instance.
 
 How can I figure out what is blocking the anonymous access.

1) Use the -D option to start Zope in debugging mode.

2) Install ZDebug.

3) Add a user with the essential permissions and see if *that* user can
get access.

Shane

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




Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Jim Fulton

Dieter Maurer wrote:
 
 Michel Pelletier writes:
   Also, defining the interface seperately keep the two things apart,
   impementation and interface, and doesn't allow you to sneak in a new
   method unless you also sneak it into the interface, thus making a
   stronger "contract" with the user.
 I am a bit astonished by this statement:
 
   I know the "design by contract" concept from Bertrand Meyer,
   the Eiffel developper.
 
   In Eiffel, essential parts of the contract, among others
   method prototype, pre- and post-conditions as well as invariants
   are build directly into the language.
   A documentation tool extracts these parts
   from the source to generate the interface, for people
   that are only interested in how to use the class/method.
 
   Programms can be executed in a way, that the various
   (executable) contract parts can be checked at runtime.
   *THIS* provides for quite a strong contract.
 
 I cannot see, why the separation of interface and implementation
 should make the contract stronger.

The interface *is* the contract. If someone builds a house
for me, I don't want the house to *be* the contract. I want the
house to adhere to the contract.  Interface/contract and implementation
are two qualitatively different things.

 I do see, however, that it
 makes it more likely to be broken by the implementation.

I don't think it makes it more or less likely. Of course, 
if the "interface" is always derived from the implemenation
then the two will be consistent, but this is not 
terribly useful.

 It is a very good thing to have the specification very near
 to the implementation -- as a permanent guide to the
 implementor.

Firtunately, modern displays allow multiple side-by-side
windows. ;)

 It is even better, when big parts of the
 specification becomes part of the executable code
 (as is the case for Eiffel's pre- and post-conditions).
 
 If you want to prevent your implementors to change the
 interface specification, generate the interface for the
 implementation and compare against your master copy.
 
 In my view, it is better to have a somewhat "weaker" contract
 that is met by the partners than a "stronger" contract that
 is violated.

We disagree then. A weak interface that is satisfied by definition
is nearly useless to me.

 Or, to say it differently, it is more essential
 the a system's documentation describes faithfully what is
 rather than what should be (but is not).

I disagree alot. I'd rather have clear documentation of intended 
behavior, rather than have the documentation change based on 
implementation decisions.

Note also that most classes implement multiple interfaces.
Generating interfaces from classes trends to yield bloated
non-cohesive interfaces.

Similarly, most interesting interfaces are implemented by multiple
classes, so nearness to implementation is not really meaningful.

Please note that these points were argued extensively on the Python
types-sig a couple of years ago.

Jim

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

___
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] objectValues performance

2000-11-28 Thread Casey Duncan

Brett Carter wrote:

 I have a folder with greater than 5000 ZClass instances in it.  It
 takes  5mins to do an objectValues for every object in the folder -
 is there a higher perfomance call I could make?
 -Brett

Standard folder performance degrades pretty quickly once you get
a lot of objects in it. There are two solutions to this:

Subdivide your objects into multiple folders.
Use a BTreeFolder which should be much faster.

You can download the BTreeFolder product
here: http://www.zope.org/Members/hathawsh/BTreeFolder/

hth,
Casey Duncan






___
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] UML reverse engineering on ZClasses - I need somehelp

2000-11-28 Thread Joachim Schmitz



On Tue, 28 Nov 2000, zope wrote:

 Hi!
 
 I am currently developing a tool for reverse engineering 
 ZClasses into UML using ObjectDomain and JPython.
 
 this tool connects directly to a Zope instance and queries
 the ZClass entities, methods and inheritance relations by 
 calling a set of utility methods that I implemented as External methods.
 
 it works fine when reverse engineering ZClasses, their methods and inheritance 
relations.
 
 you can check out a sample result where I reversed a part of Maik Roeder's ZDP tools 
under 
 http://zwork.bluedynamics.com/Tests/zdp/index.html
 
 If there is interest and time I'll document the reverse engineering tool and publish 
it on zope.org
 

this is absolutly fantastic, great job Phil.
If reverse engeneering is possible, also ZClass generation should be possible,
or even better generate a python-product.

I am very much interested in your work.



Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
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] UML reverse engineering on ZClasses - I need somehelp

2000-11-28 Thread Maik Röder

Hi Joachim !

Joachim Schmitz wrote:
  I am currently developing a tool for reverse engineering
  ZClasses into UML using ObjectDomain and JPython.
 
  this tool connects directly to a Zope instance and queries
  the ZClass entities, methods and inheritance relations by
  calling a set of utility methods that I implemented as External methods.
 
  it works fine when reverse engineering ZClasses, their methods and inheritance 
relations.
 
  you can check out a sample result where I reversed a part of Maik Roeder's ZDP 
tools under
  http://zwork.bluedynamics.com/Tests/zdp/index.html
 
  If there is interest and time I'll document the reverse engineering tool and 
publish it on zope.org
 
 
 this is absolutly fantastic, great job Phil.
 If reverse engeneering is possible, also ZClass generation should be possible,
 or even better generate a python-product.

Generating ZClasses out of a model description is what I wanted to do
for a long
time, but I couldn't find someone to fund this. Generating a Python
product is
something that Eric Enge has done with his mkzproduct.
 
I haven't been using "SubObjects" in my ZDP-Tools, so Aggregation is
nowhere
defined, except implicitely.

Best regards,

Maik Röder

___
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] objectValues performance

2000-11-28 Thread Andy McKay

Id recommend all the above but just for reference "objectIds" is faster than
"objectValues".
--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Casey Duncan" [EMAIL PROTECTED]
To: "Brett Carter" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 7:58 AM
Subject: Re: [Zope-dev] objectValues performance


 Brett Carter wrote:

  I have a folder with greater than 5000 ZClass instances in it.  It
  takes  5mins to do an objectValues for every object in the folder -
  is there a higher perfomance call I could make?
  -Brett

 Standard folder performance degrades pretty quickly once you get
 a lot of objects in it. There are two solutions to this:

 Subdivide your objects into multiple folders.
 Use a BTreeFolder which should be much faster.

 You can download the BTreeFolder product
 here: http://www.zope.org/Members/hathawsh/BTreeFolder/

 hth,
 Casey Duncan






 ___
 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] objectValues performance

2000-11-28 Thread Brett Carter


Ok, I'll bite.  Why doesn't the standard folder scale?  Seems like a
design flaw to me - why doesn't the default folder use catalogs or BTrees?
-Brett

 "Casey" == Casey Duncan [EMAIL PROTECTED] writes:

Casey Brett Carter wrote:
 I have a folder with greater than 5000 ZClass instances in it.  It
 takes  5mins to do an objectValues for every object in the folder -
 is there a higher perfomance call I could make?
 -Brett

Casey Standard folder performance degrades pretty quickly once you get
Casey a lot of objects in it. There are two solutions to this:

Casey Subdivide your objects into multiple folders.
Casey Use a BTreeFolder which should be much faster.

Casey You can download the BTreeFolder product
Casey here: http://www.zope.org/Members/hathawsh/BTreeFolder/

Casey hth,
Casey Casey Duncan






___
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] objectValues performance

2000-11-28 Thread Michel Pelletier

Brett Carter wrote:
 
 Ok, I'll bite.  Why doesn't the standard folder scale?  Seems like a
 design flaw to me - why doesn't the default folder use catalogs or BTrees?
 -Brett

Because massive scale is not a requirment of folders, they are meant to
organize content for humans, not to be large-collection containers.  A
folder with 5000 elements is not very useful to a human.

On a similar note, create 5000 files in a linux directory on a ext2
(standard) filesystem and then type 'ls'.  You'll notice they don't
scale very well either, which is why there are filesystems like
ReiserFS.

-Michel
 
  "Casey" == Casey Duncan [EMAIL PROTECTED] writes:
 
 Casey Brett Carter wrote:
  I have a folder with greater than 5000 ZClass instances in it.  It
  takes  5mins to do an objectValues for every object in the folder -
  is there a higher perfomance call I could make?
  -Brett
 
 Casey Standard folder performance degrades pretty quickly once you get
 Casey a lot of objects in it. There are two solutions to this:
 
 Casey Subdivide your objects into multiple folders.
 Casey Use a BTreeFolder which should be much faster.
 
 Casey You can download the BTreeFolder product
 Casey here: http://www.zope.org/Members/hathawsh/BTreeFolder/
 
 Casey hth,
 Casey Casey Duncan
 
 ___
 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] Re: PathHandler: bug, readme.txt

2000-11-28 Thread Phil Harris

To my mind it's the browser.

This is a simple trick I use when egating the caching in IE for instance.

Stick a space on the end of the url and IE thinks it's a new one but blindly
strips them before getting the same refreshed page.

This works with any server and any page on that server btw.

Phil

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Willem Broekema" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 1:57 PM
Subject: [Zope-dev] Re: PathHandler: bug, readme.txt


| Willem and Zope-Dev'ers,
|
| Willem Broekema wrote:
| 
|  Hi Chris,
| 
|  PathHandler is a nice and really useful product!
|
| Thanks :-)
|
|  A question though: is it on purpose that it ignores spaces at the end of
|  the url, as in:
| 
|  http://site/ph/%20d%20  -- path_to_handle == [' d'] instead of [' d ']
| 
|  (%20 is the escape code for a space)
| 
|  Although it's really a minor minor thing, letting the user decide how to
|  deal with spaces might be a tiny improvement.
|
| Well, it's not PathHandler that's stripping spaces, so either Zope is,
| or maybe even your browser is.
| Anyone got any ideas?
|
| That said, handling of spaces and %20's in URLs isn't very well defined
| anyway, so I would avoid it if you can...
|
|  And in the README.txt file, please replace
|  dtml-var path_to_handle with lt;dtml-var path_to_handlegt; so it
|  won't be ignored in the browsers.
|
| Well, I think this is a bug with Zope. README.TXT is a text file,
| formatted so it will render nicely in structured text.
| It does this in the management interface for the PathHandler product,
| but the  and  aren't quoted properly.
| I wonder why that is?
|
| Hmmm... anyone know what happened to StructuredTextNG?
|
| Anyway, README.TXT is primarily designed as a text file, and
| lt;dtml-var path_to_handlegt; isn't very easy to read when viewing a
| text file ;-)
| So, I guess someone needs to fix Zope for at least one and maybe both of
| your problems to go away.
|
| Any ideas?
|
| cheers,
|
| Chris
|
| ___
| Zope-Dev maillist  -  [EMAIL PROTECTED]
| http://lists.zope.org/mailman/listinfo/zope-dev
| **  No cross posts or HTML encoding!  **
| (Related lists -
|  http://lists.zope.org/mailman/listinfo/zope-announce
|  http://lists.zope.org/mailman/listinfo/zope )


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




[Zope-dev] Interface Meta Data proposal

2000-11-28 Thread Michel Pelletier


I've added a sub-proposal to the Interface proposal for describing
additional meta-data with Interface objects:

http://www.zope.org/Wikis/Interfaces/ExtesableMetaData

Please comment about this interesting possibility.

-Michel

___
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] objectValues performance

2000-11-28 Thread Casey Duncan

Brett Carter wrote:

 Ok, I'll bite.  Why doesn't the standard folder scale?  Seems like a
 design flaw to me - why doesn't the default folder use catalogs or BTrees?
 -Brett

AFAIK a standard folder uses a linear search when you request an object from it
(ala Python dictionaries, someone please correct me if I'm wrong). This works
great except that the search time grows linearly (by n) as you add objects. The
BTreeFolder as the name implies creates a binary tree of the objects where the
search time grows by only log n. For small folders the search time difference
is minimal to non-existant, but as n increases the BTreeFolder search time
increases minimally. B-trees are fairly complex entities to manage and for the
vast majority of folders are total overkill. That is why standard folders work
the way they do, the implementation is simple and efficient for 99.9% of
applications. Your case is fairly atypical of most Zope folders.

Perhaps a future implementation of Zope folders could automatically use a
b-tree after a certain threshold is reached, for now you must explicitly select
them.

Andy's idea of using objectIds instead of objectValues is also a good one which
will save significant amounts of memory. You can always access each object
individually via id if you need to. Using a  ZCatalog could also help in this
because you can query the objects without loading them into memory and the
returned result does not load the objects themselves, only the meta-data and
only once a result item is explicitly accessed (By using so-called lazy
sequences). However the catalog will not speed up your actual object access
time unless you divide them up amongst several folders or use a BTreeFolder.
The latter being a simpler solution from a design standpoint.

Good luck!

Casey Duncan


___
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: [Geeks] Interface Meta Data proposal

2000-11-28 Thread Chris McDonough

Is security really a part of an object's interface?  I thought this was more
of an implementation thing.

- Original Message -
From: "Michel Pelletier" [EMAIL PROTECTED]
To: "Geeks Mailing List" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 4:05 PM
Subject: [Geeks] Interface Meta Data proposal



 I've added a sub-proposal to the Interface proposal for describing
 additional meta-data with Interface objects:

 http://www.zope.org/Wikis/Interfaces/ExtesableMetaData

 Please comment about this interesting possibility.

 -Michel



___
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: [Geeks] Re: Interface Meta Data proposal

2000-11-28 Thread Guido van Rossum

 I notice you mention post/pre conditions (something that UML obviously talks
 about).  I wonder if we want to do a bit of research on Eiffle and it's
 contractual description.  The only thing I wonder is if some of this is
 actually useful programatically, if that makes sense? It's great info, but
 is it useful at runtime?

In Eiffel (I've never heard of Eiffle :-), pre- and post-conditions
are turned into run-time checks, just like assertions.  There are
separate flags to turn code generation for pre- and post-conditions
off.  This is useful, as follows: while debugging your code, turn both
on.  When you've fully debugged an application, you turn both off.
When you've fully debugged a library module, you create two versions:
one with both turned off, for use in fully debugged applications, and
one with pre-conditions on and post-conditions off, for use by other
code that is still in need of debugging.

I've heard that this works very well, and in Python 3000 (when we have
optional static typing) I would love to add this to Python.  If it's
not feature bloat.

--Guido van Rossum (home page: http://www.python.org/~guido/)

___
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: [Geeks] Interface Meta Data proposal

2000-11-28 Thread Jeffrey P Shell

On 11/28/00 4:05 PM, "Michel Pelletier" [EMAIL PROTECTED] wrote:

 
 I've added a sub-proposal to the Interface proposal for describing
 additional meta-data with Interface objects:
 
 http://www.zope.org/Wikis/Interfaces/ExtesableMetaData
 
 Please comment about this interesting possibility.
 
 -Michel
 

Without these things being supported more in the core language, it seems
quite awkward.  Being able to do the followng is nice:

class ILockToken(Interface.Base):
def frame(self, width, height):
"a frame"

class LockToken:
__implements__ = ILocktoken,
...

The following would (will?) be better:

interface ILockToken:
def frame(...):

class LockToken implements(ILockToken):
...

But I'm not sure how one would go about setting your meta-data in a way that
is at all natural to Python.  I think that exceptions that a method
must\should raise *should* be part of a signature\contract.  This is one of
the really cool things about Java.  If you use a method, 'readFile' that
says it raises IOError, you *HAVE* to catch that exception (I believe in
order to compile).  But it looks like what you're really wanting is to use
interfaces for documentation purposes, not for contract purposes.  Not for
interfaces at this level of the language.

I'm guessing along your proposal, to state that a method raises ValueError
or Attribute I'd have to do the following?:

class ILockToken(Interface.Base):
def frame(self, width, height):
"a frame"
frame.setMetaData('exceptions', (ValueError, AttributeError))

...

Meta Data is a deadly term.  Be careful with it.
Anyways, I doubt we want to invent our own IDL (no!) or reinvent Eiffel
(specifying pre and post conditions are only truely useful if they're
enforced, and without this enforcement in the core language I imagine that
could be expensive. They're a good thing for large systems, but Python
doesn't support them automatically), so it seems that this information seems
to be best put in the documentation (since doc strings in an Interface don't
also mean "Publish Me!", they can be used to document!).

Interfaces are contracts and pretty darn good ways of specifying parts of
the system, but don't confuse them with headers in C\C++\Objective C.
'IObjectManager' is a critical interface for Zope (so instead of having
attributes like 'isPrincpiaFolderish', we can ask
'IObjectManager.implementedBy(fooObject)'.  Folder, on the other hand, is an
important class in Zope, but is primarily an amalgam of classes implementing
important Interfaces (ICopyable, IPropertyManager).  It's unlikely that
we'll really have a need for a Folder Interface, because what's important
about Folder's is that they implement ObjectManager behaviors and
CopySupport behaviors.

To bring Java back into play here for a moment, a simple example is the
interface 'Cloneable'.  By implementing 'Cloneable', well then..  when it's
time to clone, you can be cloned.  If you don't say you implement
'Cloneable', an exception gets raised (even if you implement the proper
method).  This is similar to how we sniff things today, but we just do
things like 'if hasattr(obj, "cb_isCopyable") and obj.cb_isCopyable()):'

I get the feeling sometimes that what you want with interfaces is actually a
bit closer to what Objective C does with the word Interface.  And that is
that in Foo.h, you have the interface for class Foo:

@interface Foo {
...

And in Foo.m, you have the implementation:

@implementation Foo {
...

These interfaces are header files, and they're damn nice to use for
documentation since the specification of the class is separate from the
implementation.  But they don't imply contracts in the way that Java's use
of the word Interface does.  (Some implementations of Objective C call those
things Protocols).

Both needs are valid, but I think we'll benefit most from the first
(contracts).  In order to make those work, we probably shouldn't make them
too foreign to specify, or the incentives to write them go way down (as is
evidenced by the amount of doc strings that go """ """ or "XXX: Fill in
later", getting developers to fill in too much 'meta data' is hard).

But if we can get some of the information in your proposal more integrated
with the language, I think it would be beneficial.

Jeffrey P Shell, [EMAIL PROTECTED]
http://www.digicool.com/ | http://www.zope.org


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




Re: [Zope-dev] Re: [Geeks] Interface Meta Data proposal

2000-11-28 Thread Michel Pelletier

Chris McDonough wrote:
 
 Is security really a part of an object's interface? 

Maybe.  Are examples?  Also maybe.  It's documentation, so specific
systems that use interfaces may want to be able to extend the kinds of
information they can associate with interface elements.

 I thought this was more
 of an implementation thing.

These are good questions, I think these also have a great effect on the
Zope 3 story.  BTW, the whole idea of extensible meta-data on an
interface element came from reading the Zope 3 story so far, and seeing
the examples that include security assertions in an interface.  Amos and
I discussed it a bit and that's where the proposal came from.

-Michel

___
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] objectValues performance

2000-11-28 Thread Brett Carter


 "Michel" == Michel Pelletier [EMAIL PROTECTED] writes:

Michel Because massive scale is not a requirment of folders, they
Michel are meant to organize content for humans, not to be
Michel large-collection containers.  A folder with 5000 elements
Michel is not very useful to a human.

Michel On a similar note, create 5000 files in a linux directory on a ext2
Michel (standard) filesystem and then type 'ls'.  You'll notice they don't
Michel scale very well either, which is why there are filesystems like
Michel ReiserFS.

Michel -Michel

Point taken, but in Zope where data and logic reside in the same place
(ZODB) shouldn't we have some sort of effcient storage for large amounts
of data?  What happens when a site gets three or four thousand users?
That won't fit well in an UserFolder.  
-Brett

[...]


___
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] fixing security problems HOW?

2000-11-28 Thread Dieter Maurer

Robin Becker writes:
  How can I find out exactly what is causing my security permissioning to
  fail.
  
  I have put extra stuff into ZPublisher\BaseRequest.py at line 463 so I
  know that I'm failing on
  
  UnauthorizedYou are not authorized to access this resource.
  URL='http://192.168.0.4:7080/live/index_html' No Authorization header
  found.
  
  I am an anonymous user. Even when I make /live have the same permissions
  as the manager I can't make it work. index_html is a dtml method of the
  class of which live is an instance.
  
  How can I figure out what is blocking the anonymous access.
The URL traversal in "ZPublisher.BaseRequest.traverse"
led to a "roles" assignment with a non-"None" value.
This triggers authentication checking.
Annonymous did not have one of the necessary roles.

I would probably check, what "roles" are determined during
traversal.

Apparently, your "live" is a Z instance.
It is quite easy to forget the ZClass permission mapping
(or get it wrong). This may lead to strange permission
problems.


Dieter

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




Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Dieter Maurer

Michel Pelletier writes:
  Dieter Maurer wrote:
   Michel Pelletier writes:
 Also, defining the interface seperately keep the two things apart,
 impementation and interface, and doesn't allow you to sneak in a new
 method unless you also sneak it into the interface, thus making a
 stronger "contract" with the user.
   I am a bit astonished by this statement:
   
  
  I'm not sure if you are making these statement because you
  disagree with the current proposal or because you disagree with what I
  said above.
I disagree with the "separating implementation and interface
makes for a stronger contract".

Separation by itself does not make the contract stronger.


Dieter

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




Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Dieter Maurer

Ken Manheimer writes:
   Dieter Maurer wrote:
It is a very good thing to have the specification very near
to the implementation -- as a permanent guide to the
implementor. It is even better, when big parts of the
specification becomes part of the executable code
(as is the case for Eiffel's pre- and post-conditions).
  
  I'm not expert on eiffel or even interfaces, but my understanding having
  interface "specification very near to the implementation" is misleading,
  at best.  The key thing is that there may be many implementations, all of
  which should be written to the same implementation - so you do not want
  the interface specification tied to any one of them.
What about *ALL* of them.

Source documentation is essential for high quality software.
A major part of the documentation is what each programming
entity is obliged to do by contract.
Therefore, I would like this information to be near the
implementation.



Dieter

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




Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-28 Thread Dieter Maurer

Jim Fulton writes:
  Dieter Maurer wrote:
   I cannot see, why the separation of interface and implementation
   should make the contract stronger.
  
  The interface *is* the contract. If someone builds a house
  for me, I don't want the house to *be* the contract. I want the
  house to adhere to the contract.  Interface/contract and implementation
  are two qualitatively different things.
But this does not imply, that the contract becomes stronger,
when interface and implementation are separated.
Packaging issues do not change the contract.

I see however, that you usually will (should) start with a specification
(the interface is part of it) and then provide an implementation
(or more than one) for it.

   In my view, it is better to have a somewhat "weaker" contract
   that is met by the partners than a "stronger" contract that
   is violated.
  
  We disagree then. A weak interface that is satisfied by definition
  is nearly useless to me.
If an implementation has nothing to do with its specification,
then either the implementation or its specification is useless,
at least in relation to one another.

But, you note, that I did not speak about "a weak interface that
is satisfied by definition" but about a "somewhat weaker
contract that is met by the partners compared to a somewhat
stronger contract but violated contract".


   Or, to say it differently, it is more essential
   the a system's documentation describes faithfully what is
   rather than what should be (but is not).
  
  I disagree alot. I'd rather have clear documentation of intended 
  behavior, rather than have the documentation change based on 
  implementation decisions.
If the implementation decisions are essential: e.g.
linear versus logarithmic time complexity, I would like
to have that stated in the documentation.


  Note also that most classes implement multiple interfaces.
  Generating interfaces from classes trends to yield bloated
  non-cohesive interfaces.
I may agree with this.
Though some configuration for the generation process may help
to reduce the danger.

  Similarly, most interesting interfaces are implemented by multiple
  classes, so nearness to implementation is not really meaningful.
It helps the implementation to adhere to the contract.

  Please note that these points were argued extensively on the Python
  types-sig a couple of years ago.
SIG archives tend to be non-searchable.
I, probably, will not dig in to summarize the results.
Even, if I do, this would be no garantee that I would be
convinced.


Let me stress my point of view. Maybe, we are not too far away
from one another:

  * I like clear specifications (as you do)

  * The specification has more value, when its implementations
adhere to it (you probably will agree).

  * A documentation about an existing system is more
valuable, when it states what is rather than
what should be (here we may disagree).

I usually start by studying the documentation.
If it descibes what is, then I will recognize
early what does not fit my requirements and
can work around it.
If it describes what should be, I will
determine the deficiencies much later in my projects,
modifications are much more difficult and expensive.

  * Having the specification near the implementation
helps the implementors to adhere to it,
especially with long maintenance periods.
(Here we may disagree).

I believe in the value of well documented
source, in literate programming.


Dieter

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




Re: [Zope-dev] fixing security problems HOW?

2000-11-28 Thread Robin Becker

In article [EMAIL PROTECTED], Robin Becker
[EMAIL PROTECTED] writes

Apparently, your "live" is a Z instance.
It is quite easy to forget the ZClass permission mapping
(or get it wrong). This may lead to strange permission
problems.
Which ZClass permission mapping? Anonymous seems to be able to 'view'.

The 'Manager' role can log in and do stuff, but even when I change the
permissions of Anonymous to be completely the same as for Manager I
don't get the same behaviour; ie anonymous is being asked to log in?

The problem I suppose is that /live/index_html is really a permission of
/live and I guess the permissions determining access etc are really in /
the object which cannot be traversed to :) 
well I upgraded my CVS version and everything started working again.
Mumble. If only I hadn't tried to get the new Python methods to work etc
etc dribble dribble.
-- 
Robin Becker

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




[Zope-dev] RE: [Geeks] Re: Interface Meta Data proposal

2000-11-28 Thread Tim Peters

[Christopher Petrilli]
 I notice you mention post/pre conditions (something that UML
 obviously talks about).  I wonder if we want to do a bit of
 research on Eiffle and it's contractual description.  The only
 thing I wonder is if some of this is actually useful
 programatically, if that makes sense? It's great info, but is
 it useful at runtime?

Eiffel takes this all very seriously, and supplies several variants of
assertions that are individually togglable.  Preconditions verify a method
is called according to its docs; postconditions verify a method does what
it's advertised to do; anyone who takes debugging seriously is writing
verification code of that kind anyway, and Eiffel automates it to an
extraordinary degree.

Note that's only the tip of "the contract" part:  inherent in any
contracting scheme is the ability to sub-contract.  A subcontractor cannot
require more, nor deliver less, than the original contract specifies.  So,
in Eiffel, for a subclass S that overrides a base class B's method M, the
preconditions for S.M are magically OR'ed with the preconditions for B.M
(S.M can't require more than B.M, but it may require less), and the
postconditions for S.M are magically AND'ed with the postconditions for B.M
(S.M can't deliver less than B.M, but it may deliver more).

The language guarantees to keep all this stuff straight for you, and the
doc-generation system for Eiffel knows all about it too.  This isn't a
collection of random debugging features in Eiffel:  it's all in support of a
particular formal theory of program design.

if-you-can't-check-a-thing-at-runtime-you-can't-know-whether-
   it's-been-satisfied-ly y'rs  - tim


___
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] ZPetterns implementation qustions

2000-11-28 Thread Itai Tavor

Hi,

I'm trying to figure out the right way to implement a set of classes 
and roles in ZPatterns. I asked some questions about this a while 
ago, and then went away and did some learning, but I'm stuck again 
and I'm afraid I need to ask more questions.

I have two types of actors - Person (with properties name, phone, 
email, password) and Organization (with properties name, phone, fax, 
business_number).

I also have two participants - Customer and Reseller. Each 
participant can be either a Person or an Organization.

The participants can fill several roles, like OrderingEntities, 
BillableEntities, etc.

Starting from the bottom, I create a Specialist for each role, each 
one with two virtual Racks - customerRack and ResellerRack, so I can 
refer to an OrderingEntity without caring if it's a Reseller or 
Customer.

My problem is in implementing the Participant Specialists and storing 
Participant and Actor classes. Do I create Specialists for the 
Actors? It seems to me that since there is either one Person or one 
Organization per Customer, then the actor object should be created in 
the Customers Specialist. So Customers will have 3 Racks - 
defaultRack (using Customer object), personRack (using Person object) 
and organizationRack (using Organization object). Does this make 
sense?

If this is a good way to do it, how do I handle creating and 
accessing the Person and Organization objects? Do I call 
personRack.newItem(newCustomerId) in the script that creates the 
customer? Or do I somehow do it in a SkinScript in defaultRack? And 
how do I get to the Person data? With an attribute provider? Or in 
the SkinScript:

WITH personRack.getItem(self.id) COMPUTE name=name, phone=phone, 
email=email, password=password, personObject=RESULT)

Also, if Actors are stored in the Specialists that implement the 
roles they participate as, there is no place to store methods that 
are common to an Actor regardless of role - for example, a method 
that checks if a password is secure enough and called when adding a 
Person object. So I either duplicate these methods in every 
Participant Specialist, or create more Specialists - which seems like 
a waste either way.

Another problem is how to edit these objects - if I have a form which 
includes fields for a Customer properties and for the properties of 
the Person object linked to that Customer, can I change the Person 
object from the Customer SkinScript? I don't think I can do this:

   WHEN OBJECT CHANGED STORE name, password USING
 
personObject.propertysheets.manage_changeProperties(name=self.name, 
password=self.password)

Right? Because name and password are not properties on the Customer 
DataSkin. So I have to call person.manage_changeProperties(...) in 
the method that changes Customer... it seems to me that I always end 
up doing object connections work in methods and the SkinScript can't 
help with anything :(


Hope this is not too convoluted...I'd really appreciate any help 
anyone can offer. The existing ZPatterns examples
all deal with fairly straightforward situations, but it's the more 
complex class relationships where the bears and tigers are hiding :)

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 )




Re: [Zope-dev] Re: [Geeks] Interface Meta Data proposal

2000-11-28 Thread Cees de Groot

Jeffrey P Shell [EMAIL PROTECTED] said:
But I'm not sure how one would go about setting your meta-data in a way that
is at all natural to Python.  I think that exceptions that a method
must\should raise *should* be part of a signature\contract.  This is one of
the really cool things about Java.  If you use a method, 'readFile' that
says it raises IOError, you *HAVE* to catch that exception (I believe in
order to compile).

It's so cool, it really chills your productivity. The moment that Python
starts doing that, I'll drop the language like a hot iron.

'Nuff about thermodynamics. Making exceptions statically checked is
probably the worst misfeature of Java. The idea is nice, in that it
forces you to deal with exceptions, but in reality it gets in the way
too soon - when you're still exploring, refactoring, stuff like that
you should be able to turn the damn things off. I've got five years
of full-time Java programming behind me, so I know what I'm talking about.

But it looks like what you're really wanting is to use
interfaces for documentation purposes, not for contract purposes.  Not for
interfaces at this level of the language.

Useful documentation, especially contracts, can be useful programmatically so
stuff like that should at least be setup so that it is possible to move it
into the language. A bit like the @pre and @post tags in Javadoc comments -
they're always nice to have as documentation, but when you run iContract over
them, they are activated and start checking your code's behavior.

If you don't say you implement
'Cloneable', an exception gets raised (even if you implement the proper
method). 

Another wart in Java that is nice in theory, but sits in your way in practice.
I greatly prefer the Smalltalk "protocols" approach, where implementing an 
interface is accomplished by implementing the right methods period. The
funny thing is, hardly any Smalltalk code ever checks for the interface: the
(correct) assumption is that if you hand something over to some other thing
that says it wants to iterate over whatever you handed over, you'd better be
sure that the thing behaves at least enough like a collection so that it can
be iterated over. That's the caller's responsibility (a sort of implicit
precondition), and if the caller sends over something else, you get a
DoesNotUnderstand exception. 

Very often I have longed in Java for the possibility of an object to implement
a subset of behavior of another object, but that's not possible. For example,
if you have a bunch of field labels you stuff in a collection just to be able
to do getText()/setText() on them (say for internationalization). Now, I want
to add menu labels to that collection, they also have getText()/setText() so
they would be good citizens in that collection. Java does not allow that,
unless I'm prepared to jump through instanceof/type casting hoops (which is
only possible if I'm the one actually calling getText()/setText()).


This is similar to how we sniff things today, but we just do
things like 'if hasattr(obj, "cb_isCopyable") and obj.cb_isCopyable()):'

The usual answer of an OO guru here is that if statements are considered
harmful, and that if statements that check object types are considered very
harmful. The modern variant is "these are strong refactoring smells".


-- 
Cees de Groot   http://www.cdegroot.com [EMAIL PROTECTED]
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B

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




Re: [Zope-dev] Re: [Geeks] Re: Interface Meta Data proposal

2000-11-28 Thread Cees de Groot

Guido van Rossum [EMAIL PROTECTED] said:
When you've fully debugged an application, you turn both off.
When you've fully debugged a library module, you create two versions:
one with both turned off, for use in fully debugged applications, and
one with pre-conditions on and post-conditions off, for use by other
code that is still in need of debugging.

I've heard that this works very well, and in Python 3000 (when we have
optional static typing) I would love to add this to Python.  If it's
not feature bloat.

It works very well in fully debugged applications. In the 99.99% other
applications, advice is to leave the assertions on during production
time so your app will fail fast when a bug pops up (profiling will
point you to the two assertions that needs to be turned off for 
acceptable performance).

Personally, but I'm talking without too much thinking here, I think
support for assertions in Python should be based on generic support
for metaprogramming - there's more than DBC that could benefit from
that (aspect-oriented programming, etcetera).


-- 
Cees de Groot   http://www.cdegroot.com [EMAIL PROTECTED]
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B

___
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] Building Zope within a Virtual Server

2000-11-28 Thread Norman Khine

Hello,
The new zope site seems to be running very well.

I have a virtual server account on which I had previously installed zope
2.2.2 which was later successfully upgraded to 2.2.4, unfortunantly I had
problems in setting up MySQLdb.

I have now removed zope and python 1.5.2, re-installed python2.0, within my
domain. Which is part of the larger domain. So my root directory is not in /
but is in /usr/home/mydir/ , within which I have installed python2.0 I have
changed the .login file so that the path for the new python installation is
available through out my domain. So that when I type python2.0 at the # I
can use the python interpreter, this seems to work OK.

Therefore my question/s are:
If there is python on the root machine as well as on the virtual servers, so
that both python and python2.0 will run from the command prompt, will this
cause problems when I install the new virsion of zope 2.2.4?

Do I need to change any configurations to the makefile or setup so that zope
knows it is using python2.0 and not the root installation of python, if so
what will this changes be?

I would like to configure the zope installation so that it is set up with an
existing web server, currently Apache 1.3.12 as per your How-To by
http://63.102.49.33/Members/maryniak/zope-on-suse64-howto by maryniak, but I
am unsure as to where in the procedure I specify that I have python already
installed?

Do I need to specify this before?

And finally, do I need the Python MySQLmodule extension be installed before
Zope or after?
Many thanks for your help
Norman




 winmail.dat


[Zope] How do i write or?

2000-11-28 Thread Stoonsdesign



Hi there

I have a small challenge you all

The thing is that I have this page (made by 
somebody else) wich is supposed to look up somewords in a database by 
writing: 
some url?letter=a*
 - this displays all the words starting with 
a... 
But how do I look up all the words starting with 
the letters from a-c? I know that it must be something like this 
some url?letter=a*|b*|c*
or maybee
some 
url?letter=a*orb*orc*

My question is this how do I write or in 
this line..?

Stoons - the newbie - still! = 
)


Re: [Zope] Index_html versus index.html

2000-11-28 Thread Chris Withers

Dieter Maurer wrote:
 
 Pieter Biemond writes:
 
   * Why is the default file index_html and not index.html
 (Windows doesn't want to open files without extensions).
 I assume, because preferences of Python, Zope's implementation
 language, have had a higher priority than Windows preferences ;-)
 Python does not like periods in names.

That's not really true, python doesn't seem to care a lot about what's
in a name.
If you have periods, it just means you need things like:

getattr(getattr(getattr(globals(),'x.y'), 'z.a'), 'index.html')

as opposed to:

x_y.z_a.index_html

I think there's a strong case for index.html, especially since search
engines and lots of HTTP authoring tools (eg DreamWeaver) like/need
those periods to work properly.

We actually use index.html quite a lot, with a dtml method as index_html
which solves the problems:

dtml-var index.html

neat, huh? ;-)

cheers,

Chris

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Chris Withers

Robin Becker wrote:
 
 I can do this using a class

So maybe do it using a class then? ;-)

Chris

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




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article [EMAIL PROTECTED], Chris Withers
[EMAIL PROTECTED] writes
Robin Becker wrote:
 
 I can do this using a class

So maybe do it using a class then? ;-)

Chris

yes I am, but surely there has to be a way to do this stuff in line.
That way I don't have to predefine all the link behaviours and include
in the standard header. I know that the pseudo class things are called 
:link :active etc.
-- 
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 )




[Zope] Re:[SybDA]Connection : how does it work ?

2000-11-28 Thread Ralph Heinkel

Hi,

Which Zope version are you using? V 2.2.0 had a bug with the connection
of the DB. I just looked into V 2.2.4 and the problematic code seems to be
fixed although I've not tried this version yet. Maybe you should upgrade.
If this is not the case, then ... hmm no idea.

Ralph


On Fri, 24 Nov 2000, you wrote:
 Hello,
 
 I am running Zope 2.1.6 under Linux/RH6.2 on a PC. The Sybase server is
 version 11.9.2 on a Solaris station with DNS name "sybstat" on port 2040
 (or sybase server name "sybtest") and the database is named "picsou".
 When I try filling in the form to add a new Sybase DA connection, the
 result is always: Invalid connection string. I have try with this
 parameters :
 1-database: picsou, password: mypasswd, server: sybstat, user: myuser
 2-database: picsou, password: mypasswd, server: sybstat:2040, user:
 myuser
 But this give the same answer ...
 
 On Linux, I have the libraries, include files and all running client for
 Sybase and I can run isql from my PC on the Sybase server on the solaris
 station very well using the parameters of the (2-) set. So the
 connection to the Sybase server seems to work ...
 
 How could I check what happens inside Zope, or am I mistaken for the
 parameters values ?
 
 Thanks for any help.
 Tony
 
 
 
 ___
 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 )
-- 
--
Ralph Heinkel  Cenix Bioscience GmbH
Director of the IT-UnitTel  : +49 6221/387 915
Meyerhofstr. 1 Fax  : +49 6221/387 971
69117 Heidelberg, Germany  eMail: [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] html expertise anyone.

2000-11-28 Thread Dany Rioux

Robin,

IIRC it can be done but I never used it myself because I think it's
annoying and it is confusing for the visitors. *G* But you should
definitively check www.echoecho.com. If it is possible it *will* be
posted there.

HTH

Dany

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Robin
 Becker
 Sent: Tuesday, November 28, 2000 9:21 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] html expertise anyone.


 In article [EMAIL PROTECTED], Chris Withers
 [EMAIL PROTECTED] writes
 Robin Becker wrote:
 
  I can do this using a class
 
 So maybe do it using a class then? ;-)
 
 Chris
 
 yes I am, but surely there has to be a way to do this stuff in line.
 That way I don't have to predefine all the link behaviours
 and include
 in the standard header. I know that the pseudo class things
 are called
 :link :active etc.
 --
 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 )





___
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] ZopeWeaver?

2000-11-28 Thread Jason Cunliffe

Hello

I am looking for realworld workflow tips on using Dreamweaver with Zope.
There was a speculativ thread about this some time ago, when UltraDev was
being pumped..

There are now all manner of Dreamweaver extensions, both trivial and
sophisticated.
http://www.macromedia.com/exchange/dreamweaver/
[check out the various categories listed in the 'browse extensions' dropdown
menu near top of page]

I would love to hear from anyone has been using Dreamweaver with Zope
[recently]..
How you organize your tasks between Dreamwever features and Zope features,
etc?

:Have you and problems with site upload from Dreamweaver into ZServer?
:Use of Tables to implement zopesite design changes.
:Not losing DTML tags..
:handling DTML
:managing files locally and their relationship to ZODB

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



___
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] Does 2.2.4 solve Proxy+ZCatalog bugs?

2000-11-28 Thread Marcin Kasperski

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

--
http://www.mk.w.pl /
 Marcin.Kasperski | Dokumentacj kodu warto wygenerowa:  
   @softax.com.pl |   http://www.mk.w.pl/narzedzia/narzedzia_gendoc   
 @bigfoot.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] Factoids for supporting zope

2000-11-28 Thread albert boulanger


I am going through a justification (risks) of the use of Zope for a
corporate client. Framing things as an Open Source play relies on the
health of its community for its longevity and access to expertise for
support. I remember some number tossed out when the Members folder at
zope.org went to Btree. What is the current # of Members? Is this an
estimate of the Zope community? I think there is probably some dead
wood in that # but at least its an estimate. I remember it being over 10K.

Our client thought that the recent VC money was about 1/2 what would
be needed to make it fly. My argument is that money is leveraged by
the active Zope community so a crux in my logic is how strong this
community is.

Other support?

Regards,
Albert Boulanger
[EMAIL PROTECTED]

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




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread Chris McDonough


- Original Message -
From: "albert boulanger" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 9:37 AM
Subject: [Zope] Factoids for supporting zope



 I am going through a justification (risks) of the use of Zope for a
 corporate client. Framing things as an Open Source play relies on the
 health of its community for its longevity and access to expertise for
 support. I remember some number tossed out when the Members folder at
 zope.org went to Btree. What is the current # of Members? Is this an
 estimate of the Zope community? I think there is probably some dead
 wood in that # but at least its an estimate. I remember it being over 10K.

Not sure...


 Our client thought that the recent VC money was about 1/2 what would
 be needed to make it fly. My argument is that money is leveraged by
 the active Zope community so a crux in my logic is how strong this
 community is.

1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what would
be needed with any app server?


___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne


Hi all, been very very foolish and didnt backup my entire zope
installation prior to untarring the 2.2.x to 2.2.4 diff (binary) tgz.

after restarting i get a message "couldnt import product.ZDbase" and one
or two others, then screeds of oid errors then a start. But the site is a
bit slaughtered because anything basedon a zclass I created durny work.
even though it is there and not shown as brokwen itself. the only two
shown as broken are zdbase and zdconfera. my zclass is only based on
ZObject, CatalogAwareBase, _ZClass_for_Renderable so I am a bit stumped.

when I try to list in magament view, the contents of any folder containing
1 or more instances of my zclass, the console shows things like:

--
2000-11-28T14:37:38 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\000k'
Traceback (innermost last):
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 448, in setstate
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 213, in _persistent_load
(Info: )
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 154, in __getitem__
(Info: ('\000\000\000\000\000\000\003\266',
'(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZClass\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\004cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl_Panel/Products/ZDiscussions/ZDTopic/propertysheets/methods/ZDItem%20/ziconImageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions
Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_typeq\017U\021ZDiscussions
Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\003\271q\022(NU\010\000\000\000\000\000\000\003\265q\023Qttq\024QU\012index_htmlq\025cZClasses.Method\012MW\012q\026NRq\027}q\030U$_ZClassMethodPermissionMapperMethod_q\031(U\010\000\000\000\000\000\000\003\272q\032(U\016OFS.DTMLMethodq\033cOFS.DTMLMethod\012DTMLMethod\012q\034ttq\035QsbU\016manage_optionsq\036(}q\037(U\005labelq
U\012Propertiesq!U\006actionq"U\025manage_propertiesFormq#u}q$(U\005labelq%U\010SecurityqU\006actionq\'U\015manage_accessq(u}q)(h%U\004Viewq*h\'U\012index_htmlq+utq,U\012ziconImageq-(U\010\000\000\000\000\000\000\003\273q.(U\011OFS.Imageq/cOFS.Image\012Image\012q0tq1tq2QU\022__ac_permissions__q3)U\011_p_serialq4U\010\0030\226a\274;\204\314q5U\012__module__q6U\031*73biqpAI2QDa2iKPitv57g==q7utq8t.N.'))
Could not load oid , pickled data in traceback info maycontain
clues


--
2000-11-28T14:44:30 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\003\236'
Traceback (innermost last):
  File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
line 448, in setstate
SystemError: Failed to import class _ZClass_for_ZDTopic from module
Products.ZDBase

any clues no matter how trivial gratefully received 

Jonathan
London


___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Chris McDonough

If I were you, I'd see if I could get ZDiscussions working under your
current setup.

- Original Message -
From: "Jonathan Cheyne" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 9:51 AM
Subject: [Zope] Possible disaster upgrading to 2.2.4



 Hi all, been very very foolish and didnt backup my entire zope
 installation prior to untarring the 2.2.x to 2.2.4 diff (binary) tgz.

 after restarting i get a message "couldnt import product.ZDbase" and one
 or two others, then screeds of oid errors then a start. But the site is a
 bit slaughtered because anything basedon a zclass I created durny work.
 even though it is there and not shown as brokwen itself. the only two
 shown as broken are zdbase and zdconfera. my zclass is only based on
 ZObject, CatalogAwareBase, _ZClass_for_Renderable so I am a bit stumped.

 when I try to list in magament view, the contents of any folder containing
 1 or more instances of my zclass, the console shows things like:

 --
 2000-11-28T14:37:38 ERROR(200) ZODB Couldn't load state for
 '\000\000\000\000\000\000\000k'
 Traceback (innermost last):
   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
 line 448, in setstate
   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
 line 213, in _persistent_load
 (Info: )
   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
 line 154, in __getitem__
 (Info: ('\000\000\000\000\000\000\003\266',

'(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(cZClasses.ZCla
ss\012PersistentClass\012q\003cProducts.ZDBase.ZDiscussions\012ZDItem\012q\0
04cOFS.SimpleItem\012SimpleItem\012q\005tq\006}q\007(U\004iconq\010UWControl
_Panel/Products/ZDiscussions/ZDTopic/propertysheets/methods/ZDItem%20/ziconI
mageq\011U\012_p_changedq\012K\001U\007__doc__q\013U\021ZDiscussions

Itemq\014U\006_p_oidq\015U\010\000\000\000\000\000\000\002Lq\016U\011meta_ty
peq\017U\021ZDiscussions

Itemq\020U\016propertysheetsq\021(U\010\000\000\000\000\000\000\003\271q\022
(NU\010\000\000\000\000\000\000\003\265q\023Qttq\024QU\012index_htmlq\025cZC
lasses.Method\012MW\012q\026NRq\027}q\030U$_ZClassMethodPermissionMapperMeth
od_q\031(U\010\000\000\000\000\000\000\003\272q\032(U\016OFS.DTMLMethodq\033
cOFS.DTMLMethod\012DTMLMethod\012q\034ttq\035QsbU\016manage_optionsq\036(}q\
037(U\005labelq

U\012Propertiesq!U\006actionq"U\025manage_propertiesFormq#u}q$(U\005labelq%U
\010SecurityqU\006actionq\'U\015manage_accessq(u}q)(h%U\004Viewq*h\'U\012in
dex_htmlq+utq,U\012ziconImageq-(U\010\000\000\000\000\000\000\003\273q.(U\01
1OFS.Imageq/cOFS.Image\012Image\012q0tq1tq2QU\022__ac_permissions__q3)U\011_
p_serialq4U\010\0030\226a\274;\204\314q5U\012__module__q6U\031*73biqpAI2QDa2
iKPitv57g==q7utq8t.N.'))
 Could not load oid , pickled data in traceback info maycontain
 clues


 --
 2000-11-28T14:44:30 ERROR(200) ZODB Couldn't load state for
 '\000\000\000\000\000\000\003\236'
 Traceback (innermost last):
   File /home/zope/Zope-2.2.0-linux2-x86/lib/python/ZODB/Connection.py,
 line 448, in setstate
 SystemError: Failed to import class _ZClass_for_ZDTopic from module
 Products.ZDBase

 any clues no matter how trivial gratefully received

 Jonathan
 London


 ___
 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] Factoids for supporting zope

2000-11-28 Thread albert boulanger

   From: "Chris McDonough" [EMAIL PROTECTED]
   References: [EMAIL PROTECTED]
   Date: Tue, 28 Nov 2000 10:04:02 -0500
   MIME-Version: 1.0
   Content-Transfer-Encoding: 7bit
   X-Priority: 3
   X-MSMail-Priority: Normal
   X-Mailer: Microsoft Outlook Express 5.00.3018.1300
   X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
   Content-Type: text/plain;
   charset="Windows-1252"
   Content-Length: 1049


   - Original Message -
   From: "albert boulanger" [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, November 28, 2000 9:37 AM
   Subject: [Zope] Factoids for supporting zope


   
I am going through a justification (risks) of the use of Zope for a
corporate client. Framing things as an Open Source play relies on the
health of its community for its longevity and access to expertise for
support. I remember some number tossed out when the Members folder at
zope.org went to Btree. What is the current # of Members? Is this an
estimate of the Zope community? I think there is probably some dead
wood in that # but at least its an estimate. I remember it being over 10K.

   Not sure...

   
Our client thought that the recent VC money was about 1/2 what would
be needed to make it fly. My argument is that money is leveraged by
the active Zope community so a crux in my logic is how strong this
community is.

   1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what would
   be needed with any app server?


Since they come from a non Zope context it would be from the general
position and the onus is on me to bring in the Zope context in the
construction of my argument.

Regards,
Albert


___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne


Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
zdiscussions but when you restart zeop it reinstalls the two products as
broken. 

i tried a new install of 2.2.4 then copy across my data.fs bits and untar
various products in use on the site, but, exactly the same message. so it
may not be th eupgrade but something in 2.2.4 itself that my data.fs
dislikes.

just to clarify three key messages that apprae immediately after starting
up.

couldnt' import product.ZDbase
[some blurge here]
unpack sequence of wrong size
[blurge]
cannot import name ZDiscussions

i tried chown -R zope * and even tried running it as root. nope.

I will try reinstalling 2.2.0 and see what happens.

gonna be a long long night


Jonathan



___
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] Factoids for supporting zope

2000-11-28 Thread ghaley


 My argument is that money is leveraged by the active Zope community so
 a crux in my logic is how strong this community is.
 
 Other support?
   
Hi Albert.

I'm not sure about the first part of the question, so i'll go to
the second query.

Our company uses zope in a combination of consumer and commercial
applications.  We find it very powerful, very fast, and quite flexible --
though this last comes later.

Pluses:

The Zope community is very strong, and very supportive.  Queries
to the list get answered fairly quickly, and, tend to be in direct
proportion to the quality of the question asked.  I have also found the
tone of reponses to be respectful -- unlike some other obnoxious lists,
you tend not to get an answer "Read the Man page!"  Replies will range
from detailed information on the specific problem to a recommendation of
existing documentation that might have already addressed the problem
raised.  

There is a wealth of documentation available on-line at
zope.org.  There are tutorials, full length documentation, how-tos, and
the archive of the list-serves.  the quality ranges from very thorough to
fairly rudimentary, so, caveat preemptor!  Docmentation written by the
digicool folks is generally excellent.

Zope will do anything that other web languages claim (e.g., asp
and php), though with more sophistication, since it is written in a real,
object oriented programming language (python).

Minuses:

The learning curve is STEEP!!  Once you learn Zope, you can
prototype and implement very complex solutions quickly, but plan on
several months before you get the full power of the server under your
hood.  As many testimonials will attest, you can do some nice stuff in
short order, but you'll be at the tip of the iceberg.

There are no books on Zope yet, though there is one on the way
from O'Reilly, and I think I heard there is one in the works from
Wrox.  There is a chapter on Zope at the end of "The Quick Python Book",
but it is not very complete.  As more users come on board, the publishers
will quickly follow (remember, it was only about three years ago that the
number of linux books would fit on a single shelf in a bookstore).  

You need to know Python to get the real power of the server
working for you, but Python is powerful and very clean, and its
datastructures are amazing.

Good luck,

ciao!
greg.

Gregory Haley
DBA/Web programmer
Venaca.com


 
 I am going through a justification (risks) of the use of Zope for a
 corporate client. Framing things as an Open Source play relies on the
 health of its community for its longevity and access to expertise for
 support. I remember some number tossed out when the Members folder at
 zope.org went to Btree. What is the current # of Members? Is this an
 estimate of the Zope community? I think there is probably some dead
 wood in that # but at least its an estimate. I remember it being over 10K.
 
 Our client thought that the recent VC money was about 1/2 what would
 be needed to make it fly. 

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


___
Zope 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] context in Python Script

2000-11-28 Thread Chris Gray

I still can't get external Python Scripts to work as described in the Zope
Book.  I am using the version of Python Scripts from the public
CVS.  Internal Scripts work fine, but I can't seem to use the
"context" object in an external script.

def tryContext():
"""tryContext function"""
return context.objectIds()

gives a NameError on context.

--

def tryContext(context):
"""tryContext function"""
return context.objectIds()

with the "Try It" tab, no form for passing parameters comes up and the
complaint is that the context parameter was omitted from the request.

---

dtml-var tryContext

to the first example above gives the same NameError on context and to the
second example gives "a not enough arguments" TypeError

---

It only seems to work when explicitly passing an argument like

dtml-var "tryContext(this())"

but I thought that context was supposed to be bound to an object by
default as it is with an Internal Script.

Cheers,
Chris


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




Re: [Zope] Factory location and Add box pollution

2000-11-28 Thread Stefan H. Holek


Thanks, but it doesn't ;) The prob is that anything inside the
projectfolder's ZClass becomes invisible...


On Mon, 27 Nov 2000, Lalo Martins wrote:

 Create all your ZClasses normally, and make projectfolder a
 subclass of Folder. Then, move all the Factories (except the
 projectfolderFactory) to inside the projectfolder ZClass. This
 should do the same trick as LocalFactory.
 
 
 On Mon, Nov 27, 2000 at 02:38:42PM +0100, Stefan H. Holek wrote:
  I want to create a folderish ZClass to contain all my
  project specific ZClasses. The idea is to only have them show up
  when inside my projectfolder. Just like the ZClass object only
  shows up inside a product's folder.
  
  Well, when I derive from OFS:Folder I do get all the global stuff, but
  _not_ my included ZClasses in the Add box. OTOH, deriving from
  ZClasses:ObjectManager gives me my ZClasses, but _not_ the global
  objects (DTML Methods, ...)
  
  Deriving from _both_ gives me the behavior of whichever was named first.
  
  I have seen the LocalFactory product, but this would force me to move
  the factories and constructors out of my ZClasses. Its very existance
  though might mean what I want is impossible :( 
 
 
 
 []s,
|alo
+
 --
   Hack and Roll  ( http://www.hackandroll.org )
 News for, uh, whatever it is that we are.
 
 
 http://zope.gf.com.br/lalo   mailto:[EMAIL PROTECTED]
  pgp key: http://zope.gf.com.br/lalo/pessoal/pgp
 
 Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar
 
 ___
 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] html expertise anyone.

2000-11-28 Thread Robin Becker

In article [EMAIL PROTECTED], Dany Rioux
[EMAIL PROTECTED] writes
Robin,

IIRC it can be done but I never used it myself because I think it's
annoying and it is confusing for the visitors. *G* But you should
definitively check www.echoecho.com. If it is possible it *will* be
posted there.

...
thanks I'll have a look there.
-- 
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] PoPy and Delete results

2000-11-28 Thread Chris Gray

Thanks for the response, Dieter.

For consistency within Zope, an integer result could still be repackaged
as a sequence result.

For now I can do what I wanted to by:

select count(food) from penguins
where food='Henri Bergson'

(thus getting the number of records about to be affected by a delete 
as a sequence result) before running:

delete from penguins
where food='Henri Bergson'

Cheers,
Chris

On Tue, 28 Nov 2000, Dieter Maurer wrote:

 Chris Gray writes:
   In psql a delete command returns a count of the number of rows
   deleted.  Is this returned result available to a ZSQL method using PoPy or
   PyGreSQL?
 I think, Zope should pass integer results from SQL commands.
 But I fear, it does not.
 
 When I looked at the code (quite some time ago), I had the impression,
 that Zope does only pass sequence results. Integer results
 are translated into 'None'.
 
 
 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 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 upgrade query

2000-11-28 Thread Jonathan Cheyne


Further to my paniced posting earlier, I reinstalled 2.2.0, copied over my
data.fs* and various products and everything fired up fine but i did one
experiment (following on from Chris) - i didnt install zdiscussions. This
resulted in major oids errors and my broken zclass as before/ install
zdiscussions and bingo i am back in business. so. two questios:

1. why does my zclass appear to require zdiscussions when it is not
based on it?

2. does 2.2.4 contain some parts of what was previously the standalone
zdiscussions product?

Is this an obsure backwarsd dependency break kindo of thing?

I will stick to 2.2.0 for now, methinks.

cheers

Jonathan


___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Bill Welch

On Tue, 28 Nov 2000, Jonathan Cheyne wrote:
 Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
 zdiscussions but when you restart zeop it reinstalls the two products as
 broken. 

You have to delete it from lib/python/Products as well, but it's a red
herring for the real issue (see below). 

 i tried a new install of 2.2.4 then copy across my data.fs bits and untar
 various products in use on the site, but, exactly the same message. so it
 may not be th eupgrade but something in 2.2.4 itself that my data.fs
 dislikes.

No, it's your data.fs that's the problem. It's been corrupted the same way
several others have been the past few months (ZDiscussions is suspiciously
overrepresented as the pickled data in the traceback). See the 'Is data.fs
corrupted' thread.

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 )




Re: [Zope] html expertise anyone.

2000-11-28 Thread Simon Michael

Robin Becker [EMAIL PROTECTED] writes:
 I am trying to change the colour of links dynamically using dtml.
 However, I cannot find the right incantation to change my links using an
 inline style except for
 
 a href=A style="color: red"A/a

Do you mean something like

a href="A" style="color: dtml-linkcolor;"A/a

I guess this is dynamic at page load time. Perhaps you want the colors
to change without refreshing the page ?

-Simon

___
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] ZODBC configuration problems

2000-11-28 Thread paul_s_johnson

Alas, I am but a Zope newbie and need help getting my database connections
to work.  I have previously configured the ODBC Data Source Administrator
to link Access mdbs with the PERL DBI module and it has worked with no
problems.  I have installed the ZODBC product and in the Zope database
connection window all the names of the ODBC data sources that have been
configured show up in the listbox. Upon attempting to add any of the data
sources I receive the error "Invalid connection string" except for one of
the databases that Zope does accept.  Upon testing this database connection
with a test query I get the following error:

Error Type: sql.error
Error Value: ('42000', -1907, "[Microsoft][ODBC Microsoft Access 97 Driver]
Record(s) can't be read; no read permission on 'ProjectSheets'.")

The permissions on this database are such that any anonymous user can
access its data so the error message appears to be inaccurate.  I double
checked the db permissions to make sure this is the case.

I am running Zope on NT 4.0 and using Access 97.  The logged-in user on the
webserver is not a member of any Access-related workgroups so this
eliminates most security-related access issues (I think) and none of the
databases are passworded.

There's some flakiness going on here.  Any recommendations for isolating
and resolving these problems?

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 )




Re: [Zope] Factoids for supporting zope

2000-11-28 Thread Chris McDonough

 Our client thought that the recent VC money was about 1/2 what would
 be needed to make it fly. My argument is that money is leveraged by
 the active Zope community so a crux in my logic is how strong this
 community is.

1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what
would
be needed with any app server?


 Since they come from a non Zope context it would be from the general
 position and the onus is on me to bring in the Zope context in the
 construction of my argument.

Ah.  Well, my opinion is that it'd be fairly dangerous to make the assertion
that (as great as they both are) Zope and the Zope community can "make up
for" the other half of the capital they need to develop the software they
want.  So what's the decision they're trying to make?  Whether to develop at
all?




___
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] Python method: recursive function gives NameError

2000-11-28 Thread Willem Broekema

I have a simple recursive function in a Python method that gives a
NameError (2.2.4 on Win98).

The function (in PM named 'rec'):
---
def myfunc(i):
  if i = 10: return myfunc(1)
  else: return 1

return myfunc(11)
---

The end of the traceback:
---
File c:\myzopeinstance\...cts\PythonMethod\PythonMethod.py, line 168, in
__call__
(Object: rec)
(Info: ((), {}, None))
File string, line 6, in rec
(Object: myfunc)
File string, line 3, in myfunc
NameError: (see above)
---

Isn't it allowed to have a recursive function here?


- Willem

___
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] 2.2.4 upgrade query

2000-11-28 Thread Brian Lloyd

 Further to my paniced posting earlier, I reinstalled 2.2.0, copied over my
 data.fs* and various products and everything fired up fine but i did one
 experiment (following on from Chris) - i didnt install zdiscussions. This
 resulted in major oids errors and my broken zclass as before/ install
 zdiscussions and bingo i am back in business. so. two questios:
 
 1. why does my zclass appear to require zdiscussions when it is not
 based on it?

Not sure on that...

 
 2. does 2.2.4 contain some parts of what was previously the standalone
 zdiscussions product?

No. The only thing I could think of is maybe some change in 
the way products are registered or something that affects 
ZDiscussions badly. I'm just guessing here. Have you tried 
going from 2.2.0 - 2.2.1 or 2.2.2? If you see the same thing 
on one of them, that would narrow it down and we could look at 
the diffs between those releases and see if anything looks 
suspicious...


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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Chris McDonough

Yes, there definitely seems to be something funky with ZDiscussions.  It's
been at the heart of several threads which claim "ZODB corruption".  If
someone had the time to figure it out, I think we'd all feel better.  ;-)

- Original Message -
From: "Bill Welch" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: "Jonathan Cheyne" [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 10:50 AM
Subject: Re: [Zope] Possible disaster upgrading to 2.2.4


 On Tue, 28 Nov 2000, Jonathan Cheyne wrote:
  Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
  zdiscussions but when you restart zeop it reinstalls the two products as
  broken.

 You have to delete it from lib/python/Products as well, but it's a red
 herring for the real issue (see below).

  i tried a new install of 2.2.4 then copy across my data.fs bits and
untar
  various products in use on the site, but, exactly the same message. so
it
  may not be th eupgrade but something in 2.2.4 itself that my data.fs
  dislikes.

 No, it's your data.fs that's the problem. It's been corrupted the same way
 several others have been the past few months (ZDiscussions is suspiciously
 overrepresented as the pickled data in the traceback). See the 'Is data.fs
 corrupted' thread.

 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 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] Factoids for supporting zope

2000-11-28 Thread albert boulanger

   From: "Chris McDonough" [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   References: [EMAIL PROTECTED]
   Date: Tue, 28 Nov 2000 11:41:50 -0500
   MIME-Version: 1.0
   Content-Transfer-Encoding: 7bit
   X-Priority: 3
   X-MSMail-Priority: Normal
   X-Mailer: Microsoft Outlook Express 5.00.3018.1300
   X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
   Content-Type: text/plain;
   charset="Windows-1252"
   Content-Length: 851

Our client thought that the recent VC money was about 1/2 what would
be needed to make it fly. My argument is that money is leveraged by
the active Zope community so a crux in my logic is how strong this
community is.
   
   1/2 of what would be needed to make it fly with Zope?  Or 1/2 of what
   would
   be needed with any app server?
   
   
Since they come from a non Zope context it would be from the general
position and the onus is on me to bring in the Zope context in the
construction of my argument.

   Ah.  Well, my opinion is that it'd be fairly dangerous to make the assertion
   that (as great as they both are) Zope and the Zope community can "make up
   for" the other half of the capital they need to develop the software they
   want.  So what's the decision they're trying to make?  Whether to develop at
   all?

Whether to go with portal products from Plumtree or iPlanet.


___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Dany Rioux

I was thinking about downloading the ZDiscussions product and install
it but from what I can see, it looks like it needs some fixing.

I intend to upgrade to zope 2.2.4 when it was proven that it is stable
but I don't want to run into more troubles that I can chew on.

I will need a Discussion board when the site go live so should I
upgrade Zope and wait for another Discussion Product to come up or
install ZDiscussion and hold on the Zope upgrade?

TIA

Dany

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Bill
 Welch
 Sent: Tuesday, November 28, 2000 11:50 AM
 To: [EMAIL PROTECTED]
 Cc: Jonathan Cheyne
 Subject: Re: [Zope] Possible disaster upgrading to 2.2.4


 On Tue, 28 Nov 2000, Jonathan Cheyne wrote:
  Ah, I tried reinstalling zddiscussions, no joy, i tried deleting
  zdiscussions but when you restart zeop it reinstalls the
 two products as
  broken.

 You have to delete it from lib/python/Products as well, but
 it's a red
 herring for the real issue (see below).

  i tried a new install of 2.2.4 then copy across my
 data.fs bits and untar
  various products in use on the site, but, exactly the
 same message. so it
  may not be th eupgrade but something in 2.2.4 itself that
 my data.fs
  dislikes.

 No, it's your data.fs that's the problem. It's been
 corrupted the same way
 several others have been the past few months (ZDiscussions
 is suspiciously
 overrepresented as the pickled data in the traceback). See
 the 'Is data.fs
 corrupted' thread.

 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 )




Re: [Zope] html expertise anyone.

2000-11-28 Thread Robin Becker

In article [EMAIL PROTECTED], Simon Michael [EMAIL PROTECTED]
writes
Robin Becker [EMAIL PROTECTED] writes:
 I am trying to change the colour of links dynamically using dtml.
 However, I cannot find the right incantation to change my links using an
 inline style except for
 
 a href=A style="color: red"A/a

Do you mean something like

a href="A" style="color: dtml-linkcolor;"A/a

I guess this is dynamic at page load time. Perhaps you want the colors
to change without refreshing the page ?

-Simon
...
I know about the style="color: red" type of inline, I was looking for
the :link, :active, :visited etc attributes for inline style. I can't
seem to get these to work. The color attribute seems to set all of the
states.
-- 
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] html expertise anyone.

2000-11-28 Thread rlanham

dtml as a server side scripting language is not going to change anything
dynamically on your page. Maybe you mean DHTML.

In IE everything is in the DOM and can be changed. Netscape is not thorough, and I 
don't think there is a hook that will change a.visited, et al.

But you could try.

IE has a links collection, like .images and .all




___
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] Factoids for supporting zope

2000-11-28 Thread Chris McDonough

Ah.  Well, my opinion is that it'd be fairly dangerous to make the
assertion
that (as great as they both are) Zope and the Zope community can "make
up
for" the other half of the capital they need to develop the software
they
want.  So what's the decision they're trying to make?  Whether to
develop at
all?

 Whether to go with portal products from Plumtree or iPlanet.

I'm not sure I understand... they know they don't have enough money to build
what they want, but they're going to do it anyway?  Isn't this a recipe for
disaster?



___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne

ok, its deffo to do with my data.fs cos the errors only start after that
has been copied across. But the errors are different if i compare
the console output from a failing 2.2.4 to a 2.2.0. If i do not install
zdiscussions on 2.2.0 i only get the oid errors as items requiring display
are requested from the database. with 2.4.4 i get the extra cannot import
errors before zope starts regardless of whether zdiscussions are installed
or not. something in zdbase is very different in 2.4.4.

questions:

1. Will packing my data.fs help? I havent done this since well never.

2. Is the potential corruption of my data.fs likely to explode in my face
without warning or is it/ will it only manifest itself during things liek
product installs, upgrades etc?

cheers

Jonathan 


___
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] Building Zope within a Virtual Server

2000-11-28 Thread ethan mindlace fremen

Norman Khine wrote:

 Hello,
 The new zope site seems to be running very well.
 
 I have a virtual server account on which I had previously installed zope
 2.2.2 which was later successfully upgraded to 2.2.4, unfortunantly I had
 problems in setting up MySQLdb.
 
 I have now removed zope and python 1.5.2, re-installed python2.0, within my
 domain. Which is part of the larger domain. So my root directory is not in /
 but is in /usr/home/mydir/ , within which I have installed python2.0 I have
 changed the .login file so that the path for the new python installation is
 available through out my domain. So that when I type python2.0 at the # I
 can use the python interpreter, this seems to work OK.
 
 Therefore my question/s are:
 If there is python on the root machine as well as on the virtual servers, so
 that both python and python2.0 will run from the command prompt, will this
 cause problems when I install the new virsion of zope 2.2.4?


If you run the server as you, and you compile zope from source as you, 
it should use "your" python.


Don't know.

Hope that helps,

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




Re: [Zope] Zope mailing list doesn't work

2000-11-28 Thread ethan mindlace fremen

Milos Prudek wrote:

 Today, I can't change my options for [EMAIL PROTECTED] I went to
 http://lists.zope.org/mailman/listinfo/zope, and it says that the
 document has moved to http://lists.zope.org/mailman/listinfo/zope, ad
 infinitum.
 
 If youa are reading this then I can post, but I cannot read since I have
 disabled delivery a few days ago and now I can't enable it due to the
 above mentioned problem.
 
 Thanks for any help, and please mail me directly


It appears that for some brief period of time, lists.zope.org was 
pointed at the wrong IP address. I'm not sure how that happened- all the 
dns records point the right place.

Anyway, it's working for me now, but if it is still not working for you, 
please visit:

http://209.67.167.110/lists.zope.org/mailman/listinfo/zope

to adjust your changes.

Thanks,

~ethan


___
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 expertise anyone.

2000-11-28 Thread Oleg Broytmann

On Tue, 28 Nov 2000, Robin Becker wrote:
 I know about the style="color: red" type of inline, I was looking for
 the :link, :active, :visited etc attributes for inline style. I can't
 seem to get these to work. The color attribute seems to set all of the
 states.

   I think it's impossible to set pseudoclasses inline.

Oleg.

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


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




[Zope] tree traversing publishing

2000-11-28 Thread Milos Prudek

I do not quite understand how Zope traverses a tree. 

I created "ZooExhibit" Z Class within ZooExhibit factory, and
"ExhibitProperties" prop.sheet within that class, with an "animal"
property. I made association between "Edit" name and
propertysheets/ExhibitProperties/manage. I made an instance of the Z
Class called "Rabbit" within Zoo folder. But when I access
http://Zoo/Rabbit/propertysheets/ExhibitProperties/animal, I get an
error "Missing doc string".

Perhaps a similar problem: I created "BWE" product/Z Class, and on the
Methods tab I created "pop" folder with a default "index_html". I
created an instance of that Z Class called "BWE_inst" within a "BWE"
folder. I can access "http://BWE/BWE_inst", but when I try
"http://BWE/BWE_inst/pop", browser gives me Authorization failed.


--
Milos

___
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] Problem with an INTERBASE connection

2000-11-28 Thread Francois-regis Chalaoux

Trying to run a connection with this Database Connection String : 'C:?Program 
Files?Borland?InterBase?examples?Database?employee.gdb sysadm
masterkey', I got the following error : Invalid connection string: 'C:?Program 
Files?Borland?InterBase?examples?Database?employee.gdb sysadm
masterkey'.

where is the bug!?

FRC

___
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] ZODBC configuration problems

2000-11-28 Thread Capesius, Alan

Are you running 2.2?  Look at: http://www.egroups.com/message/zope/36392

Is the Access DB on the same server as Zope? If not, you may be running into
problems accessing the network. The Zope service may need to be switched to
run under a user account that has access to the network resource. The NT
System account does not have network authority.
http://msdn.microsoft.com/library/periodic/period98/ewn9824.htm
http://support.microsoft.com/support/kb/articles/Q235/5/36.ASP

Is the ODBC DSN a system DSN? Don't use User DSN.

Alan Capesius, MCSE+21
Sysmex Corp of America


Message: 17
   Date: Tue, 28 Nov 2000 09:59:32 -0600
   From: [EMAIL PROTECTED]
Subject: ZODBC configuration problems

The permissions on this database are such that any anonymous user can
access its data so the error message appears to be 
inaccurate.  I double
checked the db permissions to make sure this is the case.

I am running Zope on NT 4.0 and using Access 97.  The 
logged-in user on the
webserver is not a member of any Access-related workgroups so this
eliminates most security-related access issues (I think) and 
none of the
databases are passworded.

There's some flakiness going on here.  Any recommendations 
for isolating
and resolving these problems?

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 )



_
___
_
___

Message: 18
   Date: Tue, 28 Nov 2000 11:41:50 -0500
   From: "Chris McDonough" [EMAIL PROTECTED]
Subject: Re: Factoids for supporting zope

 Our client thought that the recent VC money was about 
1/2 what would
 be needed to make it fly. My argument is that money 
is leveraged by
 the active Zope community so a crux in my logic is 
how strong this
 community is.

1/2 of what would be needed to make it fly with Zope?  
Or 1/2 of what
would
be needed with any app server?


 Since they come from a non Zope context it would be from 
the general
 position and the onus is on me to bring in the Zope context in the
 construction of my argument.

Ah.  Well, my opinion is that it'd be fairly dangerous to 
make the assertion
that (as great as they both are) Zope and the Zope community 
can "make up
for" the other half of the capital they need to develop the 
software they
want.  So what's the decision they're trying to make?  
Whether to develop at
all?




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



_
___
_
___

Message: 19
   Date: Tue, 28 Nov 2000 17:28:11 +0100
   From: "Max M" [EMAIL PROTECTED]
Subject: RE: How do i write or?

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Stoonsdesign

The thing is that I have this page (made by somebody else) 
wich is supposed
to
look up some words in a database by writing:

Hi Stoons

It really is impossible to answer that question without 
knowing how that
page works.

But maybe letter=* will work.

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 )



_
___
_
___

Message: 20
   Date: Tue, 28 Nov 2000 12:34:59 -0400
   From: "Dany Rioux" [EMAIL PROTECTED]
Subject: RE: Possible disaster upgrading to 2.2.4

I was thinking about downloading the ZDiscussions product and install
it but from what I can see, it looks like it needs some fixing.

I intend to upgrade to zope 2.2.4 when it was proven that it 
is stable
but I don't want to run into more troubles that I can chew on.

I will need a Discussion board when the site go live so should I
upgrade Zope and wait for another Discussion Product to come up or
install ZDiscussion and hold on the Zope upgrade?

TIA

Dany

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Bill
 Welch
 Sent: 

[Zope] ZCatalog and dates

2000-11-28 Thread James Sintz


I have a ZCatalog set up to index a date field and a title field.

When I do a search for meta_type "news" I get a tabular list back of all 18
cataloged items showing, among other things the date field (goLiveDate) and
the title field.

If I do a search for both meta_type of "news" a date of 2000/11/16 in the
goLiveDate field the results page returns "There was no data matching this
Catalog query". Yet when I do a search for the meta_type of "news" alone I
see that indeed the Catalog contains 2 entries with 2000/11/16 in the
goLiveDate field.

Why doesn't it find any entries when I search by date?


Jamey











___
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] ZODBC configuration problems

2000-11-28 Thread Pavel V. Piankov

sources I receive the error "Invalid connection string" except for one of

If you are using the last ZODBCDA there should be no problems granted that
you have provided the proper connection string. check the connection object,
there sould be
written down smth. like 'datasource login pass' or  'datasource
pass login'
I don`t remember exactly.


regards.
--
pashah



___
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] change object ownership from DTML?

2000-11-28 Thread Kyler B. Laird


I'm allowing users to initialize their own folders,
but I've run into a problem with ownership.  If I
simply do manage_addFolder(), the folder is created
"unowned".

I feel like I've looked everywhere for a clue on
how to set the ownership, but I haven't caught it.
Surely I'm missing something incredibly obvious (to
everyone else).

Anyone want to enlighten me?  I'd especially
appreciate a pointer to how I should have figured
this out on my own.

Thank you.

--kyler

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




RE: [Zope] ZCatalog and dates

2000-11-28 Thread James Sintz

They are a date type.

The date index or goLiveDate index is now a keyword index instead of a text
index. However, when I try to find items of the meta_type "news" to catalog
I get an AttributeError with an error value of  __getitem__

!--
Traceback (innermost last):
  File /usr/local/Zope222/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/Zope222/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/Zope222/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/Zope222/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/Zope222/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: manage_catalogFoundItems)
  File /usr/local/Zope222/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: manage_catalogFoundItems)
  File /usr/local/Zope222/lib/python/Products/ZCatalog/ZCatalog.py, line
335, in manage_catalogFoundItems
(Object: Traversable)
  File /usr/local/Zope222/lib/python/Products/ZCatalog/ZCatalog.py, line
584, in ZopeFindAndApply
(Object: Traversable)
  File /usr/local/Zope222/lib/python/Products/ZCatalog/ZCatalog.py, line
572, in ZopeFindAndApply
(Object: Traversable)
  File /usr/local/Zope222/lib/python/Products/ZCatalog/ZCatalog.py, line
377, in catalog_object
(Object: Traversable)
  File /usr/local/Zope222/lib/python/Products/ZCatalog/Catalog.py, line 379,
in catalogObject
  File /usr/local/Zope222/lib/python/SearchIndex/UnKeywordIndex.py, line 32,
in index_object
  File /usr/local/Zope222/lib/python/DateTime/DateTime.py, line 1096, in
__getattr__
AttributeError: (see above)

--

What am I doning wrong??

Jamey

 -Original Message-
 From: Andy McKay [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, November 28, 2000 3:10 PM
 To:   James Sintz; [EMAIL PROTECTED]
 Subject:  Re: [Zope] ZCatalog and dates
 
 Are your dates actually of type date or string? If they are dates make
 sure
 your date index is a keyword index and that the input is also of type
 date.
 --
   Andy McKay, Developer.
   ActiveState.
 
 - Original Message -
 From: "James Sintz" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 28, 2000 11:37 AM
 Subject: [Zope] ZCatalog and dates
 
 
 
  I have a ZCatalog set up to index a date field and a title field.
 
  When I do a search for meta_type "news" I get a tabular list back of all
 18
  cataloged items showing, among other things the date field (goLiveDate)
 and
  the title field.
 
  If I do a search for both meta_type of "news" a date of 2000/11/16 in
 the
  goLiveDate field the results page returns "There was no data matching
 this
  Catalog query". Yet when I do a search for the meta_type of "news" alone
 I
  see that indeed the Catalog contains 2 entries with 2000/11/16 in the
  goLiveDate field.
 
  Why doesn't it find any entries when I search by date?
 
 
  Jamey
 
 
 
 
 
 
 
 
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




Re: [Zope] ZCatalog and dates

2000-11-28 Thread Uros Midic

 If I do a search for both meta_type of "news" a date of 2000/11/16 in the
 goLiveDate field the results page returns "There was no data matching this
 Catalog query". Yet when I do a search for the meta_type of "news" alone I
 see that indeed the Catalog contains 2 entries with 2000/11/16 in the
 goLiveDate field.

 Why doesn't it find any entries when I search by date?

If goLiveDate is of DateTime type and is being indexed as a field index, try
using a range, for instance:

dtml-in "Catalog( { 'meta_type' : 'news',
'goLiveDate' : [ someDate , someDate + 1 ],
'goLiveDate_usage' : 'range:min:max' } )"

/dtml-in

 someDate is _.DateTime('2000/11/16 00:00') or something like that.

p.s. It's very hard to catch a particular moment in the time continuum, but
it is easier with a time interval. :-)



___
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] AND operator and ZCatalog

2000-11-28 Thread The Doctor What

* Michel Pelletier ([EMAIL PROTECTED]) [001128 15:26]:
 Text indexes implicitly Or their search terms if no operator is
 specified.  Don't ask me why, I don't know.
 
 if you want to change this behavior, edit
 lib/python/SearchIndex/UnTextIndex.py on or about line 451, change the
 'default_operator' argument to the query method to And:
 
 def query(self, s, default_operator = Or, ws = (string.whitespace,)):
 
 to:
 
 def query(self, s, default_operator = And, ws = (string.whitespace,)):

That's more like what I wanted. :-)

Ciao!

-- 
"You know, if you shoot me, you're liable to lose a lot of those humanitarian awards."
--Fletch (Fletch)

The Doctor What: A Holtje Production http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] Instance within Instance

2000-11-28 Thread Tim Cook

Daryl Stultz wrote:
 
 Tim Cook wrote:
  The problem here is that even though you set REQUEST, it is a
  string. You need to be in the context of the parent _object_. You
  should try  dtml-with "_.getitem(parent_id)".
 
 What's happening now is that my class2 is getting created at the same
 level as class1. What I want is class2 to be INSIDE class1. So I don't
 want the parent context, I want the class1 context.
 dtml-with "_.getitem(myClass1_id)" gets me the class2 instance at the
 same level...
 
 How can I get a new context of the newly created class1 instance?

This dtml-with should be in a DTML Method, not in your
constructor.  As I recall you are trying to construct the class2
from inside the class1 constructor.  There may be a way to get
that to work, I don't know. But if you use a DTML Method like
this:

--- add_myclass ---
This method contains a form to gather all of your required
property values.
It should POST to add_myclassProcessor.

---


--- add_myclassProcessor --
...
dtml-call expr="REQUEST.set('id', 'MyClass1ID')"
...

dtml-with "manage_addProduct['MyCoolProduct']"
  dtml-call expr="Class1_add(_.None, _, NoRedir=1)"
/dtml-with MyCoolProduct

dtml-with "_.getitem(MyClass1ID)"
...
dtml-call expr="REQUEST.set('id', 'MyClass2ID')"
...

dtml-with "manage_addProduct['MyCoolProduct']"
  dtml-call expr="Class2_add(_.None, _, NoRedir=1)"
/dtml-with MyCoolProduct

/dtml-with MyClass1ID 

---

I guarantee that you will end up with a folder MyClass1ID that
contains MyClass2ID.

This may not be the most spectacular Zope code. There are alot of
things that Zope can do that I don't know yet. But this works and
it's readable when indented properly.

Maybe, someone else can telly you a REALLY COOL way to get it
done from inside the Class1 constructor. But if you want it to
work now. Try this way. s


HTH,

-- Tim Cook, President --
Free Practice Management,Inc. | http://FreePM.com
Office: (901) 884-4126
Censorship: The reaction of the ignorant to freedom.

___
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+PostgreSQL

2000-11-28 Thread Martin Winkler

At 19:02 28.11.2000, Robert Senger wrote:
The ZPoPyDA module refuses to work properly.

I'm using ZPygreSQLDA - just installed it today on yet another server and 
have no problems with it. Just read the README-file thoroughly and you 
should be successful in an hour or so.

Martin


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




[Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen

Hi,

I just wanted to mention a IMO bad pitfall when using ZCatalog, for
the sake of sparing others some time.

I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was getting 
the following error  when trying to find dtml-documents into ZCatalog:


Error Type: AttributeError
Error Value: commit_sub

Traceback (innermost last):
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 222, in publish_module
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 187, in publish
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 
221, in zpublisher_exception_hook
(Object: Traversable)
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, 
line 175, in publish
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 
235, in commit
  File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZODB/Transaction.py, 
line 261, in commit
AttributeError: (see above)


All other object-types (incuding dtml-methods) seem to work. I have put no 
restrictions on which files I want found, but restricting something to 
reduce the number of found objects helps.

I fiddled around somewhat and discovered that disabling 
subtransactions in ZCatalog does help (required for using
ZSQL Methods and ZCatalog in the same transaction).

Now I use SQL-based LoginManager, but why on earth did it only 
fail on DTML-Documents? Is it because I have much more of them so 
only then ZCatalog's subtransactions come into play?

Another question, why did the above also fail although I didn't restrict
any viewer permissions when searching? (i.e. why got LoginManagers ZSQL-Methods
started at all?).

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] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Michel Pelletier

Oliver Bleutgen wrote:
 
 Hi,
 
 I just wanted to mention a IMO bad pitfall when using ZCatalog, for
 the sake of sparing others some time.
 
 I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was getting
 the following error  when trying to find dtml-documents into ZCatalog:
 
 Error Type: AttributeError
 Error Value: commit_sub
 
 Traceback (innermost last):
   File 
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 
222, in publish_module
   File 
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 
187, in publish
   File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, 
line 221, in zpublisher_exception_hook
 (Object: Traversable)
   File 
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 
175, in publish
   File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py, 
line 235, in commit
   File /home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZODB/Transaction.py, 
line 261, in commit
 AttributeError: (see above)
 
 All other object-types (incuding dtml-methods) seem to work. I have put no
 restrictions on which files I want found, but restricting something to
 reduce the number of found objects helps.
 
 I fiddled around somewhat and discovered that disabling
 subtransactions in ZCatalog does help (required for using
 ZSQL Methods and ZCatalog in the same transaction).

Yeah, that sux.  I think this is a known limitation.  I'm not sure.
 
 Now I use SQL-based LoginManager, but why on earth did it only
 fail on DTML-Documents? Is it because I have much more of them so
 only then ZCatalog's subtransactions come into play?

Probably because sub transactions are only commited after a certain
number of words or values are indexed, and your DTML documents were the
only things that held words.

-Michel

___
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 expertise anyone.

2000-11-28 Thread Robin Becker

In article 009c01c05961$a584d6a0$ae03a8c0@fork, Andy McKay
[EMAIL PROTECTED] writes
I think this is a css question and not related to DTML. Go to
http://freezope.nipltd.net/dna and you will see a simple style sheet that
shows use of active and visited links.
--
...
yes I know how to set up style sheets; what I want is to be able to use
inline definitions for the :link, :active, :visited (:hover) colours. I
just don't know the correct incantation.
-- 
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] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen

 Oliver Bleutgen wrote:
 I fiddled around somewhat and discovered that disabling
 subtransactions in ZCatalog does help (required for using
 ZSQL Methods and ZCatalog in the same transaction).

 Yeah, that sux.  I think this is a known limitation.  I'm not sure.

It is, unfortunately this is only mentioned under "status" in
the ZCatalog interface. Well, I just got there by chance after 
several hours of digging around. I first thought perhaps some
DTML-Document was "bad-behaving". (not that I had an idea how
it might do that.)
With a (assumed) growing attractiveness of things like sql-based
UserFolders, perhaps a big warning sign either on the main page
of these products or ZCatalog (better IMO, since this is a default
product) would be in order, I guess. Or perhaps disabling 
subtransactions by default.
All in all this combination seems not uncommon.

 Now I use SQL-based LoginManager, but why on earth did it only
 fail on DTML-Documents? Is it because I have much more of them so
 only then ZCatalog's subtransactions come into play?

 Probably because sub transactions are only commited after a certain
 number of words or values are indexed, and your DTML documents were the
 only things that held words.


 -Michel

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] External Methods

2000-11-28 Thread Dieter Maurer

Kini Natekar writes:
  How to call an External Method from another
  External Method and pass parameters ?
  I am just a beginner, so intricate details would
  be appriciated.

def Method1(self, ...further args...):
  .
  self.Method2(self, ...params for method2...)
  # or: Method2(self, ), when "Method2" is in the same source
  



def Method2(self, ...furhter args...):
  



Dieter

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




Re: [Zope] Instance within Instance

2000-11-28 Thread Dieter Maurer

Daryl Stultz writes:
   "REQUEST.set" to influence where instance is created 

"createInObjectManager" is uninterested in "REQUEST".
It creates the new object (usually, exception when its object
has a special "Destination" attribute) in the parent (aq_parent)
of its object.

Your "dtml-with" should place your "class1" instance correctly
in the "parent position".

I expect, that your "class1" does not inherit form "ObjectManager"
and therefore does not have a "_setObject".

In this case, "createInObjectManager" goes up another step
(another "aq_parent") and reaches the folder containing
the "class1" instance.
It has a "_setObject", the "class2" instance is placed there, too.

  Anymore info (or pointers to better docs) would be great. Thanks.
You can learn about "aq_parent" in the acquisition documentation.

Search "zope.org" for it (acquisition).


Dieter

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




Re: [Zope] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Dieter Maurer

Doug Morse writes:
  ... negating a ZCatalog index lookup ...

Only ZCatalog text indexes support a restricted form of negation.
Keyword and field indexes do not.
Text indexes support only "and not":
e.g. "Zope and not databases".
Free standing "not" or combined with "or" (rather than "and")
is not supported.


Dieter

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




Re: [Zope] Instance within Instance

2000-11-28 Thread Dieter Maurer

Daryl Stultz writes:
  Tim Cook wrote:
   The problem here is that even though you set REQUEST, it is a
   string. You need to be in the context of the parent _object_. You
   should try  dtml-with "_.getitem(parent_id)".
  
  Sorry, I thought of more...
  It's my understanding that dtml-with simply pushes a namespace onto the
  stack. What relationship does this have with the context that a new
  ZClass instance is created in?
"class2" is looked up in this namespace.
The top element is asked first for "class2".
"class2" is found (by acquisition) from your "class1" Z instance
(called "i1"). Thus, what is actually called is

(class2 __of__ i1).createInObjectManager()

"createInObjectManager" looks in "(class2 __of__ i1).aq_parent"
(this is "i1") for "_setObject".
Apparently, it does not find it there.
Then it looks at "i1.aq_parent" (this is the folder, "i1" is contained
in). There, it has success and creates the object.


Dieter



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




Re: [Zope] html expertise anyone.3A23A8D6.ECDD8BBF@nipltd.com

2000-11-28 Thread Dieter Maurer

Robin Becker writes:
  In article [EMAIL PROTECTED], Chris Withers
  [EMAIL PROTECTED] writes
  Robin Becker wrote:
   
   I can do this using a class
  
  So maybe do it using a class then? ;-)
  
  Chris
  
  yes I am, but surely there has to be a way to do this stuff in line.
  That way I don't have to predefine all the link behaviours and include
  in the standard header. I know that the pseudo class things are called 
  :link :active etc.
You often see this in the "body" tag.
I think, it was "vlink= ...", "alink= ..." and so on.
But I am not sure.

I hate inline style and never use it.


Dieter

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




Re: [Zope] context in Python Script

2000-11-28 Thread Dieter Maurer

Chris Gray writes:
   "context" in external Python Script 
I do not yet know, what an external Python script is.

In the old "external methods", you had to use "self"
as first parameter. Then (in most cases), you
could use "self" inside the function body, as you
would now use "context".

Maybe, you give it a try.


Dieter

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




Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Chris McDonough

The problem is that one of your databases doesn't define the commit_sub()
and abort_sub() methods on the DB class it exposes.  You don't say which SQL
database you're using, but this happened to me on a consulting project with
ZOracleDA.  A solution is to add the following methods to the database
adapter's DB class inside DB.py:

def commit_sub(self, *arg, **kw):
   pass

def abort_sub(self, *arg, **kw):
   pass

This isn't optimal, because it sort of breaks transactional integrity, but
it does make it work.

- Original Message -
From: "Michel Pelletier" [EMAIL PROTECTED]
To: "Oliver Bleutgen" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 6:12 PM
Subject: Re: [Zope] ZCatalog and LoginManager - be aware.


 Oliver Bleutgen wrote:
 
  Hi,
 
  I just wanted to mention a IMO bad pitfall when using ZCatalog, for
  the sake of sparing others some time.
 
  I'm running Zope 2.2.2 with LoginManager with SQL in a subfolder and was
getting
  the following error  when trying to find dtml-documents into ZCatalog:
 
  Error Type: AttributeError
  Error Value: commit_sub
 
  Traceback (innermost last):
File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.
py, line 222, in publish_module
File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.
py, line 187, in publish
File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
  (Object: Traversable)
File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZPublisher/Publish.
py, line 175, in publish
File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/Zope/__init__.py,
line 235, in commit
File
/home/local-extranet/web/zope3/Zope-2.2.2-src/lib/python/ZODB/Transaction.py
, line 261, in commit
  AttributeError: (see above)
 
  All other object-types (incuding dtml-methods) seem to work. I have put
no
  restrictions on which files I want found, but restricting something to
  reduce the number of found objects helps.
 
  I fiddled around somewhat and discovered that disabling
  subtransactions in ZCatalog does help (required for using
  ZSQL Methods and ZCatalog in the same transaction).

 Yeah, that sux.  I think this is a known limitation.  I'm not sure.

  Now I use SQL-based LoginManager, but why on earth did it only
  fail on DTML-Documents? Is it because I have much more of them so
  only then ZCatalog's subtransactions come into play?

 Probably because sub transactions are only commited after a certain
 number of words or values are indexed, and your DTML documents were the
 only things that held words.

 -Michel

 ___
 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] html expertise anyone.

2000-11-28 Thread Phil Harris

Robin,

My educated guess is that what you want can't be achieved other than with
css.

The a tag has no properties for changing colors of one particular link.

The body tag is the only place for this and as you know this changes them
globally.

This taken from the HTML reference Library:

A HREF="link_destination"
NAME="URL_fragment"
TITLE="Title_of_destination"
REL="Forward_relationship"
REV="Reverse_relationship"
URN="Uniform_Resource_Name"
METHODS="Function_information"
TARGET="Name_of_target_window_or_frameset"
ACCESSKEY="Shortcut_setting"
LANG="Document language"
LANGUAGE="Script_language"
INDEXSTRING="NetHelp_index_keyword"
TOCSTRING="NetHelp_contents_entry"
CLASS="className"
ID="unique_id"
STYLE="style_setting"
DATAFLD="Column name"
DATASRC="Data Source"


From the horses mouth so to speak :(.

If I needed to do this I'd use css in some way.

Phil

- Original Message -
From: "Robin Becker" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 11:22 PM
Subject: Re: [Zope] html expertise anyone.


| In article 009c01c05961$a584d6a0$ae03a8c0@fork, Andy McKay
| [EMAIL PROTECTED] writes
| I think this is a css question and not related to DTML. Go to
| http://freezope.nipltd.net/dna and you will see a simple style sheet that
| shows use of active and visited links.
| --
| ...
| yes I know how to set up style sheets; what I want is to be able to use
| inline definitions for the :link, :active, :visited (:hover) colours. I
| just don't know the correct incantation.
| --
| 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 )


___
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+PostgreSQL

2000-11-28 Thread Andreas

Robert Senger wrote:
 
 Hi all,
 
 The ZPoPyDA module refuses to work properly. After several problems installing 
PostgreSQL (V.
 7.0.3), ZPoPyDA (0.7 or 0.5) and PoPy (V. 1.4.1), Zope says at start that to please 
'update your
 version of PoPy'. But I already have the newest available versions.
 
 Does anybody have experience with PoPy/ZPoPyDA???

Have a look at PoPy_db.py
Search for __compatibility__
I don't know if it was a bad thing but I changed it ot ('1.4.1',) and
the PoPyDA works.


-- 

Andreas Heckel   [EMAIL PROTECTED]
UNIX is like a wigwam ...no gates ...no windows and an apache inside ;-)

___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Jonathan Cheyne

Hi Deiter

 Thus, install "ZDbase" or determine, why it can not import it.

Already installed in 2.2.0 before upgrade. I have perused the output on
the console but its a bit beyond me.

   cannot import name ZDiscussions
 You have ZDiscussion installed?

Already from before. Reinstalled as well no joy. I also tried a new
install of 2.2.4 not an upgrade and installed all my tar ball products.
things work until i copy in my data.fs then barf.

I think that the stuff about export then import into a new data.fs
'sounds' the most likely solution: I certainly intend to try once I have
experimented with how to do that. :-)

Cheers

Jonathan




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




Re: [Zope] ZCatalog and LoginManager - be aware.

2000-11-28 Thread Oliver Bleutgen

 The problem is that one of your databases doesn't define the commit_sub()
 and abort_sub() methods on the DB class it exposes.  You don't say which
 SQL
 database you're using, but this happened to me on a consulting project
 with
 ZOracleDA.  A solution is to add the following methods to the database
 adapter's DB class inside DB.py:

 def commit_sub(self, *arg, **kw):
pass

 def abort_sub(self, *arg, **kw):
pass

 This isn't optimal, because it sort of breaks transactional integrity, but
 it does make it work.


Thanks for your reply. I use ZPoPyDA (0.6.4 says the readme).

I think I will not apply that patch (thanks nonetheless), 
because I have no requirements for indexing big amounts
of text. And as I understand it, _indexing_ (as opposed to
normal searches) is the only action where subtransactions
help.
My main motivation for posting was to get that problem
into the public, so that others may find it while doing 
desperate searches in this mailing list ;-).
And perhaps - if I dare - to suggest to disable 
subtransactions in ZCatalog by default.

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] html expertise anyone.

2000-11-28 Thread Robin Becker

In article 00a501c05999$460c1840$0202a8c0@typhoon, Phil Harris
[EMAIL PROTECTED] writes
Robin,

My educated guess is that what you want can't be achieved other than with
css.

The a tag has no properties for changing colors of one particular link.

The body tag is the only place for this and as you know this changes them
globally.

This taken from the HTML reference Library:

A HREF="link_destination"
NAME="URL_fragment"
TITLE="Title_of_destination"
REL="Forward_relationship"
REV="Reverse_relationship"
URN="Uniform_Resource_Name"
METHODS="Function_information"
TARGET="Name_of_target_window_or_frameset"
ACCESSKEY="Shortcut_setting"
LANG="Document language"
LANGUAGE="Script_language"
INDEXSTRING="NetHelp_index_keyword"
TOCSTRING="NetHelp_contents_entry"
CLASS="className"
ID="unique_id"
STYLE="style_setting"
DATAFLD="Column name"
DATASRC="Data Source"



this isn't complete as it's easy to show that

a style="color: red" href=urltext/a

does work as do inlines for font-weight etc. The problem is that the CSS
attributes are :link,  etc ie pseudo classes and there doesn't seem to
be any way to get at class values in inline styles.

I'm using named CSS classes, but the complexities of CSS are a bit of a
pain.
-- 
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] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Doug Morse

Dieter,

 Doug Morse writes:
   ... negating a ZCatalog index lookup ...
 
 Only ZCatalog text indexes support a restricted form of negation.
 Keyword and field indexes do not.
 Text indexes support only "and not":
 e.g. "Zope and not databases".
 Free standing "not" or combined with "or" (rather than "and")
 is not supported.

Super, thanks Dieter!  Not the answer I was hoping to hear,
but it least it's definitive. ;-)  

I am curious: Do others think this feature might be worth
adding to the ZCatalog?  If so, perhaps it should work its
way into a proper feature request...

Cheers!
Doug Morse
[EMAIL PROTECTED]

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




Re: [Zope] ZCatalog: How to request boolean NOT searches?

2000-11-28 Thread Andy McKay

 I am curious: Do others think this feature might be worth
 adding to the ZCatalog?  If so, perhaps it should work its
 way into a proper feature request...

Yes definitely.


___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread [EMAIL PROTECTED]

On Wednesday 29 November 2000 08:33, Jonathan Cheyne wrote:
 Hi Deiter

  Thus, install "ZDbase" or determine, why it can not import it.

 Already installed in 2.2.0 before upgrade. I have perused the output on
 the console but its a bit beyond me.

cannot import name ZDiscussions
 
  You have ZDiscussion installed?

 Already from before. Reinstalled as well no joy. I also tried a new
 install of 2.2.4 not an upgrade and installed all my tar ball products.
 things work until i copy in my data.fs then barf.

i think this has manifested itself since zope 2.2.2bx.  make sure to add an 
addtional ',' in ZDBase/ZDiscussion.py __ac_permissions__

-8---
  __ac_permissions__ = (
('Manage properties', ('manage_addProperty',
   'manage_editProperties',
   'manage_delProperties',
   'manage_changeProperties',)),
)^
-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


___
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] Instance within Instance

2000-11-28 Thread Daryl Stultz

Tim Cook wrote:

 I guarantee that you will end up with a folder MyClass1ID that
 contains MyClass2ID.

You've been very helpful, here, Tim, but I simply can't get this to
work. I'm wondering if you might be able to create such a product for me
and send it to me: One product with two classes, creating one class from
the manager creates the first class with the second inside it.

Maybe I can write some Python for you or something in exchange :-)
Thanks.

-- 
"Where is the fancy bread, in the heart or in the head?"

Daryl Stultz - python, blender, robots, really bad harmonica playing...
[EMAIL PROTECTED]  
RedHat Linux 6.1 - Dual Pentium Pro

___
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] Possible disaster upgrading to 2.2.4

2000-11-28 Thread Dieter Maurer

Jonathan Cheyne writes:
  just to clarify three key messages that apprae immediately after starting
  up.
  
  couldnt' import product.ZDbase
Thus, install "ZDbase" or determine, why it can not import it.
  [some blurge here]
  unpack sequence of wrong size
Hopefully this is a consequence of the previous problem.
  [blurge]
  cannot import name ZDiscussions
You have ZDiscussion installed?

Go for it.

You must first fix the problems with the products.
*Later*, you may delete everything, that depends on the
products. Only then, you may delete the products (from
both "Product_Management" and the file system!

  i tried chown -R zope * and even tried running it as root. nope.
This is unrelated to your current problems.

You have objects that refer to products that are no longer
there, at least not free of problems.

You need to install the products and/or fix the problems
with the import.


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 )




  1   2   >