• R/O
  • SSH
  • HTTPS

tenarai: 提交


Commit MetaInfo

修訂65 (tree)
時間2008-04-01 19:39:03
作者junkikuchi

Log Message

updated.

Change Summary

差異

--- trunk/Rakefile (revision 64)
+++ trunk/Rakefile (revision 65)
@@ -384,9 +384,29 @@
384384 'preference.form.type' => 'edit',
385385 }
386386 },
387-
388387 =begin
389388 {
389+ :name => 'session.user.content.view.html.admin.bd.user.content',
390+ :class => 'Widget::UserAdmin::Content',
391+ :row => {},
392+ :relation => {'view' => 'view:resource.admin.user.home'},
393+ :preference => {}
394+ },
395+=end
396+=begin
397+ {
398+ :name => 'session.user.content.view.html.admin.bd.user.home.content',
399+ :class => 'Widget::UserAdmin::Content',
400+ :row => {},
401+ :relation => {'view' => 'view:resource.admin.user.home'},
402+ :preference => {
403+ 'box.size.width' => '900px',
404+ 'preference.form.type' => 'edit',
405+ }
406+ },
407+=end
408+=begin
409+ {
390410 :name => 'session.user.content.view.html.admin.new_user',
391411 :class => 'Widget::User::Form',
392412 :row => {},
--- trunk/lib/tenarai/cgi/query.rb (revision 64)
+++ trunk/lib/tenarai/cgi/query.rb (revision 65)
@@ -9,15 +9,15 @@
99 class CGI
1010 class Query
1111 class << self
12- def encode(param)
13- param.inject(Query.new) do |ret, (key, val)|
12+ def encode(q)
13+ q.inject(Query.new) do |ret, (key, val)|
1414 ret[key] = val
1515 ret
1616 end
1717 end
1818
19- def decode(query)
20- query.to_s.split(/[&;]/).inject(Query.new) do |ret, q|
19+ def decode(s)
20+ s.to_s.split(/[&;]/).inject(Query.new) do |ret, q|
2121 key, val = q.split('=')
2222 ret[CGI.decode(key)] = CGI.decode(val)
2323 ret
--- trunk/config.rb (revision 64)
+++ trunk/config.rb (revision 65)
@@ -14,6 +14,7 @@
1414 :server => {
1515 :address => '0.0.0.0',
1616 :port => 8080,
17+ #:port => 8080..8085,
1718 :pub_dir => "#{BASE_DIR}/pub",
1819 :app_dir => "#{BASE_DIR}/webapp",
1920 },
--- trunk/webapp/Widget/UserAdmin/Form.rb (revision 64)
+++ trunk/webapp/Widget/UserAdmin/Form.rb (revision 65)
@@ -49,6 +49,8 @@
4949 resource.content.name
5050 end
5151
52+ xml.tag('div').text(path.map do |val| val.class.name end.join(' > '))
53+
5254 xml.tag('div', 'id' => html_id) do |div|
5355 div.tag('form', 'method' => 'post', 'action' => url) do |form|
5456 form.tag('p') do |p|
Show on old repository browser