[Zope-dev] Security Permissions

2000-11-27 Thread Andre Schubert

Hi,

i have found the Security Permission below in the Zope Root that are not
definded by myself.

A
D
G
Z
a
d
h
r
s
t

Who can tell me where these Permissions come from?

as


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




[Zope-dev] ZPatterns Mailing List?

2000-11-27 Thread Chris Withers

Hi,

Just noticed there are loads of ZPatterns posts on [EMAIL PROTECTED]

Would it help to have a ZPatterns list? Is there one? Could Ethan set
one up?

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] ZPatterns getPersistentItemIDs() bug?

2000-11-27 Thread Chris Withers

Steve Spicklemire wrote:
 
This is a known problem. Use:
 
 dtml-let itemIDs="[]"
 dtml-in "addressRack.getPersistentItemIDs()" sort
 dmtl-call "itemIDs.append(_['sequence-item'])"
 /dtml-in

Hmmm... that's not very nice, has the bug in getPersistentItemIDs() been
fixed?

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] Re: ZPatterns getPersistentItemIDs() bug?

2000-11-27 Thread Steve Spicklemire


Hi Chris,

   It looks like it's a non-bug, more just an annoyance. Here's my current
feeling. In most 'real' situations you'll end up with a ZCatalog, or possibly
a totally virtual ZClass with some sort of dynamic (SQL? LDAP? etc.. ) 
data source where the ids you're after will be queried for.  My own practice
at this point is to define methods at the rack level like:

getAllItemIds, getRejectedItemIds, getCurrentItemIds 

and so on. These can then be implemented in a way that matches the
actual data storage. *If* the data is stored persistently, and *if*
you are implementing 'getAllItemsIds' and *if* you don't have a handy
ZCatalog around to query, then you can use the hack I sent Roche. ;-)
Otherwise there are better ways to do it anyway. The reason it's a
probem is that getPersistentItemIDs() returns a BTree object, that
isn't allowed to be exposed directly by the security
machinery. However, 'sort' short-curcuits the machinery so that you
can 'handle' them (in this hack, you store them in a simple python
list). Anyway..  it's not clear it's a bug worth fixing... if it's
a bug at all.

-steve

 "Chris" == Chris Withers [EMAIL PROTECTED] writes:

Chris Steve Spicklemire wrote:
  This is a known problem. Use:
 
 dtml-let itemIDs="[]" dtml-in
 "addressRack.getPersistentItemIDs()" sort dmtl-call
 "itemIDs.append(_['sequence-item'])" /dtml-in

Chris Hmmm... that's not very nice, has the bug in
Chris getPersistentItemIDs() been fixed?

Chris cheers,

Chris 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] Mail and zope

2000-11-27 Thread Roch'e Compaan

Is there anyway to get a hold off the message-id of e-mail sent through the
sendmail tag?

Roché


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




Re: [Zope-dev] Mail and zope

2000-11-27 Thread Chris Withers

Roch'e Compaan wrote:
 
 Is there anyway to get a hold off the message-id of e-mail sent through the
 sendmail tag?

I would have thought the message-id would only get generated by the MTA
once the sendmail tag has finished doing its thing :-(

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 )




RE: [Zope-dev] CVS bug

2000-11-27 Thread Brian Lloyd

 I recently checked out a CVS version of Zope, and upon firing it up, it
 gives an unauthorized error on the default index_html. You know, the one
 that is included by default, that welcomes you to zope. After changing
 it, and checking to verify that view is selected, etc. it still does so.
 Has there been any progress on this?

Hi Bill - this should be fixed if you update your CVS 
checkout...


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




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




Re: [Zope-dev] Mail and zope

2000-11-27 Thread morten

 Is there anyway to get a hold off the message-id of e-mail sent through
 the sendmail tag?

As far as I can see, there isn't any generation of a message-id in the
MailHost product.

If you want to get a hold of the message-id, the right thing would
probably be to generate it yourself, and adding it in the header
field of the message you're sending..

I.e., something like this (untested):
dtml-call "REQUEST.set('message_id', _.str(_.whrandom.random()) +
'@yourhost.com')"

dtml-sendmail
To: dtml-var mail_to
From: [EMAIL PROTECTED]
Message-ID: dtml-var mesage_id

/dtml-sendmail

Although using a message-id generated from one of the python library
modules would be a better way of doing it..

HTH.

-Morten


___
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] Create Virtual DataSkin

2000-11-27 Thread bentzion

This simple issue is driving me crazy...
I am trying to create a DataSkin with some Properties in a MySQL 
database. So I have an ID, NAME, and DESCRIPTION that is in REQUEST 
and using:

dtml-let ni="newItem(key=REQUEST['key'])"
  nips="ni.propertysheets.get('Basic')"
dtml-call "nips.manage_changeProperties(REQUEST=REQUEST)"
/dtml-let

The item gets created but the Properties are not changed.

Can someone please post the ADD/CHNAGE Trigger syntax and 
accompanying ZSQL Methods for a simple creation of a DataSkin 
ZClass.

Much appreciated.




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




Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage

2000-11-27 Thread Chris Withers

Phil Harris wrote:
 
 Chris,
 
 Any hints/tips on how you did this (just to save me from having to do any
 work of course ;))

I just used WinZip to extract the tarball in the /ZODB directory.
Sadly, it didn't work, and won't do until the next version fo Zope is
released :-(

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] Non-TTW ZPatterns

2000-11-27 Thread Chris Withers

Hi,

I think (shock, horror) I'm finally starting to understand ZPatterns ;-)
(well, okay, just a little bit then...)

Anyway, I'm wondering how I'd go about making a ZPatterns-based project
that is totally file system based. The reasons for this are CVS-ability,
the ability to update the 'product' without trashing the data, the
ability to easily duplicate the 'system' without copying the data,
better editing environment, etc, but I'm not sure how I'd go about it.

It seems as though all the cool bits (like SkinScript methods, order of
racks and the like) are in Zope's 'instance space' with ZPatterns. Does
this have to be so or could all the 'setting up' be stored/changed in
Python or other filesystem-based stuff?

If so, how so? I guess I'm talking about HTMLFile-like things for
SkinScript and ZSQL methods, amongst others.

Possible, or am I off my rocker (again ;-)

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] Fishbowl proposal: HookablePUTCreation

2000-11-27 Thread Tres Seaver

I have just created a fishbowl proposal for hooking the creation
of new objects during HTTP/FTP PUT operations:

 http://dev.zope.org/Wikis/DevSite/Proposals/HookablePUTCreation

Note that this proposal stems from my hack this weekend, which makes
it possible to create portal content via FTP;  I am confident that
this is a *short* project.

Please comment at the discussion page,

Tres.

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




Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage

2000-11-27 Thread Shane Hathaway

Chris Withers wrote:
 
 Phil Harris wrote:
 
  Chris,
 
  Any hints/tips on how you did this (just to save me from having to do any
  work of course ;))
 
 I just used WinZip to extract the tarball in the /ZODB directory.
 Sadly, it didn't work, and won't do until the next version fo Zope is
 released :-(

I just realized I could use the "patch" command to backport.  So I made
a new tarball.  Have fun!

http://www.zope.org/Members/hathawsh/PartitionedFileStorage/PartitionedFileStorage-0.0.1-2_2.tar.gz/view

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] Create Virtual DataSkin

2000-11-27 Thread Steve Spicklemire


Hmm... since triggers are done at transaction commit time, could
it be that the 'change' trigger doesn't happen if the change
occurs on the same transaction as an 'add'?

-steve

 "bentzion" == bentzion  [EMAIL PROTECTED] writes:

bentzion This simple issue is driving me crazy...  I am trying to
bentzion create a DataSkin with some Properties in a MySQL
bentzion database. So I have an ID, NAME, and DESCRIPTION that is
bentzion in REQUEST and using:

bentzion dtml-let ni="newItem(key=REQUEST['key'])"
bentzion nips="ni.propertysheets.get('Basic')" dtml-call
bentzion "nips.manage_changeProperties(REQUEST=REQUEST)"
bentzion /dtml-let

bentzion The item gets created but the Properties are not
bentzion changed.

bentzion Can someone please post the ADD/CHNAGE Trigger syntax
bentzion and accompanying ZSQL Methods for a simple creation of a
bentzion DataSkin ZClass.

bentzion Much appreciated.


___
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-27 Thread Michel Pelletier

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. I do see, however, that it
 makes it more likely to be broken by the implementation.

The "contract" is a policy.  The mechanisms of interfaces should not
require that the policy be "strong" or "weak".  This is up to the
contractor.  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.  What I said above was just a scenario, not necessarily any
position I advocate.

The current python interface proposal makes no statement on the strength
of a contract.  It sounds like you want your contracts to be strong,
fine, but Python has no explict compile-time or run-time interface
enforcement.  The proposal in question is just trying to define how
interfaces are defined, created, implemented, and used.  Strong
contractual enforcement is a minor, policy-specific decision.
 
 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).

Maybe.  I disagree in this case: this proposal states that interfaces
are discoverable documentation, not language or policy enforcement.  The
less they can be tied to specific policies the more flexible they can
be.  Keep in mind, if you want run-time interface enforcement, you can
*allways* add it with mxProxy or some other mechanism.  If you *don't*
want run-time interface enforcement and we made it a requirement, you'd
be stuck.  You can allways add, but you can rarely take away.
 
-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] Lots more in the interfaces Wiki

2000-11-27 Thread Michel Pelletier

Hello,

I have added a lot more content to the interfaces wiki at:

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

(note, this is not the old interfaces wiki, which is link to from here).

This wiki is the realization of last weeks interfaces proposal:

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

So far, I have gone pretty far into defining the first goal of the
project "what is an interface".  For those of you that are interested in
looking at the prototype implementation, a new version can be downloaded
from:

http://www.zope.org/Members/michel/Products/Interfaces/

Some user and higher-fiber documentation can be found in the wiki. 
Please check out the wiki and let me know what you think about
interfaces.  These are important components that you will see a lot of
in the future, so we want your input!

-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] Create Virtual DataSkin

2000-11-27 Thread Phillip J. Eby

At 02:34 PM 11/27/00 -0800, Ben Schochet wrote:
Seems that way Steve.

I have tried to do this in an external method with
self.get_transaction.commit(1) before doing the changeProperties, but that
didn't seem to work. 

You want get_transaction().commit(1), if you're doing it from Python.
DataSkins also have a commitSubtransaction() method that can be used to do
this.


Is there another way to do this? the CHANGE trigger works fine on its own.

How are others creating new items with properties from an HTML FORM?
Should I be doing this another way?

I can't wait to figure out ZPatterns, I think it is the best way to create
Zope applications! It seems to allow you to have the best of Zope objects
along with your data secure and accessible from a RDBMS. (At least that is
the value I see, there are probably others...)


You can't have an ADDED and CHANGED both fire in the same subtransaction.
ADDED, CHANGED, and DELETED are mutually exclusive.  So your ADDED trigger
has to perform the same operations to save data as your change trigger
would.  One easy way to do this is to do:

WHEN OBJECT ADDED ...stuff to do for adding only
WHEN OBJECT ADDED,CHANGED ...stuff to do when changing or adding

Since the triggers are fired in order, and both triggers fire on add, that
should be pretty easy to set up.

Note that in this case, you won't need to commit a subtransaction.
Subtransaction commits are really pretty rarely needed.  About the only
time you should *normally* need a subtransaction commit is that if you have
triggers you want to take effect before you move on, like triggers that
update an index you're about to search.  The normal assumption in Zope
however is that you generally keep your read and write transactions
seperate; i.e. a POST usually results in a redirect to the updated object,
or something of that sort.


___
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] Create Virtual DataSkin

2000-11-27 Thread Phillip J. Eby

At 08:34 PM 11/27/00 -0500, [EMAIL PROTECTED] wrote:
Thanks Phillip. Is there a way to pass my REQUEST info to the ADD 
Trigger? 

I am under the impression that only "self" and some other ZPattern 
specific properties are available to the trigger.

You also have access to everything in the acquisition hierarchy of the
trigger or SkinScript method itself, which of course includes REQUEST.  So
either REQUEST (which would look it up in the trigger's acquisition
hierarchy) or self.REQUEST (which would look it up in the DataSkin's
acquisition hierarchy) should work fine.

Now that I've told you *how* to get at it, however, I should warn against
making too much use of the request to get information that
could've/should've been passed to the DataSkin by application or domain
code.  It makes sense to use the request if you want to log things about
the request that caused the change, but it's probably not a good idea to be
looking at form fields and such, since that would introduce an undesirable
coupling between your application structure and your triggers.  Ideally,
triggers should only look to the DataSkin for anything other than methods
or constants they need to carry out their job.  In practice of course, if
you want to do something like log the AUTHENTICATED_USER and whether they
were logged in via SSL, then of course the REQUEST is the right way to do it.


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




Re: [Zope-dev] Questions, Jar, Transactions, Metaclassess, ZPatterns

2000-11-27 Thread Ender

sorry for the poorly worded question (midnight madness), let me try and
restate them a bit better in the fond hope that someone will answer any
of them.

whats is a jar? as far as i know its just the data  representation of
the object that gets stored in the zodb, hence its directly related to
the __dict__ of the object. but then what is the signifigance of calling
methods directly on the jar like i see in some of the transaction
machinery, is this an indirect call to the thread's zodb connection?

 does zope restrict you from doing metaprogramming with python products?
 or does zope's own metaprogramming reserve some names __klass__, etc?

i was reading through guido's essays yesterday, and happened upon the
metaprogramming essay ( i read it when i was first learning python but
it made a lot more sense now:). i was thinking about creating my own
caching metaclass, but i know that acquisition (and probably
persistence, and zclasses) use some c-based metaclasses to work. i'm
just curious what the possibilites and restrictions are of doing
metaclasses in zope, so my classes play well with others. 

in /lib/python/Shared/DC/ZRDB/TM.py, i see the class Surrogate defining
methods for __inform_commit__ and __inform_abort__, what are these for?

In ZPatterns/Transaction.py I see some talk of transaction boundaries,
namely the inability for an object participating in the transaction to
know that a transaction is finished. From my understanding of
transactions i thought that an object could assume a transaction was
over if it has its tpc_finish called on it when its not in a
subtransaction. I understand that the Zpatterns problem here might be
related to providing attrs to other objects which might be used in a
tpc_finish but i just wanted to clarify/make sure.

kapil

___
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-27 Thread Ender

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

use a catalog. (which only help if you want a filtered set or a schema
attrs of the object)

beefing up your memory (assuming you want zope to use alot), could also
help, assuming these objects are accessed frequently enough to stay in
the object cache.

kapil

___
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] Mail and zope

2000-11-27 Thread Roch'e Compaan


  Is there anyway to get a hold off the message-id of e-mail sent through
  the sendmail tag?

 As far as I can see, there isn't any generation of a message-id in the
 MailHost product.
 [snip]

Thanks for the suggestion, this is what I'm trying to do:

We're building a customer relationship management system and one part of it
is a request tracking system.  For a particular request there can be many
tasks assigned to various supporters.  A supporter can give feedback to
customer from a task assigned to him.  If the customer replies to this task
via e-mail I want to associate that message with the task where the feedback
originated from but most e-mail clients discard custom headers but preserve
a 'In-Reply-To' header with the original message-id.

This is what I do currently:
If the supporter sends feedback to the customer I send a copy of the mail
back into zope to get the message-id generated by the MTA and then store the
message with the approriate task.  When the customer replies to this message
I search a catalog for the original message-id via the 'In-Reply-To' header
and then associate the reply with the correct task.  In this way one can
keep track of all correspondence on a specific task.  If I can generate the
message-id like you suggested then I don't have to send a copy of the
message back into zope but can save a copy directly in Zope.

Any other suggestions would be more than welcome.

Roché


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




[Zope-dev] Loginmanager and LDAP

2000-11-27 Thread Magnus Heino (Rivermen)


Hi.

I'd like to authenticate users using LDAP and Active Directory. Zope is
running on a RH7.0 box.

Has anyone done this, is it possible?

/Magnus

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




[Zope] AND operator and ZCatalog

2000-11-27 Thread Bak @ kedai

hello
i've read and reread advance ZCatalog howto by Zen, and still failed to do 
what i want.

the situation
i have a ZCatalog that indexes news.  i use keyword index, and text index.  
when i try 

dtml-in "Catalog(publication=myPub,section=mySec,date_posted=myDate)"
br
a href="dtml-var SCRIPT_NAME/dtml-var "getpath(data_record_id_)" "
dtml-var title/a
pdtml-var publication|dtml-var abstract|dtml-var section
dtml-var myDate/dtml-in

it seems that the search was ORed, not ANDed.  

i hope i'm clear enough.

thanks

-- 

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

Strange how laughter looks like crying with no sound, and raindrops taste 
like tears .. without the pain


___
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] ZPyGreSQLDA on Tru64?

2000-11-27 Thread Stephane Bortzmeyer

On Friday 24 November 2000, at 22 h 1, the keyboard of Dieter Maurer 
[EMAIL PROTECTED] wrote:

 Try "import _pg" in an interactive Python interpreter.
 I remember that in some cases I got a better error message
 that indicated precisely, what was missing.

Not here:

wallis:~ python
Python 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] on osf1V4
Type "copyright", "credits" or "license" for more information.
 import _pg
Traceback (most recent call last):
  File "stdin", line 1, in ?
ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu
le.so
 

 If it does not, then you may try "ldd _pgmodule.so"

This program does not exist on Tru64, v4. (It appeared on v5 but I don't plan 
to upgrade right now.)

 I hope, that one of these approaches will reveal what is
 wrong. Otherwise, it would probably be a missing symbol.
 But it is quite difficult to detect which one.

OK, I'll try Zope another time.



___
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] ZPyGreSQLDA on Tru64?

2000-11-27 Thread Stephane Bortzmeyer

On Friday 24 November 2000, at 16 h 1, the keyboard of Stephane Bortzmeyer 
[EMAIL PROTECTED] wrote:

 Zope tells me that my ZPyGreSQLDA (PostgreSQL interface) is broken 

No longer : the path to the PostgreSQL library was not put in the shared library 
object so I had to add:

# PostgreSQL
LD_LIBRARY_PATH=/local/pgsql/lib
export LD_LIBRARY_PATH

to the Zope start script and now it works fine. Thanks for those who searched. 

Suggestion: to improve the error message: "libpq not found" would have been more than 
enough to diagnose the problem.



___
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] WebDav-support / Index_html versus index.html

2000-11-27 Thread Pieter Biemond

Hi,

I'm planning to setup a Zope server for our company. We have a lot of people
with HTML-knowledge and a lot of people who would like to use Microsoft
Frontpage 2000, both from Windows98/NT workstations. The maintenance for
them must be as easy as possible. At this moment their using a shared
network drive (linux server with apache and samba installed). We're thinking
of installing Zope and WebDAV for dynamic content. The main reason for using
Zope is to get rid of the HTML-frames we are using now, and to maintain a
uniform layout. In future we would like to personalise some pages and to add
a webforum (Squishdot).

Can anybody answer the following questions:
* Has anybody implemented something like this before? Any pittfals I should
watch out for?
* Why is the default file index_html and not index.html
  (Windows doesn't want to open files without extensions).
* Should I install 2.2.2. now, or are there any WebDav-updates in 2.2.4?
* Is it possible to backup all files from Zope easily? (for example use a
command-line webdav-client to pull everything out of the Zope database). I
would like to have all the files backed up on a regular filesystem, rather
than a proprietary database.

Thanks,
Regards,

Pieter Biemond


___
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] acquisition/acl_users/permissions: is something broken? 2e post on this pb.

2000-11-27 Thread Gilles Lavaux

Hello,


That's the second time I have this problem, I report it again because the
answer I got the last time was not 'sure' (see bottom of mail) and I would
like to have an 'definitive' explanation from some Zope guru. I hope my
explanation will be clear:

I have 3 folders for a project called 'sms':
/sms/shtmlwhich is accessible by anonymous
/sms/shtml/stationswhich is not accessible by anonymous, only by
'operator' ans stations users
/sms/adminwhich is accessible only by 'operator' user

/sms/acl_userscontains the 'operator' user with role 'sms_admin'
/sms/shtml/stations/acl_userscontains several station users
(station1, staiton2.etc...) with role 'station'

1)'operator' user has permission to access /shtml/stations. operator
authentication is forced by accessing a '/sms/admin/login' method.
2)a method 'check' is inside the '/sms/shtml' folder, this method (also)
display the http authenticated user.

My problem: I am logged in as 'operator'. Sometime, accessing
'/sms/shtml/stations/check' show me:
  -Logged in as: Anonymous User   and has role(s):Anonymous
instead of:
  -Logged in as: operator   and has role(s): sms_admin

why   (this with IE and Netscape)


I just have a guess: the 'operator' user is defined in '/sms/acl_users' and
my stationx users are defined in '/sms/shtml/stations/acl_users'.
So: is it possible that when I do my 'check' as operator, the acquisition go
to the acl_users which contains the stationx users and miss the other
acl_users folder (which is two levels above) ?
Another investigation: I am logged as operator in a new browser and have the
problem, I click on a link for a stationx user but cancel the http
authentication, then the problem disappear.

I am able to use a workarround, but I would like to understand what cause my
problem.
Is there a way to display which object has triggered the authentication, and
which acl_users folder is used??

Help please...
Thanks.

Gilles Lavaux



Last time reply by Dieter Maurer :
The security system does not use the full acquisition context but
only the containment. This is a security feature to prevent
a user with partial management rights in a subfolder to
affect permissions for objects outside its area.

I think (am not sure!) that in your case, the "protected" context
is not used as your objects are in fact outside "protected".
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] Factory location and Add box pollution

2000-11-27 Thread Stefan H. Holek

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 :( 

Lost,
Stefan

--
Things work better when plugged in 


___
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] manage_addFolder unusable from DTML-call?

2000-11-27 Thread Kyler B. Laird


On Sun, 26 Nov 2000 23:22:17 +0100 (CET) you wrote:

When I tried to reproduce your problem (ZopeCVS rather than
Zope 2.2.4b1), everything worked as it should -- no
Unauthorized exception.

Indeed, it works for me using a simple CVS version
too.

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] PoPy and system tables

2000-11-27 Thread Federico Di Gregorio

 can anybody out there tell me why this query fails 
 although PoPyDA is connected as postgres superuser ?
 
 select * from pg_class

at now popy tries to dereference every oid thinking it is a large object.
obviously that is not tru for oids of system tables... *grin*

hope this helps,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research  Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
 Best friends are often failed lovers. -- Me

___
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} why single quote can't store in gadfly database tables

