Re: [Zope-dev] ZPatterns style question

2001-03-21 Thread Steve Spicklemire


Hi Lex,

This is a little bit of a tricky question.  Here is what I think is the 
*intent* of ZPatterns. The details of storage are to be left up to the
implementor/integrator. Given that they are the only ones who really know where
all the goodies are hidden (sql? zodb? etc.. ) your app shouldn't 
assume any particulars here. What your app *can* do is demand that the
objects that are used satisfy a particular interface (e.g., have
certain methods or attributes that behave in particular ways.). With
ZPatterns, what look like attributes can really be methods, due to
the flexible nature of SkinScript. I see in your tutorial that you're
trying to help the integrator by putting SkinScript in for them...
but I think that in ZPatterns, it's probably better to leave that
up to them... or at least to assume ZODB ( something everyone has)
rather than SQL. Does any of that make sense?

take care,
-steve

 "Lex" == Lex Berezhny [EMAIL PROTECTED] writes:

Lex Hello,

Lex   I dont know if i'm missing something, or if this is just a
Lex style question. But where do the implimentation specific
Lex get/set methods go (the functions called within a SkinScript
Lex for example)? Do i just stick them anywhere in the aquistion
Lex path, or is there some logical place I should place them? How
Lex can I write my application so that the user can switch data
Lex sources with a click of a button (ie, without having to
Lex delete one implimentations' methods, and paste the new ones)?
Lex I hope my question makes sense.

Lex BTW once i figure this out, i'll be able to finish my
Lex tutorial on ZPatterns:

Lex http://www.zope.org/Members/eukreign/ZPatternsTutorial

Lex  - lex

Lex __ Do You
Lex Yahoo!?  Get email at your own domain with Yahoo! Mail.
Lex http://personal.mail.yahoo.com/

Lex ___ Zope-Dev
Lex maillist - [EMAIL PROTECTED]
Lex http://lists.zope.org/mailman/listinfo/zope-dev ** No cross
Lex posts or HTML encoding!  ** (Related lists -
Lex http://lists.zope.org/mailman/listinfo/zope-announce
Lex 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] call pythonscript from python

2001-03-21 Thread Tim McLaughlin

Anybody know how I can call  a pythonscript from python?  Currently I can
call it, but I seem to have no context or security context, because it
either will not let me access anything or fail with an attribute error in
the context.  What are the params that I NEED to pass in so that it can do
its bindings (and if you know how to get them automagically, that would be
incredible)?

Tim

___
Tim McLaughlin  BCSwebservices.net
Director, Technical Group   1950 Old Gallows Road
tel:  (703) 790.8081 x111   Suite 201
[EMAIL PROTECTED]  Vienna, VA 22182
www .bcswebservices. net


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



Re: [Zope-dev] Implementing ZPattern: Containment

2001-03-21 Thread Steve Spicklemire


Hi Johan,

I wrote:

 The best way I've found is to provide a method (or methods) in the 
 Specialist of the contained item to get ids of those instances satisfying certain 
 criteria... 
 
 e.g., getToDoIdsForDoer( aDoer )
 
 (the contained item keeps a reference to the id of its container.)

then you replied:

 How well does this apply to the WhoIKnow pattern?
 Could you say that the Specialist is the association?
 In that case how do I create a n-n relation, or maybe I never do that?
 I can't really find any Patterns that matches n-n situation, so I assume
 it my modell probally would wrong if I end up with that, right?
 


then I went on vacation. ;-)

I think that in most of these situations you can have a 'catalogish' method in
the Specialist that manages the 'n' things that finds those related to the '1'.
(e.g., getToDoIdsForDoer( aDoer )). This can then be mapped to an attribute
of the '1' specailist (myToDos), so that it does 'know' about all it's todos,
its just that under the covers (in it's rack) the myToDos attribute is really
fulfilled by calling the todos specialist and asking for all the todos assocaited
with a particular doer. In the n-n case it's really no different, except that
each 'n' thing needs to know which of the other 'n' thing(s) it's associated with
so the catalogish method can pull out the ids. 

fun eh?

take care,
-steve


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



[Zope-dev] z2.py and environment variables

2001-03-21 Thread Dario Lopez-Kästen

Hello!

I am trying to understand how z2.py and enviroments variables work, so that I can have 
complete control of how I start Zope. I-am-not-a-Python-programmer-yet, so I apologise 
in advance if the question is a stupid one.

Given the possibility to use INSTANCE_HOME etc, can I override most of the uppercase 
variables defined in z2.py by setting and exporting them in my /bin/sh script or are 
the only "overridable" variables the ones defined and used in 

   lib/python/App/FindHomes.py?

My guess would be the ones in FindHomes.py, as calls like 

  try: home=os.environ['SOFTWARE_HOME']

seems to have something to do with it :-)

