kbingman / paperclipped
- Source
- Commits
- Network (44)
- Issues (11)
- Downloads (1)
- Wiki (1)
- Graphs
-
Branch:
master
-
0.8.0 Branch - edit page conflicts experienced with multiple extensions present
3 comments Created 7 months ago by tricycleWe have an extension that gets run before the paperclipped extension which does the following during activation:
admin.page.edit.add :form_bottom, "/preview/show", :after => 'edit_buttons' admin.page.edit.add :form_bottom, "/preview/preview_iframe", :after => 'edit_buttons'It appears that when the paperclipped extension is activated that it changes the edit page in paperclipped/lib/assets_admin_ui.rb line 32 which does:
page.edit = Radiant::AdminUI::RegionSet.new do |edit| edit.main.concat %w{edit_header edit_form edit_popups } edit.form.concat %w{edit_title edit_extended_metadata edit_page_parts} edit.form_bottom.concat %w{edit_buttons} edit.parts_bottom.concat %w{edit_layout_and_type edit_timestamp} edit.asset_tabs.concat %w{attachment_tab upload_tab bucket_tab search_tab} edit.bucket_pane.concat %w{bucket_notes bucket bucket_bottom} edit.asset_panes.concat %w{page_attachments upload search}If the assignment to page.edit is commented out then we can observe that the preview button added by the first extension is present and works. Is it possible that the paperclipped extension is somehow overwriting the existing page.edit? Is there a way to do this without interfering with other extension (if indeed that is what's happening here?)
Comments
-
0.8.0 Branch - missing assets bucket when creating new page
1 comment Created 7 months ago by tricycleWhen adding a new page the asset button is missing.
However for the edit page the asset button is present.
Comments
-
Hi Keith!
When I try migrating - it used to work but now - I get the following:
rake production db:migrate:extensions --trace (in /deploy/radiant) ** Invoke production (first_time) ** Execute production ** Invoke environment (first_time) ** Execute environment ** Invoke db:migrate:extensions (first_time) ** Invoke environment ** Execute db:migrate:extensions rake aborted! SQLite3::SQLException: no such table: extension_meta: SELECT schema_version FROM extension_meta WHERE name = 'Paperclipped' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:147:in `log' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in `execute' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:372:in `catch_schema_changes' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in `execute' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:275:in `select' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:61:in `select_all' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:13:in `select_one' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:19:in `select_value' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/radiant/extension_migrator.rb:42:in `initialize_extension_schema_migrations' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/radiant/extension_migrator.rb:25:in `initialize' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/migration.rb:373:in `new' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/migration.rb:373:in `up' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/vendor/rails/activerecord/lib/active_record/migration.rb:356:in `migrate' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/radiant/extension_migrator.rb:7:in `migrate' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/radiant/extension_migrator.rb:12:in `migrate_extensions' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/radiant/extension_migrator.rb:11:in `each' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/radiant/extension_migrator.rb:11:in `migrate_extensions' /opt/ree/lib/ruby/gems/1.8/gems/radiant-0.7.1/lib/tasks/extensions.rake:8 /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in `invoke_with_call_chain' /opt/ree/lib/ruby/1.8/monitor.rb:242:in `synchronize' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_chain' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in `top_level' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run' /opt/ree/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31 /opt/ree/bin/rake:19:in `load' /opt/ree/bin/rake:19Any idea?
Greetings from Berlin by
Benedikt
Comments
Hmm. weird. That is the old table from pre 0.7 radiant. which version of radiant are you using?
pipewriter
Wed May 27 07:41:21 -0700 2009
| link
Hi Keith,
Radiant 0.7.1 - the biggest problem is that extension migration is impossible now ... any idea?
Thanx and greetings from Berlin
Bene
-
I have this problem since e20a79d0 in this file http://github.com/kbingman/paperclipped/tree/e20a79d0ccbd289b7e3fc38695952215ad29c469/app/views/assets/index.html.haml
I return to before it, and just work. The problem is with the regions.
Comments
This is a known problem. at the moment it does not work with edge, but I am in the process of refactoring the regions. it should work with edge soon.





Can you let know which extension that is. The preview (with an iFrame) extension? I have used that successfully with 0.7.1 but have not tried it out with the newer version (which btw is not ready for primetime...!)
Keith
I'm having the same problem with Paperclipped 0.7.1 - it seems it's conflicting with the featured_pages extension which does this during activation:
admin.page.edit.add :form, "featured_page_meta"
this should now be fixed