2000-11-27 Thread rlanham

I found that Single quote ( ' ) cannot be stored in gadfly database table.

If gadfly is like every other db, it will store ' but you have to escape it first 
since it is the delimiter for string vals.

In access, sqlserver you add a second ' to escape. That should work, or use backslash.


___
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] CURRENT MEMBERSHIP PRODUCT IS COOL -- was: [Zope] LoginManager / Membership / ZODB as UserSource

2000-11-27 Thread Danny William Adair

Hi Dirk Dirksen ;-)

In my implementation I wanted to avoid MySQL and thelike, because they would
have only served as "user sources" for the site's membership functionality
and that's it (and I wasn't talking about Ks of users...). So I considered
this O.D., and tried to get a ZODB based membership up and running. Well,
here we are - see below. Unfortunately, I do not have any experience with
hooking up MySQL to the current Membership/LM/ZPatterns trio. And now that
the membership product has become a ZODB drop-in solution for me, I guess
now there's no reason for me to go at that. I'd rather go for new methods to
enhance the product's features. (there has been more than one proposal for
this on this list)

Sorry with that one. Charlie E Wilkinson is probably your man (check the
mail archives).

CU+Prost,


 .oO( "Du konntest mal einen bauen" )
Danny


-Ursprungliche Nachricht-
Von: Dirksen [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 27. November 2000 03:45
An: [EMAIL PROTECTED]
Betreff: Re: [Zope] CURRENT MEMBERSHIP PRODUCT IS COOL -- was: [Zope]
LoginManager / Membership / ZODB as UserSource


Hi Danny,

Could you show me some enlightenment on how to use Zpatterns and
LoginManager to build a
hook to rdbms for Membership? I've read the Howto for hook up LoginManager
with MySql,
and tried it on Membership, but that trick didn't work. Look forward to your
advice!

cheers
Dirksen

--- Danny William Adair [EMAIL PROTECTED] wrote:
 Hello Bill,

 Now this _is_ cool. I had tried 0.75 in the past and had lots of problems.
 Version 0.78 is a real drop-in, like what I was dreaming of. Thank you
very
 much for your efforts so far. I recommend the Membership product to
everyone
 looking for a ready-to-use authentication and personalization solution,
 though ZODB based in the first place, thanks to ZPatterns and LoginManager
 it is always ready for rdbms.

 Btw, if you maintain a Membership version outside of the PTK, why do I see
 the word "Portal" so often? IMHO you shouldn't narrow down the
opportunities
 of using this product to mere portals.

 CU+Prost,


  .oO( "Du konntest mal einen bauen" )
 Danny


 -Ursprungliche Nachricht-
 Von: ucntcme [mailto:ucntcme]Im Auftrag von Bill Anderson
 Gesendet: Samstag, 25. November 2000 19:44
 An: [EMAIL PROTECTED]
 Betreff: Re: [Zope] LoginManager / Membership / ZODB as UserSource


 Danny William Adair wrote:
 
  Has somebody been able to setup this combination as for today? I guess
 this
  is an easy one for the LM experienced...
  I am looking for a completely ZODB based solution concerning membership,
 no
  rdbms.


 It it still beta, but there is a membership product, which uses
 loginmanager. You can get it at
 http://www.zope.org/Members/Bill/Products/Membership

 It works quite well, despite the beta label.

 Bill Anderson

 --
 E PLURIBUS LINUX



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



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


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




[Zope] Re: [Zope-dev] Security Permissions

2000-11-27 Thread Danny William Adair

Hi Andre,

I think these rights are the result of a broken GDChart product. Make sure
the class registration in the initialization part says

permissions = 'Add ZGDCharts'

(see how you have all the characters as separate rights...)

But as far as I know this has been discovered right after the initial
release and solved right away. I guess you should simply remove your current
GDChart Directory and reinstall the product after a restart.

CU+Prost,


 .oO( "Du konntest mal einen bauen" )
Danny



-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag
von Andre Schubert
Gesendet: Montag, 27. November 2000 11:52
An: Zope Development Maillist
Betreff: [Zope-dev] Security Permissions


Hi,

i have found the Security Permission below in the Zope Root that are not
definded by myself.

A
D
G
Z
a
d
h
r
s
t

Who can tell me where these Permissions come from?

as


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

2000-11-27 Thread Rafael Amer Ramon


Hi.

I trie to install Zope-2.2.2 with mod_pcgi2 and the Apache web server.
I follow the steps in the README files, but when I trie to access to
the URL 
 http://localhost/pcgi
I get the following error message:


 Zope Error

 Zope has encountered an error while publishing this resource. 

 Resource not found

 Sorry, the requested Zope resource does not exist.

 Check the URL and try again.

 Troubleshooting Suggestions

   The URL may be incorrect. 
   The parameters passed to this resource may be incorrect. 
   A resource that this resource relies on may be encountering an error. 

 For more detailed information about the error, please refer to the 
 HTML source for this page. 

 If the error persists please contact the site maintainer. Thank you for 
 your patience. 
  
!--
Traceback (innermost last):
 File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
 File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
 File /usr/local/Zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
   (Object: ApplicationDefaultPermissions)
 File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 162, in
publish File /usr/local/Zope/lib/python/ZPublisher/BaseRequest.py,
line 338, in traverse
 File /usr/local/Zope/lib/python/OFS/Application.py, line 251, in
__bobo_traverse__
(Object: ApplicationDefaultPermissions)
  File /usr/local/Zope/lib/python/ZPublisher/HTTPResponse.py, line 529,
in notFoundError
NotFound: (see above)

--

The httpd.conf file has the following instruccions:

LoadModule pcgi2_module   libexec/libpcgi2.so
AddModule mod_pcgi2.c 

IfModule mod_pcgi2.c
PCGI_NAME Zope
PCGI_MODULE_PATH /usr/local/Zope/lib/python/Zope
PCGI_PUBLISHER /usr/local/Zope/pcgi/pcgi_publisher.py
PCGI_EXE /usr/local/bin/python
PCGI_SOCKET_FILE /usr/local/Zope/var/pcgi.soc
PCGI_PID_FILE /usr/local/Zope/var/pcgi.pid
PCGI_ERROR_LOG /usr/local/Zope/var/pcgi.log
PCGI_DISPLAY_ERRORS 1

Location /pcgi
SetHandler pcgi-handler
PCGI_ROOT /usr/local/Zope
PCGI_SetEnv SiteRootPATH /
/Location
/IfModule 

Is the error related with the PCGI_ROOT directive?
How can I set this directive?

Thanks.

--
 _/_/  _/_/_/_/  _/_/_/  Rafael Amer Ramon
_/_/  _/_/  _/   Departament de Matemàtica Aplicada II
   _/_/  _/_/_/_/  _/E.T.S.E.I.T.
  _/_/  _/_/ Universitat Politècnica de Catalunya 
 _/_/_/_/  _/_/_/_/_/e-mail: [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] PCGI_ROOT

2000-11-27 Thread Oleg Broytmann

Hi!

   I am the author of mod_pcgi2. Thank you for using it.

On Mon, 27 Nov 2000, Rafael Amer Ramon wrote:
 PCGI_ROOT /usr/local/Zope

 Is the error related with the PCGI_ROOT directive?

   Yes.

 How can I set this directive?

   PCGI_RROT should point to *a Zope folder*, not a directory on disk.
Initially, when you have fresh Zope install, you have one Zope folder -
root, so set

   PCGI_ROOT /

Later you'll connect to Zope and create more folders in ZODB, so you can
create different configurations, and set PCGI_ROOT to different folders.

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] clean way to change AUTHENTICATED_USER?

2000-11-27 Thread Kyler B. Laird


