From trejkaz at trypticon.org Thu Feb 1 07:13:15 2007 From: trejkaz at trypticon.org (Trejkaz) Date: Thu, 1 Feb 2007 23:13:15 +1100 Subject: [typo] Switch To HAML? In-Reply-To: References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> Message-ID: <200702012313.18895.trejkaz@trypticon.org> On Thursday 01 February 2007 13:45, Steve Longdo wrote: > Wow! I hope HAML doesn't become the de facto templating system in Typo. I > imagine that the 4.0 release will become the final one that has any wide > adoption if this is true. Yeah, I dislike HAML too. If it were up to me and a change had to be made (rhtml isn't so evil, honestly) I'd probably jump to Markaby since it carries all the so-called benefits of HAML without creating yet another language which needs to be learned. I suppose it should still be possible to drop in Markaby and use it for whatever templates we want. Rails usually makes that kind of thing trivial anyway. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20070201/ff2786a2/attachment.bin From seandanielsmith at gmail.com Thu Feb 1 08:39:37 2007 From: seandanielsmith at gmail.com (Sean) Date: Thu, 1 Feb 2007 09:39:37 -0400 Subject: [typo] Switch To HAML? In-Reply-To: <200702012313.18895.trejkaz@trypticon.org> References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <200702012313.18895.trejkaz@trypticon.org> Message-ID: <7398c2160702010539v498d7bd9kb10825eac2bdcc4d@mail.gmail.com> Ah, if I am interpreting this right, the issue is the one mentioned here: http://groups.google.com/group/haml/browse_thread/thread/225ea81289cbc3d8/b4e288c5a66f076d?hl=en#b4e288c5a66f076d which, as the thread says, is fixed in trunk and making its way to stable. What I am interested in is if there will be a theme where all the regular views are actually rhtml (for those that prefer it). Looking at the typo trunk, the default views are all being completely converted to haml, and the old rhtml being tossed away. Having a theme where all the regular views are also rhtml might be helpful to those who don't have the time/desire to learn haml. Similarly, themes for whatever other template languages Typo supports. Then again, I can also see that as a bit of a pita when making changes to the views. Regards, Sean On 2/1/07, Trejkaz wrote: > On Thursday 01 February 2007 13:45, Steve Longdo wrote: > > Wow! I hope HAML doesn't become the de facto templating system in Typo. I > > imagine that the 4.0 release will become the final one that has any wide > > adoption if this is true. > > Yeah, I dislike HAML too. If it were up to me and a change had to be made > (rhtml isn't so evil, honestly) I'd probably jump to Markaby since it carries > all the so-called benefits of HAML without creating yet another language > which needs to be learned. > > I suppose it should still be possible to drop in Markaby and use it for > whatever templates we want. Rails usually makes that kind of thing trivial > anyway. > > TX > > > -- > Email: trejkaz at trypticon.org > Jabber ID: trejkaz at trypticon.org > Web site: http://trypticon.org/ > GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From orangej2 at gmail.com Thu Feb 1 18:43:43 2007 From: orangej2 at gmail.com (John Gedeon) Date: Thu, 1 Feb 2007 15:43:43 -0800 Subject: [typo] macro issues Message-ID: <68dc58930702011543m7f42ddc4m948da347594e88d2@mail.gmail.com> Hello, Typo and ruby noob here. I just installed typo 4.0.3 on my site, the host has rails 1.1.6 and ruby 1.8.5 installed, everything went smooth and configured fine. I wanted to test out the lightbox macro with a photo on my site. I added the tag however, at first it just rendered visible until I turned off the Textile filter. Once that was off the post text only showed up but the tag was as is in the html source and didn't show on the page. I looked through the logs and found the following at about the time I had tried to load the page. Processing ContentController#show (for 199.106.103.254 at 2007-02-01 16:29:39) [ GET] Session ID: 8f7464f1dac3fd6620b17391a1ba5183 Parameters: {"action"=>"show", "id"=>"1", "controller"=>"admin/content"} Rendering within layouts/administration Rendering admin/content/show Filter macropost failed: undefined method `empty?' for nil:NilClass Completed in 0.08970 (11 reqs/sec) | Rendering: 0.08559 (95%) | DB: 0.00166(1%) | 200 OK [http://test.gedeons.com/admin/content/show/1] Processing ArticlesController#index (for 199.106.103.254 at 2007-02-01 16:29:57) [GET] Parameters: {"action"=>"index", "controller"=>"articles"} Rendering within ../../themes/azure/layouts/default Rendering articles/index Filter macropost failed: undefined method `empty?' for nil:NilClass BENCHMARK: layout/content (0.00005) Start rendering component ({:controller=>SidebarController, :action=>"display_pl ugins"}): not sure what that means, I tried searching the archives and google but could not find anything. Do I have to turn the macros on or did something go wrong with my install? TIA, John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070201/ae39d3d3/attachment-0001.html From meta at pobox.com Fri Feb 2 12:55:40 2007 From: meta at pobox.com (mathew) Date: Fri, 2 Feb 2007 11:55:40 -0600 Subject: [typo] Switch To HAML? In-Reply-To: References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> Message-ID: <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> On 1/31/07, Steve Longdo wrote: > Wow! I hope HAML doesn't become the de facto templating system in Typo. I > imagine that the 4.0 release will become the final one that has any wide > adoption if this is true. I agree. I think HAML is a dumb idea, because it means you can't just edit your templates in a standard XHTML or XML editor. If typo moves to HAML, I drop typo, unless there's an HTML-to-HAML converter. I don't want to learn another markup language unless there's a really, really compelling reason. Making templates take up less characters is not that reason. mathew -- From martin at stabenfeldt.net Fri Feb 2 15:57:01 2007 From: martin at stabenfeldt.net (Martin Stabenfeldt) Date: Fri, 2 Feb 2007 21:57:01 +0100 Subject: [typo] Trouble with latest gem typo. Message-ID: Dear list, I?m running latest gem installable Typo. I had a "Application error (Rails)" from the typo version I had running. So I hoped running the following would get me back on track: gem update typo; gem install typo . ; cp ../oldworking-typo/config/database.yml config/; typo start . But I still get the Application error (Rails) message. Did a rake db:migrate without sucsess. When trying to access myhost:4547/admin, I get redirected to http://myhost:4547/admin/general/update_database the log says this: Processing GeneralController#update_database (for 195.159.113.10 at 2007-02-02 21:44:17) [GET] Session ID: a9cf2317dc5a376ae8e5e854e81d6bec Parameters: {"action"=>"update_database", "controller"=>"admin/general"} NoMethodError (undefined method `collect' for nil:NilClass): /app/controllers/admin/general_controller.rb:18:in `update_database' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:408:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:408:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /usr/bin/mongrel_rails:18:in `load' /usr/bin/mongrel_rails:18 I ran rake db:migrate afterward, just to make sure. Any suggestions to how to get my blog up running again? All help is highly appreciated! Best regards, Martin Stabenfeldt ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'url' in 'field list': INSERT INTO contents (`updated_at`, `body`, `guid`, `published`, `url`, `author`, `type`, `id`, `blog_id`, `published_at`, `article_id`, `state`, `created_at`, `email`) VALUES ('2004-05-02 20:00:02', 'Comment body _italic_ *bold*', 'b1i2n3g4o5t6i7v', 1, 'www.google.com', 'John Bar', 'Comment', 15, 1, '2004-05-02 20:00:02', 14, 'ContentState::Ham', '2004-05-02 20:00:02', 'john.bar at google.com') /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:184:in `execute' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:288:in `insert_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:287:in `each' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:287:in `insert_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:257:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:257:in `each' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:257:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:255:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/base.rb:794:in `silence' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:248:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:565:in `load_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:512:in `setup_with_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:547:in `setup' 151) Error: test_xml_atom10(XmlControllerTest): ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'url' in 'field list': INSERT INTO contents (`updated_at`, `body`, `guid`, `published`, `url`, `author`, `type`, `id`, `blog_id`, `published_at`, `article_id`, `state`, `created_at`, `email`) VALUES ('2004-05-02 20:00:02', 'Comment body _italic_ *bold*', 'b1i2n3g4o5t6i7v', 1, 'www.google.com', 'John Bar', 'Comment', 15, 1, '2004-05-02 20:00:02', 14, 'ContentState::Ham', '2004-05-02 20:00:02', 'john.bar at google.com') /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:184:in `execute' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:288:in `insert_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:287:in `each' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:287:in `insert_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:257:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:257:in `each' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:257:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:255:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/base.rb:794:in `silence' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:248:in `create_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:565:in `load_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:512:in `setup_with_fixtures' /home/martins/public_html/typo-current/temp/gemtest/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:547:in `setup' 210 tests, 192 assertions, 0 failures, 151 errors rake aborted! Test failures From orangej2 at gmail.com Fri Feb 2 18:12:06 2007 From: orangej2 at gmail.com (John Gedeon) Date: Fri, 2 Feb 2007 15:12:06 -0800 Subject: [typo] Development vs Production Message-ID: <68dc58930702021512k7009b331o99fef62fea26e837@mail.gmail.com> Hi, I had another issue with setting up Typo today. I was trying to add the required javascript for google analytics and I found http://scattrbrain.com/articles/2006/09/08/tweaking-typo-for-your-needswhich described editing typo/app/helper/article_helper.rb and adding the js code to the page_head method. I did just that, however the change only shows up when I have typo running in dev mode and disappears when in production mode. Is there a cache I need to delete or something? John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070202/2060361a/attachment.html From orangej2 at gmail.com Fri Feb 2 19:30:08 2007 From: orangej2 at gmail.com (John Gedeon) Date: Fri, 2 Feb 2007 16:30:08 -0800 Subject: [typo] Development vs Production In-Reply-To: <68dc58930702021512k7009b331o99fef62fea26e837@mail.gmail.com> References: <68dc58930702021512k7009b331o99fef62fea26e837@mail.gmail.com> Message-ID: <68dc58930702021630o6da86ffctbbef48918671d042@mail.gmail.com> I found the solution. Turns out I just needed to clear out the contents of the typo/tmp/cache/META/DATA/ACTION_PARAM folder. On 2/2/07, John Gedeon wrote: > > Hi, > > I had another issue with setting up Typo today. I was trying to add the > required javascript for google analytics and I found http://scattrbrain.com/articles/2006/09/08/tweaking-typo-for-your-needs > which described editing typo/app/helper/article_helper.rb and adding the > js code to the page_head method. I did just that, however the change only > shows up when I have typo running in dev mode and disappears when in > production mode. Is there a cache I need to delete or something? > > John > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070202/2569c5d8/attachment.html From martin at stabenfeldt.net Sat Feb 3 05:32:29 2007 From: martin at stabenfeldt.net (Martin Stabenfeldt) Date: Sat, 3 Feb 2007 11:32:29 +0100 Subject: [typo] Updating database / Controller stack got out of kilter! Message-ID: Dear List, I?m running typo installed from the latest gem. Got rails 1.2.1 and 1.1.6 installed. I?m using my old typo-database, don?t remember which typo-version it comes from. I can see all my old posts and content from http://myhost:4822/admin/content, but when viewing the main page, they are all gone and I get the "Application error (Rails)" message in the sidebar. I ran "update database" first thing, when I logged into the admin page. from production.log: RuntimeError (Controller stack got out of kilter!): /app/models/blog.rb:127:in `after' /vendor/rails/actionpack/lib/action_controller/filters.rb:227:in `around_filter' Any suggestions on what to do? Very grateful for all help! Best regards, Martin Stabenfeldt From meta at pobox.com Sat Feb 3 10:15:01 2007 From: meta at pobox.com (mathew) Date: Sat, 3 Feb 2007 09:15:01 -0600 Subject: [typo] Rails broke typo Message-ID: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> My web host upgraded rails, and now I get this error in production.log: ActionView::TemplateError (xml_url failed to generate from {:action=>"feed", :ty pe=>"article", :format=>"rss", :controller=>"xml", :id=>"2051"}, expected: {:act ion=>"feed", :type=>"sitemap", :format=>"googlesitemap", :controller=>"xml"}, di ff: {:type=>"sitemap", :format=>"googlesitemap", :id=>"2051"}) on line #33 of th emes/scribbish/views/articles/_article.rhtml: 30: <%= trackbacks_link(article) << ',' if article.allow_pings? %> 31: <%= comments_link(article) << ',' if article.allow_comments? %> 32: permalink, 33: rss, 34: atom 35: 36: [followed by an ENORMOUS backtrace] and a bunch of errors on startup: It looks like you've upgraded to the new version of Rails...and broken my web site: /home/meta/typo/public/../config/boot.rb:38:Warning: require_gem is obsolete. Use gem instead. /home/meta/typo/public/../config/boot.rb:38:Warning: require_gem is obsolete. Use gem instead. DEPRECATION WARNING: The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead. See http://www.rubyonrails.org/deprecation for details. See http://www.rubyonrails.org/deprecation for details. (called from has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550) DEPRECATION WARNING: The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead. See http://www.rubyonrails.org/deprecation for details. See http://www.rubyonrails.org/deprecation for details. (called from has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550) DEPRECATION WARNING: The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead. See http://www.rubyonrails.org/deprecation for details. See http://www.rubyonrails.org/deprecation for details. (called from has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550) DEPRECATION WARNING: The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead. See http://www.rubyonrails.org/deprecation for details. See http://www.rubyonrails.org/deprecation for details. (called from has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550) DEPRECATION WARNING: The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead. See http://www.rubyonrails.org/deprecation for details. See http://www.rubyonrails.org/deprecation for details. (called from has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550) DEPRECATION WARNING: The :dependent => true option is deprecated and will be removed from Rails 2.0. Please use :dependent => :destroy instead. See http://www.rubyonrails.org/deprecation for details. See http://www.rubyonrails.org/deprecation for details. (called from has_many at /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/associations.rb:550) Any suggestions? mathew -- From meta at pobox.com Sat Feb 3 10:42:43 2007 From: meta at pobox.com (mathew) Date: Sat, 3 Feb 2007 09:42:43 -0600 Subject: [typo] Rails broke typo In-Reply-To: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> References: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> Message-ID: <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> OK, much as I didn't want to do it, I upgraded to edge typo (rev 1361). Took a backup of my data. First time through got a heartwarming message from rake migrate: == SeparateEntriesAndFeedback: migrating ====================================== rake aborted! This is a more or less untested migration that might lose data. Backup before commenting out line 10 of db/migrate/058_separate_entries_and_feedback.rb I went ahead and commented out line 10, and everything appears to have migrated OK. Then, since someone has gone ahead and converted scribbish to that HAML crap and I need to be able to add yadis entries to my HTML element, I deleted the scribbish subdirectory downloaded from SVN and replaced it with the old one from typo 4. I repeat my previous comment: either HAML goes, or I do. mathew From neuro at 7el.net Sat Feb 3 11:04:37 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Sat, 3 Feb 2007 17:04:37 +0100 Subject: [typo] Rails broke typo In-Reply-To: <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> References: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> Message-ID: <720FA0A3-9028-41A9-A4DE-A971972817D4@7el.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've already told Kevin about this once on IRC, I'll repeat my point of view here. Using HAML on the default theme is stupid, because people want to modify a but their theme and they will just digg into HTML, nothing else. IMHO, HAML is really good for a web application where end users are not supposed to modify templates. It should fit well on the admin as long as you can't override admin views in themes. I hope the core team will do a step back and revert default themes as RHTML while offering the HAML option. Le 3 f?vr. 07 ? 16:42, mathew a ?crit : > OK, much as I didn't want to do it, I upgraded to edge typo (rev > 1361). > > Took a backup of my data. > > First time through got a heartwarming message from rake migrate: > > == SeparateEntriesAndFeedback: migrating > ====================================== > rake aborted! > This is a more or less untested migration that might lose data. > Backup before commenting out line 10 of > db/migrate/058_separate_entries_and_feedback.rb > > I went ahead and commented out line 10, and everything appears to have > migrated OK. > > Then, since someone has gone ahead and converted scribbish to that > HAML crap and I need to be able to add yadis entries to my HTML > element, I deleted the scribbish subdirectory downloaded from SVN and > replaced it with the old one from typo 4. > > I repeat my previous comment: either HAML goes, or I do. > > > mathew > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list - -- Fr?d?ric de Villamil "C'est pourquoi je veux t'aimer / ? jamais te louer / toujours t'appartenir / et sans cesses te servir" frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFxLKWCvkKk5nKviARAk2nAJ4jmWkm47KawfDhKJVhTwH98twdSgCg2rvi nXrjFNzmBIS9DwSHMaJvNno= =HMOL -----END PGP SIGNATURE----- From neuro at 7el.net Sat Feb 3 11:07:20 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Sat, 3 Feb 2007 17:07:20 +0100 Subject: [typo] Admin complete reorganisation Message-ID: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi list, This morning I've posted a patch that completely reorganises the admin section. The current admin organisation is based on the scaffold, while mine is based on the way people actually use a publication engine. I've set up a demo at http://typodev.fredericdevillamil.com/admin so you can have a look and give me your feedback login admin password admin Cheers Frederic de Villamil - -- Fr?d?ric de Villamil "C'est pourquoi je veux t'aimer / ? jamais te louer / toujours t'appartenir / et sans cesses te servir" frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFxLM5CvkKk5nKviARAuAeAJ4qUkVkdm6J4kV6aYWW7IuX/vb22wCeNhf/ W8n37PX/EG6r17DC7oJL7ho= =Oq/y -----END PGP SIGNATURE----- From meta at pobox.com Sat Feb 3 12:17:07 2007 From: meta at pobox.com (mathew) Date: Sat, 3 Feb 2007 11:17:07 -0600 Subject: [typo] Rails broke typo In-Reply-To: <720FA0A3-9028-41A9-A4DE-A971972817D4@7el.net> References: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> <720FA0A3-9028-41A9-A4DE-A971972817D4@7el.net> Message-ID: <7eeceb440702030917l3b22ca17y22d72b780a8dfd7c@mail.gmail.com> On 2/3/07, Frederic de Villamil wrote: > Using HAML on the default theme is stupid, because people want to > modify a but their theme and they will just digg into HTML, nothing > else. Yes. Absolutely. Nobody is going to learn a whole new markup language just so they can (as in my example) add 4 lines of metadata to the element of their web site. Similarly, people who design all those slick layouts aren't going to learn a whole new markup language so they can convert their slick layouts to work on typo. mathew From mikemondragon at gmail.com Sat Feb 3 12:38:23 2007 From: mikemondragon at gmail.com (Mike Mondragon) Date: Sat, 3 Feb 2007 09:38:23 -0800 Subject: [typo] Admin complete reorganisation In-Reply-To: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> Message-ID: <967d3b9a0702030938n25ee39acj4dadd0636eff686e@mail.gmail.com> On 2/3/07, Frederic de Villamil wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi list, > > This morning I've posted a patch that completely reorganises the > admin section. > > The current admin organisation is based on the scaffold, while mine > is based on the way people actually use a publication engine. > > I've set up a demo at http://typodev.fredericdevillamil.com/admin so > you can have a look and give me your feedback > login admin > password admin > > Cheers > > Frederic de Villamil > - -- > Fr?d?ric de Villamil > "C'est pourquoi je veux t'aimer / ? jamais te louer / toujours > t'appartenir / et sans cesses te servir" > frederic at de-villamil.com tel: +33 (0)6 62 19 1337 > http://fredericdevillamil.com > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Darwin) > > iD8DBQFFxLM5CvkKk5nKviARAuAeAJ4qUkVkdm6J4kV6aYWW7IuX/vb22wCeNhf/ > W8n37PX/EG6r17DC7oJL7ho= > =Oq/y > -----END PGP SIGNATURE----- > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > Nice work. I'm using Typo 4.0.3 and the most annoying thing for me in the Admin interface is how the preview pane makes the view of the browser jump around when the preview it updated. I don't know if this change fixes that or if a previous change fixes it, but its not annoying any longer. I have some free time coming up I'll have get synced up with the edge and start to contribute. -- Mike Mondragon http://mondragon.cc/ From pdcawley at bofh.org.uk Tue Feb 6 07:27:31 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 06 Feb 2007 12:27:31 +0000 Subject: [typo] Rails broke typo In-Reply-To: <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> (mathew's message of "Sat, 3 Feb 2007 09:42:43 -0600") References: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> Message-ID: mathew writes: > Then, since someone has gone ahead and converted scribbish to that > HAML crap and I need to be able to add yadis entries to my HTML > element, I deleted the scribbish subdirectory downloaded from SVN and > replaced it with the old one from typo 4. > > I repeat my previous comment: either HAML goes, or I do. Boy, you know how to make friends and influence developers don't you? For the record, as long as it's impossible to render rhtml partials from a HAMLized view, then I'm very much inclined to roll back the experiment of HAMLizing our various themes in favour of simply supporting people who want to write HAML partials for things like sidebars. As a heads up, I'm also thinking about rejigging the sidebar/plugin architecture and basing it on an event (possibly mixed with DOM callbacks) driven system. So a comment gatekeeper plugin would register itself as interested in post filtering .comment-box to add a "type the results of multiplying three by 10 here" type challenge and as a before handler for Article::Controller#comment to check for the presence of the correct captcha Textfilters would work in similar fashion, with 'post' filters registering to manipulate either the whole chunk of formatted text, or simply specific DOM/XPath entities. Ideally they'd receive a DOM object rather than simple text, but that's dependent on an appropriately lightweight parser being available. The idea here is that most plugins would be operating in controller/helper space, which means they'd have access to routing and other helper type tools, and that means we could remove a bunch of routing type stuff that's currently in the models because the textfilters need them, and that would be good. I really dislike duplicating whole chunks of stuff that Rails could/should be doing for us. NB, this is currently very sketchy and should not be, in any way, taken to be a promise or anything more than a back of an envelope design sketch. Filters, sidebars and other plugins have been bugging me for a while, there has to be a Better Way, but I'm not entirely sure what that is yet. -- Piers Cawley http://www.bofh.org.uk/ From pdcawley at bofh.org.uk Tue Feb 6 07:41:15 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Tue, 06 Feb 2007 12:41:15 +0000 Subject: [typo] Admin complete reorganisation In-Reply-To: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> (Frederic de Villamil's message of "Sat, 3 Feb 2007 17:07:20 +0100") References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> Message-ID: Frederic de Villamil writes: > Hi list, > > This morning I've posted a patch that completely reorganises the > admin section. > > The current admin organisation is based on the scaffold, while mine > is based on the way people actually use a publication engine. > > I've set up a demo at http://typodev.fredericdevillamil.com/admin so > you can have a look and give me your feedback > login admin > password admin Mmm... nice reorg. It does make the workings of some of the panes feel a little clunky in some ways (there *has* to be a better way than drag and drop for managing the sidebar!), and I'm not entirely convinced by the placing of some of the panes (surely textfilters belong somewhere under the look and feel pane, for instance), but the basic organization does seem to make a good deal more sense than what's there already. If I don't get beaten to the punch I'll most likely be applying this patch in the near future. -- Piers Cawley http://www.bofh.org.uk/ From mattvanhorn at gmail.com Tue Feb 6 10:57:09 2007 From: mattvanhorn at gmail.com (Matthew Van Horn) Date: Tue, 6 Feb 2007 10:57:09 -0500 Subject: [typo] Integrating Typo into another RoR app Message-ID: This might be a dumb question, but my google-fu is weak this morning and I can't find any leads. I was wondering if there is a 'best practices' way of integrating Typo into another rails app. I am building an application that is a portfolio site, with similar functionality to flickr. There is to be a blogging component - managed by the site owner, NOT individual blogs for members.I wanted to use typo for this, but I'm not sure of the best way to do that. I could merge the codebases, but that would mean headaches whenever I wanted to upgrade Typo versions. I could run it as a seperate web app, but I'm not sure then if I'd be able to integrate blog posts into other site pages. Ideally, I'd like single sign-on and the ability to show the latest blog posts in a sidebar of the other site pages. I'm still rather new to this, so any help would be appreciated - I don't need a lot of tech details, just general direction. Thanks, Matt V -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070206/9b7c91de/attachment.html From ernieoporto at gmail.com Tue Feb 6 18:41:28 2007 From: ernieoporto at gmail.com (Ernie Oporto) Date: Tue, 6 Feb 2007 18:41:28 -0500 Subject: [typo] Admin complete reorganisation In-Reply-To: References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> Message-ID: How about two regular old HTML lists with "Add" and "Remove" buttons between the two? The left list is all possible sidebar pieces, the right list is all chosen sidebar pieces. Next to the right-hand list are up and down arrow buttons (one above the other) for moving the chosen pieces up or down the list. Between the two is a button Config that then makes visible the familiar little config pane for that particular sidebar component further to the side. (ALL) (Chosen) (Config Pane) ----- ----- Up ----- - - Add - - Config - - - - Remove - - Down - - ----- ----- ----- On 2/6/07, Piers Cawley wrote: > Frederic de Villamil writes: > > > Hi list, > > > > This morning I've posted a patch that completely reorganises the > > admin section. > > > > The current admin organisation is based on the scaffold, while mine > > is based on the way people actually use a publication engine. > > > > I've set up a demo at http://typodev.fredericdevillamil.com/admin so > > you can have a look and give me your feedback > > login admin > > password admin > > Mmm... nice reorg. It does make the workings of some of the panes feel > a little clunky in some ways (there *has* to be a better way than drag > and drop for managing the sidebar!), and I'm not entirely convinced by > the placing of some of the panes (surely textfilters belong somewhere > under the look and feel pane, for instance), but the basic > organization does seem to make a good deal more sense than what's > there already. If I don't get beaten to the punch I'll most likely be > applying this patch in the near future. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070206/22df23cc/attachment-0001.html From orangej2 at gmail.com Tue Feb 6 19:52:46 2007 From: orangej2 at gmail.com (John Gedeon) Date: Tue, 6 Feb 2007 16:52:46 -0800 Subject: [typo] Admin complete reorganisation In-Reply-To: References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> Message-ID: <68dc58930702061652y2272dfbehcb6022feb9bcd654@mail.gmail.com> Personally I like the current typo interface for managing the sidebar. I guess its the whole ajax novelty but I prefer it to the regular old HTML Lists. Perhaps there could be an option to choose which one you want to use in user preferences. John On 2/6/07, Ernie Oporto wrote: > > > How about two regular old HTML lists with "Add" and "Remove" buttons > between the two? > The left list is all possible sidebar pieces, the right list is all chosen > sidebar pieces. > Next to the right-hand list are up and down arrow buttons (one above the > other) for moving the chosen pieces up or down the list. > Between the two is a button Config that then makes visible the familiar > little config pane for that particular sidebar component further to the > side. > > > (ALL) (Chosen) (Config Pane) > ----- ----- Up ----- > - - Add - - Config - - > - - Remove - - Down - - > ----- ----- ----- > > > On 2/6/07, Piers Cawley wrote: > > Frederic de Villamil writes: > > > > > Hi list, > > > > > > This morning I've posted a patch that completely reorganises the > > > admin section. > > > > > > The current admin organisation is based on the scaffold, while mine > > > is based on the way people actually use a publication engine. > > > > > > I've set up a demo at http://typodev.fredericdevillamil.com/admin so > > > you can have a look and give me your feedback > > > login admin > > > password admin > > > > Mmm... nice reorg. It does make the workings of some of the panes feel > > a little clunky in some ways (there *has* to be a better way than drag > > and drop for managing the sidebar!), and I'm not entirely convinced by > > the placing of some of the panes (surely textfilters belong somewhere > > under the look and feel pane, for instance), but the basic > > organization does seem to make a good deal more sense than what's > > there already. If I don't get beaten to the punch I'll most likely be > > applying this patch in the near future. > > > > -- > > Piers Cawley > > http://www.bofh.org.uk/ > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > -- > Ernie > http://www.shokk.com/blog/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070206/447f4594/attachment.html From meta at pobox.com Tue Feb 6 23:20:57 2007 From: meta at pobox.com (mathew) Date: Tue, 6 Feb 2007 22:20:57 -0600 Subject: [typo] Rails broke typo In-Reply-To: References: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> Message-ID: <7eeceb440702062020g475b1614i71e1f4e468d07ebc@mail.gmail.com> On 2/6/07, Piers Cawley wrote: > mathew writes: > > I repeat my previous comment: either HAML goes, or I do. > > Boy, you know how to make friends and influence developers don't you? Yeah, well, I studied at the Austin Ziegler Charm School on ruby-core. :-) > For the record, as long as it's impossible to render rhtml partials > from a HAMLized view, then I'm very much inclined to roll back the > experiment of HAMLizing our various themes in favour of simply > supporting people who want to write HAML partials for things like > sidebars. Oh, I have no objection to people writing HAML if they want to. In fact, if people want to develop themes in M4, they can do that too. I just need to be able to customize my web site by editing something HTML-like. If I can't, I'll find some software where I can. It was the HAMLization of the default template that shocked me. > So a comment gatekeeper plugin would register itself as interested in > post filtering .comment-box to add a "type the results of multiplying > three by 10 here" type challenge and as a before handler > for Article::Controller#comment to check for the presence of the > correct captcha And hopefully it'd do a better job than the PHP captchas I keep running into that fail to recognize the correct answer to their own challenge because they assumed they had permission to store cookies in my browser. mathew -- From neuro at 7el.net Wed Feb 7 03:26:48 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Wed, 7 Feb 2007 09:26:48 +0100 Subject: [typo] Admin complete reorganisation In-Reply-To: <68dc58930702061652y2272dfbehcb6022feb9bcd654@mail.gmail.com> References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> <68dc58930702061652y2272dfbehcb6022feb9bcd654@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I like the current AJAX stuff, it's the fanciest thing on Typo. But I'm also concerned with accessibility, and full AJAX stuff is NOT what I calll accessible. I'm thinking about a replacement a la wordpress for people who haven't javascript enabled : good old HTML list to display and control enabled / disabled plugins, with a configuration page ffor every plugin. I'm going to try something in the next few weeks / months, depends on how much time the admin rebuild takes me. Le 7 f?vr. 07 ? 01:52, John Gedeon a ?crit : > Personally I like the current typo interface for managing the > sidebar. I guess its the whole ajax novelty but I prefer it to the > regular old HTML Lists. Perhaps there could be an option to choose > which one you want to use in user preferences. > > John > > On 2/6/07, Ernie Oporto wrote: > How about two regular old HTML lists with "Add" and "Remove" > buttons between the two? > The left list is all possible sidebar pieces, the right list is all > chosen sidebar pieces. > Next to the right-hand list are up and down arrow buttons (one > above the other) for moving the chosen pieces up or down the list. > Between the two is a button Config that then makes visible the > familiar little config pane for that particular sidebar component > further to the side. > > > (ALL) (Chosen) (Config Pane) > ----- ----- Up ----- > - - Add - - Config - - > - - Remove - - Down - - > ----- ----- ----- > > > > On 2/6/07, Piers Cawley wrote: > > Frederic de Villamil writes: > > > > > Hi list, > > > > > > This morning I've posted a patch that completely reorganises the > > > admin section. > > > > > > The current admin organisation is based on the scaffold, while > mine > > > is based on the way people actually use a publication engine. > > > > > > I've set up a demo at http://typodev.fredericdevillamil.com/ > admin so > > > you can have a look and give me your feedback > > > login admin > > > password admin > > > > Mmm... nice reorg. It does make the workings of some of the panes > feel > > a little clunky in some ways (there *has* to be a better way than > drag > > and drop for managing the sidebar!), and I'm not entirely > convinced by > > the placing of some of the panes (surely textfilters belong > somewhere > > under the look and feel pane, for instance), but the basic > > organization does seem to make a good deal more sense than what's > > there already. If I don't get beaten to the punch I'll most > likely be > > applying this patch in the near future. > > > > -- > > Piers Cawley > > http://www.bofh.org.uk/ > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > -- > Ernie > http://www.shokk.com/blog/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list - -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFyY1JCvkKk5nKviARAk6WAJ4rsJ4ogiDSgfiXOoeCR87eL4yN8QCgpjr6 aETBumivZzkqU7ZhMw/J7BE= =PU+Q -----END PGP SIGNATURE----- From pdcawley at bofh.org.uk Wed Feb 7 05:04:09 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 07 Feb 2007 10:04:09 +0000 Subject: [typo] Rails broke typo In-Reply-To: <7eeceb440702062020g475b1614i71e1f4e468d07ebc@mail.gmail.com> (mathew's message of "Tue, 6 Feb 2007 22:20:57 -0600") References: <7eeceb440702030715q714f69bbrd87dffa5e780e1c1@mail.gmail.com> <7eeceb440702030742s7f55aea0i56101c4b4d6b9e94@mail.gmail.com> <7eeceb440702062020g475b1614i71e1f4e468d07ebc@mail.gmail.com> Message-ID: mathew writes: >> So a comment gatekeeper plugin would register itself as interested in >> post filtering .comment-box to add a "type the results of multiplying >> three by 10 here" type challenge and as a before handler >> for Article::Controller#comment to check for the presence of the >> correct captcha > > And hopefully it'd do a better job than the PHP captchas I keep > running into that fail to recognize the correct answer to their own > challenge because they assumed they had permission to store cookies in > my browser. Frankly, I don't care whether they do or not. It'll be a cold day in hell before I put any captcha system in the core. -- Piers Cawley http://www.bofh.org.uk/ From orangej2 at gmail.com Wed Feb 7 09:26:58 2007 From: orangej2 at gmail.com (John Gedeon) Date: Wed, 7 Feb 2007 06:26:58 -0800 Subject: [typo] Admin complete reorganisation In-Reply-To: References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> <68dc58930702061652y2272dfbehcb6022feb9bcd654@mail.gmail.com> Message-ID: <68dc58930702070626m4adf3843s8dca49d8885fc7e8@mail.gmail.com> Ah. Now I understand. Yes I think fall back for those that don't have javascript enabled is good. Accessibly is important. John On 2/7/07, Frederic de Villamil wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I like the current AJAX stuff, it's the fanciest thing on Typo. But > I'm also concerned with accessibility, and full AJAX stuff is NOT > what I calll accessible. > > I'm thinking about a replacement a la wordpress for people who > haven't javascript enabled : good old HTML list to display and > control enabled / disabled plugins, with a configuration page ffor > every plugin. I'm going to try something in the next few weeks / > months, depends on how much time the admin rebuild takes me. > > > > Le 7 f?vr. 07 ? 01:52, John Gedeon a ?crit : > > > Personally I like the current typo interface for managing the > > sidebar. I guess its the whole ajax novelty but I prefer it to the > > regular old HTML Lists. Perhaps there could be an option to choose > > which one you want to use in user preferences. > > > > John > > > > On 2/6/07, Ernie Oporto wrote: > > How about two regular old HTML lists with "Add" and "Remove" > > buttons between the two? > > The left list is all possible sidebar pieces, the right list is all > > chosen sidebar pieces. > > Next to the right-hand list are up and down arrow buttons (one > > above the other) for moving the chosen pieces up or down the list. > > Between the two is a button Config that then makes visible the > > familiar little config pane for that particular sidebar component > > further to the side. > > > > > > (ALL) (Chosen) (Config Pane) > > ----- ----- Up ----- > > - - Add - - Config - - > > - - Remove - - Down - - > > ----- ----- ----- > > > > > > > > On 2/6/07, Piers Cawley wrote: > > > Frederic de Villamil writes: > > > > > > > Hi list, > > > > > > > > This morning I've posted a patch that completely reorganises the > > > > admin section. > > > > > > > > The current admin organisation is based on the scaffold, while > > mine > > > > is based on the way people actually use a publication engine. > > > > > > > > I've set up a demo at http://typodev.fredericdevillamil.com/ > > admin so > > > > you can have a look and give me your feedback > > > > login admin > > > > password admin > > > > > > Mmm... nice reorg. It does make the workings of some of the panes > > feel > > > a little clunky in some ways (there *has* to be a better way than > > drag > > > and drop for managing the sidebar!), and I'm not entirely > > convinced by > > > the placing of some of the panes (surely textfilters belong > > somewhere > > > under the look and feel pane, for instance), but the basic > > > organization does seem to make a good deal more sense than what's > > > there already. If I don't get beaten to the punch I'll most > > likely be > > > applying this patch in the near future. > > > > > > -- > > > Piers Cawley > > > http://www.bofh.org.uk/ > > > _______________________________________________ > > > Typo-list mailing list > > > Typo-list at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > > > > > > -- > > Ernie > > http://www.shokk.com/blog/ > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > - -- > Fr?d?ric de Villamil > frederic at de-villamil.com tel: +33 (0)6 62 19 1337 > http://fredericdevillamil.com > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Darwin) > > iD8DBQFFyY1JCvkKk5nKviARAk6WAJ4rsJ4ogiDSgfiXOoeCR87eL4yN8QCgpjr6 > aETBumivZzkqU7ZhMw/J7BE= > =PU+Q > -----END PGP SIGNATURE----- > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070207/f524821b/attachment-0001.html From pdcawley at bofh.org.uk Wed Feb 7 17:19:49 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 07 Feb 2007 22:19:49 +0000 Subject: [typo] Admin complete reorganisation In-Reply-To: <68dc58930702070626m4adf3843s8dca49d8885fc7e8@mail.gmail.com> (John Gedeon's message of "Wed, 7 Feb 2007 06:26:58 -0800") References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> <68dc58930702061652y2272dfbehcb6022feb9bcd654@mail.gmail.com> <68dc58930702070626m4adf3843s8dca49d8885fc7e8@mail.gmail.com> Message-ID: "John Gedeon" writes: > Ah. Now I understand. Yes I think fall back for those that don't have > javascript enabled is good. Accessibly is important. In Europe it's a legal requirement, and not just for Government Work. I'm not quite sure how it works for free software, but not having accessible admin has the potential to hamper anyone who wants to run a commercial service involving Typo. -- Piers Cawley http://www.bofh.org.uk/ From lumen at bulma.net Thu Feb 8 06:39:55 2007 From: lumen at bulma.net (lumen) Date: Thu, 8 Feb 2007 12:39:55 +0100 Subject: [typo] new contributor: developer documentation Message-ID: <20070208113954.GA7239@bulma.net> Hi: I'm a rails newbie and want to learn wity Typo how a real project is written in rails. Of course, I want to be a real contributor in the near future (if I can). Are over there any development documentation to start with? Just to familiarize with the whole prject structure and database? Thanks a lot let me see the source of this great project. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/typo-list/attachments/20070208/79110448/attachment.bin From neuro at 7el.net Thu Feb 8 07:59:28 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Thu, 8 Feb 2007 13:59:28 +0100 Subject: [typo] new contributor: developer documentation In-Reply-To: <20070208113954.GA7239@bulma.net> References: <20070208113954.GA7239@bulma.net> Message-ID: <9BC8541A-53CC-4415-B852-4522C3AFFE99@7el.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 8 f?vr. 07 ? 12:39, lumen a ?crit : > Hi: > > I'm a rails newbie and want to learn wity Typo how a real project is > written in rails. Of course, I want to be a real contributor in the > near > future (if I can). > > Are over there any development documentation to start with? Just to > familiarize with the whole prject structure and database? > > Thanks a lot let me see the source of this great project. Hi, 2 things to do : ? read the development guide on the wiki ? read the source, Luke ! Cheers, Fredercic - -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFyx6wCvkKk5nKviARAqL5AKChBXIZzTfSQ/2t78QK/WHIFpBArgCfeWx/ fVj1kXGMSKjXZEJEZqDfhrg= =hGuf -----END PGP SIGNATURE----- From pdcawley at bofh.org.uk Thu Feb 8 09:35:45 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Thu, 08 Feb 2007 14:35:45 +0000 Subject: [typo] new contributor: developer documentation In-Reply-To: <9BC8541A-53CC-4415-B852-4522C3AFFE99@7el.net> (Frederic de Villamil's message of "Thu, 8 Feb 2007 13:59:28 +0100") References: <20070208113954.GA7239@bulma.net> <9BC8541A-53CC-4415-B852-4522C3AFFE99@7el.net> Message-ID: Frederic de Villamil writes: > Le 8 f?vr. 07 ? 12:39, lumen a ?crit : > >> Hi: >> >> I'm a rails newbie and want to learn wity Typo how a real project is >> written in rails. Of course, I want to be a real contributor in the >> near >> future (if I can). >> >> Are over there any development documentation to start with? Just to >> familiarize with the whole prject structure and database? >> >> Thanks a lot let me see the source of this great project. > > Hi, > > 2 things to do : > ? read the development guide on the wiki > ? read the source, Luke ! Step 3: Shudder with alarm as you read it. -- Piers Cawley http://www.bofh.org.uk/ From ernieoporto at gmail.com Thu Feb 8 14:11:08 2007 From: ernieoporto at gmail.com (Ernie Oporto) Date: Thu, 8 Feb 2007 14:11:08 -0500 Subject: [typo] Admin complete reorganisation In-Reply-To: References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> <68dc58930702061652y2272dfbehcb6022feb9bcd654@mail.gmail.com> <68dc58930702070626m4adf3843s8dca49d8885fc7e8@mail.gmail.com> Message-ID: With my idea, AJAXy goodness can still be built in to handle the transfer of the listed panes from one column to another without page reloads. Or if we need something less-HTML looking, I'm sure something similiarly simple yet colorful can be put together. My main issue with the current sidebar setup is that when moving a component up and down the list, I can only do so past one or two other existing modules. This makes handling modules more like: slide, page down, slide, page down, slide, page down... So long as that is fixed, I don't care what the solution is. =) Maybe my sidebar is just too full. On 2/7/07, Piers Cawley wrote: > > "John Gedeon" writes: > > > Ah. Now I understand. Yes I think fall back for those that don't have > > javascript enabled is good. Accessibly is important. > > In Europe it's a legal requirement, and not just for Government > Work. I'm not quite sure how it works for free software, but not > having accessible admin has the potential to hamper anyone who wants > to run a commercial service involving Typo. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070208/acbfd73a/attachment.html From stephen.3.odonnell at bt.com Thu Feb 8 15:13:25 2007 From: stephen.3.odonnell at bt.com (stephen.3.odonnell at bt.com) Date: Thu, 8 Feb 2007 20:13:25 -0000 Subject: [typo] Sidebar plugin help Message-ID: <2A7793353757DB4392DF4DFBBC952255531746@I2KM11-UKBR.domain1.systemhost.net> Guys, I am getting a bit stuck trying to create a Typo sidebar plugin using Typo 4.03. This is my first time using Typo and I am quite new to Rails too, so please bear with me! I want to create a plugin called 'gallery', so I created a controller called gallerysb (for gallery sidebar) in components/plugins/sidebars and a folder called gallerysb in the directory. Inside the directory I created a directory called content.rthml containing the following: $ more content.rhtml

