Commit 60efc5fa 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 34b9ac8a
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: here.getPreferredWorkingCopyList() or here.getPreferredSubversionWorkingCopyList()</string> </value> <value> <string>python: here.getPreferredWorkingCopyList()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
2012-10-04 arnaud.fontaine
* getPreferredSubversionWorkingCopyList() cannot be set properly.
2012-04-19 Kazuhiko 2012-04-19 Kazuhiko
* add TypesTool_viewRoleInformationList that lists all Role Informations. * add TypesTool_viewRoleInformationList that lists all Role Informations.
......
672 673
\ No newline at end of file \ No newline at end of file
...@@ -5494,8 +5494,7 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5494,8 +5494,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
bt_name = self.getTitle() bt_name = self.getTitle()
from App.config import getConfiguration from App.config import getConfiguration
instance_home = getConfiguration().instancehome instance_home = getConfiguration().instancehome
for path in (preferences.getPreferredWorkingCopyList() or # BBB for path in (preferences.getPreferredWorkingCopyList() or ['bt5']):
preferences.getPreferredSubversionWorkingCopyList() or ['bt5']):
if not os.path.isabs(path): if not os.path.isabs(path):
path = os.path.join(instance_home, path) path = os.path.join(instance_home, path)
bt_path = os.path.join(path, bt_name) bt_path = os.path.join(path, bt_name)
......
...@@ -97,8 +97,7 @@ class WorkingCopy(Implicit): ...@@ -97,8 +97,7 @@ class WorkingCopy(Implicit):
def getWorkingCopyList(self): def getWorkingCopyList(self):
working_copy_list = [] working_copy_list = []
preferences = self.getPortalObject().portal_preferences preferences = self.getPortalObject().portal_preferences
for path in (preferences.getPreferredWorkingCopyList() or # BBB for path in preferences.getPreferredWorkingCopyList():
preferences.getPreferredSubversionWorkingCopyList()):
try: try:
getVcsTool(vcs=self.reference, path=path) getVcsTool(vcs=self.reference, path=path)
working_copy_list.append(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