My users need to login with a simple alias ("kyler")
which could change.  As part of the (PH/X.500) login
procedure, I want to set AUTHENTICATED_USER to a
better ID ("kyler.b.laird.1").  This will allow the
users to continue to change aliases at will without
necessitating ownership changes in Zope.  (I've done
this for years under Apache.)

I'm using LoginManager and a PH kludge I wrote to do
the authentication for now.  I realize I will need
to continue to use the alias (as supplied by the
user) for indexing there in orcer to use the cache.
I just want everything else to see the full ID.

I don't have a good grasp of The Big Picture yet, so
I'm hesitant to jump right in and add a setUserName
method.  I'm hoping there's a better way.

Any suggestions?

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 )




[Zope] newbie question: Redirect from Python?

2000-11-27 Thread Paul Winkler

I want the user to be sent to a particular URL after calling the
product's manage_add method. How can I do that?
The URL I want is REQUEST['URL3'].

I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the
RESPONSE doesn't seem to exist here.


-- 
.paul winkler..
slinkP arts:   music, sound, illustration, design, etc.
   web page:  http://www.slinkp.com
  A member of ARMS:   http://www.reacharms.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] Client/Server Product

2000-11-27 Thread Anderson Ami

Has anybody used the Client/Server Product ? If I create a dtml document on
the server, can I use it through the client ? is the server just a
repository that can´t make changes ?

anderson


___
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] view DTML source

2000-11-27 Thread The Doctor What

Anders Eriksson ([EMAIL PROTECTED]) asked about view_source

I'm not sure exactly what's going on there (others have posted
possible explinations) but I have something that solves some of my
problems with view_source:

http://docwhat.gerf.org:9673/view_source/view_source

My view_source checks the meta_types and tries to act accordingly.

BTW: Does anyone have a 'highliter' I can run the document_src
output through?  Sort of like the Show_Source() function in PHP?

Of course, I'd want to tweak it to add HREF's for URLs (I have a
pending bug in PHP about thatNow I don't really care, my site's
going to be Zope soon;)

Ciao!

-- 
Famous Last Words: That was the wrong button!

The Doctor What: Un-Humble   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 )




[Zope] ANNOUNCE: Zope 2.2.4 (final) released...

2000-11-27 Thread Brian Lloyd

Hello all,
  
  Zope 2.2.4 has been released - you can download it from
  Zope.org:

  http://www.zope.org/Products/Zope/2.2.4/

  This release supercedes the 2.2.3 release, which 
  had an error that prevented permissions from being acquired 
  correctly. Until the testing infrastructure that has been 
  started in the 2.3 CVS is more mature and there is a useful 
  regression test rig, we'll be planning for at least one (short) 
  beta period for third-dot releases.

  This bug-fix release contains the fixes for all released 
  Hotfixes to date, as well as fixes for a memory leak in 
  the Acquisition module, various ZCatalog fixes and a fix 
  for the infamous "__call__" bug. It also contains a fix 
  for a problem in header parsing in the dtml sendmail tag 
  that has affected some users recently. The problem with 
  caching of ImageFile objects (mainly icons in the 
  Zope management interface) in the 2.2.4 beta is also 
  fixed (and verified using the Cacheability Engine 
  (http://www.web-caching.com/cacheability.html).

  For more information on what is new in this release, see the 
  CHANGES.txt and HISTORY.txt files for the release:

  - http://www.zope.org/Products/Zope/2.2.4/CHANGES.txt

  - http://www.zope.org/Products/Zope/2.2.4/HISTORY.txt

  Note that we have also posted "diff" updates as .tgz files 
  that will let you easily upgrade an existing 2.2.x site. 
  These updates are available for those currently using the 
  2.2.x source release or the 2.2.x binary releases.

  To apply a differential update to your site:

  - download the appropriate .tgz file from zope.org
  - shutdown your Zope process
  - copy the .tgz to your Zope directory and extract it
  - run w_pcgi or wo_pcgi *if you are not using a binary release*
  - restart your process


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] come see new.zope.org

2000-11-27 Thread Andy Dawkins

Ethan

errr. I have a problem with that address.

The following error was encountered: 

  Unable to determine IP address from host name for new.zope.org 

The dnsserver returned: 

  Name Error: The domain name does not exist. 

Cheers
-Andy

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ethan
 mindlace fremen
 Sent: 27 November 2000 19:51
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: [Zope] come see new.zope.org
 
 
 Zopatistas!
 
 The cluster is up and running.  Please go pound it to see if it breaks:
 
 http://new.zope.org
 
 That lovely color is to remind you that you are *not* at the live site.  
 Any changes you make here *will* be lost.
 
 If you have any questions or comments, please email [EMAIL PROTECTED]
 
 A full report on how we did it will be appearing soon after the site 
 goes live.
 
 ethan mindlace fremen  
 Zopatista Community Liason
 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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




[Zope] come see new.zope.org

2000-11-27 Thread ethan mindlace fremen

Zopatistas!

The cluster is up and running.  Please go pound it to see if it breaks:

http://new.zope.org

That lovely color is to remind you that you are *not* at the live site.  
Any changes you make here *will* be lost.

If you have any questions or comments, please email [EMAIL PROTECTED]

A full report on how we did it will be appearing soon after the site 
goes live.

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] newbie question: Redirect from Python?

2000-11-27 Thread seb bacon

* Paul Winkler [EMAIL PROTECTED] [001127 19:54]:
 I want the user to be sent to a particular URL after calling the
 product's manage_add method. How can I do that?
 The URL I want is REQUEST['URL3'].
 
 I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the
 RESPONSE doesn't seem to exist here.

sounds alright to me.  are you calling it in quotes, e.g. dtml-var
"RESPONSE.redirect(REQUEST['URL3'])" ?

you shouldn't have to use the REQUEST to look up the variable, either:
dtml-var "RESPONSE.redirect(URL3)"


___
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] come see new.zope.org

2000-11-27 Thread Chris Gray

Then try 63.102.49.33.  The new name just hasn't propagated to your
dnsserver yet.

Chris


On Mon, 27 Nov 2000, Andy Dawkins wrote:

 Ethan
 
 errr. I have a problem with that address.
 
 The following error was encountered: 
 
   Unable to determine IP address from host name for new.zope.org 
 
 The dnsserver returned: 
 
   Name Error: The domain name does not exist. 
 
 Cheers
 -Andy
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of ethan
  mindlace fremen
  Sent: 27 November 2000 19:51
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: [Zope] come see new.zope.org
  
  
  Zopatistas!
  
  The cluster is up and running.  Please go pound it to see if it breaks:
  
  http://new.zope.org
  
  That lovely color is to remind you that you are *not* at the live site.  
  Any changes you make here *will* be lost.
  
  If you have any questions or comments, please email [EMAIL PROTECTED]
  
  A full report on how we did it will be appearing soon after the site 
  goes live.
  
  ethan mindlace fremen  
  Zopatista Community Liason
  
  
  
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists - 
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
  
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 


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




Re: [Zope] ANNOUNCE: Zope 2.2.4 (final) released...

2000-11-27 Thread Petru Paler

On Mon, Nov 27, 2000 at 02:47:38PM -0500, Brian Lloyd wrote:
   Zope 2.2.4 has been released - you can download it from
   Zope.org:

Anything changed since the alpha release ?

--
Petru Paler, mailto:[EMAIL PROTECTED]
http://www.ppetru.net - ICQ: 41817235

___
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] newbie question: Redirect from Python?

2000-11-27 Thread Paul Winkler

