revisionmanager-devel Mailing List for RevisionManager
Brought to you by:
philikon
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(10) |
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(1) |
Mar
|
Apr
(12) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
|
Nov
|
Dec
|
From: panjunyong <pan...@us...> - 2004-09-08 16:12:06
|
Update of /cvsroot/revisionmanager/CMFRevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25551 Modified Files: README.txt Log Message: prepare release Index: README.txt =================================================================== RCS file: /cvsroot/revisionmanager/CMFRevisionManager/README.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** README.txt 8 Sep 2004 15:43:40 -0000 1.3 --- README.txt 8 Sep 2004 16:11:48 -0000 1.4 *************** *** 9,23 **** Features - - based on mature Products: CVS and RevisionManager ! - lightweight, compatible with all existing CMF Contents, install and play, no adapters needed ! - support two way syncronize: ! * CVS->ZODB: edit via CVS and update it to CMF/Plone ! * ZODB->CVS: edit via CMF/Plone and checkin to CVS ! - all cvs features: history, revert, diff Install --- 9,28 ---- Features ! * based on mature Products: CVS and RevisionManager ! * compatible with all CMF Contents those support WebDav, such as Document, File, Image, Wiki Page, ... ! * easy to use, install and play, no adapters needed ! * support two way syncronize: ! o CVS->ZODB: edit via CVS and update it to CMF/Plone ! ! o ZODB->CVS: edit via CMF/Plone and checkin to CVS ! ! * all cvs features: history, revert, diff ! ! * you can control where and what to be revisioned Install |
From: panjunyong <pan...@us...> - 2004-09-08 15:43:53
|
Update of /cvsroot/revisionmanager/CMFRevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20256 Modified Files: README.txt Added Files: LICENSE.txt Log Message: add license info --- NEW FILE: LICENSE.txt --- CMFRevisionManager - Copyright (C) 2004 Pan Junyong (panjy at zopechina.com) All Rights Reserved. This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. Zope Public License (ZPL) Version 2.1 A copyright notice accompanies this license document that identifies the copyright holders. This license has been certified as open source. It has also been designated as GPL compatible by the Free Software Foundation (FSF). Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions in source code must retain the accompanying copyright notice, this list of conditions, and the following disclaimer. 2. Redistributions in binary form must reproduce the accompanying copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Names of the copyright holders must not be used to endorse or promote products derived from this software without prior written permission from the copyright holders. 4. The right to distribute this software or to use it for any purpose does not give you the right to use Servicemarks (sm) or Trademarks (tm) of the copyright holders. Use of them is covered by separate agreement with the copyright holders. 5. If any files are modified, you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. Disclaimer THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Index: README.txt =================================================================== RCS file: /cvsroot/revisionmanager/CMFRevisionManager/README.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README.txt 8 Sep 2004 10:35:44 -0000 1.2 --- README.txt 8 Sep 2004 15:43:40 -0000 1.3 *************** *** 10,17 **** --- 10,20 ---- - based on mature Products: CVS and RevisionManager + - lightweight, compatible with all existing CMF Contents, install and play, no adapters needed + - support two way syncronize: * CVS->ZODB: edit via CVS and update it to CMF/Plone + * ZODB->CVS: edit via CMF/Plone and checkin to CVS *************** *** 37,40 **** --- 40,47 ---- You can do all versioning operations there. + License + + ZPL 2.1, see LICENSE.txt + Author |
From: panjunyong <pan...@us...> - 2004-09-08 11:16:59
|
Update of /cvsroot/revisionmanager/RevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv807 Modified Files: CHANGES.txt RevisionManager.py Log Message: bug fix: lazyTraverse use objectsIds to find object, zope's restrictTraverse is uncontrollable. Index: RevisionManager.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/RevisionManager.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RevisionManager.py 7 Sep 2004 16:39:00 -0000 1.7 --- RevisionManager.py 8 Sep 2004 11:16:43 -0000 1.8 *************** *** 350,355 **** if not self._v_lazy_traverse.has_key(path): obj = aq_parent(aq_inner(self)) ! if path != "": ! obj = obj.restrictedTraverse(path, default) # set the shortcut self._v_lazy_traverse[path] = obj --- 350,360 ---- if not self._v_lazy_traverse.has_key(path): obj = aq_parent(aq_inner(self)) ! for id in path.split('/'): ! if id in obj.objectIds(): ! obj = getattr(obj, id) ! else: ! obj = default ! break ! # set the shortcut self._v_lazy_traverse[path] = obj Index: CHANGES.txt =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/CHANGES.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CHANGES.txt 12 Apr 2004 16:09:36 -0000 1.5 --- CHANGES.txt 8 Sep 2004 11:16:43 -0000 1.6 *************** *** 2,5 **** --- 2,7 ---- CHANGES + * bug fix: lazyTraverse use objectsIds to find object, zope's restrictTraverse is uncontrollable. + * add new getRevision method: get certain history revision of a file --panjunyong |
From: panjunyong <pan...@us...> - 2004-09-08 10:35:59
|
Update of /cvsroot/revisionmanager/CMFRevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25394 Modified Files: README.txt Added Files: INSTALL.txt Log Message: update doc --- NEW FILE: INSTALL.txt --- Installing CMFRevisionManager 1. Requirements - Zope 2.6 or later - Archetypes - CMF 1.4 or later - CMFFormController - RevisionManager cvs version: sf.net/projects/revisionmanager - RevisionObject cvs version: sf.net/projects/revisionmanager - ZopeTree: http://zope.org/Members/philikon/ZopeTree Note: CMFRevisionManager requires the CVS version of RevisionManager and Revision Objects and they are includeded in the tarball. 2. put the related products into the Zope Products directory, and restart zope 3. install RevisionContents via quickinstaller Index: README.txt =================================================================== RCS file: /cvsroot/revisionmanager/CMFRevisionManager/README.txt,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** README.txt 8 Sep 2004 10:15:21 -0000 1.1.1.1 --- README.txt 8 Sep 2004 10:35:44 -0000 1.2 *************** *** 20,28 **** Install ! - CMFRevisionManager requires the CVS version of RevisionManager and RevisionObjects. All these packages are includeded in the tarball. ! ! - put the related products into the Zope Products directory, and restart zope ! ! - install RevisionContents via quickinstaller Usage --- 20,24 ---- Install ! see INSTALL.txt Usage *************** *** 30,34 **** - add a RevisionManager content throw CMF/Plone. ! - configure the RevisionManager Author --- 26,39 ---- - add a RevisionManager content throw CMF/Plone. ! - configure the RevisionManager ! ! * configure the server and client as what RevisionManager does ! ! * set versioning enabled portal types ! ! - map cvs files to CMF contents, or, ! ! - you will find you versioning enabled content have a new 'versioning' tab. ! You can do all versioning operations there. Author *************** *** 36,37 **** --- 41,45 ---- Pan Junyong, http://www.zopechina.com, panjy AT zopechina.com + Credit + + philikon's powerfull RevisionManager |
From: panjunyong <pan...@us...> - 2004-09-08 10:21:33
|
Update of /cvsroot/revisionmanager/CMFRevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22784 Added Files: ChangeLog.txt TODO.txt Log Message: add doc files --- NEW FILE: ChangeLog.txt --- 0.1 initial version --- NEW FILE: TODO.txt --- - no ZMI interface - i18n |
From: panjunyong <pan...@us...> - 2004-09-07 16:39:11
|
Update of /cvsroot/revisionmanager/RevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29905 Modified Files: RevisionManager.py Log Message: module is seperate parameter in saveSettings. it is not in request Index: RevisionManager.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/RevisionManager.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RevisionManager.py 12 Apr 2004 16:09:36 -0000 1.6 --- RevisionManager.py 7 Sep 2004 16:39:00 -0000 1.7 *************** *** 1535,1540 **** # only take 'module' from REQUEST if settings doesn't already have it module = self._settings.get("module", REQUEST.get("module")) ! REQUEST.set("module", module) ! self.saveSettings(REQUEST) message = "Saved changes" --- 1535,1539 ---- # only take 'module' from REQUEST if settings doesn't already have it module = self._settings.get("module", REQUEST.get("module")) ! self.saveSettings(REQUEST, module) message = "Saved changes" |
From: <ben...@id...> - 2004-05-25 08:51:46
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
From: panjunyong <pan...@us...> - 2004-04-12 16:24:06
|
Update of /cvsroot/revisionmanager/RevisionObjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23603 Modified Files: CHANGES.txt Revisioner.py Log Message: add two method: rm_getRevision and rm_revert Index: Revisioner.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionObjects/Revisioner.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Revisioner.py 10 Apr 2004 16:02:50 -0000 1.3 --- Revisioner.py 12 Apr 2004 16:10:15 -0000 1.4 *************** *** 24,30 **** names = ['_rm_getRM', 'rm_getRelativePath', 'rm_getSettings', ! 'rm_getStatus', 'rm_getDiff', 'rm_getLog', 'rm_add', 'rm_remove', 'rm_updateStatus', 'rm_update', ! 'rm_forceCheckout', 'rm_commit', 'rm_versioningForm', 'rm_diffForm', 'rm_logForm'] --- 24,30 ---- names = ['_rm_getRM', 'rm_getRelativePath', 'rm_getSettings', ! 'rm_getStatus', 'rm_getDiff', 'rm_getLog', 'rm_add', 'rm_revert', 'rm_remove', 'rm_updateStatus', 'rm_update', ! 'rm_forceCheckout', 'rm_getRevision', 'rm_commit', 'rm_versioningForm', 'rm_diffForm', 'rm_logForm'] *************** *** 45,52 **** (Permissions.RMManage, ('rm_getRelativePath', 'rm_getStatus', 'rm_getDiff', ! 'rm_getLog', 'rm_updateStatus', 'rm_versioningForm', 'rm_diffForm', 'rm_logForm')), (Permissions.RMUpdate, ! ('rm_update', 'rm_forceCheckout')), (Permissions.RMAddRemove, ('rm_add', 'rm_remove')), --- 45,52 ---- (Permissions.RMManage, ('rm_getRelativePath', 'rm_getStatus', 'rm_getDiff', ! 'rm_getLog', 'rm_updateStatus', 'rm_getRevision', 'rm_versioningForm', 'rm_diffForm', 'rm_logForm')), (Permissions.RMUpdate, ! ('rm_update', 'rm_forceCheckout', 'rm_revert')), (Permissions.RMAddRemove, ('rm_add', 'rm_remove')), *************** *** 86,95 **** return {} ! def rm_getDiff(self): rm = self._rm_getRM() if rm is None: return '' path = self.rm_getRelativePath() ! return rm.diff([path]) def rm_getLog(self): --- 86,95 ---- return {} ! def rm_getDiff(self, rev1='', rev2=''): rm = self._rm_getRM() if rm is None: return '' path = self.rm_getRelativePath() ! return rm.diff([path], rev1, rev2) def rm_getLog(self): *************** *** 100,103 **** --- 100,115 ---- return rm.log([path]) + def rm_revert(self, REQUEST=None, RESPONSE=None, rev=''): + """ + revert to a history revision + """ + rm = self._rm_getRM() + if rm is None: + return '' + path = self.rm_getRelativePath() + rm.merge(path, rev) + if RESPONSE: + RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') + # management views *************** *** 106,110 **** rm_logForm = PageTemplateFile("www/log.pt", globals()) ! def rm_add(self, REQUEST, RESPONSE): """ Add to the repository --- 118,122 ---- rm_logForm = PageTemplateFile("www/log.pt", globals()) ! def rm_add(self, REQUEST=None, RESPONSE=None): """ Add to the repository *************** *** 115,119 **** path = self.rm_getRelativePath() rm.add([path]) ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_remove(self, REQUEST=None, RESPONSE=None): --- 127,132 ---- path = self.rm_getRelativePath() rm.add([path]) ! if RESPONSE: ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_remove(self, REQUEST=None, RESPONSE=None): *************** *** 176,177 **** --- 189,201 ---- if RESPONSE: RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') + + def rm_getRevision(self, REQUEST=None, RESPONSE=None, rev=''): + """ + get a historic reivision + """ + rm = self._rm_getRM() + if rm is None: + return '' + path = self.rm_getRelativePath() + return rm.rm_getRevision(REQUEST, RESPONSE, path, rev) + Index: CHANGES.txt =================================================================== RCS file: /cvsroot/revisionmanager/RevisionObjects/CHANGES.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CHANGES.txt 10 Apr 2004 04:48:14 -0000 1.1 --- CHANGES.txt 12 Apr 2004 16:10:15 -0000 1.2 *************** *** 1,2 **** --- 1,11 ---- + v1.2 + + * add method getRevision to get a history revision(panjunyong) + + * add method revert (panjunyong) + + * diff can work between any to version now (panjunyong) + + * make method callable outside zmi (panjunyong) v1.1 (2003-05-20) |
From: panjunyong <pan...@us...> - 2004-04-12 16:23:27
|
Update of /cvsroot/revisionmanager/RevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23499 Modified Files: CHANGES.txt RevisionManager.py Log Message: add new getRevision method: get certain history revision of a file Index: RevisionManager.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/RevisionManager.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** RevisionManager.py 11 Apr 2004 07:15:26 -0000 1.5 --- RevisionManager.py 12 Apr 2004 16:09:36 -0000 1.6 *************** *** 1636,1639 **** --- 1636,1677 ---- RESPONSE.redirect(self.absolute_url() + '/rm_statusForm') + security.declareProtected(Permissions.RMManage, "rm_getRevision") + def rm_getRevision(self, REQUEST=None, RESPONSE=None, path='', revision=''): + """ + get a history revision. + update to a new temp dir, and send it back + """ + # make the temp work dir, setup the new settings + tmpWorkDir = tempfile.mkdtemp() + + settings = self._settings + kw = settings.copy() + kw['work_dir']=tmpWorkDir + + # setup the cvswrapper and update + if (kw['use_zope_uid'] or + kw['access_method'] == 'ext'): + user = getSecurityManager().getUser() + kw['user_name'] = user.getUserName() + cvs = CVSWrapper(**kw) + + try: + cvs.checkout(os.path.join(settings['module'], path), revision) + + # get the file + absoluteFileName = os.path.join(tmpWorkDir, settings['module'], path) + out = open(absoluteFileName, 'rb') + data = out.read() + out.close() + finally: + # delete the whole workdir + shutil.rmtree(tmpWorkDir) + + # return to file + basename = os.path.basename(absoluteFileName) + RESPONSE.setHeader('Content-Disposition', + 'attachment; filename=%s' % basename) + return data + # ############################################################################ Index: CHANGES.txt =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/CHANGES.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CHANGES.txt 9 Apr 2004 09:09:05 -0000 1.4 --- CHANGES.txt 12 Apr 2004 16:09:36 -0000 1.5 *************** *** 2,5 **** --- 2,7 ---- CHANGES + * add new getRevision method: get certain history revision of a file --panjunyong + * Add context parameter to createObject method. This make RevisionManager compatible with creation of CMF content which need context when use |
From: panjunyong <pan...@us...> - 2004-04-11 07:29:02
|
Update of /cvsroot/revisionmanager/RevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12329 Modified Files: RevisionManager.py Log Message: if save_properties is not check, it is not passed to the REQUEST. strange :-( so I set the default to 0, if it is not pass in Index: RevisionManager.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/RevisionManager.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RevisionManager.py 9 Apr 2004 08:11:48 -0000 1.4 --- RevisionManager.py 11 Apr 2004 07:15:26 -0000 1.5 *************** *** 320,324 **** 'cvs_rsh': mapping.get("cvs_rsh", "rsh"), 'comp_level': mapping.get("comp_level", "3"), ! 'save_properties': mapping.get("save_properties", 1), 'cvs_passfile': CVSPASSFILE, 'include_history': mapping.get('include_history', 0), --- 320,324 ---- 'cvs_rsh': mapping.get("cvs_rsh", "rsh"), 'comp_level': mapping.get("comp_level", "3"), ! 'save_properties': mapping.get("save_properties", 0), 'cvs_passfile': CVSPASSFILE, 'include_history': mapping.get('include_history', 0), |
From: panjunyong <pan...@us...> - 2004-04-10 16:16:30
|
Update of /cvsroot/revisionmanager/RevisionObjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31025 Modified Files: Revisioner.py Log Message: add default value to make mothed used out of ZMI Index: Revisioner.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionObjects/Revisioner.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Revisioner.py 10 Apr 2004 04:51:59 -0000 1.2 --- Revisioner.py 10 Apr 2004 16:02:50 -0000 1.3 *************** *** 117,121 **** RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_remove(self, REQUEST, RESPONSE): """ Remove from repository --- 117,121 ---- RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_remove(self, REQUEST=None, RESPONSE=None): """ Remove from repository *************** *** 126,130 **** path = self.rm_getRelativePath() rm.remove([path]) ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_updateStatus(self, REQUEST=None, RESPONSE=None): --- 126,131 ---- path = self.rm_getRelativePath() rm.remove([path]) ! if RESPONSE: ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_updateStatus(self, REQUEST=None, RESPONSE=None): *************** *** 140,144 **** RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_update(self, REQUEST, RESPONSE): """ Update --- 141,145 ---- RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_update(self, REQUEST=None, RESPONSE=None): """ Update *************** *** 149,155 **** path = self.rm_getRelativePath() rm.update([path]) ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_commit(self, REQUEST, RESPONSE, log_message): """ Commit --- 150,157 ---- path = self.rm_getRelativePath() rm.update([path]) ! if RESPONSE: ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_commit(self, REQUEST=None, RESPONSE=None, log_message=''): """ Commit *************** *** 160,166 **** path = self.rm_getRelativePath() rm.commit(log_message, [path]) ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_forceCheckout(self, REQUEST, RESPONSE): """ Force checkout --- 162,169 ---- path = self.rm_getRelativePath() rm.commit(log_message, [path]) ! if RESPONSE: ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_forceCheckout(self, REQUEST=None, RESPONSE=None): """ Force checkout *************** *** 171,173 **** path = self.rm_getRelativePath() rm.forceCheckout([path]) ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') --- 174,177 ---- path = self.rm_getRelativePath() rm.forceCheckout([path]) ! if RESPONSE: ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') |
From: panjunyong <pan...@us...> - 2004-04-10 05:05:24
|
Update of /cvsroot/revisionmanager/RevisionObjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26489 Modified Files: Revisioner.py Log Message: use the method outside zmi Index: Revisioner.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionObjects/Revisioner.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Revisioner.py 10 Apr 2004 04:48:14 -0000 1.1 --- Revisioner.py 10 Apr 2004 04:51:59 -0000 1.2 *************** *** 128,132 **** RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_updateStatus(self, REQUEST, RESPONSE): """ Update status --- 128,132 ---- RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') ! def rm_updateStatus(self, REQUEST=None, RESPONSE=None): """ Update status *************** *** 137,141 **** path = self.rm_getRelativePath() rm.status([path]) ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_update(self, REQUEST, RESPONSE): --- 137,142 ---- path = self.rm_getRelativePath() rm.status([path]) ! if RESPONSE: ! RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_update(self, REQUEST, RESPONSE): |
From: panjunyong <pan...@us...> - 2004-04-10 05:03:10
|
Update of /cvsroot/revisionmanager/RevisionObjects/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26215 Added Files: diff.pt log.pt versioning.pt Log Message: import to cvs --- NEW FILE: diff.pt --- <h1 tal:replace="structure here/manage_page_header"/> <h2 tal:replace="structure here/manage_tabs"/> <!-- $Id: diff.pt,v 1.1 2004/04/10 04:49:45 panjunyong Exp $ --> <p class="form-text"> Output of diff: </p> <pre tal:content="here/rm_getDiff"> </pre> <h1 tal:replace="structure here/manage_page_footer"/> --- NEW FILE: versioning.pt --- <h1 tal:replace="structure here/manage_page_header"/> <h2 tal:replace="structure here/manage_tabs"/> <!-- $Id: versioning.pt,v 1.1 2004/04/10 04:49:45 panjunyong Exp $ --> <tal:nothing tal:define="global status here/rm_getStatus; global settings here/rm_getSettings"/> <form action="" method="post" tal:attributes="action here/absolute_url"> <tal:block tal:condition="not:status"> <p class="form-help"> This object is currently not in the repository managed by a RevisionManager instance in a parent folder. To add the object to the repository, click the button below. </p> <p> <input type="submit" name="rm_add:method" value="add to repository" /> </p> </tal:block> <p tal:condition="status"> <tal:nothing tal:define="global uptodate python:status['status']=='Up-to-date'"/> <input type="submit" name="rm_updateStatus:method" value="update information" /> <input type="submit" name="rm_forceCheckout:method" value="force checkout" /> | <input type="submit" name="rm_update:method" value="update" /> <input type="submit" name="rm_diffForm:method" value=" diff " /> <input type="submit" name="rm_logForm:method" value=" log " /> <input type="submit" name="rm_remove:method" value="remove" /> </p> </form> <tal:block tal:condition="status"> <table> <tr class="row-hilite"> <td class="form-text">Filename:</td> <td class="form-text" tal:content="here/rm_getRelativePath"></td> </tr> <tr class="row-normal"> <td class="form-text">Status:</td> <td class="form-text" tal:content="status/status"></td> </tr> <tr class="row-hilite"> <td class="form-text">Working revision:</td> <td class="form-text" tal:content="status/wrev"></td> </tr> <tr class="row-normal"> <td class="form-text">Repository revision:</td> <td class="form-text" tal:content="status/rrev"></td> </tr> <tal:block tal:condition="settings/save_properties | nothing"> <tal:nothing tal:define=" global uptodate python:status['status']=='Up-to-date' and status['prop_status'].get('status', '')=='Up-to-date'" /> <tr class="row-normal"> <td class="form-text">Property status:</td> <td class="form-text" tal:content="status/prop_status/status"></td> </tr> <tr class="row-hilite"> <td class="form-text">Property working revision:</td> <td class="form-text" tal:content="status/prop_status/wrev"></td> </tr> <tr class="row-normal"> <td class="form-text">Property repository revision:</td> <td class="form-text" tal:content="status/prop_status/rrev"></td> </tr> </tal:block> <tr class="row-hilite"> <td class="form-text">Sticky Tag:</td> <td class="form-text" tal:content="python:status['stag'] or '(none)'"></td> </tr> <tr class="row-normal"> <td class="form-text">Sticky Date:</td> <td class="form-text" tal:content="status/sdate"></td> </tr> <tr class="row-hilite"> <td class="form-text">Sticky Options:</td> <td class="form-text" tal:content="status/sopt"></td> </tr> <tr class="row-normal" tal:condition="status/tags"> <td class="form-text" valign="top">Existing Tags:</td> <td class="form-text"> <table> <tr tal:repeat="tag status/tags/items"> <td tal:content="python:tag[0]">tag name</td> <td>(<tal:nothing tal:replace="python:tag[1]"/>)</td> </tr> </table> </td> </tr> </table> <form action="rm_commit" method="post" tal:condition="not:uptodate"> <p class="form-text">Log message:</p> <p> <textarea name="log_message" cols="80" rows="10"> </textarea> </p> <input type="submit" value="commit"/> </form> </tal:block> <h1 tal:replace="structure here/manage_page_footer"/> --- NEW FILE: log.pt --- <h1 tal:replace="structure here/manage_page_header"/> <h2 tal:replace="structure here/manage_tabs"/> <!-- $Id: log.pt,v 1.1 2004/04/10 04:49:45 panjunyong Exp $ --> <p class="form-help"> History log information: </p> <table tal:define="log here/rm_getLog; filenames log/keys; nuthin filenames/sort" tal:repeat="filename filenames" width="100%" cellspacing="0" cellpadding="2" border="0"> <tr class="row-hilite"> <td colspan="3" class="list-item"> File: <tal:replace tal:replace="filename" /> </td> </tr> <tr class="list-header"> <td class="list-item"><b>Revision</b></td> <td class="list-item"><b>Information</b></td> <td class="list-item"><b>Log Message</b></td> </tr> <tr tal:define="revisions python:log[filename]['revisions']" tal:repeat="rev revisions" tal:attributes="class python:'row-normal' and repeat['rev'].odd() or 'row-hilite'"> <td valign="top" class="list-item" tal:content="rev/revision">revision</td> <td valign="top" class="list-item"> Date: <tal:nothing tal:replace="rev/date" /><br/> Author: <tal:nothing tal:replace="rev/author" /><br/> State: <tal:nothing tal:replace="rev/state" /><br/> <tal:block tal:condition="rev/lines"> Lines: <tal:nothing tal:replace="rev/lines"/> </tal:block> </td> <td valign="top" class="list-item"> <pre tal:content="rev/log"> log </pre> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table> <h1 tal:replace="structure here/manage_page_footer"/> |
From: panjunyong <pan...@us...> - 2004-04-10 05:01:40
|
Update of /cvsroot/revisionmanager/RevisionObjects In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25956 Added Files: CHANGES.txt MPL-1.1.html README.txt Revisioner.py __init__.py version.txt Log Message: import to cvs --- NEW FILE: version.txt --- RevisionObjects-1-1 --- NEW FILE: CHANGES.txt --- v1.1 (2003-05-20) * Added support for the new property synchronization feature in RevisionManager. v1.0 (not publicly released) --- NEW FILE: __init__.py --- # # RevisionObjects # # Copyright (c) 2001-2003 by Philipp "philiKON" von Weitershausen # # This software is distributed under the terms of the Mozilla Public # License (MPL) # """ $Id: __init__.py,v 1.1 2004/04/10 04:48:14 panjunyong Exp $ """ from AccessControl import ClassSecurityInfo from Globals import InitializeClass from Revisioner import Revisioner # classes to patch from OFS.DTMLDocument import DTMLDocument from OFS.DTMLMethod import DTMLMethod from OFS.Image import File, Image from Products.ZSQLMethods.SQL import SQL from Products.PythonScripts.PythonScript import PythonScript from Products.ExternalMethod.ExternalMethod import ExternalMethod from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate classes_to_patch = [ DTMLDocument, DTMLMethod, File, Image, SQL, PythonScript, ExternalMethod, ZopePageTemplate ] for klass in classes_to_patch: for name in Revisioner.names: setattr(klass, name, getattr(Revisioner, name)) # patch manage_options klass.manage_options = ( (klass.manage_options[0],) + Revisioner.manage_options + klass.manage_options[1:] ) # add permissions # we have go up the ass to reach the brain, i.e. go through the # class's __dict__ ac_permissions = klass.__dict__.get('__ac_permissions__', ()) ac_permissions += Revisioner.permissions klass.__dict__['__ac_permissions__'] = ac_permissions # make sure that permissions are re-read now that we monkeyd with # them InitializeClass(klass) --- NEW FILE: Revisioner.py --- # # Revisioner # # Copyright (c) 2001-2003 by Philipp "philiKON" von Weitershausen # # This software is distributed under the terms of the Mozilla Public # License (MPL) # """ $Id: Revisioner.py,v 1.1 2004/04/10 04:48:14 panjunyong Exp $ """ from Acquisition import aq_acquire from Products.PageTemplates.PageTemplateFile import PageTemplateFile from Products.RevisionManager import Permissions class Revisioner: """ This class is actually never instanciated. We just use it to rip out the methods and views later. """ names = ['_rm_getRM', 'rm_getRelativePath', 'rm_getSettings', 'rm_getStatus', 'rm_getDiff', 'rm_getLog', 'rm_add', 'rm_remove', 'rm_updateStatus', 'rm_update', 'rm_forceCheckout', 'rm_commit', 'rm_versioningForm', 'rm_diffForm', 'rm_logForm'] def _haveRevisionManager(self): try: aq_acquire(self, "RevisionManager") return 1 except AttributeError: return 0 manage_options = ( {'label': 'Versioning', 'action': 'rm_versioningForm', 'filter': _haveRevisionManager }, ) permissions = ( (Permissions.RMManage, ('rm_getRelativePath', 'rm_getStatus', 'rm_getDiff', 'rm_getLog', 'rm_updateStatus', 'rm_versioningForm', 'rm_diffForm', 'rm_logForm')), (Permissions.RMUpdate, ('rm_update', 'rm_forceCheckout')), (Permissions.RMAddRemove, ('rm_add', 'rm_remove')), (Permissions.RMCommit, ('rm_commit')) ) def _rm_getRM(self): try: return aq_acquire(self, "RevisionManager") except AttributeError: return None def rm_getRelativePath(self): rm = self._rm_getRM() if rm is None: return '' phys_path = self.getPhysicalPath() rm_path = rm.getPhysicalPath() i = 0 while rm_path[i] == phys_path[i]: i += 1 return "/".join(phys_path[i:]) def rm_getSettings(self): rm = self._rm_getRM() return rm.getSettings() def rm_getStatus(self): rm = self._rm_getRM() if rm is None: return {} path = self.rm_getRelativePath() try: return rm.getStatus(path) except KeyError: return {} def rm_getDiff(self): rm = self._rm_getRM() if rm is None: return '' path = self.rm_getRelativePath() return rm.diff([path]) def rm_getLog(self): rm = self._rm_getRM() if rm is None: return {} path = self.rm_getRelativePath() return rm.log([path]) # management views rm_versioningForm = PageTemplateFile("www/versioning.pt", globals()) rm_diffForm = PageTemplateFile("www/diff.pt", globals()) rm_logForm = PageTemplateFile("www/log.pt", globals()) def rm_add(self, REQUEST, RESPONSE): """ Add to the repository """ rm = self._rm_getRM() if rm is None: return path = self.rm_getRelativePath() rm.add([path]) RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_remove(self, REQUEST, RESPONSE): """ Remove from repository """ rm = self._rm_getRM() if rm is None: return path = self.rm_getRelativePath() rm.remove([path]) RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_updateStatus(self, REQUEST, RESPONSE): """ Update status """ rm = self._rm_getRM() if rm is None: return path = self.rm_getRelativePath() rm.status([path]) RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_update(self, REQUEST, RESPONSE): """ Update """ rm = self._rm_getRM() if rm is None: return path = self.rm_getRelativePath() rm.update([path]) RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_commit(self, REQUEST, RESPONSE, log_message): """ Commit """ rm = self._rm_getRM() if rm is None: return path = self.rm_getRelativePath() rm.commit(log_message, [path]) RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') def rm_forceCheckout(self, REQUEST, RESPONSE): """ Force checkout """ rm = self._rm_getRM() if rm is None: return path = self.rm_getRelativePath() rm.forceCheckout([path]) RESPONSE.redirect(self.absolute_url() + '/rm_versioningForm') --- NEW FILE: README.txt --- RevisionObjects for RevisionManager What is RevisionObjects? RevisionObjects is a Zope product which adds a new tab called 'Versioning' to the most common Zope objects that can be revision controlled with RevisionManager. In this tab, you can execute most common CVS actions on this object without having to constantly switch between the object's management screens and your RevisionManager. Requirements - Zope 2.5 or better (runs with 2.4 with PageTemplates installed) - RevisionManager 1.2 or better and its requirements Installation Simply unpack the installation archive into your 'Products' directory. License Released under the terms of the Mozilla Public License (MPL) unless otherwise stated. Author Philipp "philiKON" von Weitershausen, philikon AT philikon DOT de. Credits Thanks to ZopeMag.com for sponsoring development. --- NEW FILE: MPL-1.1.html --- <!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Mozilla Public License version 1.1</title> </head> <body text="#000000" bgcolor="#ffffff" link="#0000ee" vlink="#551a8b" alink="#ff0000"> <center> <b><font size="+2">MOZILLA PUBLIC LICENSE</font></b> <br><b>Version 1.1</b> <p></p> <hr width="20%"> </center> <p><b>1. Definitions.</b> </p><ul><b>1.0.1. "Commercial Use" </b>means distribution or otherwise making the Covered Code available to a third party. <p><b>1.1. ''Contributor''</b> means each entity that creates or contributes to the creation of Modifications. </p><p><b>1.2. ''Contributor Version''</b> means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor. </p><p><b>1.3. ''Covered Code''</b> means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof<b>.</b> </p><p><b>1.4. ''Electronic Distribution Mechanism''</b> means a mechanism generally accepted in the software development community for the electronic transfer of data. </p><p><b>1.5. ''Executable''</b> means Covered Code in any form other than Source Code. </p><p><b>1.6. ''Initial Developer''</b> means the individual or entity identified as the Initial Developer in the Source Code notice required by <b>Exhibit A</b>. </p><p><b>1.7. ''Larger Work''</b> means a work which combines Covered Code or portions thereof with code not governed by the terms of this License. </p><p><b>1.8. ''License''</b> means this document. </p><p><b>1.8.1. "Licensable"</b> means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein. </p><p><b>1.9. ''Modifications''</b> means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is: </p><ul><b>A.</b> Any addition to or deletion from the contents of a file containing Original Code or previous Modifications. <p><b>B.</b> Any new file that contains any part of the Original Code or previous Modifications. <br> </p></ul> <b>1.10. ''Original Code''</b> means Source Code of computer software code which is described in the Source Code notice required by <b>Exhibit A</b> as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License. <p><b>1.10.1. "Patent Claims"</b> means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor. </p><p><b>1.11. ''Source Code''</b> means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge. </p><p><b>1.12. "You'' (or "Your") </b> means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You'' includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control'' means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.</p></ul> <b>2. Source Code License.</b> <ul><b>2.1. The Initial Developer Grant.</b> <br>The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims: <ul><b>(a)</b> <b> </b>under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and <p><b>(b)</b> under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof). </p><ul> <ul> </ul> </ul> <b>(c) </b>the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License. <p><b>(d) </b>Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code; or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices. <br> </p></ul> <b>2.2. Contributor Grant.</b> <br>Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license <ul> <br><b>(a)</b> <b> </b>under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and <p><b>(b)</b> under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in<font color="#000000"> combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: 1) Modifications made by that Contributor (or portions thereof); and 2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination).</font> </p><p><b>(c) </b>the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first makes Commercial Use of the Covered Code. </p><p><b>(d) </b> Notwithstanding Section 2.2(b) above, no patent license is granted: 1) for any code that Contributor has deleted from the Contributor Version; 2) separate from the Contributor Version; 3) for infringements caused by: i) third party modifications of Contributor Version or ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or 4) under Patent Claims infringed by Covered Code in the absence of Modifications made by that Contributor.</p></ul> </ul> <p><br><b>3. Distribution Obligations.</b> </p><ul><b>3.1. Application of License.</b> <br>The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section <b>2.2</b>. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section <b>6.1</b>, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section <b>3.5</b>. <p><b>3.2. Availability of Source Code.</b> <br>Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party. </p><p><b>3.3. Description of Modifications.</b> <br>You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code. </p><p><b>3.4. Intellectual Property Matters</b> </p><ul><b>(a) Third Party Claims</b>. <br>If Contributor has knowledge that a license under a third party's intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled "LEGAL'' which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained. <p><b>(b) Contributor APIs</b>. <br>If Contributor's Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file. <br> </p></ul> <b>(c) Representations.</b> <ul>Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor's Modifications are Contributor's original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License.</ul> <p><br><b>3.5. Required Notices.</b> <br>You must duplicate the notice in <b>Exhibit A</b> in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add your name as a Contributor to the notice described in <b>Exhibit A</b>. You must also duplicate this License in any documentation for the Source Code where You describe recipients' rights or ownership rights relating to Covered Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. </p><p><b>3.6. Distribution of Executable Versions.</b> <br>You may distribute Covered Code in Executable form only if the requirements of Section <b>3.1-3.5</b> have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section <b>3.2</b>. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients' rights relating to the Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. </p><p><b>3.7. Larger Works.</b> <br>You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.</p></ul> <b>4. Inability to Comply Due to Statute or Regulation.</b> <ul>If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section <b>3.4</b> and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.</ul> <b>5. Application of this License.</b> <ul>This License applies to code to which the Initial Developer has attached the notice in <b>Exhibit A</b> and to related Covered Code.</ul> <b>6. Versions of the License.</b> <ul><b>6.1. New Versions</b>. <br>Netscape Communications Corporation (''Netscape'') may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number. <p><b>6.2. Effect of New Versions</b>. <br>Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Netscape. No one other than Netscape has the right to modify the terms applicable to Covered Code created under this License. </p><p><b>6.3. Derivative Works</b>. <br>If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrases ''Mozilla'', ''MOZILLAPL'', ''MOZPL'', ''Netscape'', "MPL", ''NPL'' or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the Mozilla Public License and Netscape Public License. (Filling in the name of the Initial Developer, Original Code or Contributor in the notice described in <b>Exhibit A</b> shall not of themselves be deemed to be modifications of this License.)</p></ul> <b>7. DISCLAIMER OF WARRANTY.</b> <ul>COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS'' BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.</ul> <b>8. TERMINATION.</b> <ul><b>8.1. </b>This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. <p><b>8.2. </b>If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You file such action is referred to as "Participant") alleging that: </p><p><b>(a) </b>such Participant's Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i) agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant. If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above. </p><p><b>(b)</b> any software, hardware, or device, other than such Participant's Contributor Version, directly or indirectly infringes any patent, then any rights granted to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, sold, distributed, or had made, Modifications made by that Participant. </p><p><b>8.3. </b>If You assert a patent infringement claim against Participant alleging that such Participant's Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license. </p><p><b>8.4.</b> In the event of termination under Sections 8.1 or 8.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination.</p></ul> <b>9. LIMITATION OF LIABILITY.</b> <ul>UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.</ul> <b>10. U.S. GOVERNMENT END USERS.</b> <ul>The Covered Code is a ''commercial item,'' as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of ''commercial computer software'' and ''commercial computer software documentation,'' as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein.</ul> <b>11. MISCELLANEOUS.</b> <ul>This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in the United States of America, any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys' fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License.</ul> <b>12. RESPONSIBILITY FOR CLAIMS.</b> <ul>As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.</ul> <b>13. MULTIPLE-LICENSED CODE.</b> <ul>Initial Developer may designate portions of the Covered Code as “Multiple-Licensed”. “Multiple-Licensed” means that the Initial Developer permits you to utilize portions of the Covered Code under Your choice of the NPL or the alternative licenses, if any, specified by the Initial Developer in the file described in Exhibit A.</ul> <p><br><b>EXHIBIT A -Mozilla Public License.</b> </p><ul>``The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <br>http://www.mozilla.org/MPL/ <p>Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF <br>ANY KIND, either express or implied. See the License for the specific language governing rights and <br>limitations under the License. </p><p>The Original Code is ______________________________________. </p><p>The Initial Developer of the Original Code is ________________________. Portions created by <br> ______________________ are Copyright (C) ______ _______________________. All Rights <br>Reserved. </p><p>Contributor(s): ______________________________________. </p><p>Alternatively, the contents of this file may be used under the terms of the _____ license (the “[___] License”), in which case the provisions of [______] License are applicable instead of those above. If you wish to allow use of your version of this file only under the terms of the [____] License and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the [___] License. If you do not delete the provisions above, a recipient may use your version of this file under either the MPL or the [___] License." </p><p>[NOTE: The text of this Exhibit A may differ slightly from the text of the notices in the Source Code files of the Original Code. You should use the text of this Exhibit A rather than the text found in the Original Code Source Code for Your Modifications.] </p><p> </p></ul></body></html> |
From: panjunyong <pan...@us...> - 2004-04-10 05:00:59
|
Update of /cvsroot/revisionmanager/RevisionObjects/www In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25933/www Log Message: Directory /cvsroot/revisionmanager/RevisionObjects/www added to the repository |
From: panjunyong <pan...@us...> - 2004-04-09 09:22:27
|
Update of /cvsroot/revisionmanager/RevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4459 Modified Files: CHANGES.txt Log Message: add my name ;-) Index: CHANGES.txt =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/CHANGES.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CHANGES.txt 9 Apr 2004 01:28:17 -0000 1.3 --- CHANGES.txt 9 Apr 2004 09:09:05 -0000 1.4 *************** *** 4,8 **** * Add context parameter to createObject method. This make RevisionManager compatible with creation of CMF content which need context when use ! invokeFactory methoed. * Development on the project has been opened for the public. The CVS --- 4,8 ---- * Add context parameter to createObject method. This make RevisionManager compatible with creation of CMF content which need context when use ! invokeFactory methoed. -- panjunyong * Development on the project has been opened for the public. The CVS |
From: panjunyong <pan...@us...> - 2004-04-09 08:25:05
|
Update of /cvsroot/revisionmanager/RevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27443 Modified Files: RevisionManager.py Log Message: use aq_base to prevent acquization Index: RevisionManager.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/RevisionManager.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RevisionManager.py 9 Apr 2004 01:28:17 -0000 1.3 --- RevisionManager.py 9 Apr 2004 08:11:48 -0000 1.4 *************** *** 1353,1357 **** folder = aq_parent(aq_inner(self)) for id in segments[:-1]: ! subfolder = getattr(folder, id, None) if subfolder is None: folder.manage_addFolder(id) --- 1353,1357 ---- folder = aq_parent(aq_inner(self)) for id in segments[:-1]: ! subfolder = getattr(aq_base(folder), id, None) if subfolder is None: folder.manage_addFolder(id) |
From: panjunyong <pan...@us...> - 2004-04-09 01:41:31
|
Update of /cvsroot/revisionmanager/RevisionManager/interfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28574/interfaces Modified Files: ObjectFactories.py Log Message: add context parameter to createObject interface to support CMF content Index: ObjectFactories.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/interfaces/ObjectFactories.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ObjectFactories.py 17 Oct 2003 12:07:40 -0000 1.1.1.1 --- ObjectFactories.py 9 Apr 2004 01:28:18 -0000 1.2 *************** *** 38,43 **** """ ! def createObject(id, title, data, **kw): """ ! Create an object """ --- 38,43 ---- """ ! def createObject(id, title, data, context, **kw): """ ! Create an object under context """ |
From: panjunyong <pan...@us...> - 2004-04-09 01:41:31
|
Update of /cvsroot/revisionmanager/RevisionManager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28574 Modified Files: CHANGES.txt RevisionManager.py Log Message: add context parameter to createObject interface to support CMF content Index: RevisionManager.py =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/RevisionManager.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** RevisionManager.py 29 Oct 2003 06:52:24 -0000 1.2 --- RevisionManager.py 9 Apr 2004 01:28:17 -0000 1.3 *************** *** 1369,1376 **** if not self._settings['save_properties']: try: ! obj = factory.createObject(id, id, data) except: return 1 ! folder._setObject(id, obj) return 0 --- 1369,1378 ---- if not self._settings['save_properties']: try: ! obj = factory.createObject(id, id, data, context=folder) except: return 1 ! # object may be add in createObject ! if not hasattr(folder, id): ! folder._setObject(id, obj) return 0 *************** *** 1399,1403 **** # create the object try: ! obj = factory.createObject(id, title, data, **props) except: return 1 --- 1401,1405 ---- # create the object try: ! obj = factory.createObject(id, title, data, context=folder,**props) except: return 1 *************** *** 1415,1419 **** return 1 ! folder._setObject(id, obj) return 0 --- 1417,1422 ---- return 1 ! if not hasattr(folder, id): ! folder._setObject(id, obj) return 0 Index: CHANGES.txt =================================================================== RCS file: /cvsroot/revisionmanager/RevisionManager/CHANGES.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CHANGES.txt 17 Oct 2003 12:28:50 -0000 1.2 --- CHANGES.txt 9 Apr 2004 01:28:17 -0000 1.3 *************** *** 2,5 **** --- 2,9 ---- CHANGES + * Add context parameter to createObject method. This make RevisionManager + compatible with creation of CMF content which need context when use + invokeFactory methoed. + * Development on the project has been opened for the public. The CVS repository and project organization such as mailing lists now |
From: Arthur C. C. C. <ar...@so...> - 2004-02-24 14:42:30
|
Hi guys My friend has problem using RevisionManager, he can use RevisionManager from local machine, but not pserver Forwarded from my friend: ********************************** HI When i use local directory, RevisionManager works fine.... but when i use it as pserver authentication the module does not get into the CVS repository, I shall describe the whole thing with an example, here are the details i entered server address : test123456 ( this is the domain name) Repository path : \new ( this the repository created on my machine itself it is in c:\new) Module name: mymodule ( this some arbitary name) Access method: pserver User name: myname password: password ( the user name and password is domain username and password ) CVS executable: c:\cvsclient ( the place where cvs client is present) all the other fields i have left as it is in default I have installed cvsnt as cvs server by cvsnt-2.0.9.exe When i log into cvs repo that is this new repo created.........by command prompt i can easily log in without any probs and can see the content in the cvs repository |
From: Arthur C. C. C. <ar...@so...> - 2003-11-15 18:43:13
|
Hi guys, I've mapped my existing CVS project into my site. I can get previous version, and update previous version without problems. Also, new folder will have no problem too. However, when I add new file into old folder, an error occurs. it stated that the .properties files exist for the folders. e.g. *************** Error Type CVSError Error Value cvs add: .Ryan.properties already exists, with version number 1.1 (Where Ryan is a folder inside my root. This error occurs when I add a file inside Ryan) ******************* I have checked that the have_props should be havingthe wrong value and it makes RM adding the properties to the CVS. Can anyone gimme some clue to fix it? Arthur |
From: Arthur C. C. C. <ar...@so...> - 2003-11-02 10:01:05
|
Hi guys, I've used Revisionmanager to create this stuff, http://zope.org/Members/ccube/CMFDocMgt/CMFDocMgt-1.0b3 Alrite, I need a function to retrieve file data from CVS respository without updating the Zope files. Therefore, I wrote my own function. Should I include such functions in RevisionManager.py? It is just a function getting the respository file content to the standard output without updating anything. Regards, Arthur |
From: Philipp v. W. <ph...@we...> - 2003-10-30 20:15:12
|
Jim Abramson wrote: >>>Update of /cvsroot/revisionmanager/RevisionManager >>>In directory sc8-pr-cvs1:/tmp/cvs-serv6042 >>> >>>Modified Files: >>> RevisionManager.py >>>Log Message: >>>replaced '/tmp' with tempfile.gettempdir() (thx nlehuen) - all unit tests now passing on win2k >> >>Note that this is not covered by unit tests. We badly need tests for the >>stuff in RevisionManager.py against the IRevisionManager interface. > > > Yes, I see. > Guess I'll start on this next. Well, that would be fantastic, of course! Feel free to ask any questions in case you run into any. Philipp |
From: Jim A. <jab...@wg...> - 2003-10-29 15:33:20
|
> > Update of /cvsroot/revisionmanager/RevisionManager > > In directory sc8-pr-cvs1:/tmp/cvs-serv6042 > >=20 > > Modified Files: > > RevisionManager.py=20 > > Log Message: > > replaced '/tmp' with tempfile.gettempdir() (thx nlehuen) - all unit = tests now passing on win2k >=20 > Note that this is not covered by unit tests. We badly need tests for = the=20 > stuff in RevisionManager.py against the IRevisionManager interface. Yes, I see.=20 Guess I'll start on this next. Jim |
From: Philipp v. W. <ph...@we...> - 2003-10-29 13:06:54
|
far...@us... wrote: > Update of /cvsroot/revisionmanager/RevisionManager > In directory sc8-pr-cvs1:/tmp/cvs-serv6042 > > Modified Files: > RevisionManager.py > Log Message: > replaced '/tmp' with tempfile.gettempdir() (thx nlehuen) - all unit tests now passing on win2k Note that this is not covered by unit tests. We badly need tests for the stuff in RevisionManager.py against the IRevisionManager interface. Philipp |