Permalink
Browse files

Augh. XMLRPC will convert true and false: but ljpost is delivering

"true" (the string), not any kind of boolean true.
  • Loading branch information...
dagbrown authored and Dave Brown committed Oct 3, 2007
1 parent 63dcae3 commit 19ac3bbd78c486ec1b6f61a480a8e6a1484142c6
Showing with 0 additions and 41 deletions.
  1. +0 −41 lib/livejournaller.rb
View
@@ -164,50 +164,9 @@ def post subject, text, options = {}
end
end
[ :opt_nocomments, :opt_preformatted, :opt_backdated,
:opt_noemail, :hasscreened ].each do |boolean_option_name|
if Boolean === callhash[:props][boolean_option_name] then
callhash[:props][boolean_option_name] =
callhash[:props][boolean_option_name] ? 1 : 0
end
end
postevent callhash
end
def comments
puts "exporting comments"
c = export_comments
puts "parsing comment XML"
r = REXML::Document.new c
my_comments = r.elements.each("//comment") {}
# my_comments = r.elements.each("//comment") {}.map do |comment|
# puts comment.to_s
# id = comment.attributes["id"].to_i
# puts "doing comment #{id}"
# cachefilename = File.join(@comment_cache_dir, "#{id}.yaml")
# if File.exists?(cachefilename)
# YAML.load File.read(cachefilename)
# else
# dumpme = {
# :id => comment.attributes["id"].to_i,
# :poster => poster(comment.attributes["posterid"]),
# :entry_id => comment.attributes["jitemid"].to_i,
# :parent_id => comment.attributes["parentid"].to_i,
# :subject => comment.elements["//subject"].text,
# :body => comment.elements["//body"].text,
# :date => DateTime.parse(comment.elements["//date"].text)
# }
# p dumpme
#
# File.open(cachefilename,"w") do |f|
# f.print YAML.dump(dumpme)
# end
# dumpme
# end
# end
end
def poster posterid, start_id = 0
comment_summaries start_id
@usermap[posterid.to_s]

0 comments on commit 19ac3bb

Please sign in to comment.