seb bacon wrote:
 
 * Paul Winkler [EMAIL PROTECTED] [001127 19:54]:
  I want the user to be sent to a particular URL after calling the
  product's manage_add method. How can I do that?
  The URL I want is REQUEST['URL3'].
 
  I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the
  RESPONSE doesn't seem to exist here.
 
 sounds alright to me.  are you calling it in quotes, e.g. dtml-var
 "RESPONSE.redirect(REQUEST['URL3'])" ?
 
 you shouldn't have to use the REQUEST to look up the variable, either:
 dtml-var "RESPONSE.redirect(URL3)"

Thanks for the reply.
OK, I didn't phrase the question correctly.

I think it boils down to this:
If I have a string that represents a URL, can I define a method of my
product (in python, not in DTML) that redirects the browser to that
URL?

More details:


My product code is based on Boring (like most newbies I guess).
But manage_addBoring() does not do quite what I want. It returns
self.manage_main(self, REQUEST), so they end up at a long and ugly URL
that isn't where I want them to be anyway.

Example:
 the user is at:

http://localhost.localdomain:8080/Members/bobby

Bobby then clicks on a button I've provided that says "Add Test
Product". That sends him to the add form I've created. When Bobby
submits the request from this form, the product is added and he's sent
to

http://localhost.localdomain:8080/Members/bobby/manage_addProduct/MyProduct/manage_main
 

...because manage_addMyProduct returns self.manage_main
So I understand what's happening, but it's not what I want.
I don't want to send him there, I want to send him back to 

http://localhost.localdomain:8080/Members/bobby

So how can I do that from within the manage_addMyProduct method
definition?
The method gets a REQUEST argument, and I know that REQUEST['URL3'] is
what I want because if I return that string, it prints the URL I want.

I could do it by returning an HTML page with a redirect in the head
but that seems like a horribly ugly solution.


Looking through various Zope docs, I thought RESPONSE.redirect might
work, but  RESPONSE is not mentioned anywhere in Boring.py. Boring
only uses REQUEST.


-- 
.paul winkler..
slinkP arts:   music, sound, illustration, design, etc.
   web page:  http://www.slinkp.com
  A member of ARMS:   http://www.reacharms.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] come see new.zope.org

2000-11-27 Thread Menard . Jean-Francois

It is very, VERY quick!  Wow...

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


-Message d'origine-
De : ethan mindlace fremen [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 27 novembre 2000 14:51
À : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]
Objet : [Zope] come see new.zope.org


Zopatistas!

The cluster is up and running.  Please go pound it to see if it breaks:

http://new.zope.org

That lovely color is to remind you that you are *not* at the live site.  
Any changes you make here *will* be lost.

If you have any questions or comments, please email [EMAIL PROTECTED]

A full report on how we did it will be appearing soon after the site 
goes live.

ethan mindlace fremen  
Zopatista Community Liason



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

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




Re: [Zope] come see new.zope.org

2000-11-27 Thread ethan mindlace fremen

Dany Rioux wrote:

 Well,
 
 I have to say the new.zope.org is much faster than the other one.
 Great work!
 
 BTW, is this going to stay for some times or will it be migrated
 sometime soon? I'm wondering about bookmarking this site. When do you
 expect it to go "live"?


If no one manages to break it, we're going to switch over wednesday, late.

In the meantime, if people want to wget or ab it, feel free!

~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] newbie question: Redirect from Python?

2000-11-27 Thread Michel Pelletier

Paul Winkler wrote:
 
 seb bacon wrote:
 
  * Paul Winkler [EMAIL PROTECTED] [001127 19:54]:
   I want the user to be sent to a particular URL after calling the
   product's manage_add method. How can I do that?
   The URL I want is REQUEST['URL3'].
  
   I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the
   RESPONSE doesn't seem to exist here.
 
  sounds alright to me.  are you calling it in quotes, e.g. dtml-var
  "RESPONSE.redirect(REQUEST['URL3'])" ?
 
  you shouldn't have to use the REQUEST to look up the variable, either:
  dtml-var "RESPONSE.redirect(URL3)"
 
 Thanks for the reply.
 OK, I didn't phrase the question correctly.
 
 I think it boils down to this:
 If I have a string that represents a URL, can I define a method of my
 product (in python, not in DTML) that redirects the browser to that
 URL?
 
 More details:
 
 My product code is based on Boring (like most newbies I guess).
 But manage_addBoring() does not do quite what I want. It returns
 self.manage_main(self, REQUEST), so they end up at a long and ugly URL
 that isn't where I want them to be anyway.
 
 Example:
  the user is at:
 
 http://localhost.localdomain:8080/Members/bobby
 
 Bobby then clicks on a button I've provided that says "Add Test
 Product". That sends him to the add form I've created. When Bobby
 submits the request from this form, the product is added and he's sent
 to
 
 
http://localhost.localdomain:8080/Members/bobby/manage_addProduct/MyProduct/manage_main
 
 ...because manage_addMyProduct returns self.manage_main
 So I understand what's happening, but it's not what I want.
 I don't want to send him there, I want to send him back to
 
 http://localhost.localdomain:8080/Members/bobby
 
 So how can I do that from within the manage_addMyProduct method
 definition?
 The method gets a REQUEST argument, and I know that REQUEST['URL3'] is
 what I want because if I return that string, it prints the URL I want.
 
 I could do it by returning an HTML page with a redirect in the head
 but that seems like a horribly ugly solution.
 
 Looking through various Zope docs, I thought RESPONSE.redirect might
 work, but  RESPONSE is not mentioned anywhere in Boring.py. Boring
 only uses REQUEST.

So pass it RESPONSE:

def manage_addMyProduct(self, blah, blah, REQUEST=None, RESPONSE=None):
  ...

The publisher will automaticaly pass you RESPONSE if you ask for it as a
method argument.  Now use RESPONSE.redirect.

-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] newbie question: Redirect from Python?

2000-11-27 Thread Phil Harris

You need to be careful when redirecting from an external Python wotsit.

RESPONSE.redirect raises an exception which can make the transaction get
rolled back.

This seems not to happen when called from dtml but I've seen it happen from
an external Python wotsit.

Note:

