Open GoogleCodeExporter opened 8 years ago
I have posted information about this plugin on Chiliproject forums (see
https://www.chiliproject.org/boards/1/topics/1211?r=1230#message-1230) and the
response from developers was: "The DMSF plugin seems to still use the old and
deprecated events, it won't work as is with current ChiliProject, sorry."
Original comment by pafcio...@gmail.com
on 16 Feb 2012 at 7:12
Comment lines as shown below. You will loose activity entries from DMSF but
error will disappear.
Please vote for #125.
/app/models/dmsf_file.rb
# acts_as_event :title => Proc.new {|o| "#{o.title} - #{o.name}"},
# :description => Proc.new {|o| o.description },
# :url => Proc.new {|o| {:controller => "dmsf_files", :action =>
"show", :id => o, :download => ""}},
# :datetime => Proc.new {|o| o.updated_at },
# :author => Proc.new {|o| o.last_revision.user }
/app/models/dmsf_file_revision.rb
# acts_as_event :title => Proc.new {|o| "#{l(:label_dmsf_updated)}:
#{o.file.dmsf_path_str}"},
# :url => Proc.new {|o| {:controller => 'dmsf_files', :action =>
'show', :id => o.file}},
# :datetime => Proc.new {|o| o.updated_at },
# :description => Proc.new {|o| o.comment },
# :author => Proc.new {|o| o.user }
#
# acts_as_activity_provider :type => "dmsf_files",
# :timestamp =>
"#{DmsfFileRevision.table_name}.updated_at",
# :author_key =>
"#{DmsfFileRevision.table_name}.user_id",
# :permission => :view_dmsf_files,
# :find_options => {:select =>
"#{DmsfFileRevision.table_name}.*",
# :joins =>
# "INNER JOIN
#{DmsfFile.table_name} ON #{DmsfFileRevision.table_name}.dmsf_file_id =
#{DmsfFile.table_name}.id " +
# "INNER JOIN
#{Project.table_name} ON #{DmsfFile.table_name}.project_id =
#{Project.table_name}.id",
# :conditions =>
["#{DmsfFile.table_name}.deleted = :false", {:false => false}]
# }
/app/models/dmsf_folder.rb
# acts_as_event :title => Proc.new {|o| o.title},
# :description => Proc.new {|o| o.description },
# :url => Proc.new {|o| {:controller => "dmsf", :action =>
"show", :id => o.project, :folder_id => o}},
# :datetime => Proc.new {|o| o.updated_at },
# :author => Proc.new {|o| o.user }
/init.rb
# activity_provider :dmsf_files, :class_name => "DmsfFileRevision", :default
=> true
Original comment by wojciech...@gmail.com
on 24 Feb 2012 at 6:29
[deleted comment]
Thanks:-) I voted for the issue you had pointed.
Original comment by pafcio...@gmail.com
on 28 Feb 2012 at 7:07
Original issue reported on code.google.com by
pafcio...@gmail.com
on 13 Feb 2012 at 10:35