[Zope-Checkins] SVN: Zope/trunk/test.py Collector #1895: omit 'var' folder from recursive traversal causing trouble

2005-10-02 Thread Andreas Jung
Log message for revision 38713:
  Collector #1895: omit 'var' folder from recursive traversal causing trouble
  with DirectoryStorage
  

Changed:
  U   Zope/trunk/test.py

-=-
Modified: Zope/trunk/test.py
===
--- Zope/trunk/test.py  2005-10-02 10:28:54 UTC (rev 38712)
+++ Zope/trunk/test.py  2005-10-02 10:29:15 UTC (rev 38713)
@@ -619,7 +619,7 @@
 except os.error:
 return
 visit(arg, path, names)
-exceptions = (os.curdir, os.pardir)
+exceptions = (os.curdir, os.pardir, 'var')
 for name in names:
 if name not in exceptions:
 name = os.path.join(path, name)

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py accept also the z3 version of the PluggableIndex interface

2005-10-02 Thread Yvo Schubbe
Log message for revision 38714:
  accept also the z3 version of the PluggableIndex interface

Changed:
  UU  Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py

-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py
===
--- Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py  2005-10-02 
10:29:15 UTC (rev 38713)
+++ Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py  2005-10-02 
13:02:19 UTC (rev 38714)
@@ -7,33 +7,37 @@
 # THIS SOFTWARE IS PROVIDED AS IS AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE
+# FOR A PARTICULAR PURPOSE.
 #
 ##
+Virtual container for ZCatalog indexes.
 
-$Id$
+$Id$
 
 
-
 from Acquisition import Implicit
 from Persistence import Persistent
 from Globals import DTMLFile, InitializeClass
 from AccessControl.SecurityInfo import ClassSecurityInfo
 from AccessControl.Permissions import manage_zcatalog_indexes
 from OFS.Folder import Folder
+from OFS.ObjectManager import IFAwareObjectManager
 from OFS.SimpleItem import SimpleItem
-from OFS.ObjectManager import IFAwareObjectManager
+from Products.PluginIndexes.common.PluggableIndex \
+import PluggableIndexInterface
+from Products.PluginIndexes.interfaces import IPluggableIndex
 
-from Products.PluginIndexes.common.PluggableIndex import 
PluggableIndexInterface
 
 _marker = []
 
-class ZCatalogIndexes (IFAwareObjectManager, Folder, Persistent, Implicit):
+
+class ZCatalogIndexes(IFAwareObjectManager, Folder, Persistent, Implicit):
+
 A mapping object, responding to getattr requests by looking up
 the requested indexes in an object manager.
 
 # The interfaces we want to show up in our object manager
-_product_interfaces = (PluggableIndexInterface, )
+_product_interfaces = (PluggableIndexInterface, IPluggableIndex)
 
 meta_type = ZCatalogIndex
 manage_options = ()
@@ -113,6 +117,7 @@
 
 InitializeClass(ZCatalogIndexes)
 
+
 class OldCatalogWrapperObject(SimpleItem, Implicit):
 
 manage_options= (


Property changes on: Zope/trunk/lib/python/Products/ZCatalog/ZCatalogIndexes.py
___
Name: cvs2svn:cvs-rev
   - 1.9

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Coders] Zope tests: 8 OK

2005-10-02 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Sat Oct  1 11:01:01 2005 UTC to Sun Oct  2 11:01:01 2005 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:22:12 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003223.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:23:42 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003224.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:25:12 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003225.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:26:42 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003226.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:28:12 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003227.html

Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:29:42 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003228.html

Subject: OK : Zope-trunk Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:31:12 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003229.html

Subject: OK : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Sat Oct  1 22:32:42 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-October/003230.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


[Zope] DTML-tree Custom sort

2005-10-02 Thread Alex Renier
Hello,
I am trying to do a custom sort.  I am using:
dtml-tree branches_expr=objectValues(['Folder'])
sort=orderInt skip_unauthorized

orderInt is an integer property of some folders.  I
would like the dtml-tree tag to look up the property
of the current folder and sort based on the integer
value, but if the property does not exist I would like
it to be excluded from the tree.  Is there a way to do
it? 

Thanks for any help!



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] DTML-tree Custom sort

2005-10-02 Thread Alex Renier
Thanks for your help AJ
I get this:

Error Type: SyntaxError
Error Value: invalid syntax (line 1)