My use of wotsit above in no way has a bearing on the new name for the
Python Methods/ZMethods/Script or whatever the hell they are called now. ;)

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Paul Winkler" [EMAIL PROTECTED]
To: "Zope mailing list" [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 6:26 PM
Subject: [Zope] newbie question: Redirect from Python?


| I want the user to be sent to a particular URL after calling the
| product's manage_add method. How can I do that?
| The URL I want is REQUEST['URL3'].
|
| I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the
| RESPONSE doesn't seem to exist here.
|
|
| --
| .paul winkler..
| slinkP arts:   music, sound, illustration, design, etc.
|web page:  http://www.slinkp.com
|   A member of ARMS:   http://www.reacharms.com
|
| ___
| Zope maillist  -  [EMAIL PROTECTED]
| http://lists.zope.org/mailman/listinfo/zope
| **   No cross posts or HTML encoding!  **
| (Related lists -
|  http://lists.zope.org/mailman/listinfo/zope-announce
|  http://lists.zope.org/mailman/listinfo/zope-dev )


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




Re: [Zope] newbie question: Redirect from Python?

2000-11-27 Thread Paul Winkler

Michel Pelletier wrote:
 
 Paul Winkler wrote:
(snip)
  Looking through various Zope docs, I thought RESPONSE.redirect might
  work, but  RESPONSE is not mentioned anywhere in Boring.py. Boring
  only uses REQUEST.
 
 So pass it RESPONSE:
 
 def manage_addMyProduct(self, blah, blah, REQUEST=None, RESPONSE=None):
   ...
 
 The publisher will automaticaly pass you RESPONSE if you ask for it as a
 method argument.  Now use RESPONSE.redirect.

Aha, thanks. I didn't know that about the publisher.

Now I'm afraid I'm too stupid to see how to use RESPONSE.redirect
after reading the description in the Zope Book API appendix.

My method now looks like this:

def manage_addMyProduct(self, id, title='', REQUEST=None,
RESPONSE=None):
"""Add a MyProduct instance to the folder."""
self._setObject(id, MyProduct(id, title))
if REQUEST is not None:
whereto= REQUEST['URL3']
return RESPONSE.redirect(whereto, 0)


That just prints the URL as a string.
OK, so maybe I'm not supposed to use the return value?
So I try it like this:


def manage_addMyProduct(self, id, title='', REQUEST=None,
RESPONSE=None):
"""Add a MyProduct instance to the folder."""
self._setObject(id, MyProduct(id, title))
if REQUEST is not None:
whereto= REQUEST['URL3']
RESPONSE.redirect(whereto, 0)


Now when I submit the form, I can wait for a result forever and not
get anything.

How am I *really* supposed to do it?




-- 
.paul winkler..
slinkP arts:   music, sound, illustration, design, etc.
   web page:  http://www.slinkp.com
  A member of ARMS:   http://www.reacharms.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] manage_addFolder unusable from DTML-call?

2000-11-27 Thread Kyler B. Laird


  dtml-call "manage_addFolder('Folder', 'my new folder')"

Unauthorized

I finally got to the bottom of this.

I was running into a ZopeSecurityPolicy
problem.  It wanted to check the roles of
the owner of the executable, but I had
deleted the root user folder when I created
a Login Manager in the root folder. 

I was doing some strange things for testing,
but now I know better.

Thank you for the help.

--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] client argument to python function calls?

2000-11-27 Thread Randall Kern



Figured this out, with the zope-dev 
archives.

In case anyone else bumps into the same thing, 
the FunctionTemplate class at http://www.zope.org/Members/htrd/howto/FunctionTemplate 
is very helpful.
-Randy

  - Original Message - 
  From: 
  Randall Kern 
  
  To: [EMAIL PROTECTED] 
  Sent: Sunday, November 26, 2000 8:17 
  PM
  Subject: [Zope] client argument to python 
  function calls?
  
  I'm trying to emulate some DTML methods with 
  python code in my (python) product.
  
  Let's say I have two Python classes, one named 
  Foo, the other Bar. Something like this:
  
  class Foo(Folder.Folder, Persistent, 
  Implicit):
   meta_type = "Foo"
  
   def magic(self, 
  client=None):
   "magic 
  method!"
  
if client 
  == None:

   client = self
  
return 
  client.magic_word
  
  class Bar(Folder.Folder, Persistent, 
  Implicit):
   meta_type= 
  "Bar"
  
   def __init__(self, 
  id):
self.id = 
  id

  self.magic_word = 'Alacazam!"
  
  
  Now I create a structure like this in 
  Zope:
  
  /
   foo 
  (instance of the Foo class)
   bar 
  (instance of the Bar class)
  
  Now if I goto /bar/foo/magic, I see the magic 
  word. However, I would also like to use /foo/bar/magic, and also receive 
  the magic word. This latter case doesn't work, the magic_word isn't 
  set.
  
  In fact, the "client" argument is never anything 
  but None.
  
  This is a facet of Zope I still don't quite 
  understand...
  
  Thanks,
  -Randy


Re: [Zope] getattr in Python Method problem

2000-11-27 Thread Dieter Maurer

Peter Bengtsson writes:
  In the folder where dosomething_pym (Python Method) is located, is also a string 
 property set called 'en' with the value 'English'
  The Python Method object is called with no parameters, but is defined with the 
 'self' parameter inside the Python Method object.
  
  In a DTML Method this works fine:
  dtml-var "_.getitem('en')"
  and returns
  "English"
  
  This is what I try in the Python Method:
  lang=getattr(self,'en')
  
  but this raises an error!
  Error Type: AttributeError
  Error Value: validate
I have not yet seen a Python method specification.
Anyway, there are several Python method implementations around
that might be different in the relevant aspects.

Personnally, I would expect a bug in "getattr".
However, it might also be the case, that "self" is not
what we expect (and what it is for external methods:
the folder, the object is located in).

If you use a new version of Python Methods (now called Python Scripts),
then you might try "context" rather than "self".
I think, you can use it without the need to pass it as parameter.


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-27 Thread Dieter Maurer

Daryl Stultz writes:
  I have a product folder called "TestClass" with 2 ZClasses: class1 and
  class2.
  The following is an exerpt from the class1 constructor:
  
  dtml-with "class1.createInObjectManager(REQUEST['id'], REQUEST)"
dtml-call "REQUEST.set('id', 'myClass2')"
dtml-call "class2_add(_.None, _, NoRedir=1)"
  /dtml-with
  
  I want class2 to be created INSIDE of the class 1 instance. Instead,
  class2 (always with an id of "myClass2") is created at the same level as
  the class1 instance. How do I change the namespace to get the class2
  instance inside class1?
You should look at the source of your "class2_add",
especially the constructor that creates the object.

I expect, that you use "class2.createInObjectManager"
to create your "class2" instance.
"C.createInObjectManager" usually uses "C.aq_parent" to
determine the object manager where the new C instance
should be created (unless it has a "Destination" attribute).
This should be your "class1" instance "instance1", more
precisely, an acquisition wrapper for it.

There are two possibilities:

 1. for reasons, I do not understand, "class2.aq_parent"
is not "instance1"

 2. it is "instance1", but "instance1" does not have
a "_setObject" method, i.e. "class1" is not derived
from ObjectManager.


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

2000-11-27 Thread Dieter Maurer

Bak @ kedai writes:
  i have a ZCatalog that indexes news.  i use keyword index, and text index.  
  when i try 
  
  dtml-in "Catalog(publication=myPub,section=mySec,date_posted=myDate)"
.
  it seems that the search was ORed, not ANDed.  
  
  i hope i'm clear enough.
I tried it out:
For me, it was definitely an AND.

What I did:
  Make a search for "Meta Type=Document Template" = lots of hits.
  Add "Title=" to the search = no hits
  Add "Title=Elvis" = some hits

as I would expect.


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] WebDav-support / Index_html versus index.html

2000-11-27 Thread Dieter Maurer

Pieter Biemond writes:
  ... access Zope via WebDAV from MS products 
  Can anybody answer the following questions:
  * Has anybody implemented something like this before? Any pittfals I should
  watch out for?
Search the searchable list archiv.
You will find some article about this issue.

  * 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.

  * Should I install 2.2.2. now, or are there any WebDav-updates in 2.2.4?
I do not think, the two version will differ in WebDAV support
(though someone is working on locking through WebDAV).
However, if I would start a new project, I would go for
2.2.4 (I expect less bugs than 2.2.2).

  * Is it possible to backup all files from Zope easily? (for example use a
  command-line webdav-client to pull everything out of the Zope database). I
  would like to have all the files backed up on a regular filesystem, rather
  than a proprietary database.
You can do that.

But you will lose information. Objects in Zope not only have
content, but properties, security attributes, ownership,
modification times 
All these will not be extractable by WebDAV.

I would go for the backup of the complete proprietary database.
At least as the primary backup. As an additional safety
belt, I might think about backing up the content independently.


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] security

2000-11-27 Thread Dieter Maurer

Bowyer, Alex writes:
  Can some one explain how the Define Permissions screen works. I really don't
  understand the concept behind it, what does it mean for a permission setting
  to own a permission?
  
  All I need to do is to make certain ZClass methods have a certain level of
  security and the other methods of the class have no security.
It is quite good explain in the upcoming Zope book.


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] acquisition/acl_users/permissions: is something broken? 2e post on this pb.

