Re: [Zope-dev] Speed up the learning curve

2001-06-24 Thread Andy

It varies depending upon the version, I seem to remember old versions didnt
do that. Mind you if you are writing Python products you are pretty far up
the learning curve :)

--
  Andy McKay

- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Rene Pijlman" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 2:16 PM
Subject: Re: [Zope-dev] Speed up the learning curve


> Rene Pijlman writes:
>  > A suggestion to cut the Zope learning curve down by half a day...
>  >
>  > When the programmer forgets the docstring in a method of a Python-based
>  > product, instead of saying
>  >
>  > "Sorry, the requested resource does not exist."
>  >
>  > Zope could say:
>  >
>  >   "Sorry, this method has no docstring."
> Doesn't it do precisely this when you run Zope in debug mode?
>
>
> 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 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] Speed up the learning curve

2001-06-24 Thread Dieter Maurer

Rene Pijlman writes:
 > A suggestion to cut the Zope learning curve down by half a day...
 > 
 > When the programmer forgets the docstring in a method of a Python-based
 > product, instead of saying
 > 
 >  "Sorry, the requested resource does not exist."
 > 
 > Zope could say:
 > 
 >   "Sorry, this method has no docstring."
Doesn't it do precisely this when you run Zope in debug mode?


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] ZPatterns 0.4.3 final for Zope 2.3.x released

2001-06-24 Thread Phillip J. Eby

FYI, I have uploaded a release version of ZPatterns 0.4.3 to:


http://www.zope.org/Members/pje/ZPatterns

I have also updated the standalone PlugIns package at:


http://www.zope.org/Members/pje/PlugIns

These are primarily maintenance releases for GUI and security compatibility
with Zope 2.3.x.  The main added features are a 'DEPENDENT ON' clause for
SkinScript 'WITH...COMPUTE' declarations, and support for the enhanced Zope
2.3 BTrees.

Note that Zope 2.3.3 or better is required for either release.  You do not
need to download the seperate PlugIns release unless you are using PlugIns
without ZPatterns, as the ZPatterns package already includes a copy of the
PlugIns library.

Please report any problems or concerns to the ZPatterns list,
[EMAIL PROTECTED] (go to
http://www.eby-sarna.com/mailman/listinfo/ZPatterns to subscribe).  Thanks!


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



Re: [Zope-dev] Wildcards in TextIndex query. Do they work?

2001-06-24 Thread Chris McDonough

Abel, many thanks for this analysis, I've put this into the
Collector...

On Sat, 23 Jun 2001 22:59:32 +0200
 abel deuring <[EMAIL PROTECTED]> wrote:
> Erik,
> 
> I'm afraid that your patch does not solve all the
> problems you mentioned
> in an earlier mail.

___
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] [BUG+PATCH] for OFS/CopySupport.py Zope-2.3.3

2001-06-24 Thread Jerome Alet

Hi,

not sure if this is the right place to post patches, but since I've
already put this one into the Collector months (year ?) ago without 
it being applied...

the method manage_renameObjects in lib/python/OFS/CopySupport.py
doesn't accept to rename an objet to the same id, it's 
fine.

however, say you want to rename the objects A and B to
respectively B and A using this method, it raises an error
because B already exists.

a solution to this is to make the rename in two parts, and
here's the patch, which seems to work fine for the not too many tests
I've done:

--- CUT---
--- CopySupport.py  Mon Apr 16 18:26:20 2001
+++ CopySupport.py.new  Sun Jun 24 20:58:48 2001
@@ -281,9 +281,20 @@
 """Rename several sub-objects"""
 if len(ids) != len(new_ids):
 raise 'Bad Request','Please rename each listed object.'
+conflicts = []
 for i in range(len(ids)):
 if ids[i] != new_ids[i]:
+if new_ids[i] not in ids :  # may a conflict occur ?
 self.manage_renameObject(ids[i], new_ids[i], REQUEST)
+else :
+tempo = ".temporary_%i_" % i
+self.manage_renameObject(ids[i], tempo)
+conflicts.append((tempo, new_ids[i]))
+
+# now we rename conflictuous objects
+for (old, new) in conflicts :
+self.manage_renameObject(old, new)
+
 if REQUEST is not None:
 return self.manage_main(self, REQUEST, update_menu=1)
 return None
--- CUT ---

NB: a better temporary id should be created.

hoping this helps.

bye,

Jerome Alet

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



Re: [Zope-dev] Re: ZPL and GPL licensing issues

2001-06-24 Thread Morten W. Petersen

On 22 Jun 2001, Simon Michael wrote:

> Now here, I have to assume RMS is using "combine" above to mean
> "combine and redistribute".
> 
> I hope I'm right ? If "combine" included "install zwiki on your zope
> installation and use it" then everything I know is wrong..  I did
> intend for that to be fairly danger-free.

I'm not sure, I've fired off another email to get a clarification.

While we're one the topic, I just read an article [1] over at Kuro5hin
that could enlighten the management over at Digicool and us as well; it
discusses the impacts of Free Software and relates it to Free Trade, talks
about barriers and other interesting things.

>From the practical point of view, being able to use GPL-ed software with
Zope is a Good Thing (TM) for most developers.

Another thing is that some people / companies may be reluctant to add
signifcant modules that could be included in the Zope core, as they will
not get the same level of recognition for their work as Digital Creations
would.

For me personally, a Zope license without the advertising clause would
motivate me, as the 'protection barrier' / 'restriction' / 'attribution
issue' wouldn't be there;  I have a ton of things I'd like to change in
Zope and add to Zope, and as time goes by, the who-gets-credit-issue will
undoubtedly be raised again, if we're so lucky that Digicool decides to
open up Zope for read/write CVS access.

[1] http://www.kuro5hin.org/?op=displaystory;sid=2001/6/23/3451/16661

-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] Speed up the learning curve

2001-06-24 Thread Rene Pijlman

A suggestion to cut the Zope learning curve down by half a day...

When the programmer forgets the docstring in a method of a Python-based
product, instead of saying

"Sorry, the requested resource does not exist."

Zope could say:

  "Sorry, this method has no docstring."

Yes, I know this behaviour is well-documented. But the message gives no clue
to lead the unwary newbie from the error to the documentation.

There are so many useful things I could have done in this half day :-/

Regards,
René Pijlman


___
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: command-line zope.org product upload ?

2001-06-24 Thread Jerome Alet

Hi,

Simon Michael wrote:

> Morten W. Petersen" <[EMAIL PROTECTED]> writes:
>> Cool.  And maybe some apt-get functionality?  Like 'zope-apt-get
>> dist-upgrade'?  :-)
> uh, Jerome ? Hey, uh, me and the folks on the list think there's this
> one little extra that would make zshell perfect.. :)

Sorry for being late, I hadn't yet subscribed to this list.

I'd love to do this, however it seems to be very difficult until 
a standard Zope package file format exists. See my posts on this 
subject on [EMAIL PROTECTED]

However I think a "shell" command could help, e.g. in ZShell 
dialog box you'd type something like:

shell apt-get update
shell apt-get upgrade

This would do it, but you'll need to have an apt-get wrapper which would
have to be setuid root, so this would be very dangerous.

the best solution is of course to standardize on one file format,
and tweak Distutils to do what we want, then adding "zope-apt-get" to ZShell
(or why not directly to Zope) will be trivial.

bye,

Jerome Alet

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