I just need to make sure which one is the case.

Thanks.

/dario

- 
Dario Lopez-Ksten Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services


___
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] z2.py and environment variables

2001-03-21 Thread Martijn Pieters

On Wed, Mar 21, 2001 at 03:14:33PM +0100, Dario Lopez-K?sten wrote:
 I am trying to understand how z2.py and enviroments variables work, so =
 that I can have complete control of how I start Zope. =
 I-am-not-a-Python-programmer-yet, so I apologise in advance if the =
 question is a stupid one.
 
 Given the possibility to use INSTANCE_HOME etc, can I override most of =
 the uppercase variables defined in z2.py by setting and exporting them =
 in my /bin/sh script or are the only "overridable" variables the ones =
 defined and used in=20
 
lib/python/App/FindHomes.py?
 
 My guess would be the ones in FindHomes.py, as calls like=20
 
   try: home=3Dos.environ['SOFTWARE_HOME']
 
 seems to have something to do with it :-)

You can override them by setting environment variables. For a specific
example where INSTANCE_HOME is set see:

  http://www.zope.org/Members/4am/instancehome

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   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] Python 2

2001-03-21 Thread Brian Lloyd

 Is python 2 ready for the upcoming beta? Will the next release of 
 zope win32
 come with python 2 or use the installed python if available?

I expect Zope 2.4 to be Python 2 (probably 2.1). Right now 
the binary releases have a self-contained Python, and I 
expect that to continue when we move to Python 2. Note that 
you can make a binary release use an existing python by 
just changing the start script to point to your chosen 
Python executable instead of the bundled one.

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] Comment on CVS change

2001-03-21 Thread Casey Duncan

Chris McDonough wrote:
 
  I've gotta weigh in here, too;  the breakage induced by this change
  will be large.  Give that what *real* users expect is *neither* a
  Boolean "AND" *nor* a Boolean "OR", but instead a DWIM/Googlesque
  "affinity" search, I don't think the win is clear enough to warrant
  the breakage:
 

I think long term, the Catalog machinery should support such "affinity"
searching.

* "AND" searches return *small* result sets;  non-programmers
  will be surprised by the often-empty lists they get back,
  and won't have any clue how to broaden their search.  False
  negatives suck.
 
 I think most people are getting used to narrowing their search by adding
 terms.  Google, Yahoo, Lycos and the like have trained them to do this.  I
 think the idea that folks, even nonprogrammers, don't know to do this in the
 post-1995 world may be a little flawed.
 

I rarely find myself using any explicit boolean operators when I use
Google. And even when it returns 657,340,269 pages, the ones I wanted
tend to be in the top 30. I think "OR" searching is fine if the result
scoring can be done intelligently somehow.

  Given that any site manager can override the policy trivially, using
  only two lines of DTML, should we really be switching the (admittedly
  arbitrary) existing polciy embedded in the core?
 
 No, I suppose not.  I'll change it back.  :-(  Not happy about it.
 

I still say a toggle in the Catalog management interface is the best
solution.

