[Zope-Checkins] SVN: Zope/trunk/ dprecated zLOG module

2006-01-08 Thread Andreas Jung
Log message for revision 41189:
  dprecated zLOG module 
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/OFS/PropertyManager.py
  U   Zope/trunk/lib/python/Products/BTreeFolder2/BTreeFolder2.py
  U   Zope/trunk/lib/python/Products/Transience/Transience.py
  U   Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py
  U   Zope/trunk/lib/python/TAL/TALInterpreter.py
  U   Zope/trunk/lib/python/zLOG/__init__.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===
--- Zope/trunk/doc/CHANGES.txt  2006-01-08 09:27:48 UTC (rev 41188)
+++ Zope/trunk/doc/CHANGES.txt  2006-01-08 10:12:16 UTC (rev 41189)
@@ -26,6 +26,8 @@
 
 Features added
 
+  - deprecated the zLOG module. Use Pythons 'logging' module instead
+
   - PluginIndexes/TextIndex is deprecated. Use ZCTextIndex instead
 
   - the 'StructuredText' module is deprecated. Use zope.structuredtext

Modified: Zope/trunk/lib/python/OFS/PropertyManager.py
===
--- Zope/trunk/lib/python/OFS/PropertyManager.py2006-01-08 09:27:48 UTC 
(rev 41188)
+++ Zope/trunk/lib/python/OFS/PropertyManager.py2006-01-08 10:12:16 UTC 
(rev 41189)
@@ -180,7 +180,6 @@
 # for selection and multiple selection properties
 # the value argument indicates the select variable
 # of the property
-
 self._wrapperCheck(value)
 if not self.valid_property_id(id):
 raise BadRequest, 'Invalid or duplicate property id'

Modified: Zope/trunk/lib/python/Products/BTreeFolder2/BTreeFolder2.py
===
--- Zope/trunk/lib/python/Products/BTreeFolder2/BTreeFolder2.py 2006-01-08 
09:27:48 UTC (rev 41188)
+++ Zope/trunk/lib/python/Products/BTreeFolder2/BTreeFolder2.py 2006-01-08 
10:12:16 UTC (rev 41189)
@@ -21,6 +21,7 @@
 from urllib import quote
 from random import randint
 from types import StringType
+from logging import getLogger
 
 import Globals
 from Globals import DTMLFile
@@ -35,7 +36,6 @@
 from AccessControl import getSecurityManager, ClassSecurityInfo
 from AccessControl.Permissions import access_contents_information, \
  view_management_screens
-from zLOG import LOG, INFO, ERROR, WARNING
 from Products.ZCatalog.Lazy import LazyMap
 from zope.event import notify
 from zope.app.container.contained import ObjectAddedEvent
@@ -46,6 +46,8 @@
 import OFS.subscribers
 
 
+LOG = getLogger('BTreeFolder2')
+
 manage_addBTreeFolderForm = DTMLFile('folderAdd', globals())
 
 def manage_addBTreeFolder(dispatcher, id, title='', REQUEST=None):
@@ -191,9 +193,8 @@
 % repr(key))
 return 1
 except AssertionError:
-LOG('BTreeFolder2', WARNING,
-'Detected damage to %s. Fixing now.' % path,
-error=sys.exc_info())
+LOG.warn('Detected damage to %s. Fixing now.' % path,
+ exc_info=sys.exc_info())
 try:
 self._tree = OOBTree(self._tree)
 mt_index = OOBTree()
@@ -201,11 +202,11 @@
 mt_index[key] = OIBTree(value)
 self._mt_index = mt_index
 except:
-LOG('BTreeFolder2', ERROR, 'Failed to fix %s.' % path,
-error=sys.exc_info())
+LOG.error('Failed to fix %s.' % path,
+exc_info=sys.exc_info())
 raise
 else:
-LOG('BTreeFolder2', INFO, 'Fixed %s.' % path)
+LOG.info('Fixed %s.' % path)
 return 0
 
 

Modified: Zope/trunk/lib/python/Products/Transience/Transience.py
===
--- Zope/trunk/lib/python/Products/Transience/Transience.py 2006-01-08 
09:27:48 UTC (rev 41188)
+++ Zope/trunk/lib/python/Products/Transience/Transience.py 2006-01-08 
10:12:16 UTC (rev 41189)
@@ -40,7 +40,7 @@
 from AccessControl.SecurityManagement import newSecurityManager, \
  setSecurityManager
 from AccessControl.User import nobody
-from zLOG import LOG, WARNING, INFO
+from logging import getLogger
 
 from TransientObject import TransientObject
 from Fake import FakeIOBTree
@@ -59,6 +59,7 @@
 DEBUG = int(os.environ.get('Z_TOC_DEBUG', 0))
 
 _marker = []
+LOG = getLogger('Transience')
 
 def setStrict(on=''):
  Turn on assertions (which may cause conflicts) 
@@ -72,7 +73,7 @@
 for arg in args:
 sargs.append(str(arg))
 msg = ' '.join(sargs)
-LOG('Transience', INFO, msg)
+LOG.info(msg)
 
 constructTransientObjectContainerForm = HTMLFile(
 'dtml/addTransientObjectContainer', globals())

Modified: Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py
===
--- Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py 2006-01-08 09:27:48 UTC 
(rev 41188)
+++ 

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41190:
  zLOG - logging
  

Changed:
  U   Zope/trunk/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
  U   Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
  U   Zope/trunk/lib/python/Products/PythonScripts/PythonScript.py
  U   Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py

-=-
Modified: Zope/trunk/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
===
--- Zope/trunk/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py 
2006-01-08 10:12:16 UTC (rev 41189)
+++ Zope/trunk/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py 
2006-01-08 10:22:28 UTC (rev 41190)
@@ -16,6 +16,7 @@
 
 
 import time
+from logging import getLogger
 from datetime import date, datetime
 from datetime import tzinfo, timedelta
 from types import StringType, FloatType, IntType
@@ -28,7 +29,6 @@
 from Globals import DTMLFile
 from OFS.PropertyManager import PropertyManager
 from ZODB.POSException import ConflictError
-from zLOG import LOG, ERROR
 from zope.interface import implements
 
 from Products.PluginIndexes.common import safe_callable
@@ -36,6 +36,7 @@
 from Products.PluginIndexes.common.util import parseIndexRequest
 from Products.PluginIndexes.interfaces import IDateIndex
 
+LOG = getLogger('DateIndex')
 _marker = []
 
 ###
@@ -144,10 +145,9 @@
 except ConflictError:
 raise
 except:
-LOG('UnIndex', ERROR,
-(Should not happen: ConvertedDate was there,
-  now it's not, for document with id %s %
- documentId))
+LOG.error(Should not happen: ConvertedDate was there,
+   now it's not, for document with id %s %
+  documentId)
 
 if ConvertedDate is not _marker:
 self.insertForwardIndexEntry( ConvertedDate, documentId )

Modified: Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
===
--- Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/TextIndex.py 
2006-01-08 10:12:16 UTC (rev 41189)
+++ Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/TextIndex.py 
2006-01-08 10:22:28 UTC (rev 41190)
@@ -19,9 +19,9 @@
 import re
 from cgi import escape
 from types import *
-
+from logging import getLogger
 from Globals import Persistent, DTMLFile
-from zLOG import LOG, ERROR
+
 from Acquisition import Implicit
 from OFS.SimpleItem import SimpleItem
 from BTrees.IOBTree import IOBTree
@@ -39,6 +39,7 @@
 
 from Lexicon import Lexicon
 
+LOG = getLogger('TextIndex')
 
 class Op:
 def __init__(self, name):
@@ -376,9 +377,8 @@
 for wid in wids:
 widScores = get(wid, None)
 if widScores is None:
-LOG('TextIndex', ERROR,
-'unindex_object tried to unindex nonexistent'
-' document, wid  %s, %s' % (i,wid))
+LOG.error('unindex_object tried to unindex nonexistent'
+  ' document, wid  %s, %s' % (i,wid))
 continue
 if type(widScores) is TupleType:
 del index[wid]
@@ -394,9 +394,8 @@
 else:
 del index[wid]
 except (KeyError, IndexError, TypeError):
-LOG('TextIndex', ERROR,
-'unindex_object tried to unindex nonexistent'
-' document %s' % str(i))
+LOG.error('unindex_object tried to unindex nonexistent'
+  ' document %s' % str(i))
 
 def __getitem__(self, word):
 Return an InvertedIndex-style result list

Modified: Zope/trunk/lib/python/Products/PythonScripts/PythonScript.py
===
--- Zope/trunk/lib/python/Products/PythonScripts/PythonScript.py
2006-01-08 10:12:16 UTC (rev 41189)
+++ Zope/trunk/lib/python/Products/PythonScripts/PythonScript.py
2006-01-08 10:22:28 UTC (rev 41190)
@@ -20,6 +20,7 @@
 __version__='$Revision: 1.56 $'[11:-2]
 
 import sys, os, traceback, re, marshal, new
+from logging import getLogger
 from Globals import DTMLFile, MessageDialog, package_home
 import AccessControl, OFS, RestrictedPython
 from Acquisition import aq_parent
@@ -33,10 +34,12 @@
 from OFS.History import Historical, html_diff
 from OFS.Cache import Cacheable
 from AccessControl.ZopeGuards import get_safe_globals, guarded_getattr
-from zLOG import LOG, ERROR, INFO, PROBLEM
+
 from zExceptions import Forbidden
 import Globals
 
+LOG = getLogger('PythonScripts')
+
 # Track the Python bytecode version
 import imp
 Python_magic = imp.get_magic()
@@ -209,7 

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py fixed doc string

2006-01-08 Thread Andreas Jung
Log message for revision 41191:
  fixed doc string
  

Changed:
  U   Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py

-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py
===
--- Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py  2006-01-08 
10:22:28 UTC (rev 41190)
+++ Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py  2006-01-08 
10:23:26 UTC (rev 41191)
@@ -87,7 +87,7 @@
 
 
 class ZLogHandler(StdoutHandler):
- Use zLOG 
+ Use Zope logger
 
 __implements__ = IProgressHandler
 

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/ZServer/datatypes.py zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41193:
  zLOG - logging

Changed:
  U   Zope/trunk/lib/python/ZServer/datatypes.py

-=-
Modified: Zope/trunk/lib/python/ZServer/datatypes.py
===
--- Zope/trunk/lib/python/ZServer/datatypes.py  2006-01-08 10:25:23 UTC (rev 
41192)
+++ Zope/trunk/lib/python/ZServer/datatypes.py  2006-01-08 10:27:02 UTC (rev 
41193)
@@ -171,8 +171,9 @@
 if password is None:
 msg = ('Monitor server not started because no emergency user '
'exists.')
-import zLOG
-zLOG.LOG(Zope, zLOG.ERROR, msg)
+import logging
+LOG = logging.getLogger('Zope')
+LOG.error(msg)
 return
 from ZServer.medusa.monitor import secure_monitor_server
 return secure_monitor_server(hostname=self.host, port=self.port,

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/App/ zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41197:
  zLOG - logging

Changed:
  U   Zope/trunk/lib/python/App/ApplicationManager.py
  U   Zope/trunk/lib/python/App/Hotfixes.py
  U   Zope/trunk/lib/python/App/ProductContext.py
  U   Zope/trunk/lib/python/App/RefreshFuncs.py
  U   Zope/trunk/lib/python/App/special_dtml.py

-=-
Modified: Zope/trunk/lib/python/App/ApplicationManager.py
===
--- Zope/trunk/lib/python/App/ApplicationManager.py 2006-01-08 10:39:07 UTC 
(rev 41196)
+++ Zope/trunk/lib/python/App/ApplicationManager.py 2006-01-08 10:47:25 UTC 
(rev 41197)
@@ -15,6 +15,7 @@
 __version__='$Revision: 1.94 $'[11:-2]
 
 import sys,os,time,Globals, Acquisition, os, Undo
+from logging import getLogger
 from Globals import InitializeClass
 from Globals import DTMLFile
 from OFS.ObjectManager import ObjectManager
@@ -32,9 +33,10 @@
 from zExceptions import Redirect
 from Products.PageTemplates.PageTemplateFile import PageTemplateFile
 from cgi import escape
-import zLOG
 import Lifetime
 
+LOG = getLogger('ApplicationManager')
+
 try: import thread
 except: get_ident=lambda: 0
 else: get_ident=thread.get_ident
@@ -392,8 +394,7 @@
 user = '%s' % getSecurityManager().getUser().getUserName()
 except:
 user = 'unknown user'
-zLOG.LOG(ApplicationManager, zLOG.INFO,
- Restart requested by %s % user)
+LOG.info(Restart requested by %s % user)
 #for db in Globals.opened: db.close()
 Lifetime.shutdown(1)
 return html
@@ -408,8 +409,7 @@
 user = '%s' % getSecurityManager().getUser().getUserName()
 except:
 user = 'unknown user'
-zLOG.LOG(ApplicationManager, zLOG.INFO,
- Shutdown requested by %s % user)
+LOG.info(Shutdown requested by %s % user)
 #for db in Globals.opened: db.close()
 Lifetime.shutdown(0)
 return html

Modified: Zope/trunk/lib/python/App/Hotfixes.py
===
--- Zope/trunk/lib/python/App/Hotfixes.py   2006-01-08 10:39:07 UTC (rev 
41196)
+++ Zope/trunk/lib/python/App/Hotfixes.py   2006-01-08 10:47:25 UTC (rev 
41197)
@@ -12,8 +12,11 @@
 ##
 
 from version_txt import getZopeVersion
-from zLOG import LOG, INFO, WARNING
+from logging import getLogger
 
+
+LOG = getLogger('Hotfixes')
+
 merged_hotfixes = {
 'Hotfix_2001-09-28': 1,
 'Hotfix_2002-03-01': 1,
@@ -33,13 +36,13 @@
 
 def logHotfix(id, apply_hotfix):
 if apply_hotfix:
-LOG('Hotfixes', INFO, 'Applying %s' % id)
+LOG.info('Applying %s' % id)
 elif apply_hotfix is OUTDATED_ZOPE:
-LOG('Hotfixes', WARNING, 'Not applying %s.  It is not designed for '
+LOG.warn('Not applying %s.  It is not designed for '
 'this version of Zope.  Please uninstall the hotfix product.'
 % id)
 else:  # ALREADY_MERGED
-LOG('Hotfixes', WARNING, 'Not applying %s.  The fix has already been '
+LOG.warn('Not applying %s.  The fix has already been '
 'merged into Zope.  Please uninstall the hotfix product.'
 % id)
 

Modified: Zope/trunk/lib/python/App/ProductContext.py
===
--- Zope/trunk/lib/python/App/ProductContext.py 2006-01-08 10:39:07 UTC (rev 
41196)
+++ Zope/trunk/lib/python/App/ProductContext.py 2006-01-08 10:47:25 UTC (rev 
41197)
@@ -15,8 +15,9 @@
 $Id$
 
 
+import stat
 import os.path, re
-import stat
+from logging import getLogger
 
 from AccessControl.PermissionRole import PermissionRole
 import Globals, os, OFS.ObjectManager, OFS.misc_, Products
@@ -25,7 +26,7 @@
 from HelpSys import HelpTopic, APIHelpTopic
 from HelpSys.HelpSys import ProductHelp
 from FactoryDispatcher import FactoryDispatcher
-from zLOG import LOG, WARNING
+
 from DateTime import DateTime
 from Interface.Implements import instancesOfObjectImplements
 from zope.interface import implementedBy
@@ -39,8 +40,8 @@
 Products.meta_class_info={}
 
 _marker = []  # Create a new marker object
+LOG = getLogger('ProductContext')
 
-
 class ProductContext:
 
 def __init__(self, product, app, package):
@@ -312,7 +313,7 @@
 try:
 dir_mod_time=DateTime(os.stat(path)[stat.ST_MTIME])
 except OSError, (errno, text):
-LOG(Zope, WARNING, '%s: %s' % (text, path))
+LOG.warn('%s: %s' % (text, path))
 return
 
 # test to see if nothing has changed since last registration

Modified: Zope/trunk/lib/python/App/RefreshFuncs.py
===
--- Zope/trunk/lib/python/App/RefreshFuncs.py   2006-01-08 10:39:07 UTC (rev 
41196)
+++ Zope/trunk/lib/python/App/RefreshFuncs.py   2006-01-08 10:47:25 UTC (rev 
41197)
@@ -17,12 

[Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41198:
  zLOG - logging

Changed:
  U   Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py

-=-
Modified: Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py
===
--- Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py  2006-01-08 10:47:25 UTC 
(rev 41197)
+++ Zope/trunk/lib/python/Shared/DC/ZRDB/Connection.py  2006-01-08 10:50:28 UTC 
(rev 41198)
@@ -15,6 +15,7 @@
 $Id$'''
 __version__='$Revision: 1.39 $'[11:-2]
 
+from logging import getLogger
 import Globals, OFS.SimpleItem, AccessControl.Role, Acquisition, sys
 from DateTime import DateTime
 from App.Dialogs import MessageDialog
@@ -30,11 +31,14 @@
 from cStringIO import StringIO
 from Results import Results
 from sys import exc_info
-from zLOG import LOG, ERROR
+
 from cgi import escape
 import DocumentTemplate, RDB
 from zExceptions import BadRequest
 
+
+LOG = getLogger('ZRDB.Connection')
+
 class Connection(
 Globals.Persistent,
 AccessControl.Role.RoleManager,
@@ -67,10 +71,8 @@
 if self.connection_string:
 try: self.connect(self.connection_string)
 except:
-LOG('Shared.DC.ZRDB.Connection',
-ERROR,
-'Error connecting to relational database.',
-error=exc_info())
+LOG.error('Error connecting to relational database.',
+  exc_info=exc_info())
 
 def title_and_id(self):
 s=Connection.inheritedAttribute('title_and_id')(self)
@@ -157,10 +159,8 @@
 if hasattr(self,'_v_database_connection'):
 self._v_database_connection.close()
 except:
-LOG('Shared.DC.ZRDB.Connection',
-ERROR,
-'Error closing relational database connection.',
-error=exc_info())
+LOG.error('Error closing relational database connection.',
+  exc_info=exc_info())
 self._v_connected=''
 if REQUEST is not None:
 return self.manage_main(self, REQUEST)

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/ zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41199:
  zLOG - logging

Changed:
  U   Zope/trunk/lib/python/OFS/ObjectManager.py
  U   Zope/trunk/lib/python/OFS/Uninstalled.py

-=-
Modified: Zope/trunk/lib/python/OFS/ObjectManager.py
===
--- Zope/trunk/lib/python/OFS/ObjectManager.py  2006-01-08 10:50:28 UTC (rev 
41198)
+++ Zope/trunk/lib/python/OFS/ObjectManager.py  2006-01-08 10:52:36 UTC (rev 
41199)
@@ -43,7 +43,7 @@
 from webdav.Lockable import ResourceLockedError
 from webdav.NullResource import NullResource
 from zExceptions import BadRequest
-from zLOG import LOG, ERROR
+
 from ZODB.POSException import ConflictError
 from zope.interface import implements
 
@@ -67,6 +67,7 @@
 }
 
 bad_id=re.compile(r'[^a-zA-Z0-9-_~,.$\(\)# @]').search
+LOG = getLogger('OFS.ObjectManager')
 
 def checkValidId(self, id, allow_dup=0):
 # If allow_dup is false, an error will be raised if an object

Modified: Zope/trunk/lib/python/OFS/Uninstalled.py
===
--- Zope/trunk/lib/python/OFS/Uninstalled.py2006-01-08 10:50:28 UTC (rev 
41198)
+++ Zope/trunk/lib/python/OFS/Uninstalled.py2006-01-08 10:52:36 UTC (rev 
41199)
@@ -17,11 +17,13 @@
 from Acquisition import Acquired
 import Persistence
 from thread import allocate_lock
-from zLOG import LOG, WARNING
+
 from cgi import escape
+from logging import getLogger
 
 broken_klasses={}
 broken_klasses_lock = allocate_lock()
+LOG = getLogger('OFS.Uninstalled')
 
 class BrokenClass(Acquisition.Explicit, SimpleItem.Item,
   Persistence.Overridable):
@@ -71,8 +73,8 @@
 klass.info=(
 'This object\'s class was %s in module %s.' %
 (klass.__name__, klass.__module__))
-LOG('ZODB', WARNING, 'Could not import class %s '
-'from module %s' % (`klass.__name__`, `klass.__module__`))
+LOG.warning('Could not import class %s '
+'from module %s' % (`klass.__name__`, `klass.__module__`))
 finally:
 broken_klasses_lock.release()
 if oid is None: return klass

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/ObjectManager.py zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41200:
  zLOG - logging

Changed:
  U   Zope/trunk/lib/python/OFS/ObjectManager.py

-=-
Modified: Zope/trunk/lib/python/OFS/ObjectManager.py
===
--- Zope/trunk/lib/python/OFS/ObjectManager.py  2006-01-08 10:52:36 UTC (rev 
41199)
+++ Zope/trunk/lib/python/OFS/ObjectManager.py  2006-01-08 10:52:53 UTC (rev 
41200)
@@ -67,7 +67,6 @@
 }
 
 bad_id=re.compile(r'[^a-zA-Z0-9-_~,.$\(\)# @]').search
-LOG = getLogger('OFS.ObjectManager')
 
 def checkValidId(self, id, allow_dup=0):
 # If allow_dup is false, an error will be raised if an object

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/ZPublisher/BeforeTraverse.py zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41202:
  zLOG - logging

Changed:
  U   Zope/trunk/lib/python/ZPublisher/BeforeTraverse.py

-=-
Modified: Zope/trunk/lib/python/ZPublisher/BeforeTraverse.py
===
--- Zope/trunk/lib/python/ZPublisher/BeforeTraverse.py  2006-01-08 10:57:25 UTC 
(rev 41201)
+++ Zope/trunk/lib/python/ZPublisher/BeforeTraverse.py  2006-01-08 11:00:06 UTC 
(rev 41202)
@@ -15,11 +15,13 @@
 BeforeTraverse interface and helper classes
 
 from Acquisition import aq_base
-from zLOG import LOG, ERROR
+from logging import getLogger
 import sys
 
 # Interface
 
+LOG = getLogger('ZPublisher')
+
 def registerBeforeTraverse(container, object, app_handle, priority=99):
 Register an object to be called before a container is traversed.
 
@@ -103,8 +105,8 @@
 try:
 cob(container, request)
 except TypeError:
-LOG('MultiHook', ERROR, '%s call %s failed.' % (
-`self._hookname`, `cob`), error=sys.exc_info())
+LOG.error('%s call %s failed.' % (
+`self._hookname`, `cob`), exc_info=sys.exc_info())
 
 def add(self, cob):
 self._list.append(cob)
@@ -149,8 +151,6 @@
 # Only catch exceptions that are likely to be logic errors.
 # We shouldn't catch Redirects, Unauthorizeds, etc. since
 # the programmer may want to raise them deliberately.
-from zLOG import LOG, ERROR
-import sys
-LOG('BeforeTraverse', ERROR,
-'Error while invoking hook: %s' % self.name, error=
-sys.exc_info())
+
+LOG.error('BeforeTraverse: Error while invoking hook: %s' % 
self.name, 
+  exc_info=sys.exc_info())

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Transience/Transience.py fix

2006-01-08 Thread Andreas Jung
Log message for revision 41203:
  fix
  

Changed:
  U   Zope/trunk/lib/python/Products/Transience/Transience.py

-=-
Modified: Zope/trunk/lib/python/Products/Transience/Transience.py
===
--- Zope/trunk/lib/python/Products/Transience/Transience.py 2006-01-08 
11:00:06 UTC (rev 41202)
+++ Zope/trunk/lib/python/Products/Transience/Transience.py 2006-01-08 
11:08:49 UTC (rev 41203)
@@ -435,10 +435,9 @@
 length = self._length() # XXX ReadConflictError hotspot
 
 if self._limit and length = self._limit:
-LOG('Transience', WARNING,
-('Transient object container %s max subobjects '
- 'reached' % self.getId())
-)
+LOG.warn('Transient object container %s max subobjects '
+ 'reached' % self.getId())
+
 raise MaxTransientObjectsExceeded, (
  %s exceeds maximum number of subobjects %s %
  (length, self._limit))
@@ -797,11 +796,8 @@
 except (KeyError, AttributeError):
 path = self.getPhysicalPath()
 err = 'No such onAdd/onDelete method %s referenced via %s'
-LOG('Transience',
-WARNING,
-err % (callback, '/'.join(path)),
-error=sys.exc_info()
-)
+LOG.warn(err % (callback, '/'.join(path)),
+ exc_info=sys.exc_info())
 return
 else:
 method = callback
@@ -818,22 +814,16 @@
 except:
 # dont raise, just log
 path = self.getPhysicalPath()
-LOG('Transience',
-WARNING,
-'%s failed when calling %s in %s' % (name,callback,
-'/'.join(path)),
-error=sys.exc_info()
-)
+LOG.warn('%s failed when calling %s in %s' % 
(name,callback,
+ 
'/'.join(path)),
+ exc_info=sys.exc_info())
 finally:
 setSecurityManager(sm)
 else:
 err = '%s in %s attempted to call non-callable %s'
 path = self.getPhysicalPath()
-LOG('Transience',
-WARNING,
-err % (name, '/'.join(path), callback),
-error=sys.exc_info()
-)
+LOG.warn(err % (name, '/'.join(path), callback),
+ exc_info=sys.exc_info())
 
 def getId(self):
 return self.id

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/ zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41204:
  zLOG - logging
  

Changed:
  U   Zope/trunk/lib/python/AccessControl/cAccessControl.c
  A   Zope/trunk/lib/python/AccessControl/logger_wrapper.py

-=-
Modified: Zope/trunk/lib/python/AccessControl/cAccessControl.c
===
--- Zope/trunk/lib/python/AccessControl/cAccessControl.c2006-01-08 
11:08:49 UTC (rev 41203)
+++ Zope/trunk/lib/python/AccessControl/cAccessControl.c2006-01-08 
11:21:06 UTC (rev 41204)
@@ -658,8 +658,7 @@
 static PyObject *Containers = NULL;
 static PyObject *ContainerAssertions = NULL;
 static PyObject *Unauthorized = NULL;
-static PyObject *LOG = NULL;
-static PyObject *PROBLEM = NULL;
+static PyObject *warn= NULL;
 static PyObject *NoSequenceFormat = NULL;
 static PyObject *_what_not_even_god_should_do = NULL;
 static PyObject *Anonymous = NULL;
@@ -1052,8 +1051,7 @@
   m=PyObject_Repr(roles);
   if (m) ASSIGN(m, Py_BuildValue(OO, m, name));
   if (m) ASSIGN(m, PyString_Format(NoSequenceFormat, m));
-  if (m) ASSIGN(m, PyObject_CallFunction(LOG, sOO,
- Zope Security Policy, PROBLEM, m)); 
+  if (m) ASSIGN(m, PyObject_CallFunction(warn, O, m));
   Py_XDECREF(m);
   PyErr_Restore(t, v, tb);
   goto err;
@@ -2176,7 +2174,7 @@
 static PyObject *
 module_aq_validate(PyObject *ignored, PyObject *args)
 {
-  PyObject *inst, *obj, *name, *v, *validate;
+  PyObject *inst=NULL, *obj=NULL, *name=NULL, *v=NULL, *validate=NULL;
 
   if (unpacktuple5(args, validate, 0,
inst, obj, name, v, validate)  0) return NULL;
@@ -2331,9 +2329,8 @@
/*| from zLOG import LOG, PROBLEM
*/
 
-   IMPORT(module, zLOG);
-   GETATTR(module, LOG);
-   GETATTR(module, PROBLEM);
+   IMPORT(module, logger_wrapper);
+   GETATTR(module, warn);
Py_DECREF(module);
module = NULL;
 }

Added: Zope/trunk/lib/python/AccessControl/logger_wrapper.py
===
--- Zope/trunk/lib/python/AccessControl/logger_wrapper.py   2006-01-08 
11:08:49 UTC (rev 41203)
+++ Zope/trunk/lib/python/AccessControl/logger_wrapper.py   2006-01-08 
11:21:06 UTC (rev 41204)
@@ -0,0 +1,6 @@
+# A wrapper to replace the usage of the zLOG module in cAccessControl without
+# having the need to change the C code significantly.
+
+from logging import getLogger
+LOG = getLogger('AccessControl')
+warn = LOG.warn

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/ZServer/ zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41205:
  zLOG - logging
  

Changed:
  U   Zope/trunk/lib/python/ZServer/medusa/ftp_server.py
  U   Zope/trunk/lib/python/ZServer/utils.py

-=-
Modified: Zope/trunk/lib/python/ZServer/medusa/ftp_server.py
===
--- Zope/trunk/lib/python/ZServer/medusa/ftp_server.py  2006-01-08 11:21:06 UTC 
(rev 41204)
+++ Zope/trunk/lib/python/ZServer/medusa/ftp_server.py  2006-01-08 11:25:58 UTC 
(rev 41205)
@@ -705,7 +705,7 @@
 self.ip = ip
 self.port = port
 self.authorizer = authorizer
-
+
 if hostname is None:
 self.hostname = socket.gethostname()
 else:

Modified: Zope/trunk/lib/python/ZServer/utils.py
===
--- Zope/trunk/lib/python/ZServer/utils.py  2006-01-08 11:21:06 UTC (rev 
41204)
+++ Zope/trunk/lib/python/ZServer/utils.py  2006-01-08 11:25:58 UTC (rev 
41205)
@@ -13,24 +13,26 @@
 
  A set of utility routines used by asyncore initialization 
 
+
 def getZopeVersion():
 import App.version_txt
 return App.version_txt.version_txt()
 
 def patchAsyncoreLogger():
-# Poke zLOG default logging into asyncore to send
-# messages to zLOG instead of medusa logger
-from zLOG import LOG, register_subsystem, BLATHER, INFO, WARNING, ERROR
+# Poke the Python logging module into asyncore to send messages to logging
+# instead of medusa logger
+
+from logging import getLogger
+LOG = getLogger('ZServer')
 register_subsystem('ZServer')
-severity={'info':INFO, 'warning':WARNING, 'error': ERROR}
 
 def log_info(self, message, type='info'):
 if message[:14]=='adding channel' or \
message[:15]=='closing channel' or \
message == 'Computing default hostname':
-LOG('ZServer', BLATHER, message)
+LOG.debug(message)
 else:
-LOG('ZServer', severity[type], message)
+getattr(LOG, severity)(message)
 
 import asyncore
 asyncore.dispatcher.log_info=log_info

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/ZServer/HTTPServer.py zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41206:
  zLOG - logging
  

Changed:
  U   Zope/trunk/lib/python/ZServer/HTTPServer.py

-=-
Modified: Zope/trunk/lib/python/ZServer/HTTPServer.py
===
--- Zope/trunk/lib/python/ZServer/HTTPServer.py 2006-01-08 11:25:58 UTC (rev 
41205)
+++ Zope/trunk/lib/python/ZServer/HTTPServer.py 2006-01-08 11:27:35 UTC (rev 
41206)
@@ -55,7 +55,6 @@
 
 from ZServer import ZOPE_VERSION, ZSERVER_VERSION
 from ZServer import requestCloseOnExec
-from zLOG import LOG, register_subsystem, BLATHER, INFO, WARNING, ERROR
 import DebugLogger
 from medusa import logger
 

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Testing/common.py getting rid of zLOG

2006-01-08 Thread Andreas Jung
Log message for revision 41207:
  getting rid of zLOG
  

Changed:
  U   Zope/trunk/lib/python/Testing/common.py

-=-
Modified: Zope/trunk/lib/python/Testing/common.py
===
--- Zope/trunk/lib/python/Testing/common.py 2006-01-08 11:27:35 UTC (rev 
41206)
+++ Zope/trunk/lib/python/Testing/common.py 2006-01-08 11:37:48 UTC (rev 
41207)
@@ -42,32 +42,7 @@
 
 __repr__ = __str__
 
-def catch_log_errors():
-import zLOG
 
-if hasattr(zLOG, 'old_log_write'):
-return
-
-def log_write(subsystem, severity, summary, detail, error,
-  PROBLEM=zLOG.PROBLEM):
-# we are logging an exception - lets assume that the last exception
-# raised was the one we're interested in, so re-raise it rather
-# than the less-than-useful assert below
-if error is not None:
-raise
-if severity  PROBLEM:
-assert 0, %s(%s): %s % (subsystem, severity, summary)
-
-zLOG.old_log_write = zLOG.log_write
-zLOG.log_write = log_write
-
-def ignore_log_errors():
-import zLOG
-
-if hasattr(zLOG, 'old_log_write'):
-zLOG.log_write = zLOG.old_log_write
-del zLOG.old_log_write
-
 def Testing_file(*args):
 dir = os.path.split(Testing.__file__)[0]
 return apply(os.path.join, (dir,) + args)

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py fixes

2006-01-08 Thread Andreas Jung
Log message for revision 41211:
  fixes
  

Changed:
  U   Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py

-=-
Modified: Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py
===
--- Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py
2006-01-08 11:46:58 UTC (rev 41210)
+++ Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py
2006-01-08 11:52:33 UTC (rev 41211)
@@ -37,7 +37,8 @@
 from Expressions import SecureModuleImporter
 from PageTemplateFile import PageTemplateFile
 
-SUPPORTS_WEBDAV_LOCKS = 1
+from webdav.Lockable import ResourceLockedError
+from webdav.WriteLockInterface import WriteLockInterface
 
 class Src(Acquisition.Explicit):
  
@@ -58,8 +59,7 @@
Traversable, PropertyManager):
 Zope wrapper for Page Template using TAL, TALES, and METAL
 
-if SUPPORTS_WEBDAV_LOCKS:
-__implements__ = (WriteLockInterface,)
+__implements__ = (WriteLockInterface,)
 
 meta_type = 'Page Template'
 
@@ -120,7 +120,7 @@
   'pt_upload', 'pt_changePrefs')
 def pt_editAction(self, REQUEST, title, text, content_type, expand):
 Change the title and document.
-if SUPPORTS_WEBDAV_LOCKS and self.wl_isLocked():
+if self.wl_isLocked():
 raise ResourceLockedError, File is locked via WebDAV
 self.expand=expand
 self.pt_setTitle(title)
@@ -147,7 +147,7 @@
 
 def pt_upload(self, REQUEST, file='', charset=None):
 Replace the document with the text in file.
-if SUPPORTS_WEBDAV_LOCKS and self.wl_isLocked():
+if self.wl_isLocked():
 raise ResourceLockedError, File is locked via WebDAV
 
 if type(file) is not StringType:
@@ -261,8 +261,7 @@
 def PUT(self, REQUEST, RESPONSE):
  Handle HTTP PUT requests 
 self.dav__init(REQUEST, RESPONSE)
-if SUPPORTS_WEBDAV_LOCKS:
-self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)
+self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)
 self.write(REQUEST.get('BODY', ''))
 RESPONSE.setStatus(204)
 return RESPONSE
@@ -316,10 +315,6 @@
 # acquisition context, so we don't know where it is. :-(
 return None
 
-if not SUPPORTS_WEBDAV_LOCKS:
-def wl_isLocked(self):
-return 0
-
 setattr(ZopePageTemplate, 'source.xml',  ZopePageTemplate.source_dot_xml)
 setattr(ZopePageTemplate, 'source.html', ZopePageTemplate.source_dot_xml)
 

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/zLOG/__init__.py Whitespace and language fixes.

2006-01-08 Thread Philipp von Weitershausen
Log message for revision 41213:
  Whitespace and language fixes.
  

Changed:
  U   Zope/trunk/lib/python/zLOG/__init__.py

-=-
Modified: Zope/trunk/lib/python/zLOG/__init__.py
===
--- Zope/trunk/lib/python/zLOG/__init__.py  2006-01-08 11:52:49 UTC (rev 
41212)
+++ Zope/trunk/lib/python/zLOG/__init__.py  2006-01-08 12:52:25 UTC (rev 
41213)
@@ -133,9 +133,7 @@
  error is reraised.
 
 
-
-
-warnings.warn('Using the zLOG module is deprecated (to be removed in '
+warnings.warn('The zLOG package is deprecated and will be removed in '
   'Zope 2.12. Use the Python logging module instead.',
   DeprecationWarning,
   stacklevel=2) 

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py gettting rid of zLOG

2006-01-08 Thread Andreas Jung
Log message for revision 41216:
  gettting rid of zLOG
  

Changed:
  U   
Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py

-=-
Modified: 
Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py
===
--- 
Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py
2006-01-08 14:09:52 UTC (rev 41215)
+++ 
Zope/trunk/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py
2006-01-08 14:18:26 UTC (rev 41216)
@@ -40,8 +40,8 @@
 from OFS.Application import Application
 from OFS.Folder import Folder
 import sys
+import time
 import traceback
-from zLOG import log_time
 sys.setcheckinterval(200)
 
 from Products.Transience.tests import fauxtime
@@ -57,6 +57,12 @@
 
 stuff = {}
 
+def log_time():
+Return a simple time string without spaces suitable for logging.
+return (%4.4d-%2.2d-%2.2dT%2.2d:%2.2d:%2.2d
+% time.localtime()[:6])
+
+
 def _getDB():
 db = stuff.get('db')
 if not db:

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx zLOG

2006-01-08 Thread Andreas Jung
Log message for revision 41219:
  zLOG
  

Changed:
  U   Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx

-=-
Modified: Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx
===
--- Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx
2006-01-08 14:30:11 UTC (rev 41218)
+++ Zope/trunk/lib/python/Products/Transience/help/Transience-change.stx
2006-01-08 14:33:18 UTC (rev 41219)
@@ -99,8 +99,9 @@
 An example of an External Method used as a delete script::
   
  def deleteScript(item, container):
- from zLOG import LOG
- LOG(100, 'test', 'id: %s' % item.getId())
+ from logging import getLogger
+ LOG = getLogger('test')
+ LOG.info('id: %s' % item.getId())
 
   See Also
 

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/cAccessControl.c fixed comment

2006-01-08 Thread Andreas Jung
Log message for revision 41220:
  fixed comment
  

Changed:
  U   Zope/trunk/lib/python/AccessControl/cAccessControl.c

-=-
Modified: Zope/trunk/lib/python/AccessControl/cAccessControl.c
===
--- Zope/trunk/lib/python/AccessControl/cAccessControl.c2006-01-08 
14:33:18 UTC (rev 41219)
+++ Zope/trunk/lib/python/AccessControl/cAccessControl.c2006-01-08 
14:34:14 UTC (rev 41220)
@@ -2326,7 +2326,7 @@
Py_DECREF(module);
module = NULL;
 
-   /*| from zLOG import LOG, PROBLEM
+   /*| from logger_wrapper import warn
*/
 
IMPORT(module, logger_wrapper);

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/fiveconfigure.py zLOG - logging

2006-01-08 Thread Andreas Jung
Log message for revision 41221:
  zLOG - logging
  

Changed:
  U   Zope/trunk/lib/python/Products/Five/fiveconfigure.py

-=-
Modified: Zope/trunk/lib/python/Products/Five/fiveconfigure.py
===
--- Zope/trunk/lib/python/Products/Five/fiveconfigure.py2006-01-08 
14:34:14 UTC (rev 41220)
+++ Zope/trunk/lib/python/Products/Five/fiveconfigure.py2006-01-08 
14:36:43 UTC (rev 41221)
@@ -21,10 +21,10 @@
 import sys
 import glob
 import warnings
+from logging import getLogger
 
 import App.config
 import Products
-from zLOG import LOG, ERROR
 
 from zope.interface import classImplements, classImplementsOnly, implementedBy
 from zope.interface.interface import InterfaceClass
@@ -43,6 +43,7 @@
 from browser.metaconfigure import page
 
 debug_mode = App.config.getConfiguration().debug_mode
+LOG = getLogger('Five')
 
 def findProducts():
 import Products
@@ -63,7 +64,7 @@
 # in the control panel. However, all attempts to do so has failed from my 
 # side. //regebro
 exc = sys.exc_info()
-LOG('Five', ERROR, 'Could not import Product %s' % product.__name__, 
error=exc)
+LOG.error('Could not import Product %s' % product.__name__, exc_info=exc)
 
 def loadProducts(_context):
 products = findProducts()

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/zLOG/__init__.py bringing deprecation of zLOG in line with Zope 2.9

2006-01-08 Thread Andreas Jung
Log message for revision 41223:
  bringing deprecation of zLOG in line with Zope 2.9
  

Changed:
  U   Zope/trunk/lib/python/zLOG/__init__.py

-=-
Modified: Zope/trunk/lib/python/zLOG/__init__.py
===
--- Zope/trunk/lib/python/zLOG/__init__.py  2006-01-08 14:40:14 UTC (rev 
41222)
+++ Zope/trunk/lib/python/zLOG/__init__.py  2006-01-08 14:41:39 UTC (rev 
41223)
@@ -134,7 +134,7 @@
 
 
 warnings.warn('The zLOG package is deprecated and will be removed in '
-  'Zope 2.12. Use the Python logging module instead.',
+  'Zope 2.11. Use the Python logging module instead.',
   DeprecationWarning,
   stacklevel=2) 
 

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/ Stitch in a newer Zope 3 trunk (in preparation of StructuredText facading).

2006-01-08 Thread Philipp von Weitershausen
Log message for revision 41224:
  Stitch in a newer Zope 3 trunk (in preparation of StructuredText facading).
  

Changed:
  _U  Zope/trunk/lib/python/
  _U  Zope/trunk/lib/python/zope/

-=-

Property changes on: Zope/trunk/lib/python
___
Name: svn:externals
   - ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1
BTrees -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/BTrees
persistent -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/persistent
ThreadedAsync  -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ThreadedAsync
transaction-r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/transaction
ZEO-r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZEO
ZODB   -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZODB
ZopeUndo   -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZopeUndo
zdaemon-r 40792 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon
pytz   -r 40903 svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz
zodbcode   -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode
ClientCookie   -r 40549 
svn://svn.zope.org/repos/main/Zope3/trunk/src/ClientCookie
mechanize  -r 40549 svn://svn.zope.org/repos/main/Zope3/trunk/src/mechanize
docutils   -r 41065 svn://svn.zope.org/repos/main/Zope3/trunk/src/docutils


   + ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3.1
BTrees -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/BTrees
persistent -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/persistent
ThreadedAsync  -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ThreadedAsync
transaction-r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/transaction
ZEO-r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZEO
ZODB   -r 41153 svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZODB
ZopeUndo   -r 41153 
svn://svn.zope.org/repos/main/ZODB/branches/3.6/src/ZopeUndo
zdaemon-r 40792 svn://svn.zope.org/repos/main/zdaemon/trunk/src/zdaemon
pytz   -r 41215 svn://svn.zope.org/repos/main/Zope3/trunk/src/pytz
zodbcode   -r 41215 svn://svn.zope.org/repos/main/Zope3/trunk/src/zodbcode
ClientCookie   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/ClientCookie
mechanize  -r 41215 svn://svn.zope.org/repos/main/Zope3/trunk/src/mechanize
docutils   -r 41215 svn://svn.zope.org/repos/main/Zope3/trunk/src/docutils




Property changes on: Zope/trunk/lib/python/zope
___
Name: svn:externals
   - app  -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/app
cachedescriptors -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/cachedescriptors
component-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/component
configuration-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/configuration
documenttemplate -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/documenttemplate
event-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/event
exceptions   -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/exceptions
hookable -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/hookable
i18n -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/i18n
i18nmessageid-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/i18nmessageid
interface-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/interface
modulealias  -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/modulealias
pagetemplate -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/pagetemplate
proxy-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/proxy
publisher-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/publisher
schema   -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/schema
security -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/security
server   -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/server
structuredtext   -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/structuredtext
tal  -r 40973 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/tal
tales-r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/tales
testing  -r 40941 
svn://svn.zope.org/repos/main/zope.testing/trunk/src/zope/testing
thread   -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/thread
deprecation  -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/deprecation
dottedname   -r 40973 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/dottedname
formlib  -r 

[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.txt Put deprecation change notes under 'Restructuring'.

2006-01-08 Thread Philipp von Weitershausen
Log message for revision 41226:
  Put deprecation change notes under 'Restructuring'.
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===
--- Zope/trunk/doc/CHANGES.txt  2006-01-08 14:51:18 UTC (rev 41225)
+++ Zope/trunk/doc/CHANGES.txt  2006-01-08 14:59:52 UTC (rev 41226)
@@ -24,7 +24,7 @@
 
   Trunk only (unreleased)
 
-Features added
+Restructuring
 
   - deprecated the zLOG module. Use Pythons 'logging' module instead.
 
@@ -42,6 +42,16 @@
 
   - ZGadyFlyDA/Gadfly is deprecated
 
+  - deprecated OFS.content_types (to be removed in Zope 2.11) and
+replaced all occurences with zope.app.content_types 
+
+  - OFS.content_types: moved code to zope.app.content_types and added
+method aliases
+
+  - Using FastCGI is offically deprecated.
+
+Features added
+
   - Added a clock server servertype which allows users to
 configure methods that should be called periodically as if
 they were being called by a remote user agent on one of Zope's
@@ -100,17 +110,9 @@
 
   - The SiteErrorLog now copies exceptions to the event log by default.
 
-  - deprecated OFS.content_types (to be removed in Zope 2.11) and
-replaced all occurences with zope.app.content_types 
-
-  - OFS.content_types: moved code to zope.app.content_types and added
-method aliases
-
   - ObjectManager now has an hasObject method to test presence. This
 brings it in line with BTreeFolder.
 
-  - Using FastCGI is offically deprecated.
-
   - Improved logging of ConflictErrors. All conflict errors are
 logged at INFO, with counts of how many occurred and how many
 were resolved. Tracebacks for all conflicts are logged a DEBUG

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


[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/Five/ Update Five to bugfix release 1.3.1.

2006-01-08 Thread Philipp von Weitershausen
Log message for revision 41227:
  Update Five to bugfix release 1.3.1.
  

Changed:
  U   Zope/branches/2.9/lib/python/Products/Five/CHANGES.txt
  U   Zope/branches/2.9/lib/python/Products/Five/site/localsite.py
  U   Zope/branches/2.9/lib/python/Products/Five/site/tests/sitemanager.txt
  U   Zope/branches/2.9/lib/python/Products/Five/tests/adapters.py
  U   Zope/branches/2.9/lib/python/Products/Five/version.txt

-=-
Modified: Zope/branches/2.9/lib/python/Products/Five/CHANGES.txt
===
--- Zope/branches/2.9/lib/python/Products/Five/CHANGES.txt  2006-01-08 
14:59:52 UTC (rev 41226)
+++ Zope/branches/2.9/lib/python/Products/Five/CHANGES.txt  2006-01-08 
16:02:45 UTC (rev 41227)
@@ -2,6 +2,15 @@
 Five Changes
 
 
+Five 1.3.1 (2006-01-08)
+===
+
+Bugfixes
+
+
+* Fix an adapter look-up bug in the local site implementation that was
+  due to an oversight during the port to Zope 3.2.
+
 Five 1.3 (2006-01-07)
 =
 

Modified: Zope/branches/2.9/lib/python/Products/Five/site/localsite.py
===
--- Zope/branches/2.9/lib/python/Products/Five/site/localsite.py
2006-01-08 14:59:52 UTC (rev 41226)
+++ Zope/branches/2.9/lib/python/Products/Five/site/localsite.py
2006-01-08 16:02:45 UTC (rev 41227)
@@ -111,7 +111,10 @@
 
 @property
 def adapters(self):
-return getGlobalSiteManager().adapters #XXX wrong
+next = self.next
+if next is None:
+next = getGlobalSiteManager()
+return next.adapters
 
 @property
 def utilities(self):
@@ -124,7 +127,10 @@
 return self.adapters.queryMultiAdapter(objects, interface, name, 
default)
 
 def getAdapters(self, objects, provided):
-return self.adapters.getAdapters(objects, provided)
+next = self.next
+if next is None:
+next = getGlobalSiteManager()
+return next.getAdapters(objects, provided)
 
 def subscribers(self, required, provided):
 return self.adapters.subscribers(required, provided)

Modified: Zope/branches/2.9/lib/python/Products/Five/site/tests/sitemanager.txt
===
--- Zope/branches/2.9/lib/python/Products/Five/site/tests/sitemanager.txt   
2006-01-08 14:59:52 UTC (rev 41226)
+++ Zope/branches/2.9/lib/python/Products/Five/site/tests/sitemanager.txt   
2006-01-08 16:02:45 UTC (rev 41227)
@@ -85,11 +85,29 @@
   True
 
 The methods on registering and looking up utilities are covered by the
-utility tests in depth.  The methods on adapter look up are indirectly
-covered in the functional test; view look up, for example, is adapter
-look up.
+utility tests in depth.
 
+We test some adapter look-up here.  It is also indirectly covered in
+the functional test; view look up, for example, is adapter look up.
 
+First we provide an adapter:
+
+   from Products.Five.tests.adapters import Adaptable, Adapter, IAdapted
+   import zope.component
+   zope.component.provideAdapter(Adapter)
+
+Now let's check for a simple adaption:
+
+   adaptable = Adaptable()
+   IAdapted(adaptable) #doctest: +ELLIPSIS
+  Products.Five.tests.adapters.Adapter instance at ...
+
+Let's get all the adapters for ``adaptable``:
+
+   zapi.getAdapters((adaptable,), IAdapted) #doctest: +ELLIPSIS
+  [(u'', Products.Five.tests.adapters.Adapter instance at ...)]
+
+
 Nesting sites
 -
 
@@ -118,7 +136,11 @@
getNextSiteManager(subsite.getSiteManager()).context == dummysite
   True
 
+The adapters is registry is passed through to the global one:
 
+   subsite.getSiteManager().adapters is zapi.getGlobalSiteManager().adapters
+  True
+
 Finally, some clean up:
 
tearDown()

Modified: Zope/branches/2.9/lib/python/Products/Five/tests/adapters.py
===
--- Zope/branches/2.9/lib/python/Products/Five/tests/adapters.py
2006-01-08 14:59:52 UTC (rev 41226)
+++ Zope/branches/2.9/lib/python/Products/Five/tests/adapters.py
2006-01-08 16:02:45 UTC (rev 41227)
@@ -16,6 +16,7 @@
 $Id: adapters.py 12884 2005-05-30 13:10:41Z philikon $
 
 from zope.interface import implements, Interface
+from zope.component import adapts
 
 class IAdaptable(Interface):
 This is a Zope 3 interface.
@@ -49,6 +50,7 @@
 
 class Adapter:
 implements(IAdapted)
+adapts(IAdaptable)
 
 def __init__(self, context):
 self.context = context

Modified: Zope/branches/2.9/lib/python/Products/Five/version.txt
===
--- Zope/branches/2.9/lib/python/Products/Five/version.txt  2006-01-08 
14:59:52 UTC (rev 41226)
+++ Zope/branches/2.9/lib/python/Products/Five/version.txt  2006-01-08 
16:02:45 UTC (rev 41227)
@@ -1 +1 @@
-Five 1.3
+Five 1.3.1

___

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/ Merge r41227 from 2.9 branch:

2006-01-08 Thread Philipp von Weitershausen
Log message for revision 41228:
  Merge r41227 from 2.9 branch:
Update Five to bugfix release 1.3.1.
  

Changed:
  U   Zope/trunk/lib/python/Products/Five/CHANGES.txt
  U   Zope/trunk/lib/python/Products/Five/site/localsite.py
  U   Zope/trunk/lib/python/Products/Five/site/tests/sitemanager.txt
  U   Zope/trunk/lib/python/Products/Five/tests/adapters.py
  U   Zope/trunk/lib/python/Products/Five/version.txt

-=-
Modified: Zope/trunk/lib/python/Products/Five/CHANGES.txt
===
--- Zope/trunk/lib/python/Products/Five/CHANGES.txt 2006-01-08 16:02:45 UTC 
(rev 41227)
+++ Zope/trunk/lib/python/Products/Five/CHANGES.txt 2006-01-08 16:06:01 UTC 
(rev 41228)
@@ -2,6 +2,15 @@
 Five Changes
 
 
+Five 1.3.1 (2006-01-08)
+===
+
+Bugfixes
+
+
+* Fix an adapter look-up bug in the local site implementation that was
+  due to an oversight during the port to Zope 3.2.
+
 Five 1.3 (2006-01-07)
 =
 

Modified: Zope/trunk/lib/python/Products/Five/site/localsite.py
===
--- Zope/trunk/lib/python/Products/Five/site/localsite.py   2006-01-08 
16:02:45 UTC (rev 41227)
+++ Zope/trunk/lib/python/Products/Five/site/localsite.py   2006-01-08 
16:06:01 UTC (rev 41228)
@@ -111,7 +111,10 @@
 
 @property
 def adapters(self):
-return getGlobalSiteManager().adapters #XXX wrong
+next = self.next
+if next is None:
+next = getGlobalSiteManager()
+return next.adapters
 
 @property
 def utilities(self):
@@ -124,7 +127,10 @@
 return self.adapters.queryMultiAdapter(objects, interface, name, 
default)
 
 def getAdapters(self, objects, provided):
-return self.adapters.getAdapters(objects, provided)
+next = self.next
+if next is None:
+next = getGlobalSiteManager()
+return next.getAdapters(objects, provided)
 
 def subscribers(self, required, provided):
 return self.adapters.subscribers(required, provided)

Modified: Zope/trunk/lib/python/Products/Five/site/tests/sitemanager.txt
===
--- Zope/trunk/lib/python/Products/Five/site/tests/sitemanager.txt  
2006-01-08 16:02:45 UTC (rev 41227)
+++ Zope/trunk/lib/python/Products/Five/site/tests/sitemanager.txt  
2006-01-08 16:06:01 UTC (rev 41228)
@@ -85,11 +85,29 @@
   True
 
 The methods on registering and looking up utilities are covered by the
-utility tests in depth.  The methods on adapter look up are indirectly
-covered in the functional test; view look up, for example, is adapter
-look up.
+utility tests in depth.
 
+We test some adapter look-up here.  It is also indirectly covered in
+the functional test; view look up, for example, is adapter look up.
 
+First we provide an adapter:
+
+   from Products.Five.tests.adapters import Adaptable, Adapter, IAdapted
+   import zope.component
+   zope.component.provideAdapter(Adapter)
+
+Now let's check for a simple adaption:
+
+   adaptable = Adaptable()
+   IAdapted(adaptable) #doctest: +ELLIPSIS
+  Products.Five.tests.adapters.Adapter instance at ...
+
+Let's get all the adapters for ``adaptable``:
+
+   zapi.getAdapters((adaptable,), IAdapted) #doctest: +ELLIPSIS
+  [(u'', Products.Five.tests.adapters.Adapter instance at ...)]
+
+
 Nesting sites
 -
 
@@ -118,7 +136,11 @@
getNextSiteManager(subsite.getSiteManager()).context == dummysite
   True
 
+The adapters is registry is passed through to the global one:
 
+   subsite.getSiteManager().adapters is zapi.getGlobalSiteManager().adapters
+  True
+
 Finally, some clean up:
 
tearDown()

Modified: Zope/trunk/lib/python/Products/Five/tests/adapters.py
===
--- Zope/trunk/lib/python/Products/Five/tests/adapters.py   2006-01-08 
16:02:45 UTC (rev 41227)
+++ Zope/trunk/lib/python/Products/Five/tests/adapters.py   2006-01-08 
16:06:01 UTC (rev 41228)
@@ -16,6 +16,7 @@
 $Id: adapters.py 12884 2005-05-30 13:10:41Z philikon $
 
 from zope.interface import implements, Interface
+from zope.component import adapts
 
 class IAdaptable(Interface):
 This is a Zope 3 interface.
@@ -49,6 +50,7 @@
 
 class Adapter:
 implements(IAdapted)
+adapts(IAdaptable)
 
 def __init__(self, context):
 self.context = context

Modified: Zope/trunk/lib/python/Products/Five/version.txt
===
--- Zope/trunk/lib/python/Products/Five/version.txt 2006-01-08 16:02:45 UTC 
(rev 41227)
+++ Zope/trunk/lib/python/Products/Five/version.txt 2006-01-08 16:06:01 UTC 
(rev 41228)
@@ -1 +1 @@
-Five 1.3
+Five 1.3.1

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2636
Blamelist: andreasjung,philikon

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2642
Blamelist: andreasjung

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


[Zope-dev] zLOG module deprecated

2006-01-08 Thread Andreas Jung

Hi all,

the zLOG module will be offically deprecated in Zope 2.10 (removed in Zope 
2.12). New code _must_ use the 'logging' module of Python. And please help

to replace all outstanding code that uses the zLOG module on the _trunk_
(which is a fun job :-|).

Thanks,
Andreas 

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2643
Blamelist: andreasjung

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2649
Blamelist: andreasjung

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2650
Blamelist: andreasjung

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2653
Blamelist: andreasjung

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2657
Blamelist: andreasjung

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


[Zope-dev] Zope tests: 8 OK

2006-01-08 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Sat Jan  7 12:01:02 2006 UTC to Sun Jan  8 12:01:02 2006 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 Jan  7 21:02:40 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003954.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Jan  7 21:04:11 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003955.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Jan  7 21:05:41 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003956.html

Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Jan  7 21:07:11 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003957.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Jan  7 21:08:41 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003958.html

Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Jan  7 21:10:11 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003959.html

Subject: OK : Zope-2_9-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Jan  7 21:11:41 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003960.html

Subject: OK : Zope-trunk Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Sat Jan  7 21:13:12 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/003961.html

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


[Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2006-01-08 Thread buildbot
The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot.

Buildbot URL: http://buildbot.zope.org/

Build Reason: changes
Build Source Stamp: 2670
Blamelist: andreasjung

BUILD FAILED: failed test

sincerely,
 -The Buildbot

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


Re: [Zope-dev] zLOG module deprecated

2006-01-08 Thread Dieter Maurer
Andreas Jung wrote at 2006-1-8 11:44 +0100:
the zLOG module will be offically deprecated in Zope 2.10 (removed in Zope 
2.12). New code _must_ use the 'logging' module of Python. And please help
to replace all outstanding code that uses the zLOG module on the _trunk_
(which is a fun job :-|).

If you deprecate zLOG could you please instruct the python logger
to output Zope style tracebacks?

  Zope style tracebacks are much more informative than the stupid
  Python ones.


As this is probably difficult without Monkey patching,
I would prefer to have a Zope specific interface for logging purposes.


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


Re: [Zope-dev] zLOG module deprecated

2006-01-08 Thread Andreas Jung



--On 8. Januar 2006 20:58:19 +0100 Dieter Maurer [EMAIL PROTECTED] 
wrote:



Andreas Jung wrote at 2006-1-8 11:44 +0100:

the zLOG module will be offically deprecated in Zope 2.10 (removed in
Zope  2.12). New code _must_ use the 'logging' module of Python. And
please help to replace all outstanding code that uses the zLOG module on
the _trunk_ (which is a fun job :-|).


If you deprecate zLOG could you please instruct the python logger
to output Zope style tracebacks?

  Zope style tracebacks are much more informative than the stupid
  Python ones.


As this is probably difficult without Monkey patching,
I would prefer to have a Zope specific interface for logging purposes.



We'll have to check that. Support in terms of patches are welcome :-)

-aj

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


[Zope-dev] Twice-annual releases and bugfixes?

2006-01-08 Thread Jeff Kowalczyk
What does the twice-annual release policy say about bugs and/or packaging
errors that are identified and fixed within a very short time of the
official release announcement?

Log message for revision 41228:
  Merge r41227 from 2.9 branch:
Update Five to bugfix release 1.3.1.
Changed:
  U   Zope/trunk/lib/python/Products/Five/CHANGES.txt U  
  Zope/trunk/lib/python/Products/Five/site/localsite.py U  
  Zope/trunk/lib/python/Products/Five/site/tests/sitemanager.txt U  
  Zope/trunk/lib/python/Products/Five/tests/adapters.py U  
  Zope/trunk/lib/python/Products/Five/version.txt
(...)
+* Fix an adapter look-up bug in the local site implementation
+that was due to an oversight during the port to Zope 3.2.

I'm building from svn, so it doesn't make much difference to me, but I was
curious whether the circumstances (if any) that would trigger bugfix
releases were documented anywhere.

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


[Zope-dev] Re: Twice-annual releases and bugfixes?

2006-01-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff Kowalczyk wrote:
 What does the twice-annual release policy say about bugs and/or packaging
 errors that are identified and fixed within a very short time of the
 official release announcement?
 
 Log message for revision 41228:
   Merge r41227 from 2.9 branch:
 Update Five to bugfix release 1.3.1.
 Changed:
   U   Zope/trunk/lib/python/Products/Five/CHANGES.txt U  
   Zope/trunk/lib/python/Products/Five/site/localsite.py U  
   Zope/trunk/lib/python/Products/Five/site/tests/sitemanager.txt U  
   Zope/trunk/lib/python/Products/Five/tests/adapters.py U  
   Zope/trunk/lib/python/Products/Five/version.txt
 (...)
 +* Fix an adapter look-up bug in the local site implementation
 +that was due to an oversight during the port to Zope 3.2.
 
 I'm building from svn, so it doesn't make much difference to me, but I was
 curious whether the circumstances (if any) that would trigger bugfix
 releases were documented anywhere.

I think the trigger is one of the following:

  - The release manager sees the prbolem, says Oh, $#1^!, puts on the
obligatory brown bag, and pushes one out ASAP (this one is typical
for glaring security holes).

  - Some large-scale user (or upstream framework) is trying to make a
release, and needs an unreleased fix.  They lobby for a third dot
release that their own deployment can then rely on.

I haven't seen enough other cases to classify them.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDwaHr+gerLs4ltQ4RAjbVAJsEugXRYrz4yQZzN/0YYOk5OCQAdwCeL/hF
T6VK1LTRBpc9bSKHLi/O6ik=
=OqG6
-END PGP SIGNATURE-

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


Re: [Zope-dev] Twice-annual releases and bugfixes?

2006-01-08 Thread Andreas Jung



--On 8. Januar 2006 17:49:01 -0500 Jeff Kowalczyk [EMAIL PROTECTED] wrote:


What does the twice-annual release policy say about bugs and/or packaging
errors that are identified and fixed within a very short time of the
official release announcement?



huh? I don't understand. Bugfixes will be appear as in the past:

- when security related fixes were made

- when enough uncritical bugs were fixed

- when the release manager has time and is release mood :-)

-aj



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


Re: [Zope] Uploading file to Zope

2006-01-08 Thread Andreas Jung



--On 7. Januar 2006 20:05:26 +0100 Dieter Maurer [EMAIL PROTECTED] 
wrote:


Look at the code in cgi.py:511. Check against what variable
the entity size is checked. With a bit of luck, the configuration
option has a similar name. Change it as adequate for your site,
restart.



Should be 'cgi-maxlen' in zope.conf.

-aj

pgpkRpOEijCN4.pgp
Description: PGP signature
___
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] installing zope in a web hosted environment

2006-01-08 Thread Daniel Gross

Hello,

I am using a linux web hosting service, who has recently installed 
python into apache. Usually i install web products via ftp. After 
reading how to install zope (and plone), I couldnt find a reference how 
to install zope using ftp only. Is there a way to do so, also, so that 
zope does not use its built in web server but the apache server of the 
web host.


appreciating your response,

Daniel

___
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] installing zope in a web hosted environment

2006-01-08 Thread Jens Vagelpohl


On 8 Jan 2006, at 14:30, Daniel Gross wrote:


Hello,

I am using a linux web hosting service, who has recently installed  
python into apache. Usually i install web products via ftp. After  
reading how to install zope (and plone), I couldnt find a reference  
how to install zope using ftp only. Is there a way to do so, also,  
so that zope does not use its built in web server but the apache  
server of the web host.


You didn't find that reference because you can't do that. Simple as  
that I'm afraid. You need shell access to install and run Zope.


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 )


Re: [Zope] installing zope in a web hosted environment

2006-01-08 Thread Rakotomandimby Mihamina
On Sun, 2006-01-08 at 09:30 -0500, Daniel Gross wrote:
 Hello,

Hi,

 to install zope using ftp only. 

If FTP-only, you wont be abble.
If you have ssh/shell acces too, it is possible if the shell is not too
much restricted.
Finally, on a shared hosting service, I really doubt you could do it,
because of the ressources Zope could take. Zope itself is not ressources
consuming, but If you add such things as Plone or CPS, you will often
take 100% of the CPU, so that you could disturb your co-hosted
collegues.

But fisrt of all, what I advice you is to test on a local machine. 
Try to install linux home and then have a try with Zope...

-- 
A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source  GPL).
Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better.
http://www.cps-project.org for downloads  documentation.
Free hosting of CPS groupware: http://www.objectis.org.

___
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.2.0 released!

2006-01-08 Thread Stephan Richter
Hello everyone,

The Zope 3 development team is proud to announce Zope 3.2.0.

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 our opinion that Zope 3 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.  This is a long term effort. We're not there yet.
**You can't run Zope 2 applications in Zope 3.**


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.2 requires Python 2.4.2 to run. You must also have zlib
  installed on your system.

Most Important Changes Since 3.1

  - The ZServer has been replaced with the Twisted server. The Twisted
server supports all that the ZServer supporting has well has HTTP over
SSL natively and SFTP (disabled for now because of error handling
problems).  Also in the future it brings a better chance of other
non-HTTP related protocols from being implemented for Zope3, like
SMTP-in and IMAP.

ZServer is still supported and will be used if you use the
--zserver when you run mkzopeinstance.

  - Added a test browser. The test browser simulates a real Web browser as
much as possible as a Python object. This allows us to write
functional tests the same way the site would be experienced by the
user. This greatly simplifies functional tests, makes documentation
better and even helps analyzing usability. And of course, it can be
used in functional doctests.

  - Changed the way returning large results is handled. The
response.write method is no longer supported.  Applications
can now simply return files to the publisher.

  - Implemented the password managers proposal. Main idea beside the
proposal is a standard way to implement password encoders/checkers, 
see
zope.app.authentication.interfaces.IPasswordManager for details.

+ Added basic password managers: Plain Text, MD5, SHA1.

+ Support for password managers added for ZCML principals and
  principals saved in local PrincipalFolers.

+ Added bin/zpasswd command line script which helps to create ZCML
  principals.

+ Password managers support integrated into bin/mkzopeinstance.

+ New database generation created for convert local principals to new
  format.

  - Implemented the language namespace proposal. Now you can override
the browser preferred language through the URL, like this:

  http://site.org/++lang++ru/path

Note: If you want to use a custom IUserPreferredLanguages adapter and
the '++lang++' feature together you should use
zope.app.publisher.browser.CacheableBrowserLanguages adapter as a base
class or at least as example.

  - Implemented a new object introspector. Instead of just providing
information of the object's class, the new introspector focuses on
providing information that is specific to the instance, such as
directly provided interfaces and data, for example attribute values
and annotation values.

  - Implemented the `devmode` switch for `zope.conf`. When turned on a
ZCML feature called `devmode` is provided. Packages can then register
functionality based on this feature. In Zope 3 itself, the devmode is
used to only load the API doc is devmode; turning off the devmode thus
closes a potential security hole and increases the start time by more
than a second.

  - addMenuItem directive supports a `layer` attribute.

  - Added a re-implementation of i18n message IDs (now simply
called ``Message``) that is immutable and thus can be treated
like unicode strings with respect to security proxying.  This
implementation will replace the old one in upcoming versions.

  - Added test message catalog for testing i18n.  If you specify
++lang++test in a URL, then all translated strings will be
translated to [[domain][message_id], as in [[zope][Preview]].
Text without the domain marker isn't translated.



  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 
List:http://mail.zope.org/mailman/listinfo/zope3-users

  - IRC Channel: #zope3-dev at irc.freenode.net


Acknowledgments

  Thanks goes to everyone that contributed.


Re: [Zope] installing zope in a web hosted environment

2006-01-08 Thread Daniel Gross




Hello,

Thank you for your reply. Actually, i first installed and configured
plone/zope on a local server at home. Due to problems with dynamic ip
mapping i decided to move it to a hosted environment. It appears
however that unfortunately i can't do it, unless i get a dedicated
server, which is way too expensive for my resources and needs ...

thanks,

Daniel

Rakotomandimby Mihamina wrote:

  On Sun, 2006-01-08 at 09:30 -0500, Daniel Gross wrote:
  
  
Hello,

  
  
Hi,

  
  
to install zope using ftp only. 

  
  
If FTP-only, you wont be abble.
If you have ssh/shell acces too, it is possible if the shell is not too
much restricted.
Finally, on a shared hosting service, I really doubt you could do it,
because of the ressources Zope could take. Zope itself is not ressources
consuming, but If you add such things as Plone or CPS, you will often
take 100% of the CPU, so that you could disturb your co-hosted
collegues.

But fisrt of all, what I advice you is to test on a local machine. 
Try to install linux home and then have a try with Zope...

  




___
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] installing zope in a web hosted environment

2006-01-08 Thread Jens Vagelpohl


On 8 Jan 2006, at 14:39, Daniel Gross wrote:


Jens Vagelpohl wrote:


On 8 Jan 2006, at 14:30, Daniel Gross wrote:


Hello,

I am using a linux web hosting service, who has recently  
installed python into apache. Usually i install web products via  
ftp. After reading how to install zope (and plone), I couldnt  
find a reference how to install zope using ftp only. Is there a  
way to do so, also, so that zope does not use its built in web  
server but the apache server of the web host.


You didn't find that reference because you can't do that. Simple  
as that I'm afraid. You need shell access to install and run Zope.

Hello Jens,

Thank you for yoru prompt response.

Is this an oversight, or general lack of need as virtually all  
Zope users run their own servers, or an inherent limitation of how  
Zope works ...


Please keep this on the mailing list.

What you are referring to is a use case Zope cannot cater for. To run  
a Zope server you must have certain levels of access to the server.  
Zope is not like a CGI-script that you can upload and run out of  
Apache, it is a full-blown server process on its own.


This is neither an oversight nor a limitation, this requirement  
exists for all real server software you want to install and run.


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] Re: installing zope in a web hosted environment

2006-01-08 Thread Michael Haubenwallner

Daniel Gross wrote:

Hello,

Thank you for your reply. Actually, i first installed and configured 
plone/zope on a local server at home. Due to problems with dynamic ip 
mapping i decided to move it to a hosted environment. It appears however 
that unfortunately i can't do it, unless i get a dedicated server, which 
is way too expensive for my resources and needs ...




Here is a (really not complete) list of zope hosting providers:
http://zopewiki.org/HostingProviders

They provide you zope services without the need for running a dedicated 
server.


Hth,
Michael

--
http://zope.org/Members/d2m
http://planetzope.org

___
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] installing zope in a web hosted environment

2006-01-08 Thread Rakotomandimby Mihamina
On Sun, 2006-01-08 at 09:47 -0500, Daniel Gross wrote:
 Hello,

Hi,

 Thank you for your reply. Actually, i first installed and configured
 plone/zope on a local server at home. Due to problems with dynamic ip
 mapping i decided to move it to a hosted environment. It appears
 however that unfortunately i can't do it, unless i get a dedicated
 server, 

You can also rent a virtual dedicated server.
Or use one of the free services available, such as:

- http://www.objectis.org/.
- http://wiki.python.org/moin/FreeHosts

But if you have specific needs, I can lend you a part of my dedicated
server, for free. It is under-used for the moment.

-- 
A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source  GPL).
Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better.
http://www.cps-project.org for downloads  documentation.
Free hosting of CPS groupware: http://www.objectis.org.

___
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] installing zope in a web hosted environment

2006-01-08 Thread Jonathan



snip
Thank you for 
your reply. Actually, i first installed and configured plone/zope on a local 
server at home. Due to problems with dynamic ip mapping i decided to move it to 
a hosted environment. It appears however that unfortunately i can't do it, 
unless i get a dedicated server, which is way too expensive for my resources and 
needs .../snip

Some IP's have an upgrade to their service which 
will give you a static IP (for a few dollars more per month of course!) which 
would allow you to run on your home server.


Jonathan


  - Original Message - 
  From: 
  Daniel 
  Gross 
  To: Rakotomandimby 
  Mihamina 
  Cc: zope@zope.org 
  Sent: Sunday, January 08, 2006 9:47 
  AM
  Subject: Re: [Zope] installing zope in a 
  "web" hosted environment
  Hello,Thank you for your 
  reply. Actually, i first installed and configured plone/zope on a local server 
  at home. Due to problems with dynamic ip mapping i decided to move it to a 
  hosted environment. It appears however that unfortunately i can't do it, 
  unless i get a dedicated server, which is way too expensive for my resources 
  and needs ...thanks,DanielRakotomandimby Mihamina 
  wrote: 
  On Sun, 2006-01-08 at 09:30 -0500, Daniel Gross wrote:
  
Hello,

Hi,

  
to install zope using ftp only. 

If FTP-only, you wont be abble.
If you have ssh/shell acces too, it is possible if the shell is not too
much restricted.
Finally, on a shared hosting service, I really doubt you could do it,
because of the ressources Zope could take. Zope itself is not ressources
consuming, but If you add such things as Plone or CPS, you will often
take 100% of the CPU, so that you could disturb your co-hosted
collegues.

But fisrt of all, what I advice you is to test on a local machine. 
Try to install linux home and then have a try with Zope...

  
  
  

  ___Zope maillist 
  - 
  Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** 
  No cross posts or HTML encoding! **(Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announcehttp://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] Leave the ivory tower now!

2006-01-08 Thread Greg Fischer
Yes, we need hype! And a hot looking site, WITH Web 2.0 features. Many of these frameworks are providing AJAX capabilities, simple graphics and data/object access without page reloads. (like I am using with Dojo right now) What does Zope not provide these features built-in?
And yes, about the central docs. A ton of info is available right on Zope.org, but I always find more on individual blogs or other google searches. Zope.org
 could use a more intuitive help finder maybe. Actually, how aboot a Zopedigg? Diggs on just Zope articles and such, with comments? That would be hot! Better and easier than a wiki, IMHO. The one thing I would say is, from my perspective, when I have info to share on Zope work I have done, I like to post on my blog or site, not Zope's. Because I like to provide a demo or maybe include things *my* way. Having a ZopeDigg would allow us to post our work in a central repository, and look a little flashy too.
The video tutorial should be made. Like RoR and Symfony-project have. It shows beginners how easy something is to do. And they will download it. I did. Also, I know this will get some people flaming probably, but Zope needs more hype for DTML. I KNOW! 99% of you hate it. But every time I show someone how to do it, their eyes light up. It's very simple coming from ASP or PHP, once you see it in action. ZPT is just plain confusing to me. I hate to say this too, but I am doing much more in PHP these days, partly due to the fact that there exists a large dtml sucks attitude in the community. And even though it has been said that DTML is not going away, if there is no hype about it, then it might. And I don't want to keep using Zope without it. Yes, yes, I know DTML has many disadvantages, but it also has many advantages. I wish there were more hype about it. 
So, here's a big wish of mine too. What if Zope was a *complete* framework, including a web based IDE? I dont mean the ZMI, which is hot in itself, but a full featured AJAX-ish IDE, built upon Zope. Drag and drop widgets and properties even. It would also have full database access built in. Mysql, Mssql, Oracle, Postgresql, all ready to go, without needing to purchase and configure a database adapter. This would provide a web based, development framework like .NET using Visual Studio. Only this would work on Zope, and therefore would run on Linux OR Windows! It doesnt have to be so comprehensive like VS, but simple form editor with properties and XMLHTTPRequest capability would be great. I think we would have a KILLER APP!
Well, maybe I am dreamin? Just thought I'd give my 2 cents.Oh, and is the community growing? Well, I think the Netcraft surveys say a lot. I know this isnt definitive, but I think it's great info. Since I started using Zope in 2002, the sites using Zope have grown from 6000 to 42000. Cool!
42000+ Sites in 2006http://survey.netcraft.com/Reports/0601/6000+ Sites in 2002http://survey.netcraft.com/Reports/0201/
Happy new year everyone!On 1/3/06, Jonathan Cyr [EMAIL PROTECTED] wrote:



  


Do we know Is the Zope
community growing or shrinking? Is there even a problem? Is Python
growing or shrinking? Is there any connection? 

Zope.org seems to have been built as a community center, with accounts/
3rd party add-ons etc. Is it working. RubyonRails.com has none of
this functionality.

Perhaps a GetZope.com site, similar to GetFirefox.com is in order, that
provides a very small amount of get started information.

Two Cents,

-Jon

Gert Thiel wrote:

  Dear friends.A few days ago the Ruby on Rails development team published the 1.0 release.At that occasion the Zope fans are reminded how far Zope fell far behind interms of attention and recognized widespread.
Python has batteries included. Zope is a power plant. But still everyonespeaks of Django, Turbogears or Ruby on Rails. Even if they talk about theshortcommings of J2EE.Some of the best content management systems are build using Zope 2. CPS, ZMS
and my favourite: Plone. And Typo3 gets even more attention. Why?Because we failed. We aren't marketing Zope at all. Have a look at 
zope.org.Do you think, that any CEO will stay at that site more than 10 seconds? Havea look at rubyonrails.org
 and cry. Zope 3.2 will be delivered soon. Have anylook at zope.org ‹ where isŠ You got it.To a certain extent Zope 2 was attracting like a nuclear power plant.
Whenever I start programming with Zope 2, latest for Plone, I can feel itspower before even diving into it much, but I'm alarmed of its pitfalls atthe very same time. So all my hopes are with Zope 3 which enabled me without
hurting me yet. Will I get a truly powerful replacement for J2EE?Here are my ideas to make Zope 3 the most successful framework ever:Make them love Zope at the very first look:* Make installing Zope a double-click or one-command-only experience and
* offer a 30 minutes tutorial of programming an useful application  including an audiovisual show for an appetizer that offers a feeling  of 

Re: [Zope] Leave the ivory tower now!

2006-01-08 Thread Jean-Marc Orliaguet

Greg Fischer wrote:

Yes, we need hype!  And a hot looking site, WITH Web 2.0 features. 

Many of these frameworks are providing AJAX capabilities, simple 
graphics and data/object access without page reloads.  (like I am 
using with Dojo right now)  What does Zope not provide these features 
built-in?


And yes, about the central docs.  A ton of info is available right on 
Zope.org http://Zope.org, but I always find more on individual blogs 
or other google searches.  Zope.org http://Zope.org could use a more 
intuitive help finder maybe.  Actually, how aboot a Zopedigg?  Diggs 
on just Zope articles and such, with comments?  That would be hot!  
Better and easier than a wiki, IMHO.  The one thing I would say is, 
from my perspective, when I have info to share on Zope work I have 
done, I like to post on my blog or site, not Zope's. Because I like to 
provide a demo or maybe include things *my* way.  Having a ZopeDigg 
would allow us to post our work in a central repository, and look a 
little flashy too.


The video tutorial should be made.  Like RoR and Symfony-project 
have.  It shows beginners how easy something is to do.  And they will 
download it.  I did. 

Also, I know this will get some people flaming probably, but Zope 
needs more hype for DTML. I KNOW!  99% of you hate it.  But every time 
I show someone how to do it, their eyes light up.  It's very simple 
coming from ASP or PHP, once you see it in action.  ZPT is just plain 
confusing to me.  I hate to say this too, but I am doing much more in 
PHP these days, partly due to the fact that there exists a large dtml 
sucks attitude in the community.  And even though it has been said 
that DTML is not going away, if there is no hype about it, then it 
might.  And I don't want to keep using Zope without it. Yes, yes, I 
know DTML has many disadvantages, but it also has many advantages.  I 
wish there were more hype about it. 

So, here's a big wish of mine too.  What if Zope was a *complete* 
framework, including a web based IDE?  I dont mean the ZMI, which is 
hot in itself, but a full featured AJAX-ish IDE, built upon Zope. Drag 
and drop widgets and properties even. It would also have full database 
access built in. Mysql, Mssql, Oracle, Postgresql, all ready to go, 
without needing to purchase and configure a database adapter.  This 
would provide a web based, development framework like .NET using 
Visual Studio.  Only this would work on Zope, and therefore would run 
on Linux OR Windows!  It doesnt have to be so comprehensive like VS, 
but simple form editor with properties and XMLHTTPRequest capability 
would be great.  I think we would have a KILLER APP!


Well, maybe I am dreamin?  Just thought I'd give my 2 cents.



Hi! concerning the web based IDE I'm currently working on something like 
what you describe for Zope3.


You should get on the z3lab-list.  You can also get a blog on z3lab.org 
and post flash animations:

http://www.z3lab.org/
http://lists.nuxeo.com/mailman/listinfo/z3lab

Regards
/JM
___
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] Leave the ivory tower now!

2006-01-08 Thread Jonathan



To pour fuel on the flames...

+1 DTML
-1 ZPT

Why...

1) For 'quick and dirty' demos and rapid 
application prototypingDTML does the trick (yes, even including ZClasses), 
it isfast, easy, reasonably robustandit works!

2) For 'heavy lifting' (ie. intense computation, 
high loads, etc.) I prefer a 'product' approach.

3) For client-side 
functionality/controlI prefer an AJAX 
approach using a combination of _javascript_/HTML/XHTML/XHTML-MP plus server-side 
python scripts/external methods/products.

ZPT is a bit of a hybrid whichincreases 
overhead and doesn't really bring any new functionality to the table (for my 
applications and environment). Yes, for separating (well, mostly 
separating) content from display formatting ZPT is one possible solution, but 
the divorce of content and presentation isbetter achievedwith an 
AJAX type of approach.

I think Zope beginners would be better off using 
DTML (easier to learn, user's get quicker results and therefore have more 
satisfaction with Zope as a development platform), and then 'serious' 
development should be done using an AJAX approach with Zope 3 - the way of the 
futureimho:-)

If we had to make a choice for the future I would 
prefer Zope 2 + DTML and Zope 3 + AJAX (and consign ZPT to the 'good idea at the 
time' bin). Possibly, in the distant future, AJAX utilities/ides will 
exist which will make rapid prototyping and 'quick  dirty' demos feasible, 
in which case Zope 2 + DTML could fade into happy history.

Just my 1-1/2 cents.


Jonathan


  - Original Message - 
  From: 
  Greg Fischer 
  
  Cc: zope@zope.org 
  Sent: Sunday, January 08, 2006 5:06 
  PM
  Subject: Re: [Zope] Leave the ivory tower 
  now!
  Yes, we need hype! And a "hot" looking site, WITH Web 2.0 
  features. Many of these frameworks are providing AJAX 
  capabilities, simple graphics and data/object access without page 
  reloads. (like I am using with Dojo right now) What does Zope not 
  provide these features "built-in"? And yes, about the central 
  docs. A ton of info is available right on Zope.org, but I always find more on individual 
  blogs or other google searches. Zope.org 
  could use a more intuitive help finder maybe. Actually, how aboot a 
  Zopedigg? Diggs on just Zope articles and such, with comments? 
  That would be hot! Better and easier than a wiki, IMHO. The one 
  thing I would say is, from my perspective, when I have info to share on Zope 
  work I have done, I like to post on my blog or site, not Zope's. Because I 
  like to provide a demo or maybe include things *my* way. Having a 
  ZopeDigg would allow us to post our work in a central repository, and look a 
  little flashy too. The video tutorial should be made. Like RoR 
  and Symfony-project have. It shows beginners how easy something is to 
  do. And they will download it. I did. Also, I know 
  this will get some people flaming probably, but Zope needs more hype for DTML. 
  I KNOW! 99% of you hate it. But every time I show someone how to 
  do it, their eyes light up. It's very simple coming from ASP or PHP, 
  once you see it in action. ZPT is just plain confusing to me. I 
  hate to say this too, but I am doing much more in PHP these days, partly due 
  to the fact that there exists a large "dtml sucks" attitude in the 
  community. And even though it has been said that DTML is not going away, 
  if there is no hype about it, then it might. And I don't want to keep 
  using Zope without it. Yes, yes, I know DTML has many disadvantages, but it 
  also has many advantages. I wish there were more hype about it. 
  So, here's a big "wish" of mine too. What if Zope was a 
  *complete* framework, including a web based IDE? I dont mean the ZMI, 
  which is hot in itself, but a full featured AJAX-ish IDE, built upon Zope. 
  Drag and drop widgets and properties even. It would also have full database 
  access built in. Mysql, Mssql, Oracle, Postgresql, all ready to go, without 
  needing to purchase and configure a database adapter. This would provide 
  a web based, development framework like .NET using Visual Studio. Only 
  this would work on Zope, and therefore would run on Linux OR Windows! It 
  doesnt have to be so comprehensive like VS, but simple form editor with 
  properties and XMLHTTPRequest capability would be great. I think we 
  would have a KILLER APP! Well, maybe I am dreamin? Just thought 
  I'd give my 2 cents.Oh, and is the community growing? Well, I think 
  the Netcraft surveys say a lot. I know this isnt definitive, but I think 
  it's great info. Since I started using Zope in 2002, the sites using 
  Zope have grown from 6000 to 42000. Cool! 42000+ Sites in 
  2006http://survey.netcraft.com/Reports/0601/6000+ 
  Sites in 2002http://survey.netcraft.com/Reports/0201/ 
  Happy new year everyone!
  On 1/3/06, Jonathan 
  Cyr [EMAIL PROTECTED] wrote:
  Do we know Is the Zope community growing or 
shrinking? Is there even a problem? Is Python growing or 

[Zope] Strange ZEO related Tracebacks.

2006-01-08 Thread robert rottermann

Hi there,
Some customer of ours created got after doing some edition in plone the 
following trace backs

which I have no clue what could be the reason.
Only a restart of Zeo/Zope did fix it.

We are using Zope 2.8.5 on linux

What could be the reason for this?

thanks
Robert

   
Site Error


An error was encountered while publishing this resource.

KeyError
Sorry, a site error occurred.

Traceback (innermost last):

   * Module ZPublisher.Publish, line 187, in publish_module_standard
   * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in 
new_publish
   * Module ZPublisher.Publish, line 144, in publish
   * Module Zope2.App.startup, line 216, in zpublisher_exception_hook
   * Module ZPublisher.Publish, line 119, in publish
   * Module Zope2.App.startup, line 233, in commit
   * Module transaction._manager, line 84, in commit
   * Module transaction._transaction, line 381, in commit
   * Module transaction._transaction, line 379, in commit
   * Module transaction._transaction, line 432, in _commitResources
   * Module ZODB.Connection, line 651, in tpc_finish
   * Module ZEO.ClientStorage, line 974, in tpc_finish
   * Module ZEO.ClientStorage, line 1005, in _update_cache
   * Module ZEO.cache, line 293, in store
   * Module ZEO.cache, line 980, in add
   * Module ZEO.cache, line 915, in _makeroom

KeyError: 9265180 (Also, the following error occurred while attempting to 
render the standard error message, please see the event log for full details: 
already have current data for oid)

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 error log.

If the error persists please contact the site maintainer. Thank you for your 
patience.

-

Traceback (innermost last):
 Module ZPublisher.Publish, line 113, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 40, in call_object
 Module Shared.DC.Scripts.Bindings, line 311, in __call__
 Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
 Module Products.CMFCore.FSPageTemplate, line 195, in _exec
 Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
 Module Products.PageTemplates.PageTemplate, line 104, in pt_render
  - FSPageTemplate at /poellweb/niu/document_view used for 
/poellweb/niu/front-page
 Module TAL.TALInterpreter, line 206, in __call__
 Module TAL.TALInterpreter, line 250, in interpret
 Module TAL.TALInterpreter, line 711, in do_useMacro
 Module TAL.TALInterpreter, line 250, in interpret
 Module TAL.TALInterpreter, line 426, in do_optTag_tal
 Module TAL.TALInterpreter, line 411, in do_optTag
 Module TAL.TALInterpreter, line 406, in no_tag
 Module TAL.TALInterpreter, line 250, in interpret
 Module TAL.TALInterpreter, line 711, in do_useMacro
 Module TAL.TALInterpreter, line 250, in interpret
 Module TAL.TALInterpreter, line 481, in do_setGlobal_tal
 Module Products.PageTemplates.TALES, line 221, in evaluate
  - URL: file:CMFPlone/skins/plone_templates/global_defines.pt
  - Line 3, Column 0
  - Expression: PythonExpr putils.createTopLevelTabs(actions)
  - Names:
 {'container': PloneSite at /poellweb/niu,
  'context': ATDocument at /poellweb/niu/front-page,
  'default': Products.PageTemplates.TALES.Default instance at 0x40b71d6c,
  'here': ATDocument at /poellweb/niu/front-page,
  'loop': Products.PageTemplates.TALES.SafeMapping object at 0x44b0bfac,
  'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0x40b82dcc,
  'nothing': None,
  'options': {'args': ()},
  'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x44b0bfac,
  'request': HTTPRequest, 
URL=http://zope2:8280/poellweb/niu/front-page/document_view,
  'root': Application at ,
  'template': FSPageTemplate at /poellweb/niu/document_view used for 
/poellweb/niu/front-page,
  'traverse_subpath': [],
  'user': robert}
 Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
  - __traceback_info__: putils.createTopLevelTabs(actions)
 Module Python expression putils.createTopLevelTabs(actions), line 1, in 
expression
 Module Products.CMFPlone.PloneTool, line 741, in createTopLevelTabs
 Module Products.ZCatalog.Lazy, line 158, in __getitem__
 Module Products.ZCatalog.Catalog, line 127, in __getitem__
 Module ZODB.Connection, line 704, in setstate
 Module ZODB.Connection, line 742, in _setstate
 Module ZEO.ClientStorage, line 746, in load
 Module ZEO.ClientStorage, line 774, in loadEx
 Module ZEO.cache, line 279, in store
ValueError: already have current data for oid


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

Re: [Zope] Leave the ivory tower now!

2006-01-08 Thread David H




Jonathan wrote:

  
  
  
  To pour fuel on the flames...
   
  +1 DTML
  -1 ZPT
   
  Why...
   
  1) For 'quick and dirty' demos and
rapid application prototyping DTML does the trick (yes, even including
ZClasses), it is fast, easy, reasonably robust and it works!
   
  2) For 'heavy lifting' (ie. intense
computation, high loads, etc.) I prefer a 'product' approach.
   
  3) For client-side
functionality/control I prefer an
AJAX approach using a combination of _javascript_/HTML/XHTML/XHTML-MP
plus server-side python scripts/external methods/products.
   
  ZPT is a bit of a hybrid
which increases overhead and doesn't really bring any new functionality
to the table (for my applications and environment).  Yes, for
separating (well, mostly separating) content from display formatting
ZPT is one possible solution, but the divorce of content and
presentation is better achieved with an AJAX type of approach.
   
  I think Zope beginners would be
better off using DTML (easier to learn, user's get quicker results and
therefore have more satisfaction with Zope as a development platform),
and then 'serious' development should be done using an AJAX approach
with Zope 3 - the way of the future imho :-)
   
  If we had to make a choice for the
future I would prefer Zope 2 + DTML and Zope 3 + AJAX (and consign ZPT
to the 'good idea at the time' bin).  Possibly, in the distant future,
AJAX utilities/ides will exist which will make rapid prototyping and
'quick  dirty' demos feasible, in which case Zope 2 + DTML could
fade into happy history.
   
  Just my 1-1/2 cents.
   
   
  Jonathan
   
  
-
Origin
  


Think about it:  we argue about Z Classes vs DTML vs ZPT + python
scripts vs Products.  Its all good.

Zope + 1
  
 :-) 

David




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