Merge lp:~spacefish/syncany/minor-wizzard-fixes into lp:~syncany-team/syncany/trunk
- minor-wizzard-fixes
- Merge into trunk
Proposed by
Timo Witte
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~spacefish/syncany/minor-wizzard-fixes | ||||
Merge into: | lp:~syncany-team/syncany/trunk | ||||
Diff against target: |
295 lines (+117/-12) 4 files modified
syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.form (+48/-3) syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.java (+51/-7) syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConnection.java (+11/-0) syncany/src/org/syncany/connection/plugins/rackspace/RackspaceTransferManager.java (+7/-2) |
||||
To merge this branch: | bzr merge lp:~spacefish/syncany/minor-wizzard-fixes | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Syncany Team | Pending | ||
Review via email: mp+66052@code.launchpad.net |
Commit message
Description of the change
have added radio boxes to rackspace storage for selection between us and uk auth server
To post a comment you must log in.
Unmerged revisions
- 61. By Timo Witte
-
added radio boxes to select between different rackspace auth servers
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.form' | |||
2 | --- syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.form 2011-05-23 16:50:04 +0000 | |||
3 | +++ syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.form 2011-06-27 21:11:14 +0000 | |||
4 | @@ -1,6 +1,10 @@ | |||
5 | 1 | <?xml version="1.1" encoding="UTF-8" ?> | 1 | <?xml version="1.1" encoding="UTF-8" ?> |
6 | 2 | 2 | ||
8 | 3 | <Form version="1.3" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> | 3 | <Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> |
9 | 4 | <NonVisualComponents> | ||
10 | 5 | <Component class="javax.swing.ButtonGroup" name="txtAuthServer"> | ||
11 | 6 | </Component> | ||
12 | 7 | </NonVisualComponents> | ||
13 | 4 | <AuxValues> | 8 | <AuxValues> |
14 | 5 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> | 9 | <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> |
15 | 6 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/> | 10 | <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/> |
16 | @@ -16,17 +20,23 @@ | |||
17 | 16 | <Layout> | 20 | <Layout> |
18 | 17 | <DimensionLayout dim="0"> | 21 | <DimensionLayout dim="0"> |
19 | 18 | <Group type="103" groupAlignment="0" attributes="0"> | 22 | <Group type="103" groupAlignment="0" attributes="0"> |
21 | 19 | <Group type="102" alignment="0" attributes="0"> | 23 | <Group type="102" attributes="0"> |
22 | 20 | <Group type="103" groupAlignment="0" attributes="0"> | 24 | <Group type="103" groupAlignment="0" attributes="0"> |
23 | 21 | <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/> | 25 | <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/> |
24 | 22 | <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/> | 26 | <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/> |
25 | 23 | <Component id="jLabel3" alignment="0" min="-2" max="-2" attributes="0"/> | 27 | <Component id="jLabel3" alignment="0" min="-2" max="-2" attributes="0"/> |
26 | 28 | <Component id="jLabel4" alignment="0" min="-2" max="-2" attributes="0"/> | ||
27 | 24 | </Group> | 29 | </Group> |
28 | 25 | <EmptySpace min="-2" pref="33" max="-2" attributes="0"/> | 30 | <EmptySpace min="-2" pref="33" max="-2" attributes="0"/> |
29 | 26 | <Group type="103" groupAlignment="0" attributes="0"> | 31 | <Group type="103" groupAlignment="0" attributes="0"> |
30 | 27 | <Component id="txtUsername" alignment="0" pref="314" max="32767" attributes="0"/> | 32 | <Component id="txtUsername" alignment="0" pref="314" max="32767" attributes="0"/> |
31 | 28 | <Component id="txtApiKey" alignment="0" pref="314" max="32767" attributes="0"/> | 33 | <Component id="txtApiKey" alignment="0" pref="314" max="32767" attributes="0"/> |
32 | 29 | <Component id="txtContainerName" alignment="0" pref="314" max="32767" attributes="0"/> | 34 | <Component id="txtContainerName" alignment="0" pref="314" max="32767" attributes="0"/> |
33 | 35 | <Group type="102" alignment="0" attributes="0"> | ||
34 | 36 | <Component id="authUs" min="-2" max="-2" attributes="0"/> | ||
35 | 37 | <EmptySpace type="separate" max="-2" attributes="0"/> | ||
36 | 38 | <Component id="authUk" min="-2" max="-2" attributes="0"/> | ||
37 | 39 | </Group> | ||
38 | 30 | </Group> | 40 | </Group> |
39 | 31 | <EmptySpace max="-2" attributes="0"/> | 41 | <EmptySpace max="-2" attributes="0"/> |
40 | 32 | </Group> | 42 | </Group> |
41 | @@ -49,7 +59,13 @@ | |||
42 | 49 | <Component id="txtContainerName" alignment="3" min="-2" max="-2" attributes="0"/> | 59 | <Component id="txtContainerName" alignment="3" min="-2" max="-2" attributes="0"/> |
43 | 50 | <Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/> | 60 | <Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/> |
44 | 51 | </Group> | 61 | </Group> |
46 | 52 | <EmptySpace pref="52" max="32767" attributes="0"/> | 62 | <EmptySpace type="separate" max="-2" attributes="0"/> |
47 | 63 | <Group type="103" groupAlignment="3" attributes="0"> | ||
48 | 64 | <Component id="jLabel4" alignment="3" min="-2" max="-2" attributes="0"/> | ||
49 | 65 | <Component id="authUs" alignment="3" min="-2" max="-2" attributes="0"/> | ||
50 | 66 | <Component id="authUk" alignment="3" min="-2" max="-2" attributes="0"/> | ||
51 | 67 | </Group> | ||
52 | 68 | <EmptySpace max="32767" attributes="0"/> | ||
53 | 53 | </Group> | 69 | </Group> |
54 | 54 | </Group> | 70 | </Group> |
55 | 55 | </DimensionLayout> | 71 | </DimensionLayout> |
56 | @@ -91,5 +107,34 @@ | |||
57 | 91 | <Property name="name" type="java.lang.String" value="jLabel2" noResource="true"/> | 107 | <Property name="name" type="java.lang.String" value="jLabel2" noResource="true"/> |
58 | 92 | </Properties> | 108 | </Properties> |
59 | 93 | </Component> | 109 | </Component> |
60 | 110 | <Component class="javax.swing.JLabel" name="jLabel4"> | ||
61 | 111 | <Properties> | ||
62 | 112 | <Property name="horizontalAlignment" type="int" value="2"/> | ||
63 | 113 | <Property name="text" type="java.lang.String" value="Auth Server:"/> | ||
64 | 114 | <Property name="name" type="java.lang.String" value="jLabel4" noResource="true"/> | ||
65 | 115 | </Properties> | ||
66 | 116 | </Component> | ||
67 | 117 | <Component class="javax.swing.JRadioButton" name="authUs"> | ||
68 | 118 | <Properties> | ||
69 | 119 | <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor"> | ||
70 | 120 | <ComponentRef name="txtAuthServer"/> | ||
71 | 121 | </Property> | ||
72 | 122 | <Property name="selected" type="boolean" value="true"/> | ||
73 | 123 | <Property name="text" type="java.lang.String" value="US"/> | ||
74 | 124 | <Property name="name" type="java.lang.String" value="authUs" noResource="true"/> | ||
75 | 125 | </Properties> | ||
76 | 126 | <AuxValues> | ||
77 | 127 | <AuxValue name="JavaCodeGenerator_SerializeTo" type="java.lang.String" value="RackspaceConfigPanel_authUs"/> | ||
78 | 128 | </AuxValues> | ||
79 | 129 | </Component> | ||
80 | 130 | <Component class="javax.swing.JRadioButton" name="authUk"> | ||
81 | 131 | <Properties> | ||
82 | 132 | <Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor"> | ||
83 | 133 | <ComponentRef name="txtAuthServer"/> | ||
84 | 134 | </Property> | ||
85 | 135 | <Property name="text" type="java.lang.String" value="UK"/> | ||
86 | 136 | <Property name="name" type="java.lang.String" value="authUk" noResource="true"/> | ||
87 | 137 | </Properties> | ||
88 | 138 | </Component> | ||
89 | 94 | </SubComponents> | 139 | </SubComponents> |
90 | 95 | </Form> | 140 | </Form> |
91 | 96 | 141 | ||
92 | === modified file 'syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.java' | |||
93 | --- syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.java 2011-06-05 21:26:56 +0000 | |||
94 | +++ syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConfigPanel.java 2011-06-27 21:11:14 +0000 | |||
95 | @@ -18,6 +18,7 @@ | |||
96 | 18 | package org.syncany.connection.plugins.rackspace; | 18 | package org.syncany.connection.plugins.rackspace; |
97 | 19 | 19 | ||
98 | 20 | import java.util.ResourceBundle; | 20 | import java.util.ResourceBundle; |
99 | 21 | import org.jdesktop.application.Action; | ||
100 | 21 | 22 | ||
101 | 22 | import org.syncany.config.Config; | 23 | import org.syncany.config.Config; |
102 | 23 | import org.syncany.connection.plugins.ConfigPanel; | 24 | import org.syncany.connection.plugins.ConfigPanel; |
103 | @@ -40,7 +41,11 @@ | |||
104 | 40 | public void load() { | 41 | public void load() { |
105 | 41 | txtUsername.setText(getConnection().getUsername()); | 42 | txtUsername.setText(getConnection().getUsername()); |
106 | 42 | txtApiKey.setText(getConnection().getApiKey()); | 43 | txtApiKey.setText(getConnection().getApiKey()); |
108 | 43 | txtContainerName.setText(getConnection().getContainer()); | 44 | txtContainerName.setText(getConnection().getContainer()); |
109 | 45 | if(getConnection().getAuthServer().equals("US")) | ||
110 | 46 | txtAuthServer.setSelected(authUs.getModel(), true); | ||
111 | 47 | else | ||
112 | 48 | txtAuthServer.setSelected(authUk.getModel(), true); | ||
113 | 44 | } | 49 | } |
114 | 45 | 50 | ||
115 | 46 | @Override | 51 | @Override |
116 | @@ -48,6 +53,13 @@ | |||
117 | 48 | getConnection().setUsername(txtUsername.getText()); | 53 | getConnection().setUsername(txtUsername.getText()); |
118 | 49 | getConnection().setApiKey(new String(txtApiKey.getPassword())); | 54 | getConnection().setApiKey(new String(txtApiKey.getPassword())); |
119 | 50 | getConnection().setContainer(txtContainerName.getText()); | 55 | getConnection().setContainer(txtContainerName.getText()); |
120 | 56 | |||
121 | 57 | String authServer; | ||
122 | 58 | if(txtAuthServer.getSelection() == authUs.getModel()) | ||
123 | 59 | authServer = "US"; | ||
124 | 60 | else | ||
125 | 61 | authServer = "UK"; | ||
126 | 62 | getConnection().setAuthServer(authServer); | ||
127 | 51 | } | 63 | } |
128 | 52 | 64 | ||
129 | 53 | @Override | 65 | @Override |
130 | @@ -64,12 +76,16 @@ | |||
131 | 64 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents | 76 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
132 | 65 | private void initComponents() { | 77 | private void initComponents() { |
133 | 66 | 78 | ||
134 | 79 | txtAuthServer = new javax.swing.ButtonGroup(); | ||
135 | 67 | txtUsername = new javax.swing.JTextField(); | 80 | txtUsername = new javax.swing.JTextField(); |
136 | 68 | txtApiKey = new javax.swing.JPasswordField(); | 81 | txtApiKey = new javax.swing.JPasswordField(); |
137 | 69 | txtContainerName = new javax.swing.JTextField(); | 82 | txtContainerName = new javax.swing.JTextField(); |
138 | 70 | jLabel3 = new javax.swing.JLabel(); | 83 | jLabel3 = new javax.swing.JLabel(); |
139 | 71 | jLabel1 = new javax.swing.JLabel(); | 84 | jLabel1 = new javax.swing.JLabel(); |
140 | 72 | jLabel2 = new javax.swing.JLabel(); | 85 | jLabel2 = new javax.swing.JLabel(); |
141 | 86 | jLabel4 = new javax.swing.JLabel(); | ||
142 | 87 | authUs = new javax.swing.JRadioButton(); | ||
143 | 88 | authUk = new javax.swing.JRadioButton(); | ||
144 | 73 | 89 | ||
145 | 74 | txtUsername.setName("txtUsername"); // NOI18N | 90 | txtUsername.setName("txtUsername"); // NOI18N |
146 | 75 | 91 | ||
147 | @@ -78,17 +94,30 @@ | |||
148 | 78 | txtContainerName.setName("txtContainerName"); // NOI18N | 94 | txtContainerName.setName("txtContainerName"); // NOI18N |
149 | 79 | 95 | ||
150 | 80 | jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); | 96 | jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
152 | 81 | jLabel3.setText(resourceBundle.getString("rackspace_container_name")); | 97 | jLabel3.setText("Container Name:"); |
153 | 82 | jLabel3.setName("jLabel3"); // NOI18N | 98 | jLabel3.setName("jLabel3"); // NOI18N |
154 | 83 | 99 | ||
155 | 84 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); | 100 | jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
157 | 85 | jLabel1.setText(resourceBundle.getString("rackspace_username")); | 101 | jLabel1.setText("Username:"); |
158 | 86 | jLabel1.setName("jLabel1"); // NOI18N | 102 | jLabel1.setName("jLabel1"); // NOI18N |
159 | 87 | 103 | ||
160 | 88 | jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); | 104 | jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); |
162 | 89 | jLabel2.setText(resourceBundle.getString("rackspace_apiKey")); | 105 | jLabel2.setText("API Key:"); |
163 | 90 | jLabel2.setName("jLabel2"); // NOI18N | 106 | jLabel2.setName("jLabel2"); // NOI18N |
164 | 91 | 107 | ||
165 | 108 | jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); | ||
166 | 109 | jLabel4.setText("Auth Server:"); | ||
167 | 110 | jLabel4.setName("jLabel4"); // NOI18N | ||
168 | 111 | |||
169 | 112 | txtAuthServer.add(authUs); | ||
170 | 113 | authUs.setSelected(true); | ||
171 | 114 | authUs.setText("US"); | ||
172 | 115 | authUs.setName("authUs"); // NOI18N | ||
173 | 116 | |||
174 | 117 | txtAuthServer.add(authUk); | ||
175 | 118 | authUk.setText("UK"); | ||
176 | 119 | authUk.setName("authUk"); // NOI18N | ||
177 | 120 | |||
178 | 92 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); | 121 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); |
179 | 93 | this.setLayout(layout); | 122 | this.setLayout(layout); |
180 | 94 | layout.setHorizontalGroup( | 123 | layout.setHorizontalGroup( |
181 | @@ -97,12 +126,17 @@ | |||
182 | 97 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | 126 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
183 | 98 | .addComponent(jLabel1) | 127 | .addComponent(jLabel1) |
184 | 99 | .addComponent(jLabel2) | 128 | .addComponent(jLabel2) |
186 | 100 | .addComponent(jLabel3)) | 129 | .addComponent(jLabel3) |
187 | 130 | .addComponent(jLabel4)) | ||
188 | 101 | .addGap(33, 33, 33) | 131 | .addGap(33, 33, 33) |
189 | 102 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | 132 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) |
190 | 103 | .addComponent(txtUsername, javax.swing.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE) | 133 | .addComponent(txtUsername, javax.swing.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE) |
191 | 104 | .addComponent(txtApiKey, javax.swing.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE) | 134 | .addComponent(txtApiKey, javax.swing.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE) |
193 | 105 | .addComponent(txtContainerName, javax.swing.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE)) | 135 | .addComponent(txtContainerName, javax.swing.GroupLayout.DEFAULT_SIZE, 314, Short.MAX_VALUE) |
194 | 136 | .addGroup(layout.createSequentialGroup() | ||
195 | 137 | .addComponent(authUs) | ||
196 | 138 | .addGap(18, 18, 18) | ||
197 | 139 | .addComponent(authUk))) | ||
198 | 106 | .addContainerGap()) | 140 | .addContainerGap()) |
199 | 107 | ); | 141 | ); |
200 | 108 | layout.setVerticalGroup( | 142 | layout.setVerticalGroup( |
201 | @@ -119,14 +153,24 @@ | |||
202 | 119 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) | 153 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) |
203 | 120 | .addComponent(txtContainerName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) | 154 | .addComponent(txtContainerName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) |
204 | 121 | .addComponent(jLabel3)) | 155 | .addComponent(jLabel3)) |
206 | 122 | .addContainerGap(52, Short.MAX_VALUE)) | 156 | .addGap(18, 18, 18) |
207 | 157 | .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) | ||
208 | 158 | .addComponent(jLabel4) | ||
209 | 159 | .addComponent(authUs) | ||
210 | 160 | .addComponent(authUk)) | ||
211 | 161 | .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) | ||
212 | 123 | ); | 162 | ); |
213 | 124 | }// </editor-fold>//GEN-END:initComponents | 163 | }// </editor-fold>//GEN-END:initComponents |
214 | 164 | |||
215 | 125 | // Variables declaration - do not modify//GEN-BEGIN:variables | 165 | // Variables declaration - do not modify//GEN-BEGIN:variables |
216 | 166 | private javax.swing.JRadioButton authUk; | ||
217 | 167 | private javax.swing.JRadioButton authUs; | ||
218 | 126 | private javax.swing.JLabel jLabel1; | 168 | private javax.swing.JLabel jLabel1; |
219 | 127 | private javax.swing.JLabel jLabel2; | 169 | private javax.swing.JLabel jLabel2; |
220 | 128 | private javax.swing.JLabel jLabel3; | 170 | private javax.swing.JLabel jLabel3; |
221 | 171 | private javax.swing.JLabel jLabel4; | ||
222 | 129 | private javax.swing.JPasswordField txtApiKey; | 172 | private javax.swing.JPasswordField txtApiKey; |
223 | 173 | private javax.swing.ButtonGroup txtAuthServer; | ||
224 | 130 | private javax.swing.JTextField txtContainerName; | 174 | private javax.swing.JTextField txtContainerName; |
225 | 131 | private javax.swing.JTextField txtUsername; | 175 | private javax.swing.JTextField txtUsername; |
226 | 132 | // End of variables declaration//GEN-END:variables | 176 | // End of variables declaration//GEN-END:variables |
227 | 133 | 177 | ||
228 | === modified file 'syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConnection.java' | |||
229 | --- syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConnection.java 2011-06-05 21:26:56 +0000 | |||
230 | +++ syncany/src/org/syncany/connection/plugins/rackspace/RackspaceConnection.java 2011-06-27 21:11:14 +0000 | |||
231 | @@ -35,6 +35,7 @@ | |||
232 | 35 | public class RackspaceConnection implements Connection { | 35 | public class RackspaceConnection implements Connection { |
233 | 36 | private String username; | 36 | private String username; |
234 | 37 | private String apiKey; | 37 | private String apiKey; |
235 | 38 | private String authServer; | ||
236 | 38 | private String container; | 39 | private String container; |
237 | 39 | private ResourceBundle resourceBundle; | 40 | private ResourceBundle resourceBundle; |
238 | 40 | 41 | ||
239 | @@ -66,6 +67,14 @@ | |||
240 | 66 | this.apiKey = apiKey; | 67 | this.apiKey = apiKey; |
241 | 67 | } | 68 | } |
242 | 68 | 69 | ||
243 | 70 | public String getAuthServer() { | ||
244 | 71 | return authServer; | ||
245 | 72 | } | ||
246 | 73 | |||
247 | 74 | public void setAuthServer(String authServer) { | ||
248 | 75 | this.authServer = authServer; | ||
249 | 76 | } | ||
250 | 77 | |||
251 | 69 | public String getContainer() { | 78 | public String getContainer() { |
252 | 70 | return container; | 79 | return container; |
253 | 71 | } | 80 | } |
254 | @@ -87,6 +96,7 @@ | |||
255 | 87 | // Mandatory | 96 | // Mandatory |
256 | 88 | username = node.getProperty("username"); | 97 | username = node.getProperty("username"); |
257 | 89 | apiKey = node.getProperty("apikey"); | 98 | apiKey = node.getProperty("apikey"); |
258 | 99 | authServer = node.getProperty("authServer"); | ||
259 | 90 | container = node.getProperty("container"); | 100 | container = node.getProperty("container"); |
260 | 91 | 101 | ||
261 | 92 | if (username == null || apiKey == null || container == null) { | 102 | if (username == null || apiKey == null || container == null) { |
262 | @@ -99,6 +109,7 @@ | |||
263 | 99 | node.setAttribute("type", getPluginInfo().getId()); | 109 | node.setAttribute("type", getPluginInfo().getId()); |
264 | 100 | node.setProperty("username", username); | 110 | node.setProperty("username", username); |
265 | 101 | node.setProperty("apikey", apiKey); | 111 | node.setProperty("apikey", apiKey); |
266 | 112 | node.setProperty("authServer", authServer); | ||
267 | 102 | node.setProperty("container", container); | 113 | node.setProperty("container", container); |
268 | 103 | } | 114 | } |
269 | 104 | 115 | ||
270 | 105 | 116 | ||
271 | === modified file 'syncany/src/org/syncany/connection/plugins/rackspace/RackspaceTransferManager.java' | |||
272 | --- syncany/src/org/syncany/connection/plugins/rackspace/RackspaceTransferManager.java 2011-05-23 16:50:04 +0000 | |||
273 | +++ syncany/src/org/syncany/connection/plugins/rackspace/RackspaceTransferManager.java 2011-06-27 21:11:14 +0000 | |||
274 | @@ -38,7 +38,8 @@ | |||
275 | 38 | * @author oubou68, pheckel | 38 | * @author oubou68, pheckel |
276 | 39 | */ | 39 | */ |
277 | 40 | public class RackspaceTransferManager extends AbstractTransferManager { | 40 | public class RackspaceTransferManager extends AbstractTransferManager { |
279 | 41 | private static final String AUTH_URL = "https://auth.api.rackspacecloud.com/v1.0"; | 41 | private static final String AUTH_URL_US = "https://auth.api.rackspacecloud.com/v1.0"; |
280 | 42 | private static final String AUTH_URL_UK = "https://lon.auth.api.rackspacecloud.com/v1.0"; | ||
281 | 42 | private static final int CONNECTION_TIMEOUT = 5000; | 43 | private static final int CONNECTION_TIMEOUT = 5000; |
282 | 43 | 44 | ||
283 | 44 | private FilesClient client; | 45 | private FilesClient client; |
284 | @@ -47,7 +48,11 @@ | |||
285 | 47 | super(connection); | 48 | super(connection); |
286 | 48 | 49 | ||
287 | 49 | client = new FilesClient(connection.getUsername(), connection.getApiKey()); | 50 | client = new FilesClient(connection.getUsername(), connection.getApiKey()); |
289 | 50 | client.setAuthenticationURL(AUTH_URL); | 51 | if(connection.getAuthServer().equals("US")) |
290 | 52 | client.setAuthenticationURL(AUTH_URL_US); | ||
291 | 53 | else | ||
292 | 54 | client.setAuthenticationURL(AUTH_URL_UK); | ||
293 | 55 | |||
294 | 51 | client.setConnectionTimeOut(CONNECTION_TIMEOUT); | 56 | client.setConnectionTimeOut(CONNECTION_TIMEOUT); |
295 | 52 | } | 57 | } |
296 | 53 | 58 |
see https:/ /code.launchpad .net/~5- launchpad- spacefish- biz/syncany/ minor-wizzard- fixes