-- 
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`--

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



Re: [Zope-dev] Comment on CVS change

2001-03-21 Thread Chris McDonough

 I still say a toggle in the Catalog management interface is the best
 solution.

Amen!


___
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] call pythonscript from python

2001-03-21 Thread Evan Simpson

From: "Tim McLaughlin" [EMAIL PROTECTED]
 Anybody know how I can call  a pythonscript from python?  Currently I can
 call it, but I seem to have no context or security context, because it
 either will not let me access anything or fail with an attribute error in
 the context.  What are the params that I NEED to pass in so that it can do
 its bindings (and if you know how to get them automagically, that would be
 incredible)?

How does the Python code get executed (External Method? Product?) and how
does it get access to the Script?  Calling a Script should indeed
automagically give it context from its acquisition wrapper.

Cheers,

Evan @ digicool


___
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] Python 2

2001-03-21 Thread Toby Dickenson

On Wed, 21 Mar 2001 10:20:53 -0500, "Brian Lloyd" [EMAIL PROTECTED]
wrote:

 Is python 2 ready for the upcoming beta? Will the next release of 
 zope win32
 come with python 2 or use the installed python if available?

I expect Zope 2.4 to be Python 2 (probably 2.1). Right now 
the binary releases have a self-contained Python, and I 
expect that to continue when we move to Python 2. Note that 
you can make a binary release use an existing python by 
just changing the start script to point to your chosen 
Python executable instead of the bundled one.

That wont be quite enough on win32, not sure about other platforms.

The binary release contains extensions that link with the python15.dll
They need to be recompiled for 2.0, and will then link with
python20.dll


Toby Dickenson
[EMAIL PROTECTED]

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



Re: [Zope-dev] call pythonscript from python

2001-03-21 Thread Casey Duncan

Tim McLaughlin wrote:
 
 Anybody know how I can call  a pythonscript from python?  Currently I can
 call it, but I seem to have no context or security context, because it
 either will not let me access anything or fail with an attribute error in
 the context.  What are the params that I NEED to pass in so that it can do
 its bindings (and if you know how to get them automagically, that would be
 incredible)?
 
 Tim
 

The Bindings parent class of PythonScript defines a method 
__render_with_namespace__(namespace) that looks like it grabs the
arguments
and bindings from whatever namespace mapping you provide it and then
executes
the script.

You could also use the _bindAndExec(args, kw, caller_namespace) method
if you want to
also pass arguments from outside the namespace.

Take at looksie at lib/python/Shared/DC/Scripts/Bindings.py for the
source.

-- 
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`--

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



[Zope-dev] Deleting objects by the users

2001-03-21 Thread Menno Brandsen

Hello all, I have a question conserning deleting objects(images) by the user

The situation is this :

I have a page that lists the contents of the folder below, containing images
of a site.
In that list a want to let the user/client delete the image that he wants.

I've tried using this syntax :

a href="#" onClick="dtml-call
"image_folder.manage_delObjects(ids=_['id'])"" DELETE /a

What happens now is that as soon as the page loads it inmediatly deletes the
images.
Can anybody tell me a sollution for this problem ?
I would be very gratefull ! =)

Greetings,
Menno Brandsen




0-o
| M. Brandsen |
| Parkstraat 20   |
| 2517 JK |
| Den Haag|
| +31(0)70-3108950 0-o
| [EMAIL PROTECTED]   | |
|  | Your mouse has moved.   |
0--|   Windows has to reboot for |
   | changes to take effect. |
   | |
   | [ OK ]  |
   | |
   0-0



___
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] call pythonscript from python

2001-03-21 Thread Tim McLaughlin

I was trying to call a PythonScript from a __getstate__ method of the
object.  That seems impossible since the object appears to be already
unwrapped.  Know of any ways to get back the wrapper after it has been
disposed of?

I'm trying to add a manage_afterPropertyChanged hook, and I think I've found
another way to do it.

Thanks for the help,
Tim

-Original Message-
From: Evan Simpson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 21, 2001 10:41 AM
To: Tim McLaughlin; [EMAIL PROTECTED]
Subject: Re: [Zope-dev] call pythonscript from python


From: "Tim McLaughlin" [EMAIL PROTECTED]
 Anybody know how I can call  a pythonscript from python?  Currently I can
 call it, but I seem to have no context or security context, because it
 either will not let me access anything or fail with an attribute error in
 the context.  What are the params that I NEED to pass in so that it can do
 its bindings (and if you know how to get them automagically, that would be
 incredible)?

How does the Python code get executed (External Method? Product?) and how
does it get access to the Script?  Calling a Script should indeed
automagically give it context from its acquisition wrapper.

Cheers,

Evan @ digicool

___
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] Deleting objects by the users

2001-03-21 Thread Casey Duncan

Menno Brandsen wrote:
 
 Hello all, I have a question conserning deleting objects(images) by the user
 
 The situation is this :
 
 I have a page that lists the contents of the folder below, containing images
 of a site.
 In that list a want to let the user/client delete the image that he wants.
 
 I've tried using this syntax :
 
 a href="#" onClick="dtml-call
 "image_folder.manage_delObjects(ids=_['id'])"" DELETE /a
 
 What happens now is that as soon as the page loads it inmediatly deletes the
 images.
 Can anybody tell me a sollution for this problem ?
 I would be very gratefull ! =)
 
 Greetings,
 Menno Brandsen
 
This is a question better served on the main Zope mailing list. That
said, here is the answer:

