Commit f8cf2da8 authored by Arnaud Fontaine's avatar Arnaud Fontaine

After upgrade, VCS is used instead of SVN in erp5_forge (migration has not been implemented).

If an user has set SVN working copies in its preferences, it cannot be
modified anymore after upgrade.
parent 1ef72181
......@@ -118,7 +118,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.getPreferredWorkingCopyList() or here.getPreferredSubversionWorkingCopyList()</string> </value>
<value> <string>python: here.getPreferredWorkingCopyList()</string> </value>
</item>
</dictionary>
</pickle>
......
2012-10-04 arnaud.fontaine
* getPreferredSubversionWorkingCopyList() cannot be set properly.
2012-04-19 Kazuhiko
* add TypesTool_viewRoleInformationList that lists all Role Informations.
......
671
\ No newline at end of file
672
\ No newline at end of file
......@@ -5498,8 +5498,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
bt_name = self.getTitle()
from App.config import getConfiguration
instance_home = getConfiguration().instancehome
for path in (preferences.getPreferredWorkingCopyList() or # BBB
preferences.getPreferredSubversionWorkingCopyList() or ['bt5']):
for path in (preferences.getPreferredWorkingCopyList() or ['bt5']):
if not os.path.isabs(path):
path = os.path.join(instance_home, path)
bt_path = os.path.join(path, bt_name)
......
......@@ -97,8 +97,7 @@ class WorkingCopy(Implicit):
def getWorkingCopyList(self):
working_copy_list = []
preferences = self.getPortalObject().portal_preferences
for path in (preferences.getPreferredWorkingCopyList() or # BBB
preferences.getPreferredSubversionWorkingCopyList()):
for path in preferences.getPreferredWorkingCopyList():
try:
getVcsTool(vcs=self.reference, path=path)
working_copy_list.append(path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment