153 |
def _putiter(self, iterator, req_num): |
def _putiter(self, iterator, req_num): |
154 |
"""Put an iterator through the pipe""" |
"""Put an iterator through the pipe""" |
155 |
self._write("i", |
self._write("i", |
156 |
str(VirtualFile.new(iterfile.RORPIterToFile(iterator))), |
str(VirtualFile.new(iterfile.MiscIterToFile(iterator))), req_num) |
|
req_num) |
|
157 |
|
|
158 |
def _putrpath(self, rpath, req_num): |
def _putrpath(self, rpath, req_num): |
159 |
"""Put an rpath into the pipe |
"""Put an rpath into the pipe |
240 |
elif format_string == "b": result = data |
elif format_string == "b": result = data |
241 |
elif format_string == "f": result = VirtualFile(self, int(data)) |
elif format_string == "f": result = VirtualFile(self, int(data)) |
242 |
elif format_string == "i": |
elif format_string == "i": |
243 |
result = iterfile.FileToRORPIter(VirtualFile(self, int(data))) |
result = iterfile.FileToMiscIter(VirtualFile(self, int(data))) |
244 |
elif format_string == "r": result = self._getrorpath(data) |
elif format_string == "r": result = self._getrorpath(data) |
245 |
elif format_string == "R": result = self._getrpath(data) |
elif format_string == "R": result = self._getrpath(data) |
246 |
elif format_string == "Q": result = self._getqrpath(data) |
elif format_string == "Q": result = self._getqrpath(data) |
534 |
Main, rorpiter, selection, increment, statistics, manage, lazy, \ |
Main, rorpiter, selection, increment, statistics, manage, lazy, \ |
535 |
iterfile, rpath, robust, restore, manage, backup, connection, \ |
iterfile, rpath, robust, restore, manage, backup, connection, \ |
536 |
TempFile, SetConnections, librsync, log, regress, fs_abilities, \ |
TempFile, SetConnections, librsync, log, regress, fs_abilities, \ |
537 |
eas_acls, user_group |
eas_acls, user_group, compare |
538 |
|
|
539 |
Globals.local_connection = LocalConnection() |
Globals.local_connection = LocalConnection() |
540 |
Globals.connections.append(Globals.local_connection) |
Globals.connections.append(Globals.local_connection) |