2000-11-27 Thread Dieter Maurer

Gilles Lavaux writes:
  My problem: I am logged in as 'operator'. Sometime, accessing
  '/sms/shtml/stations/check' show me:
-Logged in as: Anonymous User   and has role(s):Anonymous
  instead of:
-Logged in as: operator   and has role(s): sms_admin
  
  why   (this with IE and Netscape)
Only sometimes?

Did you already recognize a pattern?

  I just have a guess: the 'operator' user is defined in '/sms/acl_users' and
  my stationx users are defined in '/sms/shtml/stations/acl_users'.
  So: is it possible that when I do my 'check' as operator, the acquisition go
  to the acl_users which contains the stationx users and miss the other
  acl_users folder (which is two levels above) ?
A user folder is only allowed to return "Annonymous", if
it is the top level user folder.

Thus, your "/sms/shtml/statios/acl_users" must return "None"
and ZPublisher should ask "/sms/acl_users" which should return
"Operator".

  Another investigation: I am logged as operator in a new browser and have the
  problem, I click on a link for a stationx user but cancel the http
  authentication, then the problem disappear.
Hmmh, the only difference should be that you no longer have
an HTTP authentication. I do not understand this behaviour.

  Is there a way to display which object has triggered the authentication, and
  which acl_users folder is used??
You can instrument the code in "ZPublisher.BaseRequest.traverse"
to output this information.


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] newbie question: Redirect from Python?

2000-11-27 Thread Paul Winkler

Dieter Maurer wrote:
 
 If you need it in the constructor, then you must
 either pass in an object that is tied by acquisition
 or REQUEST or RESPONSE itself,
 or you must move the call out into the method
 "manage_afterAdd" (where the object already is tied in).

Well, I don't have that method. Went to learn about what people use it
for - searched for manage_afterAdd on zope.org and got nothing at
all???

Anyway, I'm now redirecting in manage_Add and it seems to work fine.
 
-- 
.paul winkler..
slinkP arts:   music, sound, illustration, design, etc.
   web page:  http://www.slinkp.com
  A member of ARMS:   http://www.reacharms.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] newbie question: Redirect from Python?

2000-11-27 Thread Paul Winkler

OK, this seems to work.

def manage_addMyProduct(self, id, title='', REQUEST=None,
RESPONSE=None):
self._setObject(id, MyProduct(id, title))
if REQUEST is not None:
whereto= REQUEST['URL3']
RESPONSE.redirect(whereto, lock=0) 




-- 
.paul winkler..
slinkP arts:   music, sound, illustration, design, etc.
   web page:  http://www.slinkp.com
  A member of ARMS:   http://www.reacharms.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] Factory location and Add box pollution

2000-11-27 Thread Lalo Martins

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 )




Re: [Zope] Instance within Instance

2000-11-27 Thread Daryl Stultz

 You should look at the source of your "class2_add",
 especially the constructor that creates the object.
 
 I expect, that you use "class2.createInObjectManager"
 to create your "class2" instance.
 "C.createInObjectManager" usually uses "C.aq_parent" to
 determine the object manager where the new C instance
 should be created (unless it has a "Destination" attribute).
 This should be your "class1" instance "instance1", more
 precisely, an acquisition wrapper for it.

Wowsers! This is all a little over my head...

I've scoured the docs and I can't find anything on aq_parent. (And
createInObjectManager is weak...) Wouldn't the object manager (to add
object to) be determined by the URL? I've done
REQUEST.set('URL','...myClass1/') but that doesn't help. Isn't there
SOMETHING in the REQUEST object that tells it where things should get
created?

Anymore info (or pointers to better docs) would be great. Thanks.

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 )




[Zope] External Methods

2000-11-27 Thread Kini Natekar


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


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

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




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

2000-11-27 Thread Doug Morse

Hi,

I have what I'm hoping is a simple question.  I've setup a search form
against a ZCatalog using field searches and everything works great.  In the
search form, I have the following code (also works OK):

dtml-call "REQUEST.set('sort_on','date')"
dtml-call "REQUEST.set('sort_order','reverse')"
dtml-call "REQUEST.set('meta_type','News Item')"

What want to do, and can't seem to figure out, is to call REQUEST.set to set
a logical NOT value.  For example, I've tried the following for the goal of
making the author field NOT EQUAL to the specified value:

dtml-call "REQUEST.set('author','NOT John Smith')"
dtml-call "REQUEST.set('author',' John Smith')"
dtml-call "REQUEST.set('author','!= John Smith')"

but none of these work (of course, I'm just guessing at syntax). Can anyone
tell me how I SHOULD be setting a logical NOT condition in this example?

Thanks so much!
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 )




[Zope] Zope and PHP

2000-11-27 Thread Kini Natekar


Hi,

I have got some PHP4 scripts which I want to
upload in Zope and make them working.
Is there a way I can get those scripts working
from Zope or else is it possible that I upload those
file in Zope and make them work from Apache itself ?
I am just a beginner of Zope, so intricate details
would be appriciated.

Thanks,
Kini,

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

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




[Zope] PyGreSQL or PoPy

2000-11-27 Thread Andreas Tille

Hello,

I'm a very beginner with zope.  Up to now I created some web pages
using Servlets accessing a PostgreSQL database.  I want to switch to
Zope now and found to ways to access PostgreSQL database: PoPy and
PyGreSQL.  What are the differences and what would you suggest to
use in which case.

Kind regards

 Andreas.



___
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 Python Script in Zope-2.2.x-to-2.2.4-win32-x86.tgz or in my brain???

2000-11-27 Thread Max M

I just upgraded Zope on my Win 2K machine with
Zope-2.2.x-to-2.2.4-win32-x86.tgz But I cannot find "Python Methods" or
"Python Scripts" anywhere. Is it me being stupid or is the product missing
from that tarball??

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 )




Re: [Zope] come see new.zope.org

2000-11-27 Thread Jim Washington

For the time being, most of us probably want to put 63.102.49.33 in the
/etc/hosts file (I forget where it is in Win32) so all the links work.
It seems pretty quick from here.  Good show, Ethan!

-- Jim Washington


Chris Gray wrote:
 
 Then try 63.102.49.33.  The new name just hasn't propagated to your
 dnsserver yet.
 
 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] come see new.zope.org

2000-11-27 Thread Dany Rioux

Well,

I have to say the new.zope.org is much faster than the other one.
Great work!

BTW, is this going to stay for some times or will it be migrated
sometime soon? I'm wondering about bookmarking this site. When do you
expect it to go "live"?

Dany

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of ethan
 mindlace fremen
 Sent: Monday, November 27, 2000 3:51 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: [Zope] come see new.zope.org


 Zopatistas!

 The cluster is up and running.  Please go pound it to see
 if it breaks:

 http://new.zope.org

 That lovely color is to remind you that you are *not* at
 the live site.
 Any changes you make here *will* be lost.

 If you have any questions or comments, please email
 [EMAIL PROTECTED]

 A full report on how we did it will be appearing soon after
 the site
 goes live.


___
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] Important! Keep an eye on your management screens folks

2000-11-27 Thread Skip Montanaro

Folks,

My ZServer just mailed me this:

Zope has encountered a problem publishing your object.
Cannot locate object at: /search/manage

This suggests to me that someone was probling our site to see if they could
get into Zope and twiddle some bits.  I use ZServer, not full-blown Zope, so
I have no manage pages. 

Check to make sure your Zope servers are suitably passworded or that
management screens are disabled!

-- 
Skip Montanaro ([EMAIL PROTECTED])
Support the Mojam.com Affiliates Program: http://www.mojam.com/affl/
(847)971-7098

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