All DTML is executed on the server before the page goes to the client.
That is why your images get deleted by viewing the page. The onclick
attribute is only useful for executing client side scripts like
JavaScripts, etc. To execute server side code, you must make the user
request the method that deletes the images. This is done by sending the
server a page request. So, you need to create two objects in Zope to
accomplish this. One that displays the images and another that deletes
the requested image and redraws (by a redirect) the image display page.
Here's an example:

dtml method view_images:

dtml-in name="objectValues('Image')"
dtml-var name="sequence-item"
a href="dtml-absolute_url;/delete_image"Delete this image/a
/dtml-in

dtml method delete_image:

dtml-if expr="meta_type == 'Image'"
dtml-call expr="manage_delObjects(getId())"
dtml-call expr="RESPONSE.redirect(URL2 + '/view_images')"
/dtml-if

This code is generic enough so that it would work in any folder. You
could place these methods above the folder(s) containing the images for
greater generality.

It might seem a bit confusing how this works if you don't understand
acquisition. The view_images method creates a link to each image in the
folder you call it for. The link is to the image object itself with the
delete_image method appended. This tells Zope to call delete_image in
the context of the image the user selects.

manage_delObjects is not a method of the image, but the image acquires
it from the Folder that contains it. So delete_image passes the id of
the image (using getId()) to the manage_delObjects method of the folder
containing it. It then redirects back to the view_images method which
will be sans the deleted image.