dtml-tree branches_expr=[o for o in
objectValues(['Folder'] if hasattr('orderInt'))]
sort=orderInt skip_unauthorized

It doesn't like how I put spaces in objectValues()
attributes for  if hasattr...
Is the syntax a bit different?
Thanks!

--- Andreas Jung [EMAIL PROTECTED] wrote:

 
 
 --On 2. Oktober 2005 09:43:02 -0700 Alex Renier
 [EMAIL PROTECTED] 
 wrote:
 
  dtml-tree
 branches_expr=objectValues(['Folder'])
  sort=orderInt skip_unauthorized
 
 
 perhaps
 
 dtml-tree branches_expr=[o for o in
 objectValues(['Folder'] if 
 hasattr('orderInt')])
 sort=orderInt skip_unauthorized
 
 -aj
 
 
 




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Setting up SMF for Apache and Zope on Solaris 10

2005-10-02 Thread Chris Miles
For those running Solaris 10, I have documented a brief walk-through on 
how to configure Service Management Facility (SMF) for your Apache and 
Zope instances.  This is the new Solaris 10 method of intelligently 
handling init.d/rc.d service management.


http://systemsadmin.info/solaris/articles/setting-up-smf-for-apache-and-zope-on-solaris-10

Cheers,
Chris

--


http://chrismiles.info/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope 3.1.0 released!

2005-10-02 Thread Stephan Richter
Hello everyone,

The Zope 3 development team is proud to announce Zope 3.1.0 final.

Zope 3 is the next major Zope release and has been written from scratch based
on the latest software design patterns and the experiences of Zope 2.

It is in our opinion that Zope 3.1 is more than ready for production use,
which is why we decided to drop the 'X' for experimental from the name. We
will also continue to work on making the transition between Zope 2 and Zope 3
as smooth as possible. As a first step, Zope 2.8 includes Zope 3 features in
the form of Five.

Now that we have a release that we would like to declare stable next week, we
are looking for translators, who translate Zope 3 into their favorite
language! We are utilizing the Rosetta system from Ubuntu for managing those
translations. If you are not familiar with Rosetta, please send us a mail to
zope3-dev@zope.org and we get you set up.


Downloads

  http://zope.org/Products/Zope3/

  Installation instructions for both Windows and Un*x/Linux are now available
  in the top level 'README.txt' file of the distribution. The binary installer
  is recommended for Windows.

  Zope 3.1 requires Python 2.3.5 or 2.4.1 to run. You must also have zlib
  installed on your system.

Most Important Changes Since 3.0

  - New Pluggable Authentication Utility (PAU), which is similar in
philosophy to the Zope 2 PAS. The following features are available in
the in the basic PAU facility:

+ Credentials Plugins: Basic HTTP Auth, Session

+ Authenticator Plugins: Principal Folder, Group Folder

For a detailed description of the pluggable authentication utility,
see 'zope/app/authentication/README.txt'.

  - Major simplifications to the component architecture:

+ Removal of the concept of a service. All outstanding services were
  converted to utilities: Error Reporting, FSSync, Authentication.

+ Site Managers are global and local now; adapters and utilties are
  directly registered with the site manager. Now global and local
  component registration and lookup behaves very similar.

+ Local registrations can now only have two states: active and
  inactive. This simplified the code so much, that 'zope.app.utility',
  'zope.app.registration' and 'zope.app.site' were all merged into
  'zope.app.component'.

+ Implemented menus as utilities. The API also supports sub-menus now.

+ Implemented views as adapters. Skins and layers are now simply
  interfaces that the request provides.

  - Added an integer-id facility for assigning integer identifiers
to objects.

  - Added basic catalog and index frameworks.

  - Added sources, which are like vocabularies except that they
support very large collections of values that must be
searched, rather than browsed.

  - Created a new granting UI that allows advanced searching of
principal sources.

  - Implemented a generic user preferences systsem that was designed to be
easily used in TALES expressions and via Python code. Preferences can be
edited via 'http://localhost:8080/++preferences++/'. A demo of the
preferences can be found at::

  http://svn.zope.org/Zope3/trunk/src/zope/app/demo/skinpref/

  - ZCML now supports conditional directives using the 'zcml:condition'
attribute. The condition is of the form verb argument. Two verbs, 'have
feature' and 'installed module' are currently implemented. Features can be
declared via the 'meta:provides' directive.

  - Improved API doctool: Code Browser now shows interfaces, text files and
