version 1.1, 2008/01/02 19:01:35
|
version 1.3, 2008/01/04 15:25:04
|
Line 253 class VSSyncer(BaseSyncer):
|
Line 253 class VSSyncer(BaseSyncer):
|
if type(object) == StringType: object = [object,] |
if type(object) == StringType: object = [object,] |
|
|
for ob in object: |
for ob in object: |
if ob not in allowed_objs_sync: |
if allowed_objs_sync and ob not in allowed_objs_sync: |
msgs.append(403) |
msgs.append(403) |
continue |
continue |
try: |
try: |
Line 306 class VSSyncer(BaseSyncer):
|
Line 306 class VSSyncer(BaseSyncer):
|
src += data.data |
src += data.data |
data=data.next |
data=data.next |
#return self._encode(src) |
#return self._encode(src) |
|
if isinstance(src,unicode): |
|
# encode unicode to string |
|
src = src.encode('utf-8') |
return self._encode(md5.new(src).digest()) |
return self._encode(md5.new(src).digest()) |
|
|
############################### |
############################### |