hth
-- 
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`--

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



RE: [Zope-dev] Python 2

2001-03-21 Thread Brian Lloyd

 Note that 
 you can make a binary release use an existing python by 
 just changing the start script to point to your chosen 
 Python executable instead of the bundled one.
 
 That wont be quite enough on win32, not sure about other platforms.
 
 The binary release contains extensions that link with the python15.dll
 They need to be recompiled for 2.0, and will then link with
 python20.dll

Sorry, I should have been more clear. You can only change 
the executable to a different executable of the same Python 
version (unless, as Toby noted, you are willing and able to 
recompile the Zope C extensions to match your Python version).


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] Comment on CVS change of default textindex search operator

2001-03-21 Thread R. David Murray

On Tue, 20 Mar 2001, Casey Duncan wrote:
  It's so broken with OR for large datasets that the search results are
  virtually meaningless.  We see this first-hand on Zope.org (which is now
  ANDed after an upgrade) and in most of our consulting projects.
  
  I strongly agree that there should be an easy way to switch textindex
  default queries between OR and AND on a per-index basis.
  
 
 I'd even be happy with a per catalog basis.

Likewise.  But this is the can of worms I alluded to.  Another
approach would be to allow the default operator to be specified at
query time grin.

My main concern, though, is having a major behavior change happen
with a release upgrade.  I think this is OK as long as it is clearly
documented and there is a way to get the old behavior back; in
which case a per-catalog setting is sufficient.

Whether the default should be AND or OR is still a point of debate, though,
and one I have no clue how to resolve.

--RDM


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



Re: [Zope-dev] Zope-SQL Server2000 question

2001-03-21 Thread Andy McKay

We use MS SQL 2000 quite a lot with Zope using ZODBCA and have encountered
no problems. In fact for our current project we were very impressed by the
speed. I havent used ZmxODBC so I can comment. For outside of Zope we use
the Perl DBI in Python using pyperl to wrap around the Perl DBI to use
placholders and complicated queries.
--
  Andy McKay.


- Original Message -
From: "Bryan Baszczewski" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 21, 2001 10:05 AM
Subject: [Zope-dev] Zope-SQL Server2000 question



 I am curious of how popular SQL Server, particularly 2000, is among Zope
 developers.  We have
 recenly upgraded from SQL 7 to 2000 and noticed most of the database
support
 for Zope centers around Oracle, MySQL, Postgres, Sybase, etc...

 How many people are using this ZmxODBC database adapter? What kind of
 support do you recieve, if any? And what kind of problems/issues/praise do
 you have?

 Any info would be appreciated.

 Thanks a bunch!
 Bryan




 ___
 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] DCOracle2 Alpha 5

2001-03-21 Thread Matthew T. Kromer

I just packaged up DCOracle2 Alpha 5 on Zope.org.  Given that
there are no glitches or
geez-I-shouldnta-changed-that-at-the-last-minute fixes present,
I'm ready to have a wider set of people eyballing it.  A few
have, largely just from seeing it show up on the News column of
Zope.org.

If you use DCOracle, either with Zope/ZOracleDA or directly, and
are interested in evaluating it, I am currently welcoming all
feedback, from packaging, documentation, functionality, etc.

While I am nominally subscribed to zope-dev, I route all its
mail into a separate folder that -- surprise, surprise -- I
don't read very frequently.  I strongly encourage people to
contact me directly with their comments or questions.

I have NT builds and Unix/NT source available at 

http://www.zope.org/Members/matt/dco2

The NT build is against Oracle 8.1.7; I am not a real NT person
so I don't know how portable that binary is.

I am *NOT* interested in answering general Oracle questions; I'm
trusting those who mail me will take this into consideration
(i.e. if it isn't about DCOracle or DCOracle2...)

This should build on Solaris with gcc and on Linux systems; I
have no access to other platforms to try them.  The 'make'
command at the top directory should be sufficient to build from
source on Solaris or Linux.  Obviously, you need Oracle
installed -- I get flaky behavior with Oracle 8.0 on Linux, but
much better behavior with Oracle 8.1.  

Stupid database inserts (e.g. repeat 'INSERT INTO...' 100 times)
seem to be about 25% faster than DCOracle.  LOBS seem to work. 
Stored procedures (at least my simple ones) work.  Complex stuff
may not.  I still have not done any REF CURSOR stored procedure
testing, so that's probably quite buggy.  Ditto automatic
conversion for ROWIDs (see the documentation at how to get at
the raw unconverted data).  I get bad Oracle behavior (NULL
data) trying to insert more than 8-10 rows with executemany()
but it's very random and not visible where the problem is (it
just *CANT* be an Oracle bug!)

Anyone who wants to do platform migration to other 'nixes is
encouraged to submit patches.

If you rate the docs, please don't complain about formatting in
the HTML version, as it's just a "save as..." HTML doc, and
looks like it.  The dco2documentation.aw file is the source
document, but I've also provided postscript, rtf, and html
versions.

And, while there is a setup.py in the top level (for distutils)
it isn't platform aware; Andreas Jung kindly provided it to me
and I haven't spiffed it up, since I (like Majikthies and
Vroomfondle) demand rigidly defined areas of doubt and
uncertainty (read: I know how to do it better with shell scripts
 makefiles).

Thanks,


Matt Kromer
[EMAIL PROTECTED]

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



Re: [Zope-dev] Comment on CVS change of default textindex search operator

2001-03-21 Thread Casey Duncan

"R. David Murray" wrote:
 
 On Tue, 20 Mar 2001, Casey Duncan wrote:
   It's so broken with OR for large datasets that the search results are
   virtually meaningless.  We see this first-hand on Zope.org (which is now
   ANDed after an upgrade) and in most of our consulting projects.
  
   I strongly agree that there should be an easy way to switch textindex
   default queries between OR and AND on a per-index basis.
  
 
  I'd even be happy with a per catalog basis.
 
 Likewise.  But this is the can of worms I alluded to.  Another
 approach would be to allow the default operator to be specified at
 query time grin.
 

Agreed. This should be part of the ZCatalog search API in addition to
the default specified.

-- 
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
`--

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



Re: Subject: Re: [Zope-dev] Comment on CVS change

2001-03-21 Thread Dieter Maurer

Tres Seaver writes:
  
  Given that any site manager can override the policy trivially, using
  only two lines of DTML, should we really be switching the (admittedly
  arbitrary) existing polciy embedded in the core?
  
  Tres.
  
  P.S.
  
dtml-let search_terms="_.string.split( search_text )"
  search_with_and="_.string.join( search_terms, ' and ' )"
 dtml-var searchCatalog
/dtml-let
  
  OK, so it is two and a half lines.
Be careful!
  The catalog supports "..." and "(...)".
  Your two lines  may give spurious operators for
  white space inside "..." and after "(" or before ")"


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 )



[Zope-dev] [ ANN ] LDAPLoginAdapter 1.1 released

2001-03-21 Thread Jens Vagelpohl

LDAPLoginAdapter 1.1, a user folder replacement that authenticates against
an LDAP server, has been released.

You can view some of the documentation and download the software at
http://www.dataflake.org/software/ldaploginadapter/

A Tracker at that same address allows you to easily file bug reports or
feature requests for this product.

  Improvements and bugfixes since the last announcement include:

**LDAPLoginAdapter 1.1**

  Features Added:

