This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/magno/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0.rc6/lib/faraday/options.rb:39:in `delete': undefined method `uri' for #<Faraday::ConnectionOptions:0x9b02d50> (NoMethodError) | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0.rc6/lib/faraday/options.rb:186:in `from' | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0.rc6/lib/faraday/connection.rb:284:in `proxy' | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0.rc6/lib/faraday/connection.rb:83:in `initialize' | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0.rc6/lib/faraday.rb:111:in `new' | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0.rc6/lib/faraday.rb:111:in `default_connection' | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/faraday-0.9.0.rc6/lib/faraday.rb:99:in `method_missing' | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/ridley-1.5.3/lib/ridley/middleware/chef_auth.rb:90:in `<top (required)>' | |
from /home/magno/.rvm/gems/ruby-2.1.0/gems/ridley-1.5.3/lib/ridley/middleware.rb:9:in `require_relat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# somewhere in the Rails app initialization: | |
require 'dragonfly' | |
Ooor::Base.extend Dragonfly::Model | |
Ooor::Base.extend Dragonfly::Model::Validations | |
Ooor.xtend('product.product') do | |
dragonfly_accessor :dragon_image do | |
after_assign :resize_image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 Big data, high availability and full text search for OpenERP data with Apache Solr | |
==================================================================================== | |
OpenERP is optimized for managing master data transactionally. But you may also need high availability | |
accross millions of records, with advanced full text search and this is what Apache Solr is optimized for. | |
Akretion created a connector for Solr reusing the CampToCamp generic asynchrone framework. | |
Not only your can search for records, but you can also browse their cache and even rebuild | |
their associations directly from Apache Solr without hitting OpenERP! This is being used | |
in Brazil in what we believe to be the biggest website entirely backed by OpenERP, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[buildout] | |
parts = openerp | |
find-links = http://download.gna.org/pychart/ | |
versions = versions | |
[openerp] | |
recipe = anybox.recipe.openerp:server | |
version = local parts/odoo | |
eggs = nose | |
openerp_scripts = nosetests=nosetests command-line-options=-d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p parts/odoo/openerp/tools | |
cd parts/odoo | |
wget https://raw.githubusercontent.com/odoo/odoo/7.0/setup.py | |
wget https://raw.githubusercontent.com/odoo/odoo/7.0/openerp-server | |
cd openerp | |
echo "import tools" > __init__.py | |
wget https://raw.githubusercontent.com/odoo/odoo/7.0/openerp/release.py | |
wget https://raw.githubusercontent.com/odoo/odoo/7.0/openerp/loglevels.py | |
cd tools | |
echo "from config import config" > __init__.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p parts/odoo/openerp/tools | |
cd parts/odoo | |
wget https://raw.githubusercontent.com/odoo/odoo/8.0/setup.py | |
wget https://raw.githubusercontent.com/odoo/odoo/8.0/odoo.py | |
wget https://raw.githubusercontent.com/odoo/odoo/8.0/openerp-server | |
wget https://raw.githubusercontent.com/odoo/odoo/8.0/openerp-gevent | |
cd openerp | |
echo "import tools" > __init__.py | |
wget https://raw.githubusercontent.com/odoo/odoo/8.0/openerp/release.py | |
wget https://raw.githubusercontent.com/odoo/odoo/8.0/openerp/loglevels.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#in case of error such as: | |
# "no implicit conversion of nil into String" when doing wagon pull | |
#You can spot the source of the problem doing wagon pull -v | |
#this patch helps skipping ad identifying the faulty entry | |
# in locomotivecms_mounter-1.4.4/lib/locomotive/mounter/reader/api/content_entries_reader.rb around line 124: | |
def retrieve_file_path(content_type, field, attributes) | |
value = attributes[field.name] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start Rails with the option to listen to any IP, for instance: | |
bundle exec rails s -b 0.0.0.0 | |
use the https://github.com/gliderlabs/hostlocal tool to create a new "loopback interface": | |
docker run --rm --privileged --net=host gliderlabs/hostlocal | |
start Voodoo | |
inside Voodoo, your host is accessible with the same ports (port 3000 for Rails dev for instance) but the host is now called; | |
hostlocal.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ooor/persistence.rb b/lib/ooor/persistence.rb | |
index 18b2d02..1a55f3a 100644 | |
--- a/lib/ooor/persistence.rb | |
+++ b/lib/ooor/persistence.rb | |
@@ -90,6 +90,9 @@ module Ooor | |
@attributes ||= {} | |
@loaded_associations = {} | |
attributes.each do |key, value| | |
+if key.to_s == "id" | |
+ @attributes['id'] = value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.ExceptionInInitializerError | |
at org.jruby.RubyIO.<clinit>(RubyIO.java:113) | |
at org.jruby.RubyInstanceConfig.setupEnvironment(RubyInstanceConfig.java:677) | |
at org.jruby.RubyInstanceConfig.<init>(RubyInstanceConfig.java:123) | |
at org.jruby.embed.internal.AbstractLocalContextProvider.<init>(AbstractLocalContextProvider.java:59) | |
at org.jruby.embed.internal.SingleThreadLocalContextProvider.<init>(SingleThreadLocalContextProvider.java:50) | |
at org.jruby.embed.ScriptingContainer.getProviderInstance(ScriptingContainer.java:260) | |
at org.jruby.embed.ScriptingContainer.<init>(ScriptingContainer.java:241) | |
at org.jruby.embed.ScriptingContainer.<init>(ScriptingContainer.java:227) | |
at org.typeexit.kettle.plugin.steps.ruby.RubyStepFactory.createScriptingContainer(RubyStepFactory.java:18) |