gallery

My controller contains: $ more gallerysb_controller.rb class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin display_name "Gallery" description 'gallery stuff' def content end end When I attempt to publish the controller, Typo just hangs and doesn't do it. I can make other plugings active though (the built in ones). Can anyone point out what I am doing wrong please? Also, my plugin is going to need a model - where should I put the model code? Basically I want to have my sidebar plugin that generates a list of available galleries, and when you click on one, it goes into a gallery controller which displays a page showing all the gallery images. I guess the gallery should have its own controller too. Any help is greatly appreciated! Thanks, Stephen. From lumen at bulma.net Thu Feb 8 15:46:52 2007 From: lumen at bulma.net (lumen) Date: Thu, 8 Feb 2007 21:46:52 +0100 Subject: [typo] getting problems with gem installer Message-ID: <20070208204652.GA14827@bulma.net> Hi: I can't get typo gem installation success. In a debian, I have installed: ruby1.8 ruby1.8-dev rdoc1.8.2-1 gems 0.9.2 When running 'typo install some_dir' it don't pass the tests: ---------------------------------------------------------------------------------- copying rails 1.1.6 to /home/lumen/tmp/some_dir/vendor/rails/railties copying activesupport 1.3.1 to /home/lumen/tmp/some_dir/vendor/rails/activesupport copying activerecord 1.14.4 to /home/lumen/tmp/some_dir/vendor/rails/activerecord copying actionpack 1.12.5 to /home/lumen/tmp/some_dir/vendor/rails/actionpack copying actionmailer 1.2.5 to /home/lumen/tmp/some_dir/vendor/rails/actionmailer copying actionwebservice 1.1.6 to /home/lumen/tmp/some_dir/vendor/rails/actionwebservice Making scripts executable Checking database Creating initial database expanding apache20.conf.example template expanding lighttpd.conf.example template expanding apache13.conf.example template Migrating Typo's database to newest release Cleaning out Typo's cache Running tests. This may take a minute or two ***** Tests failed ***** ** Please run 'rake test' by hand in your install directory. ** Report problems to the Typo mailing list. ***** Tests failed ***** Starting Typo on port 4740 Typo is now running on http://suyilinux:4740 Use 'typo start /home/lumen/tmp/some_dir' to restart after boot. Look in installer/*.conf.example to see how to integrate with your web server. ---------------------------------------------------------------------------------- When running 'rake test:units' I get a lot of errors of type: ---------------------------------------------------------------- test_sha1(UserTest): SQLite3::SQLException: SQL logic error or missing database /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/errors.rb:94:in `check' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:76:in `check' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:68:in `commence' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:61:in `initialize' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/statement.rb:163:in `new' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/statement.rb:163:in `execute' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:212:in `execute' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:187:in `prepare' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:211:in `execute' /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:621:in `rollback' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:183:in `rollback_db_transaction' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:329:in `catch_schema_changes' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:183:in `rollback_db_transaction' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:533:in `teardown' ---------------------------------------------------------------- This typo of errors only dissapear if I switch off the "in memory database" feature, and create the corresponding database (and database.yml). Tested in two different machines. Any help? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/typo-list/attachments/20070208/8650ef85/attachment.bin From lumen at bulma.net Thu Feb 8 15:53:09 2007 From: lumen at bulma.net (lumen) Date: Thu, 8 Feb 2007 21:53:09 +0100 Subject: [typo] more problems with test Message-ID: <20070208205309.GB14827@bulma.net> Hi, here another time, experimenting problems to pass the tests: When I get arround the problem comented in the other tread, creating a sqlite database not in memory, I get this other test errors: ------------------------------------------------------------------------- 22) Error: test_article(TagTest): MissingSourceFile: no such file to load -- content_state/'' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in `require' /home/lumen/tmp/some_dir/config/../app/models/content_state/factory.rb:9:in `new' (eval):3:in `state' /home/lumen/tmp/some_dir/config/../app/models/content.rb:115:in `state_before_save' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:344:in `send' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:344:in `callback' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:341:in `each' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:341:in `callback' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:252:in `create_or_update' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/base.rb:1392:in `save_without_validation' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/validations.rb:736:in `save_without_transactions' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:91:in `transaction' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:118:in `transaction' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/transactions.rb:126:in `save' /home/lumen/tmp/some_dir/config/../vendor/rails/activerecord/lib/active_record/base.rb:408:in `create' ./test/unit/tag_test.rb:46:in `test_article' ------------------------------------------------------------------------- Directory content_state/ exist in app/models. ------------------------------------------------------------------------- lumen at uo:~/projects/typo/run$ ls -lhd app/models/content_state/ drwxrwxr-x 2 lumen lumen 4.0K 2007-02-08 14:13 app/models/content_state/ ------------------------------------------------------------------------- lumen at uo:~/projects/typo/run$ ls -lh app/models/content_state/ total 64K -rw-r--r-- 1 lumen lumen 1.5K 2007-02-08 12:59 base.rb -rw-r--r-- 1 lumen lumen 688 2007-02-08 12:59 draft.rb -rw-r--r-- 1 lumen lumen 356 2007-02-08 12:59 factory.rb -rw-r--r-- 1 lumen lumen 537 2007-02-08 12:59 ham.rb -rw-r--r-- 1 lumen lumen 257 2007-02-08 12:59 just_marked_as_ham.rb -rw-r--r-- 1 lumen lumen 546 2007-02-08 12:59 just_marked_as_spam.rb -rw-r--r-- 1 lumen lumen 869 2007-02-08 12:59 just_presumed_ham.rb -rw-r--r-- 1 lumen lumen 1.3K 2007-02-08 12:59 just_published.rb -rw-r--r-- 1 lumen lumen 775 2007-02-08 12:59 new.rb -rw-r--r-- 1 lumen lumen 523 2007-02-08 12:59 presumed_ham.rb -rw-r--r-- 1 lumen lumen 540 2007-02-08 12:59 presumed_spam.rb -rw-r--r-- 1 lumen lumen 999 2007-02-08 12:59 publication_pending.rb -rw-r--r-- 1 lumen lumen 804 2007-02-08 12:59 published.rb -rw-r--r-- 1 lumen lumen 394 2007-02-08 12:59 spam.rb -rw-r--r-- 1 lumen lumen 701 2007-02-08 12:59 unclassified.rb -rw-r--r-- 1 lumen lumen 651 2007-02-08 12:59 withdrawn.rb ------------------------------------------------------------------------- Anybody has an idea about what is the problem? I can't figure out the reason. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/typo-list/attachments/20070208/6763fe19/attachment-0001.bin From orangej2 at gmail.com Thu Feb 8 20:54:22 2007 From: orangej2 at gmail.com (John Gedeon) Date: Thu, 8 Feb 2007 17:54:22 -0800 Subject: [typo] Admin complete reorganisation In-Reply-To: References: <2D3AB035-5538-46DA-8023-5589796B180D@7el.net> <68dc58930702061652y2272dfbehcb6022feb9bcd654@mail.gmail.com> <68dc58930702070626m4adf3843s8dca49d8885fc7e8@mail.gmail.com> Message-ID: <68dc58930702081754j666ca754p2af243235010122b@mail.gmail.com> I see I haven't run into that yet since I just started using typo and my side bar is still short. I can see how that would be an issue. John On 2/8/07, Ernie Oporto wrote: > > With my idea, AJAXy goodness can still be built in to handle the transfer > of the listed panes from one column to another without page reloads. Or if > we need something less-HTML looking, I'm sure something similiarly simple > yet colorful can be put together. My main issue with the current sidebar > setup is that when moving a component up and down the list, I can only do so > past one or two other existing modules. This makes handling modules more > like: slide, page down, slide, page down, slide, page down... So long as > that is fixed, I don't care what the solution is. =) Maybe my sidebar is > just too full. > > > > On 2/7/07, Piers Cawley wrote: > > > > "John Gedeon" writes: > > > > > Ah. Now I understand. Yes I think fall back for those that don't have > > > javascript enabled is good. Accessibly is important. > > > > In Europe it's a legal requirement, and not just for Government > > Work. I'm not quite sure how it works for free software, but not > > having accessible admin has the potential to hamper anyone who wants > > to run a commercial service involving Typo. > > > > -- > > Piers Cawley > > http://www.bofh.org.uk/ > > _______________________________________________ > > Typo-list mailing list > > Typo-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/typo-list > > > > > > -- > Ernie > http://www.shokk.com/blog/ > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070208/fb83159b/attachment.html From mattrose at folkwolf.net Thu Feb 8 20:59:28 2007 From: mattrose at folkwolf.net (Matt Rose) Date: Thu, 8 Feb 2007 20:59:28 -0500 Subject: [typo] new contributor: developer documentation In-Reply-To: References: <20070208113954.GA7239@bulma.net> <9BC8541A-53CC-4415-B852-4522C3AFFE99@7el.net> Message-ID: On 8-Feb-07, at 9:35 AM, Piers Cawley wrote: > Frederic de Villamil writes: > >> Le 8 f?vr. 07 ? 12:39, lumen a ?crit : >> >>> Hi: >>> >>> I'm a rails newbie and want to learn wity Typo how a real >>> project is >>> written in rails. Of course, I want to be a real contributor in the >>> near >>> future (if I can). >>> >>> Are over there any development documentation to start with? Just to >>> familiarize with the whole prject structure and database? >>> >>> Thanks a lot let me see the source of this great project. >> >> Hi, >> >> 2 things to do : >> ? read the development guide on the wiki >> ? read the source, Luke ! > Step 3: Shudder with alarm as you read it. Step 4: Decide to write your own blog engine. Seriously, I looked at improving typo a little while ago, and decided that it would be more educational to write my own blog engine. Typo is really good, but as an example of Rails code, it leaves something to be desired. > > -- > Piers Cawley > http://www.bofh.org.uk/ > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list From pdcawley at bofh.org.uk Fri Feb 9 01:47:34 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Fri, 09 Feb 2007 06:47:34 +0000 Subject: [typo] new contributor: developer documentation In-Reply-To: (Matt Rose's message of "Thu, 8 Feb 2007 20:59:28 -0500") References: <20070208113954.GA7239@bulma.net> <9BC8541A-53CC-4415-B852-4522C3AFFE99@7el.net> Message-ID: Matt Rose writes: > On 8-Feb-07, at 9:35 AM, Piers Cawley wrote: > >> Frederic de Villamil writes: >> >>> Le 8 f?vr. 07 ? 12:39, lumen a ?crit : >>> >>>> Hi: >>>> >>>> I'm a rails newbie and want to learn wity Typo how a real >>>> project is >>>> written in rails. Of course, I want to be a real contributor in the >>>> near >>>> future (if I can). >>>> >>>> Are over there any development documentation to start with? Just to >>>> familiarize with the whole prject structure and database? >>>> >>>> Thanks a lot let me see the source of this great project. >>> >>> Hi, >>> >>> 2 things to do : >>> ? read the development guide on the wiki >>> ? read the source, Luke ! >> Step 3: Shudder with alarm as you read it. > > Step 4: Decide to write your own blog engine. > > Seriously, I looked at improving typo a little while ago, and decided > that it would be more educational to write my own blog engine. Typo > is really good, but as an example of Rails code, it leaves something > to be desired. Yeah, Rails has moved on. Nowadays it does stuff easily that we are stuck doing by hand. Catch is, I kind of like the old thing and reckon it's worth trying to bring it up to modern standards. -- Piers Cawley http://www.bofh.org.uk/ From stephen.3.odonnell at bt.com Fri Feb 9 05:09:27 2007 From: stephen.3.odonnell at bt.com (stephen.3.odonnell at bt.com) Date: Fri, 9 Feb 2007 10:09:27 -0000 Subject: [typo] Sidebar plugin help Message-ID: <2A7793353757DB4392DF4DFBBC9522550BAE8976@I2KM11-UKBR.domain1.systemhost.net> Guys, I think this is a bug - can anyone else reproduce? Create a simple plugin like mine below on Typo 4.0.3 and attempt to publish it. That operation should fail, and an error will appear in the production log indicating something similar to 'unknown method each on object nil' (I don't have the exact message here as its on my home computer). Adding a single setting to the controller allows it to work, ie $ more gallerysb_controller.rb class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin setting :foo, 'foopie' display_name "Gallery" description 'gallery stuff' def content end end This problem occurs on OS X Stephen. -----Original Message----- From: O'Donnell,S,Stephen,XMB R Sent: 08 February 2007 20:13 To: typo-list at rubyforge.org Subject: Sidebar plugin help Guys, I am getting a bit stuck trying to create a Typo sidebar plugin using Typo 4.03. This is my first time using Typo and I am quite new to Rails too, so please bear with me! I want to create a plugin called 'gallery', so I created a controller called gallerysb (for gallery sidebar) in components/plugins/sidebars and a folder called gallerysb in the directory. Inside the directory I created a directory called content.rthml containing the following: $ more content.rhtml