* Instead of hardcoding fixed publicly available attributes
  onto the LDAPUser object you can now take full control
  of the mapping from LDAP attribute to public user object
  attribute.
  A public user object attribute is an attribute that is
  directly accessible on the user object. DTML code like
  "AUTHENTICATED_USER.email" is an example of accessing
  a directly accessible attribute on the user object. A lot
  of legacy DTML code relies on such attributes.

  Bugs fixed:

* finduser() now lowercases all DN records from valid groups
  and compares it to a lowercased DN from any search results
  among user records. This fixes records not showing up if
  the capitalization in the group and on the user record
  is different.

* When a user object was created the code expected a "mail"
  attribute on the LDAP record to set the email attribute
  used for compatibility with the Tracker. This has been
  repaired and will just default to an empty string.

* Users who use tools like PADL's migration script end up
  with records that do not have the expected "sn" attribute.
  This is not set to a default value in finduser() to avoid
  errors in case it is not there.
  This will make the LDAPLoginAdapter compatible with
  user records of type posixAccount.


**LDAPLoginAdapter 1.0**

  Bugs fixed:

* Due to a bug in checking the return values from an LDAP search
  the cache can be polluted by invalid records for failed
  logins. This did not constitue a security breach, just more
  processing than necessary.


**LDAPLoginAdapter 1.0beta3**

  Bugs Fixed:

* Moved the LDAP search scope translation list from a volatile
  attribute on the LDAPLoginAdapter to a module-level attribute.
  This avoids any re-initialization calls.

* Eliminated the extra attribute _v_loglines that counted the
  length of the log. A simple call to len(self._v_log) replaces
  it where log length info is needed.

* Created one centralized method that handles connecting to and
  searching the LDAP server. This allows centralized error
  handling and makes for less and cleaner code. So far finduser,
  getUserDetails, getGroups, getUserNames and _lookupuser have
  been converted to use it instead of having their own connection
  code.

   * Rooted out error that would put a known user into the cache
 even though the password was not matched. This was not a
 security error since the broken user had the wrong password
 and failed any tests in validate()

   * Rigorous pruning of overly long lines of code to pare everything
 down to 80 chars width max

   * Avoiding unnecessary calls to the logging routine by checking
 for the correct log level *before* the call and not in the
 logging method.

   * Added a file, SAMPLE_RECORDS.txt, that shows a sample group-
 and user record. This will hopefully make it easier to
 understand the types of LDAP records needed.

 Features added:

   * Nicer Search screen adopted from the LDAPUserManager 


___
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] Comment on CVS change

2001-03-21 Thread Michael R. Bernstein

Casey Duncan wrote:
 
 I rarely find myself using any explicit boolean operators when I use
 Google. And even when it returns 657,340,269 pages, the ones I wanted
 tend to be in the top 30. I think "OR" searching is fine if the result
 scoring can be done intelligently somehow.

It's pretty simple. The default operator should continue to
be 'OR', but the result sorting should give precedence to
results that satisfy the 'AND' condition.

No, I don't know hoe to get it to do this. Didn't Catalog
results used to have a 'score' attribute for something like
this?

HTH,

Michael Bernstein.

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



[Zope-dev] ANNOUNCE: Zope 2.3.1 beta 3 released

2001-03-21 Thread Brian Lloyd

Hello all,

  Zope 2.3.1 beta 3 has been released - you can download it from
  Zope.org:

http://www.zope.org/Products/Zope/2.3.1b3/


  Zope 2.3.1b3 contains a number of bug fixes, including fixes 
  for issues found during b2 regarding ZCatalog and updating 
  ZCatalogs to make use of new underlying data structures. For 
  more information on upgrading ZCatalog objects, see:

http://www.zope.org/Members/mcdonc/HowTos/UpgradeToNewCatalog


  **Users of the Zope source releases should note** that this release 
  contains changes to existing C code. If you are using a source release 
  (or the source diff update), be sure to run 'w_pcgi.py' or 'wo_pcgi.py' 
  as appropriate before starting Zope to ensure that your binaries are 
  rebuilt.

  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.3.1b3/CHANGES.txt

http://www.zope.org/Products/Zope/2.3.1b3/HISTORY.txt


  Note that we have also posted "diff" updates as .tgz files 
  that will let you easily upgrade an existing 2.3.x site. 
  These updates are available for those currently using the 
  2.3.x source release or the 2.3.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-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 )