Project

General

Profile

Patch #1404 » D1071_enlarge_wiki_content_take2.patch

Patch updated against r1736 - Thomas Lecavelier, 2008-08-12 21:38

View differences:

test/unit/wiki_content_test.rb (copie de travail)
assert_equal User.find(1), content.author
assert_equal content.text, content.versions.last.text
end
def test_very_big_create
page = WikiPage.new(:wiki => @wiki, :title => "Big big page")
big_text = "X" * 1024 * 64
bt_l = big_text.length
puts "text length: #{bt_l}"
page.content = WikiContent.new(:text => big_text, :author => User.find(1), :comments => "Eat that, MySQL")
page.save
assert_equal bt_l, WikiPage.find(page.id).content.text.length, "Wiki content lost!"
end
def test_update
content = @page.content
test/functional/issues_controller_test.rb (copie de travail)
:attachments => {'1' => {'file' => test_uploaded_file('testfile.txt', 'text/plain')}}
assert_redirected_to 'issues/show/1'
j = Issue.find(1).journals.find(:first, :order => 'id DESC')
puts j.notes
assert j.notes.blank?
assert_equal 1, j.details.size
assert_equal 'testfile.txt', j.details.first.value
app/controllers/wiki_controller.rb (copie de travail)
@content.attributes = params[:content]
@content.author = User.current
# if page is new @page.save will also save content, but not if page isn't a new record
if (@page.new_record? ? @page.save : @content.save)
if (@page.new_record? ? @page.save! : @content.save!)
redirect_to :action => 'index', :id => @project, :page => @page.title
end
end
rescue ActiveRecord::StatementInvalid
# Content too long for database
flash[:error] = l(:text_wiki_content_too_large)
rescue ActiveRecord::StaleObjectError
# Optimistic locking exception
flash[:error] = l(:notice_locking_conflict)
lang/lt.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/uk.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/ro.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/zh.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/pt.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/da.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/sr.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/ru.yml (copie de travail)
text_email_delivery_not_configured: "Параметры работы с почтовым сервером не настроены и функция уведомления по email не активна.\nНастроить параметры для вашего SMTP сервера вы можете в файле config/email.yml. Для применения изменений перезапустите приложение."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/de.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/bg.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/sv.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/ja.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/he.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/fi.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/en.yml (copie de travail)
enumeration_issue_priorities: Issue priorities
enumeration_doc_categories: Document categories
enumeration_activities: Activities (time tracking)
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/cs.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/fr.yml (copie de travail)
text_enumeration_destroy_question: 'Cette valeur est affectée à %d objets.'
text_enumeration_category_reassign_to: 'Réaffecter les objets à cette valeur:'
text_email_delivery_not_configured: "L'envoi de mail n'est pas configuré, les notifications sont désactivées.\nConfigurez votre serveur SMTP dans config/email.yml et redémarrez l'application pour les activer."
text_wiki_content_too_large: Le contenu du wiki est trop grand pour votre base de données. Merci de tronquer ce contenu.
default_role_manager: Manager
default_role_developper: Développeur
lang/es.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/nl.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/ko.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/zh-tw.yml (copie de travail)
enumeration_activities: 活動 (時間追蹤)
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/pl.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/th.yml (copie de travail)
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/no.yml (copie de travail)
text_assign_time_entries_to_project: Overfør førte timer til prosjektet
text_reassign_time_entries: 'Overfør førte timer til denne saken:'
text_user_wrote: '%s skrev:'
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
default_role_manager: Leder
default_role_developper: Utvikler
......
text_email_delivery_not_configured: "Email delivery is not configured, and notifications are disabled.\nConfigure your SMTP server in config/email.yml and restart the application to enable them."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/it.yml (copie de travail)
text_email_delivery_not_configured: "La consegna via e-mail non è configurata e le notifiche sono disabilitate.\nConfigura il tuo server SMTP in config/email.yml e riavvia l'applicazione per abilitarle."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
lang/hu.yml (copie de travail)
text_email_delivery_not_configured: "Az E-mail küldés nincs konfigurálva, és az értesítések ki vannak kapcsolva.\nÁllítsd be az SMTP szervert a config/email.yml fájlban és indítsd újra az alkalmazást, hogy érvénybe lépjen."
field_parent_title: Parent page
label_issue_watchers: Watchers
text_wiki_content_too_large: Wiki content is too large for your database. Please truncate it.
(2-2/4)