gallery

My controller contains: $ more gallerysb_controller.rb class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin display_name "Gallery" description 'gallery stuff' def content end end When I attempt to publish the controller, Typo just hangs and doesn't do it. I can make other plugings active though (the built in ones). Can anyone point out what I am doing wrong please? Also, my plugin is going to need a model - where should I put the model code? Basically I want to have my sidebar plugin that generates a list of available galleries, and when you click on one, it goes into a gallery controller which displays a page showing all the gallery images. I guess the gallery should have its own controller too. Any help is greatly appreciated! Thanks, Stephen. From meta at pobox.com Fri Feb 9 14:06:40 2007 From: meta at pobox.com (mathew) Date: Fri, 9 Feb 2007 13:06:40 -0600 Subject: [typo] getting problems with gem installer In-Reply-To: <20070208204652.GA14827@bulma.net> References: <20070208204652.GA14827@bulma.net> Message-ID: <7eeceb440702091106h79ae25d3x273ec9d9af6ab65b@mail.gmail.com> Debian's "ruby" package doesn't contain all of Ruby. In particular, you're missing sqlite. apt-get install libdbd-sqlite-ruby libsqlite0 libsqlite0-dev gem install --remote sqlite-ruby may fix it. mathew From wheresdave at gmail.com Fri Feb 9 18:08:58 2007 From: wheresdave at gmail.com (Dave C) Date: Fri, 9 Feb 2007 15:08:58 -0800 Subject: [typo] Newbie Installation problems Message-ID: Trying to install typo 4 on a VPS server and as I am new to this I am not sure what I might be doing wrong. I downloaded typo via the subversion instructions, then setup the db, and edited all of the files as per the instructions. The only area where I think I may be having troubles is the .htacess files and possibly the symlink, although I am not sure I even need a symlink. I have gone through a few different tutorials on how to set this up but none of them have provided the magic bullet. If anyone has any suggestions or insight, or a working .htaccess file it would be appreciated. Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070209/99feb06b/attachment.html From seandanielsmith at gmail.com Fri Feb 9 23:36:32 2007 From: seandanielsmith at gmail.com (Sean) Date: Sat, 10 Feb 2007 00:36:32 -0400 Subject: [typo] Sidebar plugin help In-Reply-To: <2A7793353757DB4392DF4DFBBC9522550BAE8976@I2KM11-UKBR.domain1.systemhost.net> References: <2A7793353757DB4392DF4DFBBC9522550BAE8976@I2KM11-UKBR.domain1.systemhost.net> Message-ID: <7398c2160702092036t23a32268r3e3f151bcd1b7b40@mail.gmail.com> Can you publish the exact error log? Preferably when running in development, for added info. Regards, Sean On 2/9/07, stephen.3.odonnell at bt.com wrote: > Guys, > > I think this is a bug - can anyone else reproduce? > > Create a simple plugin like mine below on Typo 4.0.3 and attempt to > publish it. That operation should fail, and an error will appear in the > production log indicating something similar to 'unknown method each on > object nil' (I don't have the exact message here as its on my home > computer). > > Adding a single setting to the controller allows it to work, ie > > $ more gallerysb_controller.rb > class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin > > setting :foo, 'foopie' > > display_name "Gallery" > description 'gallery stuff' > > def content > end > end > > This problem occurs on OS X > > Stephen. > > -----Original Message----- > From: O'Donnell,S,Stephen,XMB R > Sent: 08 February 2007 20:13 > To: typo-list at rubyforge.org > Subject: Sidebar plugin help > > > Guys, > > I am getting a bit stuck trying to create a Typo sidebar plugin using > Typo 4.03. This is my first time using Typo and I am quite new to > Rails too, so please bear with me! > > I want to create a plugin called 'gallery', so I created a controller > called gallerysb (for gallery sidebar) in components/plugins/sidebars > and a folder called gallerysb in the directory. > > Inside the directory I created a directory called content.rthml > containing the following: > > $ more content.rhtml >

gallery

> > My controller contains: > > $ more gallerysb_controller.rb > class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin > > display_name "Gallery" > description 'gallery stuff' > > def content > end > end > > When I attempt to publish the controller, Typo just hangs and doesn't > do it. I can make other plugings active though (the built in ones). > > Can anyone point out what I am doing wrong please? > > Also, my plugin is going to need a model - where should I put the > model code? Basically I want to have my sidebar plugin that generates > a list of available galleries, and when you click on one, it goes into > a gallery controller which displays a page showing all the gallery > images. I guess the gallery should have its own controller too. > > Any help is greatly appreciated! > > Thanks, > > Stephen. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > From stephen.3.odonnell at bt.com Sat Feb 10 11:18:40 2007 From: stephen.3.odonnell at bt.com (stephen.3.odonnell at bt.com) Date: Sat, 10 Feb 2007 16:18:40 -0000 Subject: [typo] Sidebar plugin help Message-ID: <2A7793353757DB4392DF4DFBBC952255531749@I2KM11-UKBR.domain1.systemhost.net> OK - here is error log while running in development mode: Create a controller: class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin display_name "Gallery" description 'Stuff from the gallery' # setting :pie, 'foopie' def content nil end def config nil end end Note that there are not settings defined. Now attempt to make the plugin active, after clicking publish changes the following appears in the development log: Processing SidebarController#publish (for 192.168.0.48 at 2007-02-10 16:10:18) [POST] Session ID: 747c57e83bcf016db9dfa9ecffb073b6 Parameters: {"action"=>"publish", "configure"=>{"1"=>{"empty"=>"0", "count"=>"1"}, "2"=>{"body"=>"\n", "title"=>"Links"}}, "controller"=>"admin/sidebar"} Blog Load (0.000606) SELECT * FROM blogs ORDER BY id LIMIT 1 Trigger Load (0.000387) SELECT * FROM triggers WHERE (due_at <= '2007-02-10 16:10:18') SQL (0.000468) SELECT version FROM schema_info Sidebar Update (0.000979) UPDATE sidebars SET active_position = null Sidebar Load (0.000603) SELECT * FROM sidebars WHERE (sidebars.id = 1) LIMIT 1 SQL (0.001441) PRAGMA table_info(sidebars) Sidebar Update (0.000405) UPDATE sidebars SET "controller" = 'category', "active_position" = 0, "staged_position" = NULL, "config" = '--- !map:HashWithIndifferentAccess empty: false count: "1" ' WHERE id = 1 Sidebar Load (0.000581) SELECT * FROM sidebars WHERE (sidebars.id = 2) LIMIT 1 Sidebar Update (0.000292) UPDATE sidebars SET "controller" = 'static', "active_position" = 1, "staged_position" = NULL, "config" = '--- !map:HashWithIndifferentAccess title: Links body: | ' WHERE id = 2 Sidebar Load (0.000539) SELECT * FROM sidebars WHERE (sidebars.id = 3) LIMIT 1 NoMethodError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occured while evaluating nil.each): /app/controllers/admin/sidebar_controller.rb:60:in `publish' /app/controllers/admin/sidebar_controller.rb:55:in `publish' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:51:in `transaction' /vendor/rails/activerecord/lib/active_record/transactions.rb:91:in `transaction' /app/controllers/admin/sidebar_controller.rb:51:in `publish' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in `perform_action_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:408:in `process_without_filters' /vendor/rails/actionpack/lib/action_controller/filters.rb:377:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in `process' /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:84:in `process' /usr/local/lib/ruby/1.8/sync.rb:229:in `synchronize' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:83:in `process' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in `process_client' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:267:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:266:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:127:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in `run' /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231 /usr/local/bin/mongrel_rails:18 SQL (0.003495) PRAGMA table_info(users) Rendering /Users/james/rails/typo_test/config/../vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error) Uncommenting the setting in the controller allows everthing to work correctly. Cheers, Stephen. -----Original Message----- From: typo-list-bounces at rubyforge.org on behalf of Sean Sent: Sat 2/10/2007 04:36 To: typo-list at rubyforge.org Subject: Re: [typo] Sidebar plugin help Can you publish the exact error log? Preferably when running in development, for added info. Regards, Sean On 2/9/07, stephen.3.odonnell at bt.com wrote: > Guys, > > I think this is a bug - can anyone else reproduce? > > Create a simple plugin like mine below on Typo 4.0.3 and attempt to > publish it. That operation should fail, and an error will appear in the > production log indicating something similar to 'unknown method each on > object nil' (I don't have the exact message here as its on my home > computer). > > Adding a single setting to the controller allows it to work, ie > > $ more gallerysb_controller.rb > class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin > > setting :foo, 'foopie' > > display_name "Gallery" > description 'gallery stuff' > > def content > end > end > > This problem occurs on OS X > > Stephen. > > -----Original Message----- > From: O'Donnell,S,Stephen,XMB R > Sent: 08 February 2007 20:13 > To: typo-list at rubyforge.org > Subject: Sidebar plugin help > > > Guys, > > I am getting a bit stuck trying to create a Typo sidebar plugin using > Typo 4.03. This is my first time using Typo and I am quite new to > Rails too, so please bear with me! > > I want to create a plugin called 'gallery', so I created a controller > called gallerysb (for gallery sidebar) in components/plugins/sidebars > and a folder called gallerysb in the directory. > > Inside the directory I created a directory called content.rthml > containing the following: > > $ more content.rhtml >

gallery

> > My controller contains: > > $ more gallerysb_controller.rb > class Plugins::Sidebars::GallerysbController < Sidebars::ComponentPlugin > > display_name "Gallery" > description 'gallery stuff' > > def content > end > end > > When I attempt to publish the controller, Typo just hangs and doesn't > do it. I can make other plugings active though (the built in ones). > > Can anyone point out what I am doing wrong please? > > Also, my plugin is going to need a model - where should I put the > model code? Basically I want to have my sidebar plugin that generates > a list of available galleries, and when you click on one, it goes into > a gallery controller which displays a page showing all the gallery > images. I guess the gallery should have its own controller too. > > Any help is greatly appreciated! > > Thanks, > > Stephen. > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > _______________________________________________ Typo-list mailing list Typo-list at rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 6307 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20070210/5f05b222/attachment-0001.bin From meta at pobox.com Sat Feb 10 14:44:19 2007 From: meta at pobox.com (mathew) Date: Sat, 10 Feb 2007 13:44:19 -0600 Subject: [typo] Newbie Installation problems In-Reply-To: References: Message-ID: <7eeceb440702101144h2cf1913bxf65aa3df9eb915f@mail.gmail.com> Well, first of all, does typo work if you run it directly via script/server? Secondly, what HTTP server are you trying to configure? mathew -- From kevin at sb.org Sun Feb 11 20:20:01 2007 From: kevin at sb.org (Kevin Ballard) Date: Sun, 11 Feb 2007 20:20:01 -0500 Subject: [typo] Switch To HAML? In-Reply-To: <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> Message-ID: <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> On Feb 2, 2007, at 12:55 PM, mathew wrote: > I agree. I think HAML is a dumb idea, because it means you can't just > edit your templates in a standard XHTML or XML editor. Buh? Who edits HTML in an XML editor? Especially since the eRB escapes aren't, to my knowledge, real XML escapes and so I should be able to construct a valid RHTML file which isn't valid XML. > If typo moves to HAML, I drop typo, unless there's an HTML-to-HAML > converter. I don't want to learn another markup language unless > there's a really, really compelling reason. Making templates take up > less characters is not that reason. Why would you have to learn HAML? If we push out a stable Typo that uses HAML, we'll make sure themes can still use rhtml, so there should be no problem here. -- Kevin Ballard http://kevin.sb.org kevin at sb.org http://www.tildesoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070211/b6c3db3c/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2432 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20070211/b6c3db3c/attachment.bin From neuro at 7el.net Mon Feb 12 05:00:44 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Mon, 12 Feb 2007 11:00:44 +0100 Subject: [typo] Switch To HAML? In-Reply-To: <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 12 f?vr. 07 ? 02:20, Kevin Ballard a ?crit : > On Feb 2, 2007, at 12:55 PM, mathew wrote: > >> I agree. I think HAML is a dumb idea, because it means you can't just >> edit your templates in a standard XHTML or XML editor. > > Buh? Who edits HTML in an XML editor? Especially since the eRB > escapes aren't, to my knowledge, real XML escapes and so I should > be able to construct a valid RHTML file which isn't valid XML. > >> If typo moves to HAML, I drop typo, unless there's an HTML-to-HAML >> converter. I don't want to learn another markup language unless >> there's a really, really compelling reason. Making templates take up >> less characters is not that reason. > > Why would you have to learn HAML? If we push out a stable Typo that > uses HAML, we'll make sure themes can still use rhtml, so there > should be no problem here. > What we're actually going to do is leave one theme with HAML and one with RHTML. This way, people who want to use HAML ? like I do ? will use it, and people who want to open their template in an HTML editor will bbe able to do so. That way, everyone's going to be happy. - -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFF0DrNCvkKk5nKviARArfuAKCxbycutMj7XJ6j+XU0ATiealCJcQCeKfcH O5zbOl1+lhxM2MtfslT3opw= =7dIx -----END PGP SIGNATURE----- From pdcawley at bofh.org.uk Mon Feb 12 05:49:56 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 12 Feb 2007 10:49:56 +0000 Subject: [typo] Switch To HAML? In-Reply-To: (Frederic de Villamil's message of "Mon, 12 Feb 2007 11:00:44 +0100") References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> Message-ID: Frederic de Villamil writes: > Le 12 f?vr. 07 ? 02:20, Kevin Ballard a ?crit : > >> On Feb 2, 2007, at 12:55 PM, mathew wrote: >> >>> I agree. I think HAML is a dumb idea, because it means you can't just >>> edit your templates in a standard XHTML or XML editor. >> >> Buh? Who edits HTML in an XML editor? Especially since the eRB >> escapes aren't, to my knowledge, real XML escapes and so I should >> be able to construct a valid RHTML file which isn't valid XML. >> >>> If typo moves to HAML, I drop typo, unless there's an HTML-to-HAML >>> converter. I don't want to learn another markup language unless >>> there's a really, really compelling reason. Making templates take up >>> less characters is not that reason. >> >> Why would you have to learn HAML? If we push out a stable Typo that >> uses HAML, we'll make sure themes can still use rhtml, so there >> should be no problem here. >> > > What we're actually going to do is leave one theme with HAML and one > with RHTML. > This way, people who want to use HAML ? like I do ? will use it, and > people who want to open their template in an HTML editor will bbe > able to do so. > > That way, everyone's going to be happy. With the possible exception of the sidebar writers. Can HAML templates include RHTML templates yet? -- Piers Cawley http://www.bofh.org.uk/ From neuro at 7el.net Mon Feb 12 06:12:42 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Mon, 12 Feb 2007 12:12:42 +0100 Subject: [typo] Switch To HAML? In-Reply-To: References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> Message-ID: <8DB45D0B-AF9B-4B20-90AD-0F20709C6C93@7el.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 12 f?vr. 07 ? 11:49, Piers Cawley a ?crit : > Frederic de Villamil writes: > >> Le 12 f?vr. 07 ? 02:20, Kevin Ballard a ?crit : >> >>> On Feb 2, 2007, at 12:55 PM, mathew wrote: >>> >>>> I agree. I think HAML is a dumb idea, because it means you can't >>>> just >>>> edit your templates in a standard XHTML or XML editor. >>> >>> Buh? Who edits HTML in an XML editor? Especially since the eRB >>> escapes aren't, to my knowledge, real XML escapes and so I should >>> be able to construct a valid RHTML file which isn't valid XML. >>> >>>> If typo moves to HAML, I drop typo, unless there's an HTML-to-HAML >>>> converter. I don't want to learn another markup language unless >>>> there's a really, really compelling reason. Making templates >>>> take up >>>> less characters is not that reason. >>> >>> Why would you have to learn HAML? If we push out a stable Typo that >>> uses HAML, we'll make sure themes can still use rhtml, so there >>> should be no problem here. >>> >> >> What we're actually going to do is leave one theme with HAML and one >> with RHTML. >> This way, people who want to use HAML ? like I do ? will use it, and >> people who want to open their template in an HTML editor will bbe >> able to do so. >> >> That way, everyone's going to be happy. > > With the possible exception of the sidebar writers. Can HAML templates > include RHTML templates yet? > According to http://unspace.ca/discover/haml "Not only can you use a combination of Haml, RHTML, and RXML templates interchangeably, but as an added bonus Haml automatically adjusts rendered output to the proper indentation level ? even across partials!" Thus I didn't have a look at how much this works. - -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFF0EuqCvkKk5nKviARAmEjAJ9GLhvOxc6dU5bN7UsOk3Pn4zs7zwCfd5ry zqexyjKQC8KjDJJCpaz2geo= =d56H -----END PGP SIGNATURE----- From pdcawley at bofh.org.uk Mon Feb 12 08:02:30 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Mon, 12 Feb 2007 13:02:30 +0000 Subject: [typo] Switch To HAML? In-Reply-To: <8DB45D0B-AF9B-4B20-90AD-0F20709C6C93@7el.net> (Frederic de Villamil's message of "Mon, 12 Feb 2007 12:12:42 +0100") References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> <8DB45D0B-AF9B-4B20-90AD-0F20709C6C93@7el.net> Message-ID: Frederic de Villamil writes: > According to http://unspace.ca/discover/haml > > "Not only can you use a combination of Haml, RHTML, and RXML > templates interchangeably, but as an added bonus Haml automatically > adjusts rendered output to the proper indentation level ? even across > partials!" > > Thus I didn't have a look at how much this works. Hmm... so where did I get the idea that HAML and RHTML don't play well together. Kevin? Was it in coversation with you or am I just making things up out of my head? -- Piers Cawley http://www.bofh.org.uk/ From meta at pobox.com Mon Feb 12 14:10:28 2007 From: meta at pobox.com (mathew) Date: Mon, 12 Feb 2007 13:10:28 -0600 Subject: [typo] Switch To HAML? In-Reply-To: <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> Message-ID: <7eeceb440702121110i22789a20q2549d06801f1a4b8@mail.gmail.com> On 2/11/07, Kevin Ballard wrote: > Buh? Who edits HTML in an XML editor? Especially since the eRB escapes > aren't, to my knowledge, real XML escapes and so I should be able to > construct a valid RHTML file which isn't valid XML. There are a ton of people who edit HTML in XML-aware editors so that they can have syntax coloring and other niceties to make the process less error prone and painful. Are you telling me you don't think anyone editing RHTML uses BBEdit, vim, emacs, ...? > Why would you have to learn HAML? To make the small modifications to themes necessary to implement OpenID, for starters. mathew -- From pdcawley at bofh.org.uk Wed Feb 14 03:34:51 2007 From: pdcawley at bofh.org.uk (Piers Cawley) Date: Wed, 14 Feb 2007 08:34:51 +0000 Subject: [typo] Two step textfiltering Message-ID: I can't remember if I'd written about this on the list before, so, at risk of repeating myself, here's what I've been thinking about recently. So, I've been thinking about textfiltering. It's something I do quite a lot of because I'm still not happy with it. The basic issue with textfiltering is that some macros need access to controller structures (routing, the section, stuff). Meanwhile the filters that do the heavy lifting of converting from the raw content to HTML are usually implemented by external libraries that know nothing and care less about Rails and can be run purely in the model. We already have some kind of separation between these things in that we have Filters and Pre and Post Macro filters. I'm thinking of ditching Pre filters entirely and reworking PostMacros to use a registry approach, keyed on CSS Selectors (using Hpricot for the time being). The way it would work goes like this: A content model has a filter which is used to go from plain text to 'HTML' but that HTML can still contain macro tags (, , that sort of thing). This is the text served up by object.html(:all) or whatever. Meanwhile, our macros plugins have registered themselves with Typo: Blog.add_callback('typo:code', Plugin::TypoCode) Blog.add_callback('[href^=amazon:]', Plugin::Amazon) Then, once it's built the HTML for the page (possibly even after the layout's been applied, but I'm not entirely sure how possible that is) the controller runs HPricot over the generated HTML and then traverses it looking for registered selectors and calls back to any plugins that get triggered. It should be possible to do this in a single pass, calling the 'innermost' hits first, which solves any ordering issues we might have with when macros need to run. The Plugins would get run in a context that gives them access to helpers like 'url_for' etc. Note that this sort of plugin framework has possibilities for more than just textfilters. There's nothing to stop you hooking the body tag and using that to trigger anything you like. One possibility would be hooking into the .comment-box div and adding your own captcha code. Combine that with a hook into the comment controller (I've not worked out what that bit needs to look like yet) and Robert is your parent's sibling. I've been giving some idle thought to theming as well. It seems that once we have this sort of API in place, there would be nothing to stop us adding the capability for themes to come with their own filters. Thoughts? Have I missed something obvious? Do I have spinach on my teeth? -- Piers Cawley http://www.bofh.org.uk/ From wobbet at gmail.com Fri Feb 16 16:21:47 2007 From: wobbet at gmail.com (Robert Sanford) Date: Fri, 16 Feb 2007 15:21:47 -0600 Subject: [typo] Subscriber Access Message-ID: I'm looking for a blog server that will allow me to restrict access to certain blogs, typically by department membership for internal blogs but we also want to limit access to some of our public blog servers based on the level of support that our customers have purchased. Does Typo support that? Many thanks! rjsjr From trejkaz at trypticon.org Sat Feb 17 03:27:17 2007 From: trejkaz at trypticon.org (Trejkaz) Date: Sat, 17 Feb 2007 19:27:17 +1100 Subject: [typo] Subscriber Access In-Reply-To: References: Message-ID: <200702171927.20156.trejkaz@trypticon.org> On Saturday 17 February 2007 08:21, Robert Sanford wrote: > I'm looking for a blog server that will allow me to restrict access to > certain blogs, typically by department membership for internal blogs > but we also want to limit access to some of our public blog servers > based on the level of support that our customers have purchased. > > Does Typo support that? Sounds more like a job for access control (e.g. in Apache) than a job for a webapp. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://rubyforge.org/pipermail/typo-list/attachments/20070217/0f67f68b/attachment.bin From bronson at rinspin.com Sat Feb 17 03:50:18 2007 From: bronson at rinspin.com (Scott Bronson) Date: Sat, 17 Feb 2007 00:50:18 -0800 Subject: [typo] Subscriber Access In-Reply-To: <200702171927.20156.trejkaz@trypticon.org> References: <200702171927.20156.trejkaz@trypticon.org> Message-ID: <9d87242f0702170050y35d574e4g760ed5bf35ccdd73@mail.gmail.com> Or a full-blown CMS! I don't think Typo (or, indeed, most blogging engines) could be easily modified to do this. Maybe look at Drupal, Joomla, or something like that? On 2/17/07, Trejkaz wrote: > On Saturday 17 February 2007 08:21, Robert Sanford wrote: > > I'm looking for a blog server that will allow me to restrict access to > > certain blogs, typically by department membership for internal blogs > > but we also want to limit access to some of our public blog servers > > based on the level of support that our customers have purchased. > > > > Does Typo support that? > > Sounds more like a job for access control (e.g. in Apache) than a job for a > webapp. > > TX > > -- > Email: trejkaz at trypticon.org > Jabber ID: trejkaz at trypticon.org > Web site: http://trypticon.org/ > GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > From maclists at lichtenauer.co.za Sat Feb 17 03:46:10 2007 From: maclists at lichtenauer.co.za (Stephan Lichtenauer) Date: Sat, 17 Feb 2007 09:46:10 +0100 Subject: [typo] Subscriber Access In-Reply-To: <200702171927.20156.trejkaz@trypticon.org> References: <200702171927.20156.trejkaz@trypticon.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, Am 17.02.2007 um 09:27 schrieb Trejkaz: > On Saturday 17 February 2007 08:21, Robert Sanford wrote: >> I'm looking for a blog server that will allow me to restrict >> access to >> certain blogs, typically by department membership for internal blogs >> but we also want to limit access to some of our public blog servers >> based on the level of support that our customers have purchased. >> >> Does Typo support that? > > Sounds more like a job for access control (e.g. in Apache) than a > job for a > webapp. Yes, I have realized this requirement with lighttpd quite easily with access control. And this does not only work for complete blogs, my config file e.g. contains this: auth.require = ( "/pages/member" => ( "method" => "digest", "realm" => "download archiv", "require" => "valid-user" ) ) That way, I can have parts of the blog that are public and some "member"-pages; all pages beginning with "member" (e.g. member- overview, member-details etc.) are only accessible for logged in users. Cheers Stephan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFF1sDTJ2YHTxfGSqERAiBjAJ4oXsg9QTf8nztV15wh3YKLqFexnACfQk6M mgkGEQDXtIWFZubucwE73Gw= =vmfs -----END PGP SIGNATURE----- From ernieoporto at gmail.com Mon Feb 19 11:00:16 2007 From: ernieoporto at gmail.com (Ernie Oporto) Date: Mon, 19 Feb 2007 11:00:16 -0500 Subject: [typo] Subscriber Access In-Reply-To: References: Message-ID: You're looking for the similarly named Typo3 from typo3.com We use that on a LAMP system for allowing department membership based on Active Directory memberships. It has all sorts of plugins for inserting into the pages, including blogs. On 2/16/07, Robert Sanford wrote: > > I'm looking for a blog server that will allow me to restrict access to > certain blogs, typically by department membership for internal blogs > but we also want to limit access to some of our public blog servers > based on the level of support that our customers have purchased. > > Does Typo support that? > > Many thanks! > > rjsjr > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070219/c3861f07/attachment.html From arvind at grovernetwork.com Mon Feb 19 19:55:28 2007 From: arvind at grovernetwork.com (arvind s grover) Date: Mon, 19 Feb 2007 19:55:28 -0500 Subject: [typo] upgrading 2.6 to 4.03 Message-ID: <36D8A24F-0A1C-4219-ACCB-31EEF52A8542@grovernetwork.com> I am using Typo 2.6.0 and want/need to upgrade to the most recent Typo, Typo 4.0.3 since my web-based admin interface doesn't really work anymore. I tried running the following command: /home/admin/rubyapps/typo-4.0.3/bin/typo install /home/admin/ rubyapps/typo-2.6.0 and I get the following error: /home/admin/gems/gems/rails-app-installer-0.2.0/lib/rails- installer.rb:597:in `find_source_directory': Can't locate version ! (RailsInstaller::InstallFailed) from /home/admin/gems/gems/rails-app-installer-0.2.0/lib/ rails-installer.rb:187:in `install' from /home/admin/gems/gems/rails-app-installer-0.2.0/lib/ rails-installer/commands.rb:95:in `command' from /home/admin/gems/gems/rails-app-installer-0.2.0/lib/ rails-installer.rb:646:in `execute_command' from /home/admin/rubyapps/typo-4.0.3/bin/typo:39 Any help would be appreciated. arvind From neuro at 7el.net Tue Feb 20 01:22:33 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Tue, 20 Feb 2007 07:22:33 +0100 Subject: [typo] Switch To HAML? In-Reply-To: <7eeceb440702121110i22789a20q2549d06801f1a4b8@mail.gmail.com> References: <7398c2160701260650l15cc918ud20702c4364fe508@mail.gmail.com> <7eeceb440702020955j19c22e05rc39fb3e476750823@mail.gmail.com> <6391E807-1AA4-4CEA-A8D5-459798159ECB@sb.org> <7eeceb440702121110i22789a20q2549d06801f1a4b8@mail.gmail.com> Message-ID: <7D2C5022-9BF7-4EB0-8FD5-F6966D880A44@7el.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 12 f?vr. 07 ? 20:10, mathew a ?crit : > On 2/11/07, Kevin Ballard wrote: >> Buh? Who edits HTML in an XML editor? Especially since the eRB >> escapes >> aren't, to my knowledge, real XML escapes and so I should be able to >> construct a valid RHTML file which isn't valid XML. > > There are a ton of people who edit HTML in XML-aware editors so that > they can have syntax coloring and other niceties to make the process > less error prone and painful. Are you telling me you don't think > anyone editing RHTML uses BBEdit, vim, emacs, ...? > >> Why would you have to learn HAML? > > To make the small modifications to themes necessary to implement > OpenID, for starters. > I've reverted the HAML changes on the trunk. Tell me if something nasty occured (don't count thist strange CSS stuff that breaks the live preview, I'll commit the change tonight). Regards, Fr?d?ric - -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFF2pOqCvkKk5nKviARAtRCAJ9jQ9ie324Cd4GzM3eAzZuG7J3pfgCfSp0t hOEqaYJJqHhyruG4WmyKToc= =YLa0 -----END PGP SIGNATURE----- From neuro at 7el.net Tue Feb 20 04:06:08 2007 From: neuro at 7el.net (Frederic de Villamil) Date: Tue, 20 Feb 2007 10:06:08 +0100 Subject: [typo] Typo 4.1 bug tracking party Message-ID: <5726657C-2E9B-4257-B812-2BB5EE2722C9@7el.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Typo 4.1 will be released until the end of the week. Whose who have time are invited to test the trunk and report bugs as much as they can. Remember a bug that's not filled is not a bug. Cheers, Fr?d?ric - -- Fr?d?ric de Villamil frederic at de-villamil.com tel: +33 (0)6 62 19 1337 http://fredericdevillamil.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFF2roBCvkKk5nKviARAq5BAJ44zs5XM5M15JK/c4g7kR/gcP2KpgCfZ9Br NtXt+vSOJu3vKY5jBz8QanU= =qF05 -----END PGP SIGNATURE----- From linda-list at i-sol.biz Tue Feb 20 08:35:49 2007 From: linda-list at i-sol.biz (Linda Derezinski) Date: Tue, 20 Feb 2007 08:35:49 -0500 Subject: [typo] Subscriber Access In-Reply-To: References: Message-ID: <014101c754f4$08761be0$0501000a@Aruba> Drupal does what you want with organic groups. I am using it on another each use has their own blog and then by groups you can control access to the various blogs. Users can belong to none or many groups. -Linda -----Original Message----- From: typo-list-bounces at rubyforge.org [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Robert Sanford Sent: Friday, February 16, 2007 4:22 PM To: typo-list at rubyforge.org Subject: [typo] Subscriber Access I'm looking for a blog server that will allow me to restrict access to certain blogs, typically by department membership for internal blogs but we also want to limit access to some of our public blog servers based on the level of support that our customers have purchased. Does Typo support that? Many thanks! rjsjr _______________________________________________ Typo-list mailing list Typo-list at rubyforge.org http://rubyforge.org/mailman/listinfo/typo-list From meta at pobox.com Tue Feb 20 13:05:19 2007 From: meta at pobox.com (mathew) Date: Tue, 20 Feb 2007 12:05:19 -0600 Subject: [typo] upgrading 2.6 to 4.03 In-Reply-To: <36D8A24F-0A1C-4219-ACCB-31EEF52A8542@grovernetwork.com> References: <36D8A24F-0A1C-4219-ACCB-31EEF52A8542@grovernetwork.com> Message-ID: <7eeceb440702201005y3d683b4ds385b08be5a3b952f@mail.gmail.com> It's worth noting that typo 4.0.3 doesn't work on the current version of Rails. If you have current Rails (1.2.x) you'll need to check out typo from Subversion. Revision 1361 is working well for me. mathew From ernieoporto at gmail.com Thu Feb 22 10:57:49 2007 From: ernieoporto at gmail.com (Ernie Oporto) Date: Thu, 22 Feb 2007 10:57:49 -0500 Subject: [typo] Subscriber Access In-Reply-To: <014101c754f4$08761be0$0501000a@Aruba> References: <014101c754f4$08761be0$0501000a@Aruba> Message-ID: Is there a way in Drupal to have a group blog that all those people have access to and only those people? Do they have any Wiki plugins? On 2/20/07, Linda Derezinski wrote: > > Drupal does what you want with organic groups. I am using it on another > each use has their own blog and then by groups you can control access to > the > various blogs. Users can belong to none or many groups. > > -Linda > > -----Original Message----- > From: typo-list-bounces at rubyforge.org > [mailto:typo-list-bounces at rubyforge.org] On Behalf Of Robert Sanford > Sent: Friday, February 16, 2007 4:22 PM > To: typo-list at rubyforge.org > Subject: [typo] Subscriber Access > > I'm looking for a blog server that will allow me to restrict access to > certain blogs, typically by department membership for internal blogs > but we also want to limit access to some of our public blog servers > based on the level of support that our customers have purchased. > > Does Typo support that? > > Many thanks! > > rjsjr > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > > _______________________________________________ > Typo-list mailing list > Typo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/typo-list > -- Ernie http://www.shokk.com/blog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/typo-list/attachments/20070222/26516242/attachment-0001.html