ZCML files; the new Book Module compiles all available doctext files into
an organized book; the new Type Module lets you browser all interface
types and discover interfaces that provide types; views are shown in the
interface details screen; views and adapters are categorized into
specific, extended and generic; user preferences allow you to customize
certain views; 3rd party modules can now be added to the Code Browser.

  - Improved I18n-based number and datetime formatting by integrating 'pytz'
for timezone support, implementing all missing format characters, and
reinterpreting the ICU documentation to correctly parse patterns.

  - Added '++debug++' traversal adapter that allows you to turn on
debugging flags in 'request.debug'. Currently the following flags
are defined: source, tal, errors.

  - Improved logout support.

  - Developed a generic 'browser:form' directive. It is pretty much the
same as the 'browser:editform' directive, except that the data is
not stored on some context or adapted context but sent as a dictionary
to special method (by default).

  For a complete list of changes see the 'CHANGES.txt' file.


Resources

  - Zope 3 Development Web Site:http://dev.zope.org/Zope3

  - Zope 3 Dev Mailing List:http://mail.zope.org/mailman/listinfo/zope3-dev

  - Zope 3 Users Mailing 

Re: [Zope] Plone update

2005-10-02 Thread michael nt milne
[EMAIL PROTECTED] is the list

On 10/1/05, Jens Vagelpohl [EMAIL PROTECTED] wrote:

 On 30 Sep 2005, at 23:49, Michael Kaplan wrote:

  I'm running Plone 2.0.5 with Zope 2.7.7-final and tried to
  upgrade to Plone 2.1. A dry-run of portal_migration stopped
  with errors :

 I believe this question will get more answers on a Plone-specific
 mailing list. See plone.org for more information.

 jens

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

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


Re: [Zope] Plone update

2005-10-02 Thread michael nt milne
sorry [EMAIL PROTECTED],

On 10/2/05, michael nt milne [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] is the list

 On 10/1/05, Jens Vagelpohl [EMAIL PROTECTED] wrote:
 
  On 30 Sep 2005, at 23:49, Michael Kaplan wrote:
 
   I'm running Plone 2.0.5 with Zope 2.7.7-final and tried to
   upgrade to Plone 2.1. A dry-run of portal_migration stopped
   with errors :
 
  I believe this question will get more answers on a Plone-specific
  mailing list. See plone.org for more information.
 
  jens
 
  ___
  Zope maillist  -  Zope@zope.org
  http://mail.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://mail.zope.org/mailman/listinfo/zope-announce
   http://mail.zope.org/mailman/listinfo/zope-dev )
 

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


[Zope] Re: DTML-tree Custom sort

2005-10-02 Thread Chris Beaven

Alex Renier wrote:

Thanks for your help AJ
I get this:

Error Type: SyntaxError
Error Value: invalid syntax (line 1)

dtml-tree branches_expr=[o for o in
objectValues(['Folder'] if hasattr('orderInt'))]
sort=orderInt skip_unauthorized


I think that Andreas meant

dtml-tree branches_expr=[o for o in objectValues(['Folder']) if 
hasattr(o,'orderInt')] sort=orderInt skip_unauthorized


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: DTML-tree Custom sort

2005-10-02 Thread Alex Renier
Great thank you both!!!
I never knew you could do if-statements like that.

--- Chris Beaven [EMAIL PROTECTED] wrote:

 Alex Renier wrote:
  Thanks for your help AJ
  I get this:
  
  Error Type: SyntaxError
  Error Value: invalid syntax (line 1)
  
  dtml-tree branches_expr=[o for o in
  objectValues(['Folder'] if hasattr('orderInt'))]
  sort=orderInt skip_unauthorized
 
 I think that Andreas meant
 
 dtml-tree branches_expr=[o for o in
 objectValues(['Folder']) if 
 hasattr(o,'orderInt')] sort=orderInt
 skip_unauthorized
 
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )
 




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: DTML-tree Custom sort

2005-10-02 Thread Chris Beaven

It's really more a cool way to do lists than if statements  :)
I recommend reading through some of Dive Into Python 
(http://diveintopython.org/) for lots more cool hands-on tips on Python 
programming. Chapter 3 for a good overview of the uses of Python's 
different data types.


Alex Renier wrote:

Great thank you both!!!
I never knew you could do if-statements like that.


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )