Mailing List Archive

CVS: Products/ZopeVersionControl - CHANGES.txt:1.5 ZopeRepository.py:1.5
Update of /cvs-repository/Products/ZopeVersionControl
In directory cvs.zope.org:/tmp/cvs-serv12011

Modified Files:
CHANGES.txt ZopeRepository.py
Log Message:
- ZopeRepository.py: make ZR addable via GenericSetup toolset

See http://www.zope.org/Collectors/CMF/438 .


=== Products/ZopeVersionControl/CHANGES.txt 1.4 => 1.5 ===
--- Products/ZopeVersionControl/CHANGES.txt:1.4 Mon Apr 4 11:52:40 2005
+++ Products/ZopeVersionControl/CHANGES.txt Wed May 31 06:41:42 2006
@@ -2,6 +2,9 @@

After ZopeVersionControl 0.3.1

+ - ZopeRepository.py: make ZR addable via GenericSetup toolset
+ (http://www.zope.org/Collectors/CMF/438).
+
- Utility.py: Import cleanup, including compatibility with ZODB 3.3+
location of 'refrencesf'.



=== Products/ZopeVersionControl/ZopeRepository.py 1.4 => 1.5 ===
--- Products/ZopeVersionControl/ZopeRepository.py:1.4 Tue May 13 18:12:31 2003
+++ Products/ZopeVersionControl/ZopeRepository.py Wed May 31 06:41:42 2006
@@ -46,9 +46,10 @@
manage_main._setName('manage_main')
manage = manage_main

- def __init__(self, id, title=''):
+ def __init__(self, id=None, title=''):
Repository.Repository.__init__(self)
- self.id = id
+ if id is not None:
+ self._setId( id )
self.title = title

security.declareProtected(
@@ -90,7 +91,8 @@

def addRepository(self, id, title='', REQUEST=None):
"""Zope object constructor function."""
- object = ZopeRepository(id, title)
+ object = ZopeRepository(title=title)
+ object._setId( id )
self._setObject(id, object)
object = self._getOb(id)
if REQUEST is not None:

_______________________________________________
Zope-CVS maillist - Zope-CVS@zope.org
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS