lib/rhosync/document.rb in rhosync-2.1.10 vs lib/rhosync/document.rb in rhosync-2.1.11
- old
+ new
@@ -19,11 +19,25 @@
def delete_data(doctype,data)
Store.delete_data(docname(doctype),data)
end
+ def update_objects(doctype,updates)
+ Store.update_objects(docname(doctype),updates)
+ end
+
+ def remove_objects(doctype,deletes)
+ Store.delete_objects(docname(doctype),deletes)
+ end
+
def flash_data(doctype)
Store.flash_data(docname(doctype))
+ end
+
+ def flash_source_data(doctype, from_source)
+ self.source_name=from_source
+ docnamestr = docname('') + doctype
+ Store.flash_data(docnamestr)
end
def rename(srcdoctype,dstdoctype)
Store.rename(docname(srcdoctype),docname(dstdoctype))
